/* WetBond 3D block hero (home page). Scoped to #h3d. */
#h3d{--ink:#0a1830;--ink2:#071226;--acc:#8cbcff;--mut:#9fb0c8;--ln:rgba(190,204,226,.18);--w:#2d73f0;--m:#8cc8ff;--v:#f5f8fd}
#h3d *{box-sizing:border-box;margin:0;padding:0}
#h3d{position:relative;height:820vh}
#h3d .stage{position:sticky;top:0;height:100vh;height:100svh;overflow:hidden;background:radial-gradient(ellipse 42% 38% at 50% 54%,rgba(74,124,214,.30),rgba(40,70,140,.10) 55%,transparent 75%)}
#h3d #h3gl{position:absolute;inset:0;width:100%;height:100%;display:block;opacity:0;transition:opacity .8s ease}#h3d #h3gl.on{opacity:1}
#h3d .grid{position:absolute;inset:0;pointer-events:none;background-image:linear-gradient(rgba(140,188,255,.05) 1px,transparent 1px),linear-gradient(90deg,rgba(140,188,255,.05) 1px,transparent 1px);background-size:56px 56px;mask-image:radial-gradient(ellipse 70% 60% at 50% 52%,#000 30%,transparent 80%)}
#h3d .vig{position:absolute;inset:0;pointer-events:none;background:radial-gradient(ellipse 80% 70% at 50% 50%,transparent 45%,rgba(4,10,24,.45))}
#h3d .top{position:absolute;left:0;right:0;top:clamp(84px,11vh,120px);text-align:center;z-index:5;padding:0 16px;pointer-events:none}
#h3d .kick{font:700 11px ui-monospace,monospace;letter-spacing:.22em;text-transform:uppercase;color:var(--acc)}
#h3d h1{margin-top:12px;font-weight:900;font-stretch:88%;text-transform:uppercase;font-size:clamp(30px,4.6vw,64px);line-height:.98;letter-spacing:-.01em}
#h3d h1 span{display:block}
#h3d h1 span+span{color:var(--acc)}
#h3d .bot{position:absolute;left:0;right:0;bottom:clamp(18px,4vh,40px);z-index:6;display:flex;flex-direction:column;align-items:center;gap:14px;padding:0 16px}
#h3d .step{display:flex;align-items:center;gap:12px;min-height:48px;padding:10px 18px 10px 12px;border-radius:999px;background:rgba(10,24,48,.78);border:1px solid var(--ln);backdrop-filter:blur(10px);max-width:min(720px,100%)}
#h3d .step b{flex:none;font:800 11px ui-monospace,monospace;letter-spacing:.1em;color:var(--ink);background:var(--acc);border-radius:999px;padding:6px 10px}
#h3d .step p{font-size:15px;font-weight:600;color:#e9f0fa;transition:opacity .25s}
#h3d .rail{display:flex;gap:6px;width:min(840px,100%)}
#h3d .rail li{list-style:none;flex:1}
#h3d .rail i{display:block;height:3px;border-radius:2px;background:rgba(255,255,255,.16);overflow:hidden}
#h3d .rail i:after{content:"";display:block;height:100%;width:calc(var(--p,0)*100%);background:var(--acc)}
#h3d .rail span{display:block;margin-top:6px;font:700 9.5px ui-monospace,monospace;letter-spacing:.12em;text-transform:uppercase;color:rgba(190,204,226,.55);text-align:center;white-space:nowrap}
#h3d .rail .on span{color:#fff}
#h3d .cta{display:flex;gap:8px;width:min(520px,100%);background:#fff;border-radius:14px;padding:6px;box-shadow:0 18px 50px rgba(0,0,0,.45)}
#h3d .cta input{flex:1;min-width:0;border:0;outline:0;font:500 16px Archivo,sans-serif;padding:0 12px;color:var(--ink)}
#h3d .cta button{border:0;border-radius:10px;background:var(--w);color:#fff;font:800 14px Archivo,sans-serif;padding:13px 16px;cursor:pointer;white-space:nowrap}
#h3d .trust{font:600 12px Archivo,sans-serif;color:var(--mut)}
#h3d .tags{position:absolute;inset:0;z-index:4;pointer-events:none}
#h3d .tag{position:absolute;left:0;top:0;opacity:0;transition:opacity .35s;will-change:transform}
#h3d .tag u{position:absolute;left:-5px;top:-5px;width:10px;height:10px;border-radius:50%;background:#fff;box-shadow:0 0 0 4px rgba(140,188,255,.35)}
#h3d .tag s{position:absolute;left:0;bottom:6px;width:1px;height:30px;background:rgba(255,255,255,.7);text-decoration:none}
#h3d .tag span{position:absolute;bottom:36px;left:-14px;white-space:nowrap;font:800 11px Archivo,sans-serif;letter-spacing:.08em;text-transform:uppercase;padding:7px 12px 7px 24px;border-radius:999px;background:rgba(10,24,48,.9);border:1px solid rgba(140,188,255,.35)}
#h3d .tag span:before{content:"";position:absolute;left:10px;top:50%;width:7px;height:7px;margin-top:-3.5px;border-radius:50%;background:var(--c,var(--acc))}
#h3d .tag.r span{left:auto;right:-14px}
#h3d .legend{position:absolute;z-index:5;right:clamp(16px,3vw,40px);top:clamp(84px,11vh,120px);display:flex;gap:12px;padding:8px 12px;border-radius:999px;background:rgba(10,24,48,.78);border:1px solid var(--ln);font:800 10px Archivo,sans-serif;letter-spacing:.12em;text-transform:uppercase}
#h3d .legend i{display:inline-block;border-radius:50%;margin-right:6px;vertical-align:0}
#h3d .skip{position:absolute;z-index:7;left:clamp(16px,3vw,40px);top:clamp(84px,11vh,120px);font:800 12px Archivo,sans-serif;letter-spacing:.08em;text-transform:uppercase;text-decoration:none;color:var(--ink);background:#e6efff;border-radius:999px;padding:10px 14px}
#h3d .cue{position:absolute;left:50%;transform:translateX(-50%);bottom:calc(clamp(18px,4vh,40px) + 196px);z-index:5;font:800 10px ui-monospace,monospace;letter-spacing:.24em;text-transform:uppercase;color:var(--mut);transition:opacity .4s}
#h3d .scale{position:absolute;left:0;top:0;z-index:4;pointer-events:none;opacity:0;transition:opacity .35s;font:800 10px Archivo,sans-serif;letter-spacing:.08em;text-transform:uppercase;white-space:nowrap}
#h3d .scale .rl{position:relative;margin-bottom:12px}
#h3d .scale .rl span{display:inline-block;padding:4px 8px;border-radius:6px;background:rgba(10,24,48,.92);border:1px solid rgba(255,255,255,.35);color:#fff;margin-bottom:4px}
#h3d .scale .rl b{display:block;height:3px;background:#fff;position:relative;box-shadow:0 0 6px rgba(0,0,0,.5)}
#h3d .scale .rl b:before,#h3d .scale .rl b:after{content:"";position:absolute;top:-5px;width:3px;height:13px;background:inherit}
#h3d .scale .rl b:before{left:0}
#h3d .scale .rl b:after{right:0}
#h3d .scale .rl.n span{border-color:rgba(140,188,255,.7);color:#8cbcff}
#h3d .scale .rl.n b{background:#8cbcff}
#h3d .note{position:absolute;z-index:6;left:clamp(16px,3vw,40px);bottom:clamp(18px,4vh,40px);font:700 10px ui-monospace,monospace;letter-spacing:.14em;text-transform:uppercase;color:var(--mut)}
#h3d .inset{position:absolute;right:clamp(16px,3vw,48px);top:50%;width:min(26vw,340px);margin:0;transform:translateY(-50%);opacity:0;transition:opacity .4s;z-index:4;border-radius:14px;overflow:hidden;border:1px solid rgba(140,188,255,.28);background:#071226;box-shadow:0 18px 50px rgba(0,0,0,.45)}
#h3d .inset video{display:block;width:100%;aspect-ratio:16/9;object-fit:cover}
#h3d .inset figcaption{font:700 10px/1.3 Archivo,system-ui,sans-serif;letter-spacing:.12em;text-transform:uppercase;color:#cfe0ff;padding:8px 12px;background:#0a1830}
@media (max-width:760px){#h3d .inset{top:clamp(150px,22vh,200px);right:12px;width:46vw;transform:none}#h3d .inset figcaption{font-size:8px;padding:6px 8px}}
@media (max-width:760px){
#h3d{height:600vh}
#h3d .top{top:72px}
#h3d h1{font-size:clamp(26px,8vw,36px)}
#h3d .kick{font-size:9.5px}
#h3d .legend{top:auto;right:auto;left:50%;transform:translateX(-50%);bottom:calc(clamp(18px,4vh,40px) + 182px);font-size:9px;gap:9px;padding:6px 10px}
#h3d .skip{top:auto;left:auto;right:14px;bottom:calc(clamp(18px,4vh,40px) + 226px);font-size:11px;padding:9px 12px}
#h3d .cue{display:none}
#h3d .step{border-radius:14px;padding:9px 12px 9px 10px;min-height:0}
#h3d .step p{font-size:13.5px;line-height:1.35}
#h3d .step b{font-size:10px}
#h3d .rail span{font-size:8px;letter-spacing:.04em;white-space:normal;line-height:1.15}
#h3d .trust{display:none}
#h3d .cta button{padding:12px;font-size:13px}
#h3d .tag span{font-size:9px;padding:5px 9px 5px 19px;bottom:30px}
#h3d .tag span:before{left:8px;width:6px;height:6px;margin-top:-3px}
#h3d .tag s{height:24px}
#h3d .note{display:none}
}
@media (prefers-reduced-motion:reduce){#h3d .tag,#h3d .step p{transition:none}}
#h3d{background:var(--ink2);color:#fff;font-family:Archivo,system-ui,sans-serif}
#h3d .cta{display:flex}#h3d .cta input{height:44px}
#h3d .h3-skip-r{display:none}
/* phones: the site's sticky call bar carries the inspection button, so the hero drops its own form and sits above the bar */
@media (max-width:760px){#h3d .cta{display:none}#h3d .bot{bottom:86px}#h3d .legend{bottom:206px}#h3d .skip{bottom:252px}}
/* instant estimate: address first (wb-estimate.js) */
#h3d .cta.wbe-bar{align-items:center;width:min(600px,100%)}
#h3d .wbe-k{flex:none;padding:7px 10px;border-radius:9px;background:#e8effb;color:#1f5fc4;font:800 11px ui-monospace,Menlo,monospace;letter-spacing:.08em;text-transform:uppercase}
#h3d .wbe-bar input{height:46px}
#h3d .wbe-bs{display:none}
@media (max-width:760px){
 #h3d .cta.wbe-bar{display:flex;padding:5px;border-radius:12px;transition:opacity .35s ease,visibility .35s}
 #h3d .wbe-k{display:none}
 #h3d .wbe-bar input{height:44px;font-size:16px;padding:0 10px}
 #h3d .wbe-bl{display:none}#h3d .wbe-bs{display:inline}
 #h3d .wbe-away{opacity:0;visibility:hidden;pointer-events:none}
 #h3d .trust{transition:opacity .35s ease,visibility .35s}
}
/* restored header: Fix the ___, not the water. */
#h3d h1 .rot{font-style:normal;display:inline-block;color:#fff;border-bottom:.07em solid var(--acc);transition:opacity .26s ease,transform .26s ease}
#h3d h1 .rot.out{opacity:0;transform:translateY(.25em)}
#h3d .sub{margin:14px auto 0;max-width:560px;font:600 15px/1.45 Archivo,sans-serif;color:#c9d6ec}
#h3d .top .wbe-bar{pointer-events:auto;margin:16px auto 0}
@media (max-width:760px){#h3d .sub{display:none}#h3d .top+.cue{display:none}#h3d .top .trust{pointer-events:none;margin:8px 0 0;font-size:11px}}
/* keep the bottom controls on screen while the header still sits above the stage */
#h3d .bot{transform:translateY(calc(-1 * var(--h3off,0px)))}
#h3d .sub{margin-top:10px;font-size:14px}
#h3d .sub{display:none}
@media (max-width:760px){#h3d .legend,#h3d .skip{transform:translateY(calc(-1 * var(--h3off,0px)))}}
/* desktop: headline and estimate in the left column, the block floats right of center (hero3d.js view offset) */
#h3d .wbe-mini{display:none}
@media (min-width:1024px){
 #h3d .top{left:clamp(32px,5.5vw,96px);right:auto;width:min(540px,38vw);top:50%;transform:translateY(-58%);text-align:left;padding:0}
 #h3d .top h1{font-size:clamp(38px,3.7vw,60px)}
 #h3d .top .kick{display:block}
 #h3d .top .wbe-bar{margin:24px 0 0;width:100%}
 #h3d .top .trust{margin:10px 0 0;text-align:left;pointer-events:none}
 #h3d .cue{left:clamp(32px,5.5vw,96px);right:auto;transform:none}
 #h3d .wbe-mini{display:flex;width:min(460px,100%);opacity:0;visibility:hidden;transition:opacity .35s ease,visibility .35s}
 #h3d.h3-story .wbe-mini{opacity:1;visibility:visible}
 #h3d .wbe-mini input{height:42px;font-size:15px}
 #h3d .wbe-mini button{padding:11px 14px;font-size:13px}
}
@media (min-width:1024px) and (max-height:820px){#h3d .top{top:43%}#h3d .top h1{font-size:clamp(34px,3.3vw,50px)}#h3d .top .wbe-bar{margin-top:18px}}
#h3d .cta.wbe-mini{display:none}
@media (min-width:1024px){#h3d .cta.wbe-mini{display:flex}}
/* tablets: headline clear of the legend, block sits below it (hero3d.js view offset) */
@media (min-width:761px) and (max-width:1023px){#h3d .top{top:clamp(150px,15vh,190px)}#h3d .top h1{font-size:clamp(34px,5.2vw,48px)}}
/* narrow desktops: give the address field room */
@media (min-width:1024px) and (max-width:1279px){#h3d .top{width:min(540px,44vw)}#h3d .top .wbe-k{display:none}}
/* phones: one clean column. Skip and legend sit in a slim row under the header, the close-up is dropped, the block is framed between that row and the caption, labels stay on screen */
@media (max-width:760px){
 #h3d .inset{display:none}
 #h3d .skip,#h3d .legend{top:calc(var(--h3top,0px) + 10px);bottom:auto;transform:none;opacity:0;visibility:hidden;transition:opacity .35s,visibility .35s}
 #h3d.h3m-s .skip,#h3d.h3m-s .legend{opacity:1;visibility:visible}
 #h3d .skip{left:12px;right:auto;font-size:10px;padding:7px 10px;letter-spacing:.06em}
 #h3d .legend{left:auto;right:12px;gap:8px;padding:6px 9px;font-size:8.5px;letter-spacing:.08em}
 #h3d .legend i{margin-right:4px}
 #h3d .bot{gap:10px;padding:0 12px}
 #h3d .step{width:100%;padding:8px 12px 8px 8px;gap:10px}
 #h3d .step p{font-size:13px;line-height:1.32}
 #h3d .tag span{font-size:8.5px;letter-spacing:.06em}
}
@media (max-width:760px) and (max-height:640px){#h3d .step p{font-size:12px}#h3d .rail span{font-size:7.5px}}
/* phones, more room for the block: legend dropped, skip is a small chip in the corner, compact caption and step bar */
@media (max-width:760px){
 #h3d .legend{display:none}
 #h3d .skip{left:auto;right:10px;top:calc(var(--h3top,0px) + 8px);font-size:9px;padding:5px 8px;background:rgba(230,239,255,.85)}
 #h3d .bot{gap:6px;padding:0 10px}
 #h3d .step{padding:6px 10px 6px 6px;gap:8px;border-radius:12px;background:rgba(10,24,48,.86)}
 #h3d .step b{font-size:9px;padding:4px 7px}
 #h3d .step p{font-size:11.5px;line-height:1.3;font-weight:600;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
 #h3d .rail{gap:4px}
 #h3d .rail span{font-size:7px;margin-top:4px;letter-spacing:.02em}
}
/* phones while the story plays: short two-line captions and a slim call bar, so the block gets the screen */
@media (max-width:760px){
 #h3d .step p{-webkit-line-clamp:2;font-size:11.5px}
 #h3d.h3m-s .bot{bottom:58px;transition:bottom .3s}
 body:has(#h3d.h3m-s) .m-cta{bottom:8px!important}
 body:has(#h3d.h3m-s) .m-cta a{min-height:40px!important;font-size:13px!important;padding:0 10px!important}
 body:has(#h3d.h3m-s) .m-cta svg{width:15px;height:15px}
}
/* close-ups: picture only; its one line sits under the main caption */
#h3d .inset figcaption{display:none}
#h3d .cln{display:block;margin-top:3px;font:700 10px Archivo,sans-serif;letter-spacing:.1em;text-transform:uppercase;color:var(--acc)}
#h3d .cln:empty{display:none}
#h3d .step{flex-wrap:wrap}#h3d .step p{flex:1 1 0;min-width:0}#h3d .step .cln{flex-basis:100%;padding-left:44px;margin-top:-2px}
/* phones: the address bar is held back until the block is front and center, then it is the one CTA at the bottom of the frame; call/inspection buttons return after the hero */
@media (max-width:760px){
 #h3d .cln{display:none!important}
 #h3d .stage>.wbe-bar{position:absolute;left:10px;right:10px;bottom:10px;width:auto;margin:0!important;z-index:8;opacity:0;visibility:hidden;pointer-events:none;transform:translateY(14px);transition:opacity .35s,transform .35s,visibility .35s}
 #h3d.h3m-cta .stage>.wbe-bar,#h3d.h3m-cta .stage>.wbe-bar.wbe-away{opacity:1;visibility:visible;pointer-events:auto;transform:none}
 #h3d .bot{bottom:14px}
 #h3d.h3m-s .bot{bottom:14px}
 #h3d.h3m-cta .bot{bottom:72px}
 body:has(#h3d.h3m-in) .m-cta{display:none!important}
}
#h3d .step:has(.cln:not(:empty)){border-radius:18px}
@media (max-width:760px){#h3d.h3m-s:not(.h3m-cta) .skip{opacity:0;visibility:hidden}}
/* skip button always available on phones: bottom right on the opening frame, top right once the story plays */
@media (max-width:760px){
 #h3d .skip,#h3d.h3m-s:not(.h3m-cta) .skip{opacity:1;visibility:visible}
 #h3d:not(.h3m-cta) .skip{top:auto;bottom:104px;right:12px}
}

/* hero backdrop: dark wet-concrete studio, full bleed, light pool behind the block */
#h3d .hbg{position:absolute;inset:0;pointer-events:none;background:url(../assets/hero-basement.webp?v=c) 50% 50%/cover no-repeat;transform-origin:50% 60%;animation:h3hb 50s ease-in-out infinite alternate}
#h3d .hbg:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(7,18,38,.55) 0%,rgba(7,18,38,0) 16%,rgba(7,18,38,0) 74%,rgba(7,18,38,.5) 100%),linear-gradient(90deg,rgba(7,18,38,.62) 0%,rgba(7,18,38,.2) 32%,rgba(7,18,38,0) 48%)}
@keyframes h3hb{from{transform:scale(1)}to{transform:scale(1.06)}}
@media (max-width:760px){#h3d .hbg{background-image:url(../assets/hero-basement-m.webp?v=c);background-position:50% 50%}#h3d .hbg:after{background:linear-gradient(180deg,rgba(7,18,38,.85) 0%,rgba(7,18,38,.1) 25%,rgba(7,18,38,0) 60%,rgba(7,18,38,.6) 100%)}}
@media (prefers-reduced-motion:reduce){#h3d .hbg{animation:none}}
/* phones (Nov 30): the address bar is the only CTA and sits at the bottom from the first frame; header trimmed to the logo row; chapter name rides in the caption */
@media (max-width:760px){
 body:has(#h3d.h3m-in) .wbh-util{display:none}
 #h3d .stage>.wbe-bar,#h3d .stage>.wbe-bar.wbe-away{opacity:1!important;visibility:visible!important;pointer-events:auto!important;transform:none!important;bottom:10px}
 #h3d .bot,#h3d.h3m-s .bot,#h3d.h3m-cta .bot{bottom:70px}
 #h3d .trust{display:none}
 #h3d .rail span{display:none}
 #h3d .rail i{height:4px}
 #h3d .step{padding:7px 12px 7px 7px}
 #h3d .step b{white-space:nowrap;text-transform:uppercase;letter-spacing:.08em}
 #h3d .step b[data-ch]:after{content:" · " attr(data-ch)}
 #h3d .step p{-webkit-line-clamp:3;font-size:12.5px;line-height:1.35}
 #h3d .tag span{font-size:9.5px}
 #h3d:not(.h3m-cta) .skip,#h3d .skip{top:auto!important;bottom:168px!important;right:10px;left:auto}
 #h3d.h3m-s .skip{top:calc(var(--h3top,0px) + 8px)!important;bottom:auto!important}
}
