/* The flow scene: one job from enquiry to paid, scrubbed by scroll (flow.js). The scene is a fixed
   640x600 stage, scaled to fit; everything inside is placed in stage pixels. */
#flow { position: relative; height: 560vh; }
.fl-pin { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; overflow: hidden; }
.fl-grid { display: grid; grid-template-columns: .78fr 1.22fr; gap: 56px; align-items: center; width: 100%; max-width: 1280px; }
.fl-copy h2.big { font-size: clamp(30px, 2.8vw, 42px); line-height: 1.08; margin: 10px 0 34px; }
.fl-now { position: relative; min-height: 200px; margin-top: 8px; }
.fl-now article { position: absolute; inset: 0 0 auto 0; opacity: 0; transform: translateY(26px); filter: blur(6px); transition: opacity .5s ease, transform .6s cubic-bezier(.2,.8,.2,1), filter .5s ease; }
.fl-now article.on { opacity: 1; transform: none; filter: none; }
.fl-now .n { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); }
.fl-now .n i { width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: #111; font-style: normal; display: grid; place-items: center; letter-spacing: 0; font-size: 13px; }
.fl-now h3 { font-size: clamp(30px, 3.4vw, 46px); letter-spacing: -.03em; line-height: 1.05; margin: 12px 0 10px; }
.fl-now p { color: var(--ink-2); font-size: 17px; max-width: 44ch; margin: 0; }
.fl-dots { display: flex; gap: 8px; margin-top: 26px; }
.fl-dots i { width: 28px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.12); overflow: hidden; position: relative; }
.fl-dots i b { position: absolute; inset: 0; width: 0; background: var(--brand); }

.fx-box { position: relative; width: 100%; max-width: calc((100vh - 120px) * 640 / 600); aspect-ratio: 640 / 600; margin-left: auto; }
.fx { position: absolute; left: 0; top: 0; width: 640px; height: 600px; transform-origin: 0 0; border-radius: 36px; overflow: hidden; color: #161616; font-family: inherit;
  background: radial-gradient(420px 320px at 90% 0%, #fff 0, rgba(255,255,255,0) 70%), radial-gradient(400px 360px at 0% 100%, #f3e3cc 0, rgba(243,227,204,0) 70%), linear-gradient(165deg, #f3f1ed, #e3ded6);
  box-shadow: 0 50px 120px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.08); }
.fx * { box-sizing: border-box; }
.fx .glass { background: linear-gradient(135deg, rgba(255,255,255,.86), rgba(255,255,255,.6)); border: 1px solid rgba(255,255,255,.95); box-shadow: 0 14px 34px rgba(24,28,36,.12), inset 0 1px 0 #fff; border-radius: 22px; }
.fx .abs { position: absolute; }

/* the stage track */
.fx-track { left: 34px; right: 34px; top: 28px; height: 74px; padding: 0 18px; }
.fx-track .ln { position: absolute; left: 50px; right: 50px; top: 25px; height: 3px; background: #e2ddd4; border-radius: 3px; }
.fx-track .ln i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: #ffd21f; border-radius: inherit; }
.fx-node { position: absolute; top: 10px; width: 64px; margin-left: -32px; text-align: center; font-size: 11px; font-weight: 600; color: #8a8478; }
.fx-node .c { width: 32px; height: 32px; margin: 0 auto 5px; border-radius: 50%; background: #fff; border: 2px solid #e2ddd4; display: grid; place-items: center; font-size: 13px; transition: none; }
.fx-node.done .c { background: #1f9d55; border-color: #1f9d55; color: #fff; }
.fx-disc { position: absolute; top: 4px; width: 44px; height: 44px; margin-left: -22px; border-radius: 50%; background: #ffd21f; box-shadow: 0 0 0 6px rgba(255,210,31,.28), 0 8px 18px rgba(200,150,0,.35); z-index: 2; display: grid; place-items: center; font-size: 18px; }

/* the call */
.fx-call { left: 150px; top: 150px; width: 340px; height: 84px; padding: 16px 18px; display: flex; align-items: center; gap: 14px; }
.fx-call .ic { position: relative; width: 50px; height: 50px; border-radius: 50%; background: #1f9d55; color: #fff; display: grid; place-items: center; font-size: 22px; flex: none; }
.fx-call .rg { position: absolute; inset: 0; border-radius: 50%; border: 2px solid #1f9d55; }
.fx-call b { display: block; font-size: 17px; } .fx-call span { font-size: 13px; color: #6b665c; }

/* the job card */
.fx-card { left: 120px; top: 132px; width: 400px; padding: 18px 20px; }
.fx-card .hd { display: flex; align-items: center; gap: 12px; }
.fx-av { width: 42px; height: 42px; border-radius: 50%; background: #3d7bff; color: #fff; font-weight: 700; display: grid; place-items: center; font-size: 15px; flex: none; }
.fx-card .who b { display: block; font-size: 17px; } .fx-card .who span { font-size: 13px; color: #6b665c; }
.fx-badge { margin-left: auto; font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: 999px; background: #efe9ff; color: #6b3fd6; white-space: nowrap; }
.fx-lines { margin-top: 14px; border-top: 1px solid #ece8e1; }
.fx-line { display: flex; justify-content: space-between; font-size: 14px; padding: 9px 0; border-bottom: 1px solid #f1eee8; }
.fx-line span:last-child { font-variant-numeric: tabular-nums; font-weight: 600; }
.fx-tot { display: flex; justify-content: space-between; align-items: baseline; padding-top: 12px; }
.fx-tot span { font-size: 13px; color: #6b665c; } .fx-tot b { font-size: 30px; font-weight: 300; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }

/* the quote going out, and the customer's phone */
.fx-plane { left: 470px; top: 330px; width: 40px; height: 40px; color: #161616; }
.fx-cust { left: 452px; top: 196px; width: 158px; height: 300px; border-radius: 26px; background: #2a2a2a; padding: 3px; box-shadow: 0 0 0 1px rgba(22,22,22,.12), 0 24px 50px -10px rgba(24,28,36,.28); }
.fx-cust .sc { position: relative; width: 100%; height: 100%; border-radius: 23px; background: linear-gradient(170deg, #fffdf6, #f1ece3); padding: 18px 12px; overflow: hidden; }
.fx-cust .sc small { display: block; font-size: 10px; color: #8a8478; } .fx-cust .sc b { display: block; font-size: 14px; margin: 3px 0 8px; } .fx-cust .sc .amt { font-size: 22px; font-weight: 300; letter-spacing: -.02em; }
.fx-open { margin-top: 10px; display: inline-flex; gap: 4px; align-items: center; font-size: 10px; font-weight: 700; padding: 4px 8px; border-radius: 999px; background: #e7f6ed; color: #1f9d55; }
.fx-acc { position: absolute; left: 12px; right: 12px; bottom: 16px; height: 38px; border-radius: 999px; background: #ffd21f; display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.fx-tap { position: absolute; left: 50%; bottom: 20px; width: 34px; height: 34px; margin-left: -17px; border-radius: 50%; background: rgba(22,22,22,.18); border: 2px solid rgba(22,22,22,.35); }

/* the calendar */
.fx-cal { left: 40px; top: 128px; width: 560px; height: 300px; padding: 16px; }
.fx-cal .days { display: grid; grid-template-columns: 54px repeat(5, 1fr); font-size: 12px; font-weight: 700; color: #8a8478; text-align: center; padding-bottom: 8px; }
.fx-cal .days b { color: #161616; } .fx-cal .days .td b { display: inline-block; padding: 2px 8px; border-radius: 999px; background: #ffd21f; }
.fx-cal .grid { position: relative; display: grid; grid-template-columns: 54px repeat(5, 1fr); grid-auto-rows: 52px; }
.fx-cal .grid span { border-top: 1px dashed #e3ded6; font-size: 11px; color: #8a8478; padding-top: 2px; }
.fx-blk { position: absolute; border-radius: 12px; background: rgba(255,255,255,.92); border: 1px solid #fff; box-shadow: 0 8px 20px rgba(24,28,36,.12); padding: 7px 8px 7px 14px; font-size: 11.5px; overflow: hidden; }
.fx-blk::before { content: ""; position: absolute; left: 5px; top: 7px; bottom: 7px; width: 3px; border-radius: 3px; background: #3d7bff; }
.fx-blk b { display: block; font-size: 12px; } .fx-blk.ghost { opacity: .55; } .fx-blk.ghost::before { background: #b9b2a6; }
.fx-crew { display: flex; margin-top: 4px; } .fx-crew i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #fff; margin-right: -5px; font-style: normal; font-size: 8px; color: #fff; display: grid; place-items: center; font-weight: 700; }

/* on the job */
.fx-pin { left: 60px; top: 150px; width: 70px; height: 70px; }
.fx-pin .pp { position: absolute; left: 50%; top: 0; width: 34px; height: 34px; margin-left: -17px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: #e5484d; }
.fx-pin .pp::after { content: ""; position: absolute; left: 11px; top: 11px; width: 12px; height: 12px; border-radius: 50%; background: #fff; }
.fx-pin .sh { position: absolute; left: 50%; top: 38px; width: 24px; height: 8px; margin-left: -12px; border-radius: 50%; background: rgba(0,0,0,.18); }
.fx-pin .rp { position: absolute; left: 50%; top: 42px; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; border: 2px solid #e5484d; opacity: 0; }
.fx-chk { left: 40px; top: 228px; padding: 8px 12px; font-size: 12px; font-weight: 700; border-radius: 999px; background: #fff; box-shadow: 0 8px 18px rgba(24,28,36,.12); white-space: nowrap; }
.fx-timer { left: 164px; top: 440px; display: flex; gap: 10px; align-items: center; padding: 10px 16px; border-radius: 999px; background: #161616; color: #fff; font-size: 14px; }
.fx-timer .d { width: 9px; height: 9px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 4px rgba(61,220,132,.25); }
.fx-timer b { font-variant-numeric: tabular-nums; font-size: 16px; }
.fx-mat { left: 0; top: 0; padding: 8px 12px; border-radius: 12px; background: #fff; box-shadow: 0 8px 18px rgba(24,28,36,.12); font-size: 12px; font-weight: 600; white-space: nowrap; }
.fx-ph { width: 92px; height: 92px; border-radius: 14px; border: 4px solid #fff; box-shadow: 0 10px 24px rgba(24,28,36,.18); }
.fx-sig { left: 380px; top: 470px; width: 220px; height: 80px; padding: 8px 12px; border-radius: 16px; background: #fff; box-shadow: 0 10px 24px rgba(24,28,36,.12); }
.fx-sig small { font-size: 10px; color: #8a8478; } .fx-sig svg { display: block; width: 100%; height: 50px; }

/* the invoice */
.fx-inv { left: 150px; top: 120px; width: 340px; padding: 22px; border-radius: 22px; background: #fff; box-shadow: 0 30px 60px rgba(24,28,36,.2); }
.fx-inv .t { display: flex; justify-content: space-between; align-items: center; } .fx-inv .t b { font-size: 20px; letter-spacing: -.02em; } .fx-inv .t span { font-size: 11px; color: #8a8478; }
.fx-inv .r { display: flex; justify-content: space-between; font-size: 12.5px; padding: 8px 0; border-bottom: 1px solid #f1eee8; }
.fx-inv .tt { display: flex; justify-content: space-between; align-items: baseline; padding-top: 12px; } .fx-inv .tt b { font-size: 30px; font-weight: 300; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.fx-bell { left: 506px; top: 150px; width: 112px; padding: 10px; text-align: center; font-size: 11px; font-weight: 600; }
.fx-bell .bi { font-size: 28px; display: block; }
.fx-stamp { left: 210px; top: 280px; padding: 10px 26px; border: 5px solid #1f9d55; border-radius: 14px; color: #1f9d55; font-size: 52px; font-weight: 900; letter-spacing: .08em; background: rgba(255,255,255,.7); }
.fx-bank { left: 120px; top: 470px; width: 400px; padding: 12px 16px; display: flex; align-items: center; gap: 12px; }
.fx-bank .bi { width: 40px; height: 40px; border-radius: 12px; background: #1f9d55; color: #fff; display: grid; place-items: center; font-weight: 800; flex: none; }
.fx-bank b { display: block; font-size: 14px; } .fx-bank span { font-size: 12px; color: #6b665c; }
.fx-coin { left: 0; top: 0; width: 16px; height: 16px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff3a8, #ffd21f 55%, #d9a400); box-shadow: 0 2px 4px rgba(0,0,0,.15); }
.fx-prof { left: 506px; top: 300px; width: 112px; padding: 12px; font-size: 11px; font-weight: 600; }
.fx-prof b { display: block; font-size: 20px; font-weight: 300; letter-spacing: -.02em; margin: 2px 0 8px; font-variant-numeric: tabular-nums; }
.fx-prof .bar { height: 6px; border-radius: 6px; background: #ece8e1; overflow: hidden; } .fx-prof .bar i { display: block; height: 100%; width: 0; background: #1f9d55; }

@media (max-width: 860px) {
  #flow { height: 520vh; }
  .fl-pin { align-items: flex-start; padding-top: 80px; }
  .fl-grid { grid-template-columns: 1fr; gap: 14px; }
  .fl-copy .eyebrow, .fl-copy h2 { display: none; }
  .fl-now { min-height: 178px; } .fl-now h3 { font-size: 28px; margin: 8px 0 6px; } .fl-now p { font-size: 15px; }
  .fl-dots { margin-top: 12px; }
}

/* 0 the pile: the evening's paperwork, before Atsus */
.fx-hk { box-shadow: 0 14px 34px rgba(24,28,36,.14); }
.fx-rc { left: 34px; top: 58px; width: 170px; padding: 14px 14px 12px; background: #fbfaf6; transform: rotate(-7deg); font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 9.5px; color: #3c3a36; line-height: 1.5;
  -webkit-mask-image: linear-gradient(#000 92%, transparent); mask-image: linear-gradient(#000 92%, transparent); }
.fx-rc b { display: block; text-align: center; font-size: 11px; letter-spacing: .1em; } .fx-rc span { display: block; text-align: center; color: #8a8478; margin-bottom: 8px; }
.fx-rc i { display: flex; justify-content: space-between; font-style: normal; } .fx-rc i.t { border-top: 1px dashed #b9b3a8; margin-top: 6px; padding-top: 6px; font-weight: 700; } .fx-rc em { font-style: normal; }
.fx-pol { left: 238px; top: 36px; width: 128px; padding: 9px 9px 26px; background: #fff; transform: rotate(5deg); }
.fx-pol .im { height: 104px; background: radial-gradient(circle at 50% 40%, #d8cbb5, #8d7a62 75%), #8d7a62; position: relative; }
.fx-pol .im::after { content: ""; position: absolute; inset: 26px 22px; border-radius: 4px; background: repeating-linear-gradient(90deg, #f1ece2 0 9px, #cfc6b7 9px 11px); box-shadow: 0 0 0 3px #e9e3d8; }
.fx-pol span { position: absolute; left: 0; right: 0; bottom: 5px; text-align: center; font-style: italic; font-size: 12px; color: #4a4741; }
.fx-msg { width: 230px; padding: 10px 14px; border-radius: 16px 16px 16px 4px; background: #eef1f6; font-size: 13.5px; font-weight: 600; line-height: 1.35; color: #161616; }
.fx-msg small { display: block; font-size: 11px; font-weight: 600; color: #8a8478; margin-bottom: 3px; }
#fxH2 { left: 392px; top: 74px; transform: rotate(2deg); } #fxH5 { left: 196px; top: 470px; transform: rotate(-2deg); }
.fx-pad { left: 48px; top: 330px; width: 196px; padding: 14px 14px 16px 22px; background: repeating-linear-gradient(#fff 0 23px, #d9e3f0 23px 24px); transform: rotate(-4deg); font-style: italic; font-size: 13px; color: #2a3a5c; line-height: 24px; border-left: 2px solid #f0b3b3; }
.fx-pad span { display: block; }
.fx-stk { left: 452px; top: 318px; width: 142px; height: 128px; padding: 16px; background: #ffe066; transform: rotate(6deg); font-style: italic; font-weight: 700; font-size: 16px; color: #3c3a36; line-height: 1.35; }
.fx-clk { left: 220px; top: 214px; width: 200px; text-align: center; }
.fx-clk b { display: block; font-size: 64px; font-weight: 300; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; color: #161616; }
.fx-clk span { display: block; margin-top: 6px; font-size: 13px; font-weight: 600; color: #8a8478; }
.fx-node .c svg, .fx-disc svg, .fx-call .ic svg, .fx-bell .bi svg { display: block; }
.fx-mat { display: inline-flex; align-items: center; gap: 6px; } .fx-mat svg { color: #a87400; }
.fx-bell .bi { display: flex; justify-content: center; margin-bottom: 4px; color: #161616; }
.fx-disc { display: grid; place-items: center; color: #161616; }
