/* Works page: .pwx filter tabs + project grid, .pwx-lb photo viewer. Scoped; tokens from the site (--plh-*), same as the other .pas sections. */
.pwx{background:#fff}
.pwx__in{padding:clamp(20px,3vw,40px) var(--pas-px) clamp(56px,7vw,110px)}
.pwx .pwx__bar{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin:0 0 clamp(24px,3vw,44px)}
.pwx button.pwx__chip{height:44px;padding:0 22px;margin:0;border:1px solid #d7e6fa;border-radius:22px;background:#fff;color:var(--plh-secondary,#0b1b4d);font-family:inherit;font-size:14px;font-weight:700;line-height:1;text-transform:none;letter-spacing:0;box-shadow:none;cursor:pointer;transition:background-color .25s,color .25s,border-color .25s,transform .25s,box-shadow .25s}
.pwx button.pwx__chip:hover{border-color:var(--plh-primary,#1471f0);color:var(--plh-primary,#1471f0);background:#fff;transform:translateY(-2px)}
.pwx button.pwx__chip.is-on{background:var(--plh-primary,#1471f0);border-color:var(--plh-primary,#1471f0);color:#fff;box-shadow:0 10px 22px rgba(20,113,240,.3)}

/* grid: 4 columns; the JS places every visible project by position (fixed formula), so there are never gaps or overlaps */
.pwx .pwx__grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-rows:clamp(190px,17vw,300px);grid-auto-flow:dense;gap:clamp(12px,1.5vw,22px)}
.pwx button.pwx__pj{position:relative;display:block;width:100%;height:100%;min-width:0;overflow:hidden;margin:0;padding:0;border:0;border-radius:24px;background:var(--plh-primary-soft,#dcebfd);color:#fff;text-align:left;font-family:inherit;text-transform:none;letter-spacing:0;cursor:pointer;box-shadow:0 12px 30px rgba(11,27,77,.1);transition:opacity .4s,transform .4s,box-shadow .35s}
.pwx button.pwx__pj.is-hide{display:none}
.pwx button.pwx__pj.is-out{opacity:0;transform:scale(.96)}
.pwx .pwx__pj img{position:absolute;inset:0;width:100%;height:100%;max-width:none;object-fit:cover;transition:transform .9s cubic-bezier(.2,.7,.2,1)}
.pwx .pwx__pj::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(11,27,77,0) 45%,rgba(11,27,77,.85));pointer-events:none}
.pwx .pwx__c{position:absolute;z-index:2;left:18px;right:70px;bottom:18px;display:block}
.pwx .pwx__c small{display:inline-block;padding:5px 12px;border-radius:14px;background:rgba(255,255,255,.2);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);font-size:11px;font-weight:700;letter-spacing:.05em;line-height:1.3;text-transform:uppercase;color:#fff}
.pwx .pwx__c h3{margin:8px 0 0;padding:0;font-family:inherit;font-size:clamp(16px,1.4vw,20px);font-weight:800;line-height:1.25;letter-spacing:0;text-transform:none;color:#fff}
.pwx .pwx__z{position:absolute;z-index:2;right:16px;bottom:16px;display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:#fff;color:var(--plh-primary,#1471f0);transform:scale(.85);opacity:.9;transition:transform .35s,background-color .35s,color .35s}
.pwx .pwx__z svg{width:18px;height:18px}
.pwx .pwx__n{position:absolute;z-index:2;right:14px;top:14px;padding:6px 12px;border-radius:14px;background:rgba(255,255,255,.88);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);font-size:12px;font-weight:800;font-style:normal;line-height:1.3;color:var(--plh-primary,#1471f0)}
@media (hover:hover){
	.pwx button.pwx__pj:hover{box-shadow:0 20px 44px rgba(20,113,240,.26)}
	.pwx .pwx__pj:hover img{transform:scale(1.08)}
	.pwx .pwx__pj:hover .pwx__z{transform:scale(1);background:var(--plh-primary,#1471f0);color:#fff}
}
.pwx button.pwx__pj:focus-visible,.pwx button.pwx__chip:focus-visible{outline:3px solid var(--plh-primary,#1471f0);outline-offset:3px}

@media (max-width:1099px){.pwx .pwx__grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:clamp(190px,24vw,260px)}}
@media (max-width:800px){.pwx .pwx__grid{grid-auto-rows:clamp(170px,32vw,230px)}}
@media (max-width:560px){
	.pwx .pwx__grid{grid-template-columns:minmax(0,1fr);grid-auto-rows:240px;gap:14px}
	.pwx button.pwx__pj{border-radius:18px}
	.pwx .pwx__bar{flex-wrap:nowrap;justify-content:flex-start;overflow-x:auto;margin-inline:calc(var(--pas-px) * -1);padding:0 var(--pas-px) 6px;scrollbar-width:none}
	.pwx .pwx__bar::-webkit-scrollbar{display:none}
	.pwx button.pwx__chip{flex:none}
}
/* >= 1500px: same scale-up rule as the other sections (design width 1500; nothing changes at or below it) */
@media (min-width:1500px){
	html .pwx .pwx__grid{grid-auto-rows:max(255px,17vw);gap:max(22px,1.467vw)}
	html .pwx button.pwx__chip{height:max(44px,2.933vw);padding:0 max(22px,1.467vw);font-size:max(14px,.933vw);border-radius:999px}
	html .pwx .pwx__bar{gap:max(10px,.667vw)}
}

/* project pop-up = the homepage "See All" gallery (plumber-work.css); long project titles may wrap */
.plkx.pwx-gal .plkx-gal__title{white-space:normal}
@media (max-width:640px){.plkx.pwx-gal .plkx-gal__title{font-size:clamp(18px,5.4vw,23px);white-space:normal}}

/* hero: [plumber_works_hero] (centred badge + H1 + text over a faded photo, as in work-page.html) */
.pwh{position:relative;z-index:5;width:100%;overflow:hidden;text-align:center;padding:clamp(48px,6vw,96px) var(--pas-px) clamp(64px,7vw,110px);background:#fff}
.pwh::before{content:"";position:absolute;inset:0;background:linear-gradient(rgba(255,255,255,.35),rgba(255,255,255,.35)),var(--pwh-bg,none) center/cover no-repeat;-webkit-mask-image:linear-gradient(to bottom,#000 0,#000 66%,transparent 100%);mask-image:linear-gradient(to bottom,#000 0,#000 66%,transparent 100%);pointer-events:none}
@media (min-width:1025px){.pwh{--pas-px:clamp(32px,5vw,96px)}}
.pwh__in{position:relative;z-index:2;max-width:780px;margin:0 auto}
.pwh p.pwh__badge{display:inline-flex;align-items:center;gap:10px;height:34px;margin:0;padding:0 18px;border-radius:17px;background:rgba(255,255,255,.74);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);box-shadow:0 4px 14px rgba(11,27,77,.07);font-size:12px;font-weight:700;letter-spacing:.01em;line-height:1;text-transform:uppercase;color:var(--plh-secondary,#0b1b4d)}
.pwh__ico{display:inline-block;flex:none;width:16px;height:16px;color:var(--plh-primary,#1471f0)}
.pwh__ico--m{background:currentColor;-webkit-mask:var(--i) center/contain no-repeat;mask:var(--i) center/contain no-repeat}
.pwh h1.pwh__title{margin:18px 0 0;padding:0;font-family:inherit;font-size:clamp(34px,4.8vw,64px);font-weight:800;line-height:1.05;letter-spacing:-.015em;text-transform:none;color:var(--plh-secondary,#0b1b4d)}
.pwh__title span{display:block}
.pwh__title .is-accent{color:var(--plh-primary,#1471f0)}
.pwh p.pwh__desc{max-width:560px;margin:20px auto 0;font-size:var(--plh-fs-body,16px);font-weight:500;line-height:1.75;color:var(--plh-secondary-soft,#5b6b86)}
@media (max-width:1099px){.pwh{padding-bottom:clamp(88px,12vw,110px)}}
.pwh [data-pwh]{animation:pwhIn .8s cubic-bezier(.2,.7,.2,1) both}
.pwh .pwh__title{animation-delay:.11s}.pwh .pwh__desc{animation-delay:.22s}
@keyframes pwhIn{from{opacity:0;translate:0 24px}to{opacity:1;translate:0 0}}
@media (prefers-reduced-motion:reduce){.pwh [data-pwh]{animation:none}}
@media (min-width:1500px){
	html .pwh__in{max-width:max(780px,52vw)}
	html .pwh h1.pwh__title{font-size:max(64px,4.267vw)}
	html .pwh p.pwh__desc{max-width:max(560px,37.333vw);font-size:max(16px,1.067vw)}
	html .pwh p.pwh__badge{height:max(34px,2.267vw);padding:0 max(18px,1.2vw);font-size:max(12px,.8vw)}
}

/* v1.32.4: tablet / phone hero drops kept fully in view (the scroll drift moves them up, so the top one starts lower; the bottom one sits further from the edge) */
@media (max-width:1099px){
	.pwh .pld__d--left{top:52px!important}
	.pwh .pld__d--right[data-e="b"]{right:40px}
}

/* v1.32.6: hero drop placement per size - desktop: bottom drop a bit bigger and lower; tablet: bottom drop lower, top drop further right; phone: bottom drop lower */
@media (min-width:1100px){
	.pwh .pld__d--right[data-e="b"]{--pld-w:66px!important;bottom:5.5%!important}
}
@media (max-width:1099px){
	.pwh .pld__d--left{left:40px}
	.pwh .pld__d--right[data-e="b"]{bottom:26px!important}
}
@media (max-width:640px){
	.pwh .pld__d--left{left:14px}
	.pwh .pld__d--right[data-e="b"]{bottom:26px!important}
}

/* v1.32.9: hero photo sits lower so the water wave stays below the text (wave = 57-90% of the photo height) */
@media (min-width:1025px){.pwh::before{background-position:0 0,center 35%;-webkit-mask-image:linear-gradient(to bottom,#000 0,#000 86%,transparent 100%);mask-image:linear-gradient(to bottom,#000 0,#000 86%,transparent 100%)}}
@media (min-width:641px) and (max-width:1024px){.pwh::before{background-position:0 0,center 0}}
/* v1.32.11: phone - photo a little lower (taller photo layer, wave moves down ~35px) */
@media (max-width:640px){.pwh::before{bottom:-28%;background-position:0 0,center 0}}
/* v1.32.14: the drifting pill stays above the heading (same travel as the homepage hero icon box) */
.pwh p.pwh__badge{position:relative;z-index:4}
/* v1.32.15/18: hero description is full width on tablet / phone; desktop gets a (longer) max width */
html .pwh .pwh__in{max-width:none}
html .pwh p.pwh__desc{max-width:none}
@media (min-width:1025px){html .pwh p.pwh__desc{max-width:820px}}
@media (min-width:1500px){html .pwh p.pwh__desc{max-width:max(820px,54.667vw)}}
/* the pill's entrance only fades: a moving entrance leaves its start offset inside the GSAP scroll drift (pill sat 24px low) */
@keyframes pwhFade{from{opacity:0}to{opacity:1}}
.pwh p.pwh__badge[data-pwh]{animation-name:pwhFade}
/* v1.33.1: phone - the white fade at the bottom of the hero is measured on the taller photo layer (hero = 78% of it), so it fades to transparent exactly at the hero's bottom edge again */
@media (max-width:640px){.pwh::before{-webkit-mask-image:linear-gradient(to bottom,#000 0,#000 51.5%,transparent 78.1%);mask-image:linear-gradient(to bottom,#000 0,#000 51.5%,transparent 78.1%)}}

/* v1.34.0: optional heading above the filter chips (small label + H2 + intro) */
.pwx .pwx__head{max-width:760px;margin:0 auto clamp(22px,2.6vw,36px);text-align:center}
.pwx .pwx__head .pas__title{margin-top:12px}
.pwx p.pwx__intro{margin:14px 0 0;font-size:var(--plh-fs-body,16px);font-weight:500;line-height:1.75;color:var(--plh-secondary-soft,#5b6b86)}
@media (min-width:1500px){html .pwx .pwx__head{max-width:max(760px,50.667vw)}html .pwx p.pwx__intro{font-size:max(16px,1.067vw)}}

/* v1.35.18: phone only - "A Look at Our" / "Plumbing Work" on two rows */
@media (max-width:640px){.pwx .pas__title .is-accent{display:block}}
