/* Tallis: project view. The sheet's photograph opens to the full screen, is redrawn as its construction drawing,
   and the pour line (draggable) divides drawing from finished work. Parts can be tapped for a close-up. */
.pv{position:fixed;inset:0;z-index:40;overflow:hidden;--top-h:176px}
.pv[hidden]{display:none}
.pv-stage{position:absolute;inset:0;overflow:hidden;background:var(--slab) var(--broom) 0 0/432px 240px}
.pv-frame{position:absolute;left:0;top:0;width:1000px;height:1250px;transform-origin:0 0;--pour:0px}
.pv-paper{position:absolute;inset:0;background:var(--slab) var(--broom) 0 0/864px 480px}
.pv-photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;clip-path:inset(var(--pour) 0 0 0);filter:var(--grade)}
:root{--grade:contrast(1.12) brightness(1.03) saturate(1.06)}   /* grey-on-grey concrete needs a little separation on a phone */
.pv-ink,.pv-ghost{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.pv-ink{clip-path:inset(0 0 calc(100% - var(--pour)) 0)}
.pv-ghost{clip-path:inset(var(--pour) 0 0 0);opacity:var(--ghost,0)}
.pv-l{fill:none;stroke:var(--ink);stroke-linecap:round}
.pv-l.w1{stroke-width:3}.pv-l.w2{stroke-width:5.4}
.pv-g{fill:none;stroke:#f6f4ee;stroke-linecap:round;opacity:.72}
.pv-g.w1{stroke-width:2.6}.pv-g.w2{stroke-width:3.8}
.pv-faces{opacity:var(--faces,0)}
.pv-mark path{fill:none;stroke:var(--chalk);stroke-width:3;opacity:var(--faces,0)}

/* the pour line: a snapped chalk line with a grip on the left gutter */
.pour{position:absolute;left:0;right:0;top:0;height:0;z-index:3;opacity:var(--pl,0)}
.pour-line{position:absolute;left:0;right:0;top:-1px;height:2px;background:var(--chalk);box-shadow:0 0 0 .5px rgb(255 255 255 / .35),0 0 10px rgb(42 76 196 / .55)}
.pour-grip{position:absolute;left:14px;top:-22px;height:44px;padding:0 12px 0 34px;border:0;border-radius:2px;background:var(--chalk);color:#fff;
  display:flex;flex-direction:column;justify-content:center;gap:5px;font:650 10.5px/1 var(--mono);letter-spacing:.07em;text-transform:uppercase;
  cursor:ns-resize;touch-action:none;box-shadow:0 6px 16px -6px rgb(10 20 60 / .6),inset 0 -2px 0 var(--chalk-lo);opacity:var(--gk,1)}
.pour-grip::before,.pour-grip::after{content:"";position:absolute;left:13px;width:9px;height:9px;border:solid #fff;border-width:1.6px 0 0 1.6px}
.pour-grip::before{top:11px;transform:rotate(45deg)}
.pour-grip::after{bottom:11px;transform:rotate(225deg)}
.pour-grip .up{opacity:.82}

/* parts */
.spot{position:absolute;z-index:4;width:44px;height:44px;margin:-22px 0 0 -22px;border:0;padding:0;background:none;cursor:pointer;opacity:var(--sk,0)}
.spot i{position:absolute;inset:13px;border-radius:50%;background:var(--ink);box-shadow:0 0 0 2.5px var(--white),0 2px 8px rgb(0 0 0 / .45)}
.spot i::after{content:"";position:absolute;inset:-9px;border-radius:50%;border:1.5px solid var(--white);opacity:calc(.9 - var(--pulse,0) * .9);transform:scale(calc(.6 + var(--pulse,0) * .7))}
.spot b{position:absolute;left:38px;top:11px;white-space:nowrap;padding:4px 7px 3px;background:rgb(22 21 19 / .86);color:var(--white);
  font:650 10.5px/1.1 var(--mono);letter-spacing:.06em;text-transform:uppercase}
.spot.on i{background:var(--chalk)}

/* the lens: the real surface at magnification, with its detail drawn beside it */
.lens{position:absolute;z-index:6;left:0;top:0;pointer-events:none}
.lens[hidden]{display:none}
.lens-glass{position:absolute;width:156px;height:156px;border-radius:50%;background-repeat:no-repeat;background-color:#55524a;
  box-shadow:0 0 0 2.5px var(--white),0 0 0 3.5px var(--ink),0 18px 34px -12px rgb(0 0 0 / .7)}
.lens-card{position:absolute;width:150px;padding:10px 10px 12px;background:var(--slab-hi);border:1px solid var(--ink);box-shadow:0 14px 30px -14px rgb(0 0 0 / .6)}
.lens-card svg{display:block;width:120px;height:90px;margin:0 auto 6px}
.lens-card b{display:block;font-weight:740;font-stretch:96%;font-size:18px;line-height:1.05;margin-bottom:4px}
.lens-card span{display:block;font-size:13px;line-height:17px;color:var(--ink)}
.lens-glass{filter:var(--grade)}

/* the top: bar, title cell and the estimate row, ruled like the home page's title block */
.pv-top{position:absolute;left:0;right:0;top:0;z-index:8;background:var(--slab) var(--broom) 0 0/432px 240px;border-bottom:1.5px solid var(--ink)}
.pv-bar{display:flex;align-items:center;justify-content:space-between;height:56px;padding:0 var(--gut);border-bottom:1px solid var(--ink)}
.pv-back{display:flex;align-items:center;gap:8px;padding:10px 0;border:0;background:none;color:var(--ink);font:620 13px/1 'Mona Sans',sans-serif;font-stretch:112%;cursor:pointer}
.pv-back svg{width:18px;height:14px;fill:none;stroke:currentColor;stroke-width:1.7}
.pv-no{font:600 11px/1 var(--mono);letter-spacing:.04em}
.pv-title{display:flex;align-items:baseline;justify-content:space-between;gap:10px;padding:14px var(--gut) 12px}
.pv-title h2{margin:0;font-weight:780;font-stretch:85%;font-size:38px;line-height:36px;letter-spacing:-.02em}
.pv-title p{margin:0;font-size:12px;line-height:15px;color:var(--ink-2);text-align:right;max-width:110px}
.pv-cta{position:absolute;left:0;right:0;top:120px;z-index:7;height:56px;border-bottom:1.5px solid var(--ink);font-size:17px}
.spot.l b{left:auto;right:38px}
