/* =============================================================================
   HowMuch: the funnel's drawings and motion, on style.css's tokens.
   /start (two doors), /pick (a mark for each kind of work), /details (the
   photos, the building screen), the payment wait, and an estimate's two
   drawings of its own (a new build's building; the sheet being checked while
   it is under review), which that page asks for after its first paint (its
   own rules and play are est.css). Loaded by those pages only.

   The drawings are inline SVG (CSP: no style="" anywhere), generated by
   tools/illo/build.py from tools/illo/funnel.py; colour is here only. The
   grammar is the home page's: true isometric, light from the upper left,
   brass only on what an estimate prices. The doors and both waits sit on the
   hero's navy board, so the model there is white.

   Motion: transform, opacity and stroke-dashoffset only. The CSS at rest is
   the last frame; keyframes only say where a part comes from, so reduced
   motion, no JavaScript, or print show every drawing whole. One play per
   drawing when a third of it is seen (motion.js), held off screen and in a
   hidden tab. The only loops are the two waits, where the loop is the
   progress. No figure is ever hidden or counted: every number is the
   server's text from the first frame.
   ========================================================================== */

/* ---------- colour ---------- */
.ill { --il-ink: #0f2f4f; --il-ink-2: #1b4470; --il-ink-3: #3a5f86;
  --il-w1: #fff; --il-w2: #f2ede4; --il-w3: #e2d9c9; --il-w4: #d3c8b4;
  --il-sky-1: #f1f6fb; --il-sky-2: #d9e5f1; --il-sky-3: #b7cde3; --il-sky-4: #7f9fc0;
  --il-br: #a98444; --il-br-2: #c9a96b; --il-br-3: #e4cfa3; }
.ill :where(svg) :where(path, rect, circle, ellipse) { vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.ill [pathLength] { vector-effect: none; stroke-dasharray: 1; }
.ill :is(.w1, .w2, .w3, .w4, .cut, .cut2, .sl1, .sl2, .sl3, .gd1, .gd2, .gd3) { stroke-width: .6; }
.ill :is(.cab1, .cab2, .cab3, .ctr1, .ctr2, .ctr3, .st1, .st2, .st3, .nv2, .nv3, .stk1, .stk2, .stk3, .pn-t, .pn-f, .pn-s) { stroke-width: .5; }
.ill .w1 { fill: var(--il-w1); stroke: var(--il-w1); }
.ill .w2 { fill: var(--il-w2); stroke: var(--il-w2); }
.ill .w3 { fill: var(--il-w3); stroke: var(--il-w3); }
.ill .w4 { fill: var(--il-w4); stroke: var(--il-w4); }
.ill .cut { fill: var(--il-ink); stroke: var(--il-ink); }
.ill .cut2 { fill: var(--il-ink-2); stroke: var(--il-ink-2); }
.ill .sl1 { fill: #ebe6dc; stroke: #ebe6dc; }
.ill .sl2 { fill: #d9d1c1; stroke: #d9d1c1; }
.ill .sl3 { fill: #c6bca8; stroke: #c6bca8; }
.ill .bar { fill: var(--il-sky-3); stroke: var(--il-sky-3); stroke-width: .4; }
.ill .pkst { fill: #c19463; stroke: #c19463; stroke-width: .4; }
.ill .cpt { fill: #d9d2c4; }
.ill .cptw { fill: #e7e1d5; }
.ill .tl { fill: #eeebe4; }
.ill .tlg { fill: none; stroke: rgb(15 47 79 / .13); stroke-width: .6; }
.ill .oak1 { fill: #d9b585; }
.ill .oak2 { fill: #d0a979; }
.ill .oak3 { fill: #c69d6c; }
.ill .seam { fill: none; stroke: rgb(110 74 38 / .3); stroke-width: .6; }
.ill .po1 { fill: #efe6d4; stroke: #efe6d4; stroke-width: .4; }
.ill .po2 { fill: #e0d4bc; stroke: #e0d4bc; stroke-width: .4; }
.ill .pn1 { fill: #e6eef6; }
.ill .pn2 { fill: #cfdcea; }
.ill .gl { fill: var(--il-sky-2); }
.ill .gl2 { fill: var(--il-sky-1); opacity: .85; }
.ill .fr { fill: var(--il-w1); }
.ill .frd { fill: var(--il-ink-2); }
.ill .dw2 { fill: #2b3f57; }
.ill .cab1 { fill: #f5f2ec; stroke: #f5f2ec; }
.ill .cab2 { fill: #e4ded2; stroke: #e4ded2; }
.ill .cab3 { fill: #d0c7b7; stroke: #d0c7b7; }
.ill .cab4 { fill: #b9ae9b; }
.ill .cab-s { fill: none; stroke: rgb(15 47 79 / .22); stroke-width: .7; }
.ill .ctr1 { fill: #fbfaf7; stroke: #fbfaf7; }
.ill .ctr2 { fill: #e9e5dc; stroke: #e9e5dc; }
.ill .ctr3 { fill: #d9d2c4; stroke: #d9d2c4; }
.ill .sink { fill: #c7d5e3; }
.ill .st1 { fill: #f1f4f7; stroke: #f1f4f7; }
.ill .st2 { fill: #d9e0e7; stroke: #d9e0e7; }
.ill .st3 { fill: #c0cbd6; stroke: #c0cbd6; }
.ill .hdl { fill: none; stroke: var(--il-ink-3); stroke-width: 1.2; stroke-linecap: round; }
.ill .nv2 { fill: #4d6a86; stroke: #4d6a86; }
.ill .nv3 { fill: #2b3644; stroke: #2b3644; }
.ill .nv-s { fill: none; stroke: rgb(255 255 255 / .25); stroke-width: 1; }
.ill .brh { fill: none; stroke: var(--il-br-2); stroke-width: 1.4; stroke-linecap: round; }
.ill .wtile { fill: #f6f8fa; }
.ill .lvl-f { fill: rgb(169 132 68 / .22); }
.ill .lvl-h { fill: none; stroke: rgb(122 90 30 / .5); stroke-width: .8; }
.ill .lvl-o { fill: none; stroke: var(--il-br); stroke-width: 1.4; stroke-dasharray: 5 3; }
.ill .sh { fill: rgb(15 47 79 / .08); }
.ill .csh { fill: rgb(15 47 79 / .085); }
/* a pin: brass foot, navy stem, brass head with a white tick */
.ill .pf { fill: var(--il-br); stroke: #fff; stroke-width: 1; }
.ill .ps { fill: none; stroke: var(--il-ink); stroke-width: 1.5; }
.ill .ph { fill: var(--il-br); stroke: #fff; stroke-width: 2; }
.ill .pk { fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* the lot, the frame, the roof */
.ill .gd1 { fill: #b8a586; stroke: #b8a586; }
.ill .gd2 { fill: #8f7b5c; stroke: #8f7b5c; }
.ill .gd3 { fill: #7a6849; stroke: #7a6849; }
.ill .gdh { fill: none; stroke: rgb(110 84 40 / .14); stroke-width: .7; }
.ill .stk1 { fill: var(--il-br-3); stroke: var(--il-br-3); }
.ill .stk2 { fill: var(--il-br-2); stroke: var(--il-br-2); }
.ill .stk3 { fill: var(--il-br); stroke: var(--il-br); }
.ill .str { fill: none; stroke: var(--il-br-2); stroke-width: 1.2; }
.ill .sa { fill: #e2c697; }
.ill .sb { fill: #c9a874; }
.ill .sap { fill: #d6b682; }
.ill .sbp { fill: #bd9a63; }
.ill .rf1 { fill: #d5dde6; }
.ill .rf2 { fill: #e8edf2; }
.ill .rfs { fill: none; stroke: rgb(15 47 79 / .18); stroke-width: .6; }
.ill .raf { fill: #d9b886; }
.ill .rdg { fill: none; stroke: #b9955f; stroke-width: 2; stroke-linecap: round; }
.ill .gab { fill: none; stroke: #c9a874; stroke-width: 1.6; stroke-linecap: round; }
.ill .bdim { fill: none; stroke: var(--il-br-2); stroke-width: 1.2; }
.ill .bdk { fill: none; stroke: var(--il-br-2); stroke-width: 1.4; }

/* /pick's marks */
.ill .rl-h { fill: none; stroke: var(--il-ink); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.ill .rl-s { fill: var(--il-sky-3); stroke: var(--il-ink-3); stroke-width: .8; }
.ill .ow { fill: #b8bcc0; }
.ill .og { fill: #dfe3e6; }
.ill .cu { fill: none; stroke: #c9794a; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ill .wl { fill: none; stroke: var(--il-sky-4); stroke-width: 2.2; stroke-linecap: round; }
.ill .wire { fill: none; stroke: var(--il-ink); stroke-width: 1.4; stroke-linecap: round; }
.ill .pn-t { fill: #e9edf1; stroke: #e9edf1; }
.ill .pn-f { fill: #c9d3dd; stroke: #c9d3dd; }
.ill .pn-s { fill: #aebccb; stroke: #aebccb; }
.ill .bk0 { fill: #7f93a8; }
.ill .bk1 { fill: #fff; }
.ill .bkm { fill: var(--il-br); }
.ill .pn-in { fill: #dfe5ec; }
.ill .dr1 { fill: #f7f3ec; }
.ill .dkn { fill: var(--il-br); }
.ill .rfo { fill: #c3b9a6; }
.ill .rn0 { fill: var(--il-ink-2); }
.ill .rn1 { fill: var(--il-ink-3); }
.ill .rdg2 { fill: none; stroke: var(--il-ink); stroke-width: 1.4; stroke-linecap: round; }
.ill .awa { fill: var(--il-br); }
.ill .awb { fill: #fff; }
.ill .sgn { fill: var(--il-ink); }
.ill .pp { fill: #fff; }
.ill .pl { fill: none; stroke: var(--il-ink-3); stroke-width: .16; }
.ill .dw { fill: #faf8f4; }
.ill .ins { fill: #ead9b6; }
.ill .insh { fill: none; stroke: rgb(169 132 68 / .55); stroke-width: .7; }
.ill .can1 { fill: #eef2f6; stroke: #eef2f6; stroke-width: .4; }
.ill .can2 { fill: var(--il-sky-3); stroke: var(--il-sky-3); stroke-width: .4; }
.ill .can3 { fill: none; stroke: var(--il-sky-4); stroke-width: .7; }
.ill .dws { fill: none; stroke: rgb(15 47 79 / .2); stroke-width: .6; }
.ill .fau { fill: none; stroke: var(--il-ink-3); stroke-width: 1.4; stroke-linecap: round; }
.ill .ck-c { fill: var(--il-br); stroke: #fff; stroke-width: 1.5; }
.ill .ck-p { fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* the home page's two steps, shown again (/details, an estimate under review) */
.ill .card { fill: #fff; stroke: var(--rule); stroke-width: 1; }
.ill .dip { fill: rgb(15 47 79 / .08); }
.ill .mk-r { fill: rgb(169 132 68 / .16); stroke: var(--il-br); stroke-width: 1.2; }
.ill .mk-d { fill: var(--il-br); stroke: #fff; stroke-width: 1; }
.ill .pin-s { fill: none; stroke: var(--il-ink); stroke-width: 1.5; }
.ill .pin-h { fill: var(--il-ink); stroke: #fff; stroke-width: 2; }
.ill .pin-t { font: 700 10.5px/1 var(--sans); fill: #fff; }
.ill .vf { fill: none; stroke: #fff; stroke-width: 1.1; opacity: .9; }
.ill .scanb { fill: var(--il-sky-1); opacity: .45; }
.ill .scanl { fill: #fff; }
.ill .flash { fill: #fff; opacity: 0; }
.ill .s2-scan { opacity: 0; }
.ill .ph-body { fill: var(--il-ink); }
.ill .ph-edge { fill: none; stroke: #2a5079; stroke-width: 1.2; }
.ill .ph-sh { fill: rgb(15 47 79 / .12); }
.ill .ph-btn { fill: none; stroke: rgb(255 255 255 / .55); stroke-width: 1.2; }
.ill .ph-cam { fill: #2a5079; }
.ill .nvt { fill: var(--il-ink); }
.ill .ttl { fill: var(--il-ink-3); opacity: .85; }
.ill .rline { fill: none; stroke: var(--il-ink); stroke-width: 1.1; }
.ill .rdot { fill: var(--il-br); stroke: #fff; stroke-width: .6; }
.ill .rowb { fill: #e3ddd1; }
.ill .rowa { fill: var(--il-ink-3); opacity: .55; }
.ill .rows { fill: #eeeae2; }
.ill .tickp { fill: none; stroke: var(--il-br); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ill .seal { fill: var(--il-br); stroke: #fff; stroke-width: 2; }
.ill .seal-r { fill: none; stroke: rgb(255 255 255 / .75); stroke-width: 1; }
.ill .seal-p { fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ill .lens-g { fill: var(--il-sky-1); opacity: .5; }
.ill .lens-r { fill: none; stroke: var(--il-ink); stroke-width: 2.4; }
.ill .lens-h { fill: none; stroke: var(--il-ink); stroke-width: 4.5; stroke-linecap: round; }
.ill .lens-s { fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; opacity: .9; }
.ill .s3-lens { opacity: 0; }

/* the board: the hero's navy, a drafting grid, a tape's ticks along its foot.
   On it the model is white, its cuts in paper, its shadow the board's own. */
.bd-stage { background:
    linear-gradient(rgb(185 198 214 / .12) 1px, transparent 1px) -1px -1px / 72px 72px,
    linear-gradient(90deg, rgb(185 198 214 / .12) 1px, transparent 1px) -1px -1px / 72px 72px,
    linear-gradient(rgb(185 198 214 / .05) 1px, transparent 1px) -1px -1px / 18px 18px,
    linear-gradient(90deg, rgb(185 198 214 / .05) 1px, transparent 1px) -1px -1px / 18px 18px,
    radial-gradient(120% 90% at 86% 0%, #19426d 0, rgb(25 66 109 / 0) 62%), var(--navy); }
.bd-stage::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 10px; pointer-events: none;
  background:
    linear-gradient(90deg, rgb(201 169 107 / .6) 1px, transparent 1px) -1px 100% / 72px 10px repeat-x,
    linear-gradient(90deg, rgb(201 169 107 / .35) 1px, transparent 1px) -1px 100% / 18px 5px repeat-x; }
.bd .cut { fill: #fbf9f4; stroke: #fbf9f4; }
.bd .cut2 { fill: #d8d0c1; stroke: #d8d0c1; }
.bd .sh { fill: rgb(4 18 33 / .42); }
.bd .bdim, .bd .bdk, .bd .str { stroke: #e4cfa3; }
/* the building screen's house: a plan in progress, white on the board */
.bd .bwa { fill: #f4f7fa; stroke: #f4f7fa; stroke-width: .6; }
.bd .bwb { fill: #dfe7f0; stroke: #dfe7f0; stroke-width: .6; }
.bd .bfl { fill: #f9fbfd; stroke: #b7cde3; stroke-width: .8; }
.bd .bgrid { fill: none; stroke: #dde7f1; stroke-width: .6; }
.bd .broom { fill: rgb(201 169 107 / .42); stroke: var(--il-br); stroke-width: 1.2; }
.bd .bscan { fill: #cfe0f1; opacity: .34; }
.bd .bscan-e { fill: none; stroke: #ffe7b0; stroke-width: 1.6; }
.bd .bink { fill: var(--il-ink); }
.bd .bln { fill: #cfd9e4; }
.bd .bamt { fill: var(--il-ink-3); opacity: .6; }
.bd .brl2 { fill: none; stroke: var(--il-ink); stroke-width: 1; }
.bd .bpt { fill: var(--il-br); stroke: #fff; stroke-width: 1.2; }
.bd .bpin-r { fill: rgb(228 207 163 / .22); stroke: #e4cfa3; stroke-width: 1.2; }
.bd .bpin-f { fill: #e4cfa3; }
.bd .bpin-s { fill: none; stroke: #fff; stroke-width: 1.4; }
.bd .bpin-h { fill: var(--il-br-2); stroke: #fff; stroke-width: 1.6; }
.bd .bpin-x { fill: none; stroke: var(--il-ink); stroke-width: 1.8; stroke-linecap: round; }
.bd .bcard { fill: #fff; stroke: #d8d0c1; stroke-width: 1; }
/* the payment wait: the covered lines, the lock */
.bd .rdx { fill: #d9d2c4; }
.bd .lk-bg { fill: #fff; }
.bd .lk-ring { fill: none; stroke: var(--il-br-2); stroke-width: 1.6; stroke-dasharray: 2 5; stroke-linecap: round; }
.bd .lk-s { fill: none; stroke: var(--il-ink); stroke-width: 2.2; stroke-linecap: round; }
.bd .lk-b { fill: var(--il-ink); }
.bd .lk-h { fill: var(--il-br-2); }

/* ---------- stages ---------- */
/* A drawing's sheet: a fixed shape, so nothing moves while it draws. */
.sp-stage { position: relative; display: block; overflow: hidden; --pad-t: 14px; --pad-x: 14px; --pad-b: 12px; }
/* a drawing's box hidden with the hidden attribute */
.sp-stage[hidden] { display: none; }
.sp-stage:not(.bd-stage) { background:
    linear-gradient(rgb(15 47 79 / .05) 1px, transparent 1px) -1px -1px / 24px 24px,
    linear-gradient(90deg, rgb(15 47 79 / .05) 1px, transparent 1px) -1px -1px / 24px 24px,
    var(--paper-2); }
.sp-stage > .sp-svg { position: absolute; left: var(--pad-x); top: var(--pad-t); display: block; overflow: visible;
  width: calc(100% - 2 * var(--pad-x)); height: calc(100% - var(--pad-t) - var(--pad-b)); max-width: none; margin: 0; }

/* ---------- motion: the vocabulary ---------- */
:root {
  --mo-out: cubic-bezier(.22, 1, .36, 1);       /* arrive: quick, then settle */
  --mo-click: cubic-bezier(.34, 1.36, .64, 1);  /* a part landing, 3-4% overshoot */
  --mo-io: cubic-bezier(.65, 0, .35, 1);        /* a tool travelling a surface */
  --mo-calm: cubic-bezier(.45, 0, .55, 1);      /* the waits' loops */
}
@keyframes mo-fade { from { opacity: 0; } }
@keyframes mo-drop { from { opacity: 0; transform: translateY(-16px); } 55% { opacity: 1; } }
@keyframes mo-drop-s { from { opacity: 0; transform: translateY(-8px); } 55% { opacity: 1; } }
@keyframes mo-rise { from { opacity: 0; transform: translateY(12px); } }
@keyframes mo-pop { from { opacity: 0; transform: scale(.5); } 60% { opacity: 1; } }
@keyframes mo-wipe { from { transform: scaleX(0); } }
@keyframes mo-grow { from { transform: scaleY(0); } }
@keyframes mo-draw { from { stroke-dashoffset: 1; } }
@keyframes mo-slide { from { opacity: 0; transform: translateX(-2.4px); } 40% { opacity: 1; } }
@keyframes mo-pdrop { from { opacity: 0; transform: translateY(-1.4px); } 50% { opacity: 1; } }
@keyframes mo-flash { 0%, 100% { opacity: 0; } 30% { opacity: 1; } }
.ill :is(.dr-pA, .ci-wp) { transform-box: fill-box; transform-origin: 0 50%; }
.ill :is(.nb-st, .ci-gr, .nb-stk) { transform-box: fill-box; transform-origin: 50% 100%; }
.ill :is(.ci-pp, .ci-chk, .fk-chk, .s3-seal, .s2-smk, .pw-ring) { transform-box: fill-box; transform-origin: 50% 50%; }
.ill .ci-aw { transform-box: fill-box; transform-origin: 50% 0; }
.ill .s2-pin { transform-box: fill-box; transform-origin: 50% 100%; }
.ill .s3-row { transform-box: fill-box; transform-origin: 0 50%; }

/* Off screen, held at its first frame until seen, held again when it leaves;
   a hidden tab holds everything, the waits' loops too. */
.mo .ill[data-play]:not(.run), .mo .ill[data-play]:not(.run) *,
.mo .ill[data-play]:not(.run) *::before, .mo .ill[data-play]:not(.run) *::after,
.mo-hidden .ill, .mo-hidden .ill *, .mo-hidden .ill *::before, .mo-hidden .ill *::after,
.mo-hidden .bs-steps li::before {
  animation-play-state: paused !important; }

/* ============================================================== /start */
.flow-start .eyebrow { font: 500 .9375rem/1.4 var(--sans); letter-spacing: 0; text-transform: none; }
.door { position: relative; }
.door-ill { display: block; aspect-ratio: 16 / 8.6; --pad-t: 12px; --pad-x: 18px; --pad-b: 16px; }
.door-ill .sp-svg { transition: transform .3s var(--mo-out); }
.door:hover .door-ill .sp-svg, .door:focus-visible .door-ill .sp-svg { transform: translateY(-3px); }
.door-tag { font: 500 .875rem/1.3 var(--sans); letter-spacing: 0; text-transform: none; }
.doors > .door:nth-child(2) .door-ill { --o: 100ms; }
@media (max-width: 719px) {
  /* A strip on a phone, so the second door still starts on the first screen. */
  .door-ill { aspect-ratio: auto; height: 150px; --pad-t: 12px; --pad-b: 14px; }
}
@media (prefers-reduced-motion: no-preference) {
  /* a room already there, then the area changed in it (~1.1 s) */
  .dr .dr-sh { animation: mo-fade 250ms var(--mo-out) both var(--o, 0ms); }
  .dr .dr-base { animation: mo-rise 220ms var(--mo-out) both var(--o, 0ms); }
  .dr .dr-wall { animation: mo-drop 200ms var(--mo-click) both calc(var(--o, 0ms) + 59ms + var(--i, 0) * 38ms); }
  .dr .csh { animation: mo-fade 200ms var(--mo-out) both calc(var(--o, 0ms) + 290ms); }
  .dr .dr-fix { animation: mo-drop-s 200ms var(--mo-click) both calc(var(--o, 0ms) + 190ms + var(--i, 0) * 38ms); }
  .dr .dr-zo { animation: mo-fade 200ms var(--mo-out) both calc(var(--o, 0ms) + 370ms); }
  .dr .dr-zone { animation: mo-fade 200ms var(--mo-out) both calc(var(--o, 0ms) + 400ms); }
  .dr .dr-row { animation: mo-slide 200ms var(--mo-out) both calc(var(--o, 0ms) + 460ms + var(--i, 0) * 29ms); }
  .dr .dr-pA { animation: mo-wipe 340ms var(--mo-io) both calc(var(--o, 0ms) + 570ms); }
  .dr .dr-pin { animation: mo-drop 200ms var(--mo-click) both calc(var(--o, 0ms) + 880ms); }
  /* a lot staked out, then the house framed on it (~1.3 s) */
  .nb .nb-sh { animation: mo-fade 250ms var(--mo-out) both var(--o, 0ms); }
  .nb .nb-grd { animation: mo-rise 220ms var(--mo-out) both var(--o, 0ms); }
  .nb .nb-stk { animation: mo-pop 200ms var(--mo-click) both calc(var(--o, 0ms) + 130ms + var(--i, 0) * 29ms); }
  .nb .nb-str { animation: mo-draw 290ms var(--mo-io) both calc(var(--o, 0ms) + 240ms); }
  .nb .nb-slab { animation: mo-rise 200ms var(--mo-out) both calc(var(--o, 0ms) + 380ms); }
  .nb .nb-st { animation: mo-grow 200ms var(--mo-click) both calc(var(--o, 0ms) + 460ms + var(--i, 0) * 9ms); }
  .nb .nb-bp { animation: mo-fade 200ms var(--mo-out) both calc(var(--o, 0ms) + 450ms); }
  .nb .nb-plt { animation: mo-fade 200ms var(--mo-out) both calc(var(--o, 0ms) + 740ms); }
  .nb .nb-rf { animation: mo-fade 200ms var(--mo-out) both calc(var(--o, 0ms) + 860ms); }
  .nb .nb-raf { animation: mo-drop-s 200ms var(--mo-click) both calc(var(--o, 0ms) + 800ms + var(--i, 0) * 15ms); }
  .nb :is(.nb-rdg, .nb-gab) { animation: mo-fade 200ms var(--mo-out) both calc(var(--o, 0ms) + 840ms); }
  .nb .nb-shc { animation: mo-drop-s 200ms var(--mo-click) both calc(var(--o, 0ms) + 990ms + var(--i, 0) * 50ms); }
  .nb .nb-dim { animation: mo-draw 220ms var(--mo-io) both calc(var(--o, 0ms) + 1030ms); }
  .nb .nb-tk { animation: mo-fade 200ms var(--mo-out) both calc(var(--o, 0ms) + 1030ms); }
}

/* =============================================================== /pick */
/* Each kind of work opens with its mark: the thing itself, a little model.
   Tick a box under it and its trade is applied again (planks click in, a
   wall takes its colour, a breaker flips) and a brass tick stays on it. */
.svc-cat-top { display: flex; align-items: center; gap: 14px; margin: 0 0 12px; }
.svc-cat-top .svc-cat-h { flex: 1; min-width: 0; margin: 0; font: 600 1rem/1.3 var(--sans); letter-spacing: -.006em;
  text-transform: none; color: var(--ink); }
.ci-w { flex: none; display: grid; place-items: center; width: 76px; height: 60px; border-radius: 10px;
  background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--rule-soft);
  transition: background-color .2s ease, box-shadow .2s ease; }
.ci-w .ci { display: block; width: 76px; height: 60px; overflow: visible; }
@media (max-width: 639px) { .ci-w { width: 68px; height: 54px; } .ci-w .ci { width: 68px; height: 54px; } }
/* On a phone a long name leaves its rule a stub, or none: no heading has one there. */
@media (max-width: 479px) { .svc-cat-top .svc-cat-h::after { display: none; } }
.svc-cat:has(input:checked) .ci-w { background: var(--tint-navy); box-shadow: inset 0 0 0 1px rgb(15 47 79 / .3); }
.ill .ci-tool, .ill .ci-x { opacity: 0; }
.ill .ci-chk { opacity: 0; transform: scale(.4); transition: opacity .18s ease, transform .18s ease; }
.svc-cat:has(input:checked) .ci-chk { opacity: 1; transform: none;
  transition: opacity .2s var(--mo-out) .35s, transform .32s var(--mo-click) .35s; }
.ci-d1 { --cd: 160ms; } .ci-d2 { --cd: 320ms; } .ci-d3 { --cd: 480ms; }
/* a ticked card: a brass edge runs down its left side */
.svc { position: relative; }
.svc::before { content: ""; position: absolute; left: -1px; top: -1px; bottom: -1px; width: 3px;
  border-radius: var(--r) 0 0 var(--r); background: var(--brass); transform: scaleY(0);
  transition: transform .2s ease; }
.svc:has(input:checked)::before { transform: none; transition: transform .28s var(--mo-out); }
/* Reduced motion: style.css already makes every transition instant; with no
   delay either, the tick is simply there the moment the box is ticked. */
@media (prefers-reduced-motion: reduce) {
  .ill *, .svc::before { transition-delay: 0s !important; }
}
@media (prefers-reduced-motion: no-preference) {
  @keyframes ci-x { 0%, 45% { opacity: 1; } 100% { opacity: 0; } }
  @keyframes ci-bk { from { transform: translateX(-.42px); } }
  .svc-cat:has(input:checked) .ci-sl { animation: mo-slide 340ms var(--mo-out) both calc(var(--cd, 0ms) + var(--i, 0) * 50ms); }
  .svc-cat:has(input:checked) .ci-dr { animation: mo-drop-s 380ms var(--mo-click) both calc(var(--cd, 0ms) + 80ms + var(--i, 0) * 90ms); }
  .svc-cat:has(input:checked) .ci-pd { animation: mo-pdrop 420ms var(--mo-click) both calc(var(--cd, 0ms) + 180ms); }
  .svc-cat:has(input:checked) .ci-wp { animation: mo-wipe 620ms var(--mo-io) both calc(var(--cd, 0ms) + 60ms); }
  .svc-cat:has(input:checked) .ci-gr { animation: mo-grow 320ms var(--mo-click) both calc(var(--cd, 0ms) + var(--i, 0) * 30ms); }
  .svc-cat:has(input:checked) .ci-dw { animation: mo-draw 520ms var(--mo-io) both calc(var(--cd, 0ms) + 60ms); }
  .svc-cat:has(input:checked) .ci-pp { animation: mo-pop 300ms var(--mo-click) both calc(var(--cd, 0ms) + 40ms); }
  .svc-cat:has(input:checked) .ci-fd { animation: mo-fade 320ms var(--mo-out) both calc(var(--cd, 0ms) + 120ms); }
  .svc-cat:has(input:checked) .ci-rs { animation: mo-rise 380ms var(--mo-out) both calc(var(--cd, 0ms) + 120ms); }
  .svc-cat:has(input:checked) .ci-aw { animation: mo-grow 420ms var(--mo-out) both calc(var(--cd, 0ms) + 80ms); }
  .svc-cat:has(input:checked) .ci-x { animation: ci-x 520ms var(--mo-out) both; }
  .svc-cat:has(input:checked) .ci-bk { animation: ci-bk 220ms var(--mo-click) both calc(var(--i, 0) * 70ms); }
  .svc-cat:has(input:checked) .ci-roll { animation: ci-roll 700ms var(--mo-io) both; }
}

/* ============================================================ /details */
/* Photos: the phone at work on a room, beside what to send and how far along. */
.ph-intro { display: grid; grid-template-columns: minmax(0, 250px) minmax(0, 1fr); gap: 4px 22px; align-items: center; margin: 0 0 1.1rem; }
.ph-intro .hint-block { margin-top: 0; }
.ph-intro .shot-progress { margin-bottom: 0; }
.ph-stage { aspect-ratio: 16 / 10.5; border: 1px solid var(--rule); border-radius: var(--r); }
/* At this size, with no list of what was seen beside it, the marks are only
   marks: a brass head, no number (the numbers stay on the home page, where
   they answer that list). */
.ph-stage .pin-t { display: none; }
.ph-stage .pin-h { fill: var(--il-br); }
@media (max-width: 620px) {
  .ph-intro { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .ph-stage { aspect-ratio: 16 / 9; }
}
/* How far along: one segment for each required shot, filling as each is added. */
.sp-bar { position: relative; height: 8px; border-radius: 4px; }
.sp-bar i { width: 100%; transform: scaleX(0); transform-origin: 0 50%;
  transition: transform .5s var(--mo-click), background-color .3s ease; }
.sp-bar::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(90deg, transparent 0 calc(100% / var(--n, 1) - 3px),
    var(--card) calc(100% / var(--n, 1) - 3px) calc(100% / var(--n, 1))); }
.sp-n1 { --n: 1; } .sp-n2 { --n: 2; } .sp-n3 { --n: 3; } .sp-n4 { --n: 4; }
.sp-n5 { --n: 5; } .sp-n6 { --n: 6; } .sp-n7 { --n: 7; } .sp-n8 { --n: 8; }
/* A shot that has its photo: a navy tick before its name. */
.shot-done .shot-title::before { content: ""; display: inline-block; width: 17px; height: 17px; margin: 0 7px 0 0;
  vertical-align: -3px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Ccircle cx='9' cy='9' r='9' fill='%230f2f4f'/%3E%3Cpath d='M5.4 9.3l2.4 2.4 4.8-5.1' fill='none' stroke='%23fff' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 17px no-repeat; }
@media (prefers-reduced-motion: no-preference) {
  .shot-done .shot-title::before { animation: mo-pop 320ms var(--mo-click) both; }
  .shot-slot .thumb:last-child { animation: mo-drop-s 340ms var(--mo-click) both; }
}

/* The building screen (upload.js): the sample house on the board, one calm
   loop for each stage of the wait, the five-part track under it filling as
   the stages pass, then the stage in words. No blur behind it: a full-screen
   blur halved the frame rate on a wide screen. */
.overlay.bs { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgb(250 248 244 / .97); }
.bs .ov-card { width: min(480px, 100%); padding: 14px 14px 24px; }
.bs-stage { aspect-ratio: 16 / 10.5; border-radius: var(--r); --pad-t: 12px; --pad-x: 14px; --pad-b: 16px; }
.bs-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; margin: 16px 6px 0; padding: 0; list-style: none; }
.bs-steps li { position: relative; height: 4px; border-radius: 2px; overflow: hidden; background: var(--rule); }
.bs-steps li::before { content: ""; position: absolute; inset: 0; background: var(--navy); transform: scaleX(0); transform-origin: 0 50%; }
.bs .ov-stage { margin: 16px 10px 0; }
.bs .ov-note { padding-inline: 10px; }
/* A card taller than the screen (a phone on its side) starts at the top and
   scrolls, rather than being cut off top and bottom; and on a short screen
   the drawing gives up height, so the stage and the note stay in view. */
.overlay.bs { overflow-y: auto; overscroll-behavior: contain; align-items: safe center; }
@media (max-height: 500px) {
  .bs .ov-card { padding-bottom: 18px; }
  .bs-stage { height: 36vh; width: auto; aspect-ratio: 16 / 10.5; margin-inline: auto; }
  .bs-steps { margin-top: 10px; }
  .bs .ov-stage { margin-top: 10px; margin-bottom: .6rem; }
  .bs .ov-note { margin-top: .6rem; }
}
.bs[data-stage="1"] .bs-steps li:nth-child(-n+1)::before, .bs[data-stage="2"] .bs-steps li:nth-child(-n+2)::before,
.bs[data-stage="3"] .bs-steps li:nth-child(-n+3)::before, .bs[data-stage="4"] .bs-steps li:nth-child(-n+4)::before,
.bs[data-stage="5"] .bs-steps li:nth-child(-n+4)::before { transform: none; }
.bs[data-stage="0"] li:nth-child(1)::before, .bs[data-stage="1"] li:nth-child(2)::before,
.bs[data-stage="2"] li:nth-child(3)::before, .bs[data-stage="3"] li:nth-child(4)::before,
.bs[data-stage="4"] li:nth-child(5)::before, .bs[data-stage="5"] li:nth-child(5)::before {
  background: var(--brass); transform: scaleX(.5); }
/* the layers: only the current stage's is seen, and only it moves */
.bs .bs-l { opacity: 0; transition: opacity .5s var(--mo-out); }
.bs[data-stage="0"] .bs-l0, .bs[data-stage="1"] .bs-l1, .bs[data-stage="2"] .bs-l2,
.bs[data-stage="3"] .bs-l3, .bs[data-stage="4"] .bs-l4, .bs[data-stage="5"] .bs-l5 { opacity: 1; }
.bs:not([data-stage="0"]) .bs-l0 *, .bs:not([data-stage="1"]):not([data-stage="5"]) .bs-l1 *,
.bs:not([data-stage="2"]) .bs-l2 *, .bs:not([data-stage="3"]) .bs-l3 *,
.bs:not([data-stage="4"]):not([data-stage="5"]) .bs-l4 * { animation-play-state: paused !important; }
.ill .bs-line { transform-box: fill-box; transform-origin: 0 50%; }
/* Sent with no photo or video (upload.js data-media): no photo cards to read. */
.bs[data-media="0"] .bs-photo { display: none; }
@media (prefers-reduced-motion: no-preference) {
  /* each stage's part of the track fills over the time that stage usually takes */
  @keyframes bs-fill { from { transform: scaleX(0); } to { transform: scaleX(.92); } }
  @keyframes bs-breathe { 50% { opacity: .45; } }
  .bs[data-stage="0"] li:nth-child(1)::before { animation: bs-fill 3000ms var(--mo-out) both; }
  .bs[data-stage="1"] li:nth-child(2)::before { animation: bs-fill 7000ms var(--mo-out) both; }
  .bs[data-stage="2"] li:nth-child(3)::before { animation: bs-fill 14000ms var(--mo-out) both; }
  .bs[data-stage="3"] li:nth-child(4)::before { animation: bs-fill 16000ms var(--mo-out) both; }
  .bs[data-stage="4"] li:nth-child(5)::before { animation: bs-fill 18000ms var(--mo-out) both; }
  .bs[data-stage="5"] li:nth-child(5)::before { transform: none; animation: bs-breathe 2400ms var(--mo-calm) infinite; }
  @keyframes bs-drop { 0% { opacity: 0; transform: translateY(-14px); } 18% { opacity: 1; } 62% { opacity: 1; transform: translateY(38px); } 80%, 100% { opacity: 0; transform: translateY(42px); } }
  @keyframes bs-room { 0%, 100% { opacity: 0; } 14%, 40% { opacity: 1; } 58% { opacity: 0; } }
  @keyframes bs-pin { 0% { opacity: 0; transform: translateY(-10px); } 10% { opacity: 1; transform: none; } 80% { opacity: 1; } 94%, 100% { opacity: 0; } }
  @keyframes bs-line { 0% { transform: scaleX(0); } 22%, 84% { opacity: 1; transform: none; } 100% { opacity: 0; transform: none; } }
  @keyframes bs-pt { to { transform: translateX(9.4px); } }
  @keyframes bs-float { 50% { transform: translateY(-4px); } }
  .bs .bs-ans { animation: bs-drop 2400ms var(--mo-calm) infinite both calc(var(--i, 0) * 800ms); }
  .bs .bs-scan { animation: bs-scan 3200ms var(--mo-calm) infinite both; }
  .bs[data-stage="5"] .bs-scan { animation-duration: 4800ms; }
  .bs .bs-room { animation: bs-room 4200ms var(--mo-calm) infinite both calc(var(--i, 0) * 600ms); }
  /* the three risks land one by one, stay, and go together */
  .bs .bs-pin { animation: bs-pin 3600ms var(--mo-click) infinite both calc(var(--i, 0) * 550ms); }
  .bs .bs-line { animation: bs-line 3600ms var(--mo-calm) infinite both calc(var(--i, 0) * 260ms); }
  .bs .bs-photo { animation: bs-float 3200ms var(--mo-calm) infinite both calc(var(--i, 0) * -900ms); }
  .bs .bs-pt { animation: bs-pt 2400ms var(--mo-calm) infinite alternate both; }
}

/* ===================================================== the payment wait */
.pw-stage { width: min(340px, 100%); aspect-ratio: 4 / 3; margin: 0 auto 26px; border-radius: var(--r-lg);
  --pad-t: 18px; --pad-x: 26px; --pad-b: 20px; }
@media (prefers-reduced-motion: no-preference) {
  @keyframes pw-glow { 0%, 100% { opacity: .45; } 35% { opacity: 1; } }
  @keyframes pw-turn { to { transform: rotate(360deg); } }
  .pw .pw-row { animation: pw-glow 2600ms var(--mo-calm) infinite both calc(var(--i, 0) * 170ms); }
  .pw .pw-ring { animation: pw-turn 9000ms linear infinite; }
}
/* pending.js, once it stops asking: the loops stop on the drawing's still
   frame, and the box keeps its height so nothing under it moves. */
.pw-stage.is-still * { animation: none !important; }

/* ============================================================ /e/<token> */
/* The estimate's own rules are in est.css. Here, only its drawings: this
   sheet comes to an estimate after its first paint (motion.js), and each
   drawing's box waits there, empty, until it does. The building, on a new
   build's summary sheet: on paper, as the trades' drawings are, so its
   shadow and string line are the paper's, not the board's. */
.est-art .ill.est-nb, .rv-ill > .sp-svg { visibility: visible; }
.est-nb .bd .sh { fill: rgb(15 47 79 / .08); }
.est-nb .bd :is(.str, .bdim, .bdk) { stroke: var(--il-br); }
/* The sheet being checked (an estimate under review) and the photos (/details):
   the home page's second and third steps. */
@media (prefers-reduced-motion: no-preference) {
  .s2 .s2-sh, .s3 .s3-sh { animation: mo-fade 230ms var(--mo-out) both; }
  .s2 .s2-base { animation: mo-rise 200ms var(--mo-out) both; }
  .s2 .s2-wall { animation: mo-drop 200ms var(--mo-click) both calc(53ms + var(--i, 0) * 34ms); }
  .s2 .s2-phone { animation: mo-rise 200ms var(--mo-out) both 160ms; }
  .s2 .s2-card { animation: mo-fade 200ms var(--mo-out) both 230ms; }
  .s2 .s2-scan { animation: s2-scan 490ms var(--mo-io) both 340ms; }
  .s2 .s2-smk1 { animation: mo-pop 200ms var(--mo-click) both 590ms; }
  .s2 .s2-smk0 { animation: mo-pop 200ms var(--mo-click) both 710ms; }
  .s2 .s2-pin0 { animation: mo-drop 200ms var(--mo-click) both 840ms; }
  .s2 .s2-pin1 { animation: mo-drop 200ms var(--mo-click) both 900ms; }
  @keyframes s2-flash { 30% { opacity: .85; } }
  .s2 .s2-flash { animation: s2-flash 200ms var(--mo-out) both 990ms; }
  .s2 .s2-new { animation: s2-fly 240ms var(--mo-click) both 1030ms; }
  .s3 .s3-under { animation: mo-drop 200ms var(--mo-click) both; }
  .s3 .s3-sheet { animation: mo-drop 200ms var(--mo-click) both 46ms; }
  .s3 .s3-row { animation: mo-wipe 200ms var(--mo-out) both calc(180ms + var(--i, 0) * 34ms); }
  .s3 .s3-lens { animation: s3-lens 760ms var(--mo-io) both 340ms; }
  .s3 .s3-tick { animation: mo-draw 200ms var(--mo-out) both calc(450ms + var(--i, 0) * 140ms); }
  @keyframes s3-stamp { from { opacity: 0; transform: scale(1.7); } 60% { opacity: 1; transform: scale(.94); } }
  .s3 .s3-seal { animation: s3-stamp 300ms var(--mo-out) both 1080ms; }
}

/* Windows high contrast: the drawings keep their own colours (they are
   pictures), the bars the system's. */
@media (forced-colors: active) {
  .ill svg { forced-color-adjust: none; }
  .bs-steps li::before { forced-color-adjust: none; background: Highlight; }
  .sp-bar::after { display: none; }
}
@media print {
  /* Printed, every drawing is its final frame (the CSS at rest), seen or not. */
  .ill, .ill *, .ill *::before, .ill *::after { animation: none !important; transition: none !important; }
}

/* ---- generated by tools/illo/build.py: do not edit by hand ---- */
.i1{--i:1}.i2{--i:2}.i3{--i:3}.i4{--i:4}.i5{--i:5}.i6{--i:6}.i7{--i:7}.i8{--i:8}.i9{--i:9}.i10{--i:10}.i11{--i:11}.i12{--i:12}.i13{--i:13}.i14{--i:14}.i15{--i:15}.i16{--i:16}.i17{--i:17}.i18{--i:18}.i19{--i:19}.i20{--i:20}.i21{--i:21}.i22{--i:22}.i23{--i:23}.i24{--i:24}.i25{--i:25}.i26{--i:26}.i27{--i:27}
@keyframes bs-scan { 0% { opacity: 0; transform: none; } 12%, 82% { opacity: 1; } 100% { opacity: 0; transform: translate(151.6px, 87.5px); } }
.bs-scan { transform: translate(83.4px, 48.1px); }
@keyframes ci-roll { 0% { opacity: 0; } 12% { opacity: 1; transform: none; } 84% { opacity: 1; transform: translate(22.6px, 13.1px); } 100% { opacity: 0; transform: translate(22.6px, 13.1px); } }
@keyframes s2-scan { 0% { opacity: 0; transform: none; } 10%, 86% { opacity: 1; } 100% { opacity: 0; transform: translateY(110px); } }
@keyframes s2-fly { from { opacity: 0; transform: translate(-65.9px, 75.4px) scale(.6); } 30% { opacity: 1; } }
@keyframes s3-lens { 0% { opacity: 0; transform: translate(24.1px, -51.3px); } 10% { opacity: 1; transform: translate(54.1px, -31.3px); } 28% { opacity: 1; transform: translate(40.6px, -23.4px); } 46% { opacity: 1; transform: translate(27.1px, -15.6px); } 64% { opacity: 1; transform: translate(13.5px, -7.8px); } 82% { opacity: 1; transform: translate(0px, 0px); } 92% { opacity: 1; } 100% { opacity: 0; transform: translate(20px, 10px); } }
/* ---- end of generated ---- */

/* ======================================== an estimate still being built */
/* building.html: the building screen's drawing on its "still working" loop,
   on the payment wait's sheet. build_wait.js stops its loops when it stops
   asking (the box stays, so nothing below moves). */
.build-wait .bw-stage { width: min(420px, 100%); margin: 0 auto 22px; }
.build-wait .bw-stage.is-still * { animation: none !important; }
.build-wait .notice { margin: 1rem 0; }

/* ===================================== the email, twice (details, email.js) */
/* The suggestion under the first box and the mismatch under the second take
   no room while they're empty: they stay in the page, so a screen reader
   hears what arrives in them (aria-live). */
.email-suggest:empty, .field-error:empty { margin: 0; }
.email-suggest { color: var(--ink-2); }
/* "Did you mean …?": the address meant is the button, read as a link. */
.email-suggest .linkish { display: inline; padding: 0; margin: 0; min-height: 0; font: inherit; font-weight: 600;
  color: var(--navy); background: none; border: 0; border-radius: 2px; box-shadow: none;
  text-decoration: underline; text-underline-offset: 2px; text-align: left; cursor: pointer;
  overflow-wrap: anywhere; }
.email-suggest .linkish:hover:not(:disabled) { color: var(--navy-hi); background: none; }
.email-suggest .linkish:active:not(:disabled) { background: none; }
.field-error { margin: .4rem 0 0; color: var(--bad); font-size: .875rem; font-weight: 600; }
/* The second box, while it says something else: its edge in the same red. */
.field input[aria-invalid="true"] { border-color: var(--bad); }
