/* riceball landing page. Phone first. One pinned screen, beats driven by scrolling. */
:root {
  --ink: #2b2622;
  --teal: #0f766e;
  --paper: #ffffff;
  --line: #e8e8e8;
  --hl: #ffe066;
  --big: 1.9;                /* how much bigger Toshi is while he is alone on the screen */
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font: 15px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: #f1bfd0;
  -webkit-text-size-adjust: 100%;
}
a { color: inherit; }
button { font: inherit; color: inherit; }

/* the tall track gives the page its scroll length; the stage stays pinned inside it */
.track { position: relative; }
.stage {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  overflow: hidden;
  background: linear-gradient(155deg, #fbe3cf 0%, #f1bfd0 48%, #a9bff0 100%);
  background-size: 170% 170%;
}

/* menu bar: the one quiet line lives here, next to the clock */
.bar {
  position: absolute; top: 0; left: 0; right: 0; height: 30px; z-index: 8;
  display: flex; align-items: center; gap: 14px; padding: 0 10px 0 12px;
  background: rgba(255, 255, 255, .62);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-size: 13px; color: #333;
}
.bar b { color: #111; display: flex; align-items: center; gap: 6px; }
.bar b img { width: 16px; height: 16px; image-rendering: pixelated; }
.bar .menu { display: none; }
.hire { margin-left: auto; font-size: 12.5px; font-weight: 600; color: #333; text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.clock {
  background: var(--teal); color: #fff; font-weight: 700;
  border-radius: 999px; padding: 1px 10px; font-size: 12px; white-space: nowrap;
  transition: transform .25s;
}
.clock.tick { transform: scale(1.12); }

/* beats: one open window at a time, each in its own spot */
.beats { position: absolute; top: 74px; bottom: 166px; left: 0; right: 0; z-index: 2; }
.beat {
  position: absolute; inset: 0; padding: 0 12px;
  display: flex; pointer-events: none;
}
.beat.on { pointer-events: auto; z-index: 2; }
.px-l { justify-content: flex-start; } .px-c { justify-content: center; } .px-r { justify-content: flex-end; }
.py-t { align-items: flex-start; } .py-m { align-items: center; } .py-b { align-items: flex-end; }
.beat.gl { padding-left: 66px; }      /* phone: Toshi's gutter on the left */
.beat.gr { padding-right: 66px; }     /* phone: Toshi's gutter on the right */
.col { display: flex; flex-direction: column; min-width: 0; max-height: 100%; width: 100%; }

.headline {
  margin: 8px 2px 12px; font-size: clamp(27px, 8vw, 52px);
  font-weight: 800; line-height: 1.04; letter-spacing: -.02em;
  transition: opacity .3s, transform .4s;
}
.beat:not(.on) .headline { opacity: 0; transform: translateY(-14px); }

/* a window: it opens out of its app in the dock, and shrinks back into the dock when he is done */
.win, .scr, .askbox, .cvbox {
  transition: transform .5s cubic-bezier(.3, .9, .3, 1), opacity .3s ease .12s;
  will-change: transform;
}
.beat .win, .beat .scr, .beat .askbox, .beat .cvbox { transform: translate(var(--ox, 0px), var(--oy, 200px)) scale(.05); opacity: 0; }
.beat.on .win, .beat.on .scr, .beat.on .askbox, .beat.on .cvbox { transform: translateY(var(--drift, 0px)); opacity: 1; transition: transform .5s cubic-bezier(.2, 1.1, .3, 1), opacity .2s; }
.beat.past .win, .beat.past .scr, .beat.past .askbox, .beat.past .cvbox { transform: translate(var(--mx, 0px), var(--my, 200px)) scale(.05); opacity: 0; }

.win {
  width: 100%; max-width: 560px; max-height: 100%; min-height: 0;
  display: flex; flex-direction: column;
  background: var(--paper); border-radius: 12px; overflow: hidden;
  box-shadow: 0 14px 34px rgba(40, 20, 60, .28), 0 0 0 1px rgba(0, 0, 0, .06);
}
.win.tall { max-width: 330px; }
.spot { width: 10px; height: 10px; }   /* a beat with no window: the middle of the screen, where Toshi stands alone */
.wt {
  flex: none; height: 26px; display: flex; align-items: center; gap: 5px; padding: 0 9px;
  background: #ececec; font-size: 12px; color: #555;
}
.wt i { width: 9px; height: 9px; border-radius: 50%; display: block; background: #fe5f57; }
.wt i:nth-child(2) { background: #febc2e; } .wt i:nth-child(3) { background: #28c840; }
.wt span { margin-left: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wc {
  position: relative;
  flex: 1; min-height: 0; overflow: hidden; padding: 14px; font-size: 14px;
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 26px), transparent);
  mask-image: linear-gradient(to bottom, #000 calc(100% - 26px), transparent);
}
.wc.flush { padding: 0; }
/* windows where every line counts (his resume, his interview): complete, never faded.
   If one is taller than a short screen, the window scrolls to the part he is on. */
.win.full .wc { -webkit-mask-image: none; mask-image: none; font-size: clamp(12.5px, 1.75svh, 14px); }

/* his resume, in the look of a one-page PDF */
.cvbox {
  position: relative; z-index: 1; width: 100%; max-width: 560px; max-height: calc(100% - 52px); min-height: 0;
  overflow: hidden; border-radius: 3px; filter: drop-shadow(0 8px 16px rgba(40, 20, 60, .26));
}
.paper { background: #fff; border: 1px solid #e2e2e2; padding: 13px 14px 12px; font-size: 12.5px; line-height: 1.33; will-change: transform; }
/* the file it comes out of: a back and a front, with the page between them */
.fback, .ffront { position: absolute; pointer-events: none; opacity: 0; transform-origin: 50% 0; }
.fback { z-index: 0; height: 44px; margin-top: -17px; background: #d2952a; border-radius: 9px 9px 0 0; }
.fback::before { content: ""; position: absolute; left: 14px; top: -10px; width: 96px; height: 14px; background: #d2952a; border-radius: 8px 8px 0 0; }
.ffront {
  z-index: 2; height: 76px; background: linear-gradient(#f7c95a, #edb237); border-radius: 4px 4px 12px 12px;
  box-shadow: 0 8px 16px rgba(40, 20, 60, .25), inset 0 2px 0 rgba(255, 255, 255, .5);
  display: flex; align-items: flex-start; justify-content: center; padding-top: 13px;
}
.ffront b { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: #7a5310; background: #fff8e3; border-radius: 4px; padding: 1px 10px; }
.cvh { display: flex; align-items: center; gap: 11px; padding-bottom: 7px; border-bottom: 2px solid var(--ink); }
.cvh img { flex: none; width: 46px; height: 46px; border-radius: 8px; object-fit: cover; object-position: 50% 35%; background: #fdf3e3; border: 1px solid #eadfcd; }
.cvh h2 { margin: 0; font-size: 24px; line-height: 1; letter-spacing: -.01em; }
.cvr { margin: 3px 0 0; font-weight: 600; }
.cvc { margin: 1px 0 0; color: #666; font-size: 11.5px; }
.cv h3 { margin: 8px 0 3px; padding-bottom: 2px; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); border-bottom: 1px solid #dcdcdc; }
.cv p { margin: 0 0 3px; }
.cvj { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.cvj span { color: #666; white-space: nowrap; }
.cv ul { margin: 2px 0 0; padding-left: 16px; }
.cv li { margin-bottom: 2px; }
.cv p.cvs { display: flex; flex-wrap: wrap; gap: 4px 5px; margin: 5px 0 2px; }
.cvs span { border: 1px solid #cfd3d8; border-radius: 4px; padding: 0 6px; font-size: 11.5px; white-space: nowrap; }
.cvs em { font-style: normal; color: #555; }
.cv .grp + .grp { margin-top: 0; }

/* documents */
.doc h2 { font-size: 17px; margin: 0 0 2px; }
.doc .meta { color: #8a8a8a; font-size: 12px; margin-bottom: 10px; }
.doc p { margin: 0 0 9px; }
mark { background: var(--hl); padding: 0 2px; margin: 0 -2px; border-radius: 3px; color: inherit; }   /* the highlight is a little wider than the words, without pushing the next letter away */
/* for things they skim: two full items, a third that fades, a fourth already faded */
.f3 {
  -webkit-mask-image: linear-gradient(to bottom, #000 5%, rgba(0, 0, 0, .12) 100%);
  mask-image: linear-gradient(to bottom, #000 5%, rgba(0, 0, 0, .12) 100%);
}
.f4 { opacity: .2; }

/* two documents in one browser window, in the look of an online doc editor */
.tabs2 { flex: none; display: flex; align-items: flex-end; gap: 2px; padding: 5px 8px 0; background: #dfe3e8; }
.tabs2 span {
  display: flex; align-items: center; gap: 5px; min-width: 0; max-width: 50%;
  padding: 5px 10px; font-size: 11.5px; color: #555; border-radius: 8px 8px 0 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: background .2s, color .2s;
}
.tabs2 span.act { background: #fff; color: #111; }
.tabs2 span i { flex: none; width: 8px; height: 10px; border-radius: 1.5px; background: #4285f4; display: block; }
.pane { display: none; }
.pane.show { display: block; animation: panein .3s ease-out; }
@keyframes panein { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.gd { background: #f9fbfd; min-height: 100%; }
.gh { display: flex; align-items: center; gap: 9px; padding: 7px 12px; background: #fff; border-bottom: 1px solid #e3e6ea; }
.gi { flex: none; width: 15px; height: 20px; background: #4285f4; border-radius: 2.5px; position: relative; }
.gi::after { content: ""; position: absolute; left: 3px; right: 3px; top: 7px; height: 1.5px; background: #fff; box-shadow: 0 3.5px 0 #fff, 0 7px 0 #fff; }
.gt { display: block; font-size: 14px; color: #1f1f1f; line-height: 1.15; }
.gm { display: block; font-size: 10.5px; color: #5f6368; white-space: nowrap; }
.gs { margin-left: auto; background: #c2e7ff; color: #001d35; border-radius: 999px; padding: 3px 12px; font-size: 12px; font-weight: 600; }
.gp { background: #fff; margin: 10px 5% 0; padding: 14px 16px 18px; box-shadow: 0 0 0 1px #e3e6ea; }
.gp h2 { font-size: 20px; font-weight: 400; margin: 0 0 2px; color: #1f1f1f; }
.gp .meta { color: #8a8a8a; font-size: 12px; margin-bottom: 10px; }
.gp p { margin: 0 0 9px; }

/* exact values read from a project file */
.kv { display: flex; align-items: baseline; gap: 10px; border-bottom: 1px solid #eee; padding: 6px 0; }
.kv b { width: 26%; font-weight: 600; color: #666; }
.kv code { flex: 1; font: 13px ui-monospace, Menlo, Consolas, monospace; color: #111; }
.kv em { font-style: normal; color: var(--teal); font-weight: 700; font-size: 12px; white-space: nowrap; }

/* reels */
.reels { display: grid; gap: 6px; }
.rrow { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.reel { aspect-ratio: 9 / 13; border-radius: 7px; position: relative; overflow: hidden; }
.reel b { position: absolute; left: 8%; right: 8%; top: 8%; font-size: 11.5px; line-height: 1.15; font-weight: 800; color: var(--ink); }
.reel::after { content: ""; position: absolute; left: 14%; right: 14%; bottom: 14%; height: 5px; background: #fff; border-radius: 3px; }
/* what he noticed in a reel */
.reel .note {
  position: absolute; left: 6%; right: 6%; bottom: 25%; font-style: normal; text-align: center;
  background: #fff; border: 1.5px solid var(--ink); border-radius: 7px; padding: 2px 4px; font-size: 10.5px; line-height: 1.2; font-weight: 700;
  opacity: 0; transform: translateY(8px) scale(.9); transition: opacity .3s ease .35s, transform .35s cubic-bezier(.3, 1.4, .5, 1) .35s;
}
.rrow .reel:nth-child(2) .note { transition-delay: .6s; }
.rrow.cur .note, .rrow.done .note { opacity: 1; transform: none; }

/* files */
.files div { padding: 8px 6px; border-bottom: 1px solid #eee; display: flex; align-items: center; gap: 8px; }
.files i { margin-left: auto; font-style: normal; color: #8a8a8a; }
.files .new { background: #e6fffa; font-weight: 700; }
.files .new em { font-style: normal; background: var(--teal); color: #fff; border-radius: 999px; padding: 0 8px; font-size: 11px; }

/* the cut */
.prev { background: var(--ink); border-radius: 8px; height: 92px; margin-bottom: 12px; display: flex; align-items: center; justify-content: center; }
.prev span { color: var(--hl); font-weight: 800; font-size: 18px; letter-spacing: .02em; }
.tr { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; height: 13px; }
.tr i { font-style: normal; font-size: 11px; color: #777; width: 54px; flex: none; }
.tr div { flex: 1; display: flex; height: 100%; }
.tr b { display: block; border-radius: 3px; height: 100%; }

/* the editor's project, taken apart: each track, and under it what he found there */
.pj h2 { font-size: 15px; margin: 0 0 7px; }
.pj .tr { margin-bottom: 2px; }
.fd { margin: 0 0 7px 62px; font-size: 12px; line-height: 1.25; color: #4a4540; }
.doc p.fd { margin-bottom: 7px; }
.fd::before { content: ""; display: inline-block; width: 7px; height: 7px; border-left: 1.5px solid #9a938b; border-bottom: 1.5px solid #9a938b; margin-right: 6px; transform: translateY(-3px); }
.stop .fd { opacity: 0; transform: translateX(-6px); transition: opacity .3s ease .25s, transform .3s ease .25s; }
.stop .tl .tr:nth-child(3) b { transition-delay: .3s; } .stop .tl .fd:nth-child(4) { transition-delay: .55s; }
.stop .tl .tr:nth-child(5) b { transition-delay: .6s; } .stop .tl .fd:nth-child(6) { transition-delay: .85s; }
.stop .tl .tr:nth-child(7) b { transition-delay: .9s; } .stop .tl .fd:nth-child(8) { transition-delay: 1.15s; }
.stop.cur .fd, .stop.done .fd { opacity: 1; transform: none; }

/* drafts */
.drafts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; font-size: 12px; }
.draft { border: 0; background: none; padding: 0; cursor: pointer; }
.draft u { display: flex; align-items: center; justify-content: center; aspect-ratio: 9 / 12; border-radius: 8px; text-decoration: none; margin-bottom: 4px; padding: 4px; outline: 3px solid transparent; outline-offset: 2px; transition: outline-color .2s; }
.draft u em { font-style: normal; font-weight: 800; font-size: 12px; color: var(--ink); }
.draft.pk u { outline-color: var(--teal); }

/* the team chat, in the look of a real channel */
.sk { display: flex; min-height: 100%; }
.skside { display: none; }
.skmain { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.skhead { display: flex; align-items: baseline; gap: 8px; padding: 9px 12px; border-bottom: 1px solid var(--line); }
.skhead b { font-size: 15px; } .skhead span { font-size: 12px; color: #777; }
.skmsgs { padding: 10px 12px 12px; }
.m { display: flex; gap: 9px; margin: 0 0 11px; }
.av { flex: none; width: 30px; height: 30px; border-radius: 7px; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; color: #fff; font-style: normal; overflow: hidden; }
.av img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; background: #fdf3e3; }
.av.c1 { background: #e8704f; } .av.c2 { background: #3f7fd9; } .av.c3 { background: #6b4fbb; }
.m .who { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.m .who b { font-size: 14px; } .m .who em { font-style: normal; font-size: 9.5px; font-weight: 700; color: #555; background: #e8e8e8; border-radius: 3px; padding: 0 4px; }
.m .who time { font-size: 11px; color: #888; }
.m p { margin: 1px 0 0; }
.m .drafts { margin-top: 8px; max-width: 330px; }
.react { display: none; margin-top: 7px; font-size: 12px; background: #e6fffa; border: 1px solid #9ad9d0; color: #0b5c56; border-radius: 999px; padding: 1px 9px; }
.picked .react { display: inline-block; animation: popin .3s ease-out both; }
@keyframes popin { from { opacity: 0; transform: translateY(8px) scale(.9); } to { opacity: 1; transform: none; } }

/* the scroll that unrolls */
.scr { width: 100%; max-width: 420px; filter: drop-shadow(0 12px 16px rgba(40, 20, 60, .3)); }
.rod { height: 14px; background: #7a5230; border-radius: 7px; margin: 0 -8px; position: relative; z-index: 1; }
.pap { background: #fbf3df; margin: -3px 0; padding: 14px 14px 10px; border-left: 1px solid #e3d6b4; border-right: 1px solid #e3d6b4; }
.pap h2 { font-size: 15px; margin: 0 0 8px; }
.sl { max-height: 0; opacity: 0; overflow: hidden; border-top: 1px dashed #d9caa2; transition: max-height .35s ease, opacity .3s ease, background .2s; padding: 0 6px; }
.sgrp .sl:nth-child(2) { transition-delay: .12s; } .sgrp .sl:nth-child(3) { transition-delay: .24s; }
.sgrp.cur .sl, .sgrp.done .sl { max-height: 90px; opacity: 1; padding: 6px; }
.sl span { display: none; color: #6b5a33; font-size: 13px; }
.sgrp.cur .sl { background: #fff; border: 1px solid #d9caa2; border-radius: 6px; font-weight: 700; margin-bottom: 4px; }
.sgrp.cur .sl span { display: block; font-weight: 400; }
.pap em { display: block; font-style: normal; color: #8a6a2f; font-weight: 700; margin-top: 8px; font-size: 13px; }

/* the ask, kept small */
.askbox { text-align: center; }
.askbox .headline { margin: 0 auto 18px; max-width: 10.5em; }
.btn {
  display: inline-block; text-decoration: none; color: var(--teal); border: 2px solid var(--teal);
  border-radius: 10px; padding: 9px 18px; font-weight: 700; font-size: 16px; background: rgba(255, 255, 255, .5);
}
.askbox p { margin: 12px auto 0; font-size: 13px; color: #555; max-width: 300px; }

/* the call: a window that says who the call is with and what happens on it, before the link to pick a time */
.sheet {
  position: absolute; inset: 0; z-index: 20; display: flex; align-items: center; justify-content: center; padding: 14px;
  background: rgba(43, 30, 60, 0); transition: background .2s;
}
.sheet[hidden] { display: none; }
.sheet.open { background: rgba(43, 30, 60, .36); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.callwin { width: 100%; max-width: 430px; max-height: 100%; opacity: 0; transform: translateY(-18px) scale(.94); transition: opacity .2s, transform .28s cubic-bezier(.3, 1.3, .5, 1); }
.sheet.open .callwin { opacity: 1; transform: none; }
.callwin .wc { -webkit-mask-image: none; mask-image: none; overflow: auto; padding: 16px 16px 16px; font-size: 14.5px; }
.callwin .x { -webkit-appearance: none; appearance: none; border: 0; padding: 0; width: 9px; height: 9px; border-radius: 50%; background: #fe5f57; cursor: pointer; position: relative; flex: none; }
.callwin .x::after { content: ""; position: absolute; inset: -11px; }
.callhead { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; }
.callhead img { flex: none; width: 46px; height: 46px; border-radius: 9px; object-fit: cover; object-position: 50% 35%; background: #fdf3e3; border: 1px solid #eadfcd; }
.callhead p { margin: 0; line-height: 1.35; }
.callwin h3 { margin: 0 0 6px; padding-bottom: 2px; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); border-bottom: 1px solid #dcdcdc; }
.callwin ol { margin: 0 0 16px; padding-left: 20px; }
.callwin li { margin-bottom: 5px; padding-left: 2px; }
.callwin .go { display: block; text-align: center; background: var(--teal); color: #fff; }
.callfoot { margin: 9px 0 0; text-align: center; font-size: 12.5px; color: #666; }

/* Toshi stands next to the part he is looking at. He moves a different way each time. */
.toshi { position: absolute; left: 0; top: 0; z-index: 6; width: 74px; pointer-events: none; will-change: transform; }
.ready .toshi { transition: transform .5s cubic-bezier(.3, 1.25, .45, 1); }
.ready .flipper { transition: transform .45s cubic-bezier(.3, 1.2, .45, 1); }
/* in the beats that move with the scroll, nothing eases by itself */
.scrub .toshi, .scrub .flipper, .scrub .say { transition: none !important; }
.toshi.flip .flipper { transform: scaleX(-1); }
/* alone on the screen at the start: bigger, and breathing a little */
.solo .flipper { animation: bob 2.8s ease-in-out infinite; }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -5px; } }
.toshi img { display: block; width: 100%; height: auto; filter: drop-shadow(0 4px 4px rgba(0, 0, 0, .25)); transform-origin: 50% 100%; }
.toshi img.hop { animation: hop .45s ease-out; }
.toshi img.roll { animation: roll .5s ease-in-out; transform-origin: 50% 55%; }
.toshi img.wig { animation: wig .5s ease-in-out; }
.toshi img.peek { animation: peek .45s cubic-bezier(.3, 1.4, .5, 1); }
@keyframes hop { 0% { transform: none; } 35% { transform: translateY(-16px) scale(.96, 1.06); } 70% { transform: translateY(0) scale(1.07, .93); } 100% { transform: none; } }
@keyframes roll { from { transform: rotate(0); } to { transform: rotate(360deg); } }
@keyframes wig { 0% { transform: rotate(0); } 25% { transform: rotate(-11deg); } 60% { transform: rotate(9deg); } 100% { transform: rotate(0); } }
@keyframes peek { 0% { transform: translateY(26px) scale(.7); } 100% { transform: none; } }

/* what he says: a speech box that fills in as he speaks. On a phone it sits above the dock with his name on it;
   on a computer it sits next to him with a little tail pointing at him. */
.say {
  position: absolute; left: 12px; right: 12px; bottom: 84px; z-index: 6; margin: 0;
  background: #fffdf7; border: 2.5px solid var(--ink); border-radius: 18px; box-shadow: 0 4px 0 var(--ink);
  padding: 14px 15px 9px; min-height: 64px;
  font-weight: 600; font-size: 15.5px; line-height: 1.33;
}
.say p { margin: 0; }
.say .who {
  position: absolute; left: 14px; top: -13px; background: var(--teal); color: #fff; border: 2.5px solid var(--ink);
  border-radius: 999px; padding: 0 10px; font-size: 12px; line-height: 19px; font-weight: 800; letter-spacing: .02em;
}
#sayOff { opacity: 0; }
.say .next { position: absolute; right: 13px; bottom: 7px; width: 0; height: 0; border: 5.5px solid transparent; border-top: 7px solid var(--ink); border-bottom: 0; opacity: 0; }
.say.done .next { opacity: .85; animation: nudge .9s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: none; } 50% { transform: translateY(3px); } }
.ready .say { transition: opacity .2s, transform .5s cubic-bezier(.3, 1.25, .45, 1); }

/* the part he is on. A beat has two parts at most; a part can be one thing or a small group of things. */
.stop { transition: background-color .25s, box-shadow .25s, opacity .3s, transform .35s cubic-bezier(.2, .8, .2, 1), filter .3s; border-radius: 6px; }
.doc .stop.cur, .gp .stop.cur, .files .stop.cur {
  background-color: rgba(255, 224, 102, .34); box-shadow: 0 0 0 5px rgba(255, 224, 102, .34);
}
/* the resume's halves light up and their marked words fill in with the scroll */
.cv .stop { transition: none; background-color: rgba(255, 224, 102, calc(.17 * var(--h, 0))); box-shadow: 0 0 0 5px rgba(255, 224, 102, calc(.17 * var(--h, 0))); }
.cv .stop mark { transition: none; background-size: calc(var(--p, 0) * 100%) 100%; }
.grp > p:last-child { margin-bottom: 0; }
.grp + p, .grp + .grp, .grp + .kv { margin-top: 9px; }
.doc .grp + .kv { margin-top: 0; }
.stop mark { background: linear-gradient(var(--hl), var(--hl)) no-repeat 0 0 / 0% 100%; transition: background-size .55s ease .1s; }
.stop.cur mark, .stop.done mark { background-size: 100% 100%; }
.stop p:nth-child(2) mark { transition-delay: .45s; }
.kv em { opacity: 0; transform: scale(.5); transition: opacity .25s, transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.kv.cur em, .kv.done em, .stop.cur .kv em, .stop.done .kv em { opacity: 1; transform: none; }
.stop .kv:nth-child(2) em { transition-delay: .2s; }
.rrow .reel { filter: saturate(.5) brightness(1.05); transition: filter .3s, transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .25s; }
.rrow .reel:nth-child(2) { transition-delay: .14s; }
.rrow.cur .reel { filter: none; transform: scale(1.03); box-shadow: 0 8px 16px rgba(40, 20, 60, .24); z-index: 1; }
.rrow.done .reel { filter: none; }
.stop .tr b { transform: scaleX(0); transform-origin: left center; transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.stop .tr b:nth-child(2) { transition-delay: .08s; } .stop .tr b:nth-child(3) { transition-delay: .16s; } .stop .tr b:nth-child(4) { transition-delay: .24s; }
.stop .tr:nth-child(2) b { transition-delay: .34s; }
.stop .tr:nth-child(2) b:nth-child(2) { transition-delay: .42s; } .stop .tr:nth-child(2) b:nth-child(3) { transition-delay: .5s; } .stop .tr:nth-child(2) b:nth-child(4) { transition-delay: .58s; }
.stop.cur .tr b, .stop.done .tr b { transform: scaleX(1); }
.stop.cur .tr i { color: var(--ink); font-weight: 700; }
.stop.grp > .tr:last-child { margin-bottom: 0; }
.stop.grp + .stop.grp > .tr:first-child { margin-top: 6px; }
.dgrp { grid-column: span 2; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.draft.stop, .dgrp .draft { opacity: 0; transform: translateY(14px) scale(.85); }
.dgrp .draft { transition: opacity .3s, transform .35s cubic-bezier(.2, .8, .2, 1); }
.dgrp .draft:nth-child(2) { transition-delay: .18s; }
.draft.stop.cur, .draft.stop.done, .dgrp.cur .draft, .dgrp.done .draft { opacity: 1; transform: none; }
.files .new.stop { max-height: 0; opacity: 0; padding-top: 0; padding-bottom: 0; overflow: hidden; transition: max-height .35s, opacity .3s, padding .35s; }
.files .new.stop.cur, .files .new.stop.done { max-height: 60px; opacity: 1; padding-top: 8px; padding-bottom: 8px; }
.m.stop, .mgrp .m { opacity: 0; transform: translateY(12px); }
.mgrp .m { transition: opacity .3s, transform .35s cubic-bezier(.2, .8, .2, 1); }
.mgrp .m:nth-child(2) { transition-delay: .3s; } .mgrp .m:nth-child(3) { transition-delay: .7s; }
.m.stop.cur, .m.stop.done, .mgrp.cur .m, .mgrp.done .m { opacity: 1; transform: none; }
.m.stop.cur { background-color: rgba(255, 224, 102, .22); box-shadow: 0 0 0 6px rgba(255, 224, 102, .22); }

/* what toshi knows: on a phone, one line under the menu bar that opens when tapped */
.know { position: absolute; top: 36px; left: 10px; right: 10px; z-index: 7; border-radius: 12px; }
/* at the start it is not there; then it shows up as a card above Toshi; then it moves to its place */
.know.hide { opacity: 0; pointer-events: none; }
.know.feature { top: auto; bottom: calc(100% - var(--solo-top, 45%) + 18px); left: 50%; right: auto; width: 228px; margin-left: -114px; }
.know.feature .kh { cursor: default; border-radius: 12px 12px 0 0; border-bottom: 0; background: #fff; padding: 7px 10px; font-size: 13.5px; }
.know.feature .kh em { display: none; }
.know.feature .kt {
  display: block; margin: 0; padding: 4px 8px 9px; max-height: none; overflow: visible;
  background: #fff; border: 1px solid rgba(0, 0, 0, .12); border-top: 0; border-radius: 0 0 12px 12px;
  box-shadow: 0 10px 26px rgba(40, 20, 60, .22);
}
.know.feature::after {
  content: ""; position: absolute; left: 50%; bottom: -7px; width: 14px; height: 14px; margin-left: -7px;
  background: #fff; transform: rotate(45deg); border-right: 1px solid rgba(0, 0, 0, .12); border-bottom: 1px solid rgba(0, 0, 0, .12);
}
/* while he says where he keeps what he learns: an arrow from him to the panel, and a ring around it */
.know.pointed { box-shadow: 0 0 0 3px #ffb81f; animation: ring 1.5s ease-in-out infinite; }
@keyframes ring { 0%, 100% { box-shadow: 0 0 0 3px #ffb81f, 0 0 0 5px rgba(255, 184, 31, .3); } 50% { box-shadow: 0 0 0 3px #ffb81f, 0 0 0 12px rgba(255, 184, 31, 0); } }
.ptr { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 6; pointer-events: none; opacity: 0; overflow: visible; }
.ptr path { fill: none; stroke: var(--ink); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.ptr .line { stroke-dasharray: 1; stroke-dashoffset: 1; }
.ptr .head { opacity: 0; }
.kh {
  display: flex; align-items: center; gap: 6px; width: 100%; text-align: left; cursor: pointer;
  background: rgba(255, 255, 255, .86); border: 1px solid rgba(0, 0, 0, .12); border-radius: 10px;
  padding: 4px 9px; font-size: 12.5px; color: var(--ink);
}
.kh img { width: 14px; height: 14px; image-rendering: pixelated; flex: none; }
.kh span { font-weight: 700; white-space: nowrap; }
.kh em { margin-left: auto; font-style: normal; color: #0b5c56; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.kt { display: none; }
.know.open .kt {
  display: block; margin-top: 4px; padding: 8px; max-height: 52svh; overflow: auto;
  background: rgba(255, 255, 255, .96); border-radius: 12px; box-shadow: 0 10px 26px rgba(40, 20, 60, .28);
}
.kr { display: flex; align-items: center; gap: 6px; padding: 3px 5px; border-radius: 6px; font-size: 13px; }
.kr i { flex: none; width: 15px; height: 11px; border-radius: 2px; background: #5aa7f5; position: relative; display: block; }
.kr i::before { content: ""; position: absolute; left: 0; top: -3px; width: 7px; height: 4px; border-radius: 2px 2px 0 0; background: #5aa7f5; }
.kr b { margin-left: auto; font-size: 11.5px; font-weight: 600; color: #555; background: #ececec; border-radius: 999px; padding: 0 7px; }
.kr.pulse { animation: kpulse .7s ease-out; }
@keyframes kpulse { 0% { background: var(--hl); transform: scale(1.04); } 100% { background: transparent; transform: none; } }
.kg { font-size: 11px; color: #777; padding: 6px 5px 1px; }
.in1 { margin-left: 12px; }
.kf ul { display: none; margin: 0 0 3px 21px; padding: 0; list-style: none; font-size: 12.5px; color: #333; }
.kf.open ul { display: block; }
.kf li { padding: 2px 5px 2px 20px; border-radius: 5px; position: relative; }
.kf li::before { content: ""; position: absolute; left: 5px; top: 4px; width: 9px; height: 11px; border-radius: 1.5px; background: #fff; border: 1px solid #9aa3ad; box-shadow: inset 0 -3px 0 #e7ebf0; }
.kr.used { background: var(--hl); font-weight: 700; }
li.pulse { animation: kpulse .7s ease-out; }
.kf li.new { animation: knew 1.4s ease .5s both; }
.kf li.new.first { animation-delay: 1.8s; }       /* the first thing he ever files shows up when it lands */
@keyframes knew { 0% { opacity: 0; background: var(--hl); } 25% { opacity: 1; background: var(--hl); } 100% { opacity: 1; background: transparent; } }
.kf li.used { background: var(--hl); font-weight: 700; }
.kf.ghost .kr { border: 1.5px dashed #b89ab8; color: #6b5a6b; }
.kf.ghost .kr i, .kf.ghost .kr i::before { background: #d9c7d9; }
/* a piece of knowledge on its way into the panel, or back out to the work */
.chip {
  position: absolute; left: 0; top: 0; z-index: 9; pointer-events: none;
  background: #fff7c2; border: 1.5px solid var(--ink); border-radius: 999px; padding: 2px 10px;
  font-size: 12.5px; font-weight: 600; white-space: nowrap; max-width: 250px; overflow: hidden; text-overflow: ellipsis;
  box-shadow: 0 4px 10px rgba(40, 20, 60, .25);
}

.chip.big { font-size: 14.5px; padding: 4px 13px; border-width: 2px; }

/* the dock: his apps, the windows he has put away, the trash */
.foot { position: absolute; left: 0; right: 0; bottom: 8px; z-index: 7; display: flex; justify-content: center; pointer-events: none; }
.dock {
  pointer-events: auto; display: flex; align-items: flex-end; gap: 6px; padding: 6px 7px 7px;
  background: rgba(255, 255, 255, .42); border: 1px solid rgba(255, 255, 255, .6); border-radius: 17px;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 8px 24px rgba(40, 20, 60, .18);
}
.app { position: relative; width: 32px; height: 32px; flex: none; display: block; transition: transform .2s; }
.app svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .25)); }
.app.run::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: rgba(40, 30, 50, .65); }
.app.bounce { animation: bounce .75s ease-out; }
@keyframes bounce { 0% { transform: none; } 22% { transform: translateY(-15px); } 44% { transform: none; } 62% { transform: translateY(-7px); } 80% { transform: none; } }
.app .badge { display: none; position: absolute; top: -4px; right: -4px; min-width: 15px; height: 15px; border-radius: 8px; background: #ff3b30; color: #fff; font-size: 10px; font-weight: 700; line-height: 15px; text-align: center; padding: 0 3px; }
.app .badge.show { display: block; animation: popin .3s ease-out both; }
.sep { width: 1px; height: 28px; background: rgba(40, 30, 50, .22); margin: 0 1px 2px; flex: none; }
.minis { display: flex; align-items: flex-end; gap: 6px; }
.mini {
  position: relative; flex: none; width: 27px; height: 32px; padding: 0; border: 0; background: none; cursor: pointer;
  display: flex; align-items: flex-end; animation: minin .4s cubic-bezier(.3, 1.3, .5, 1) both;
}
@keyframes minin { from { opacity: 0; transform: scale(.3) translateY(10px); } to { opacity: 1; transform: none; } }
.mini .th { display: block; width: 27px; height: 22px; border-radius: 4px; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); overflow: hidden; position: relative; }
.mini .th::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: #dedede; }
.mini .th::after { content: ""; position: absolute; left: 4px; right: 7px; top: 9px; height: 2px; background: #cfcfcf; box-shadow: 0 4px 0 #dcdcdc, 0 8px 0 #e6e6e6; }
.mini .dot { position: absolute; right: -3px; bottom: -3px; width: 12px; height: 12px; border-radius: 3.5px; border: 1.5px solid #fff; }
.dot.docs { background: #4285f4; } .dot.social { background: linear-gradient(135deg, #7b3fe4, #ff5a7a 60%, #ffb347); } .dot.files { background: #3d8bf2; }
.dot.editor { background: #3b2a6b; } .dot.chat { background: #6b2a6e; }
/* the label of a window that was put away: on hover, and for a moment right after it lands */
.mini::after {
  content: attr(data-label); position: absolute; left: 50%; bottom: 40px; transform: translateX(-50%);
  white-space: nowrap; font-size: 11.5px; color: #222; background: rgba(250, 250, 250, .95); border-radius: 7px; padding: 2px 9px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .2); opacity: 0; pointer-events: none; transition: opacity .2s;
}
.mini:hover::after, .mini.fresh::after { opacity: 1; }
.mini.edge-r::after { left: auto; right: -6px; transform: none; }

.hint { position: absolute; left: 0; right: 0; bottom: 60px; text-align: center; font-size: 12px; color: #555; z-index: 3; transition: opacity .3s; pointer-events: none; }
.hint.gone { opacity: 0; }

/* computer: the full desktop */
@media (min-width: 900px) {
  body { font-size: 16px; }
  .bar { height: 34px; font-size: 14px; padding: 0 16px; }
  .bar .menu { display: inline; }
  .hire { font-size: 13.5px; }
  .beats { top: 50px; bottom: 96px; left: 6vw; right: 6vw; }
  .beat, .beat.gl, .beat.gr { padding: 0; }
  .col { width: auto; }
  .win { width: min(680px, 54vw); max-width: none; }
  .win.tall { width: min(400px, 34vw); }
  .wc { font-size: 16px; padding: 20px; }
  .win.full .wc { font-size: 16px; }
  .skside {
    display: block; flex: none; width: 150px; background: #3d1140; color: #e9dbea; padding: 10px 0; font-size: 13px;
  }
  .skside b { display: block; color: #fff; padding: 0 12px 8px; font-size: 14px; }
  .skside span { display: block; padding: 2px 12px; opacity: .8; }
  .skside span.act { background: #1f6fc5; color: #fff; opacity: 1; }
  .skside small { display: block; padding: 10px 12px 2px; font-size: 11px; opacity: .6; }
  :root { --big: 1.45; }
  .toshi { width: 150px; }
  .cvbox { width: min(680px, 54vw); max-width: none; max-height: calc(100% - 70px); }
  .paper { padding: 26px 30px 22px; font-size: 14.5px; line-height: 1.38; }
  .ffront { height: 96px; padding-top: 18px; }
  .ffront b { font-size: 13px; }
  .fback { height: 52px; margin-top: -20px; }
  .cvh { gap: 16px; padding-bottom: 14px; }
  .cvh img { width: 66px; height: 66px; border-radius: 10px; }
  .cvh h2 { font-size: 32px; }
  .cvc { font-size: 13px; }
  .cv h3 { font-size: 11.5px; margin: 15px 0 6px; }
  .cvs span { font-size: 13px; padding: 1px 8px; }
  .askbox p { font-size: 15px; max-width: 360px; }
  .callwin { width: 100%; max-width: 470px; }
  .callwin .wc { font-size: 16px; padding: 22px 24px 20px; }
  .callhead img { width: 56px; height: 56px; }
  .callfoot { font-size: 13.5px; }
  .say { left: 0; top: 0; right: auto; bottom: auto; max-width: 270px; min-height: 0; padding: 11px 26px 11px 15px; font-size: 16px; will-change: transform; }
  .say .who { display: none; }
  .say::after { content: ""; position: absolute; width: 13px; height: 13px; background: #fffdf7; border: 2.5px solid transparent; border-right-color: var(--ink); border-bottom-color: var(--ink); display: none; }
  .say.tail-t::after { display: block; top: -9px; left: calc(var(--tx, 50%) - 7px); transform: rotate(-135deg); }
  .say.tail-b::after { display: block; bottom: -9px; left: calc(var(--tx, 50%) - 7px); transform: rotate(45deg); box-shadow: 3px 3px 0 var(--ink); }
  .say.tail-l::after { display: block; left: -9px; top: calc(50% - 7px); transform: rotate(135deg); }
  .say.tail-r::after { display: block; right: -9px; top: calc(50% - 7px); transform: rotate(-45deg); }
  .foot { bottom: 12px; }
  .dock { gap: 8px; padding: 7px 9px 9px; border-radius: 22px; }
  .app { width: 46px; height: 46px; }
  .app:hover { transform: translateY(-6px) scale(1.12); }
  .app.run::after { bottom: -6px; }
  .sep { height: 42px; }
  .minis { gap: 8px; }
  .mini { width: 40px; height: 46px; }
  .mini .th { width: 40px; height: 31px; border-radius: 5px; }
  .mini .th::before { height: 7px; }
  .mini .th::after { left: 6px; right: 10px; top: 13px; box-shadow: 0 5px 0 #dcdcdc, 0 10px 0 #e6e6e6; }
  .mini .dot { width: 16px; height: 16px; border-radius: 4.5px; }
  .mini::after { bottom: 56px; font-size: 12.5px; }
  .hint { bottom: 78px; }
}

@media (min-width: 900px) {
  .beats { top: 84px; }
}
@media (min-width: 1100px) {
  .beats { top: 50px; right: 268px; }
  .know { top: 46px; left: auto; right: 16px; width: 228px; }
  .kh { cursor: default; border-radius: 12px 12px 0 0; border-bottom: 0; background: rgba(255, 255, 255, .92); padding: 7px 10px; font-size: 13.5px; }
  .kh em { display: none; }
  .kt, .know.open .kt {
    display: block; margin: 0; padding: 4px 8px 9px; max-height: none; overflow: visible;
    background: rgba(255, 255, 255, .84); border: 1px solid rgba(0, 0, 0, .12); border-top: 0; border-radius: 0 0 12px 12px;
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 8px 22px rgba(40, 20, 60, .16);
  }
}

@media (prefers-reduced-motion: reduce) {
  .win, .scr, .askbox, .beat.on .win, .sl, .say, .clock, .toshi, .stop, .stop mark, .stop .tr b, .stop .reel, .stop .draft, .stop .m, .stop .fd, .reel .note, .kv em, .flipper { transition-duration: .01s !important; transition-delay: 0s !important; }
  .toshi img, .mini, .app.bounce, .pane.show, .picked .react, .kr.pulse, .kf li.new, .solo .flipper, .know.pointed { animation: none !important; }
  .say .next { animation: none !important; }
}

/* used for a moment while the script measures where each window sits */
.measure .win, .measure .scr, .measure .askbox, .measure .cvbox { transform: none !important; transition: none !important; }
.still .win, .still .scr, .still .askbox, .still .cvbox { transition: none !important; }
