/* Roofing page: scroll-driven leak (Ken's idea, Nov 25). A ceiling stain grows and drips faster
   as the visitor scrolls, with a waiting clock. It stops when the lead gets answered (the close section).
   Decorative and aria-hidden; the waiting clock text is also in the page copy for screen readers. */
.leak{position:fixed;top:var(--chrome-h);right:max(4px,calc((100vw - var(--maxw)) / 2 - 64px));width:56px;height:calc(100vh - var(--chrome-h));
  pointer-events:none;z-index:40;color:#7FB9E6}
.leak__stain{position:absolute;top:-30px;left:50%;width:var(--stain,40px);height:calc(var(--stain,40px) * .55);transform:translateX(-50%);
  border-radius:50%;background:radial-gradient(closest-side,rgba(127,185,230,.55),rgba(127,185,230,.22) 60%,rgba(127,185,230,0));
  filter:blur(1px);transition:width .5s var(--ease),height .5s var(--ease)}
.leak__drop{position:absolute;top:0;left:50%;width:10px;height:14px;margin-left:-5px;border-radius:50% 50% 50% 50%/60% 60% 40% 40%;
  background:linear-gradient(180deg,rgba(190,225,250,.95),rgba(110,170,220,.85));box-shadow:0 0 6px rgba(127,185,230,.5);opacity:0}
.leak__drop.is-falling{animation:leak-fall var(--fall,1.6s) cubic-bezier(.55,0,.9,.6) forwards}
@keyframes leak-fall{0%{opacity:0;transform:translateY(-4px) scale(.6)}12%{opacity:1;transform:translateY(0) scale(1)}
  92%{opacity:.9}100%{opacity:0;transform:translateY(calc(100vh - var(--chrome-h) - 40px)) scaleY(1.25)}}
.leak__chip{position:fixed;left:50%;bottom:22px;transform:translateX(-50%);white-space:nowrap;display:flex;align-items:center;gap:10px;
  font:700 15px/1 var(--text);letter-spacing:.01em;padding:12px 18px 12px 14px;border-radius:999px;
  background:#F2B36B;color:#1B1208;border:1px solid rgba(0,0,0,.12);
  box-shadow:0 10px 30px rgba(0,0,0,.35),0 0 0 6px rgba(242,179,107,.18);transition:background .4s,color .4s,box-shadow .4s}
.leak__chip::before{content:"";width:12px;height:16px;flex:none;border-radius:50% 50% 50% 50%/60% 60% 40% 40%;
  background:#2F7FC1;box-shadow:0 0 0 0 rgba(47,127,193,.6);animation:leak-pulse 1.4s ease-out infinite}
.leak__chip b{font:700 20px/1 var(--text);font-variant-numeric:tabular-nums;color:#8E1E0B}
@keyframes leak-pulse{0%{box-shadow:0 0 0 0 rgba(47,127,193,.6)}100%{box-shadow:0 0 0 10px rgba(47,127,193,0)}}
.leak.is-fixed .leak__chip{background:#8FD3C3;color:#0B2A24;box-shadow:0 10px 30px rgba(0,0,0,.3),0 0 0 6px rgba(143,211,195,.22)}
.leak.is-fixed .leak__chip::before{background:#0F6B5C;border-radius:50%;width:12px;height:12px;animation:none}
.leak.is-fixed .leak__chip b{color:#0B2A24}
.leak.is-fixed .leak__stain{opacity:.35}
@media (max-width:719px){.leak{width:40px;right:2px}.leak__chip{font-size:13px;padding:10px 14px 10px 12px;bottom:auto;top:calc(var(--chrome-h) + 10px)}.leak__chip b{font-size:17px}}
@media (prefers-reduced-motion:reduce){.leak__drop{display:none}.leak__chip::before{animation:none}}
