/* Industries and Locations (approved 24 Nov: B for industries, C for locations). Sits on home-r5.css, services.css and site-pages.css. Nothing hides content until places.js runs. */
.pw { background: #fff; color: #010101; }
.pw :focus-visible { outline: 2px solid #4DA1FF; outline-offset: 3px; }
.pw button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; letter-spacing: inherit; }
.pw .hdr.lt { background: #fff; color: #010101; }
.pw .hdr.lt .hl img { filter: invert(1); }
@media (min-width: 1000px) { .pw-mapped .hdr.lt { background: transparent; } }
.pw .st-hero.mh { display: block; min-height: 0; padding: 0; color: #010101; background: #fff; clip-path: none; }
.pw .st-hero h1 { max-width: none; margin: 0; font-weight: 400; text-wrap: balance; }
.pw .st-hero .pb { min-height: 44px; }

/* B: the client's real site is the hero, and it opens to full width on scroll */
.pw .st-hero.b { padding-top: calc(var(--hh) + clamp(24px, 4vh, 56px)); }
.b-top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gut); align-items: end; padding: 0 var(--gm); }
.pw .b h1 { grid-column: 1 / 9; font-size: clamp(44px, 6.1vw, 118px); line-height: .98; letter-spacing: -.055em; }
.b-s { grid-column: 9 / 13; padding-bottom: .4em; }
.b-s .pb { margin-top: 20px; }
.b-p { position: relative; height: min(88vh, 960px); margin-top: clamp(28px, 4.4vh, 52px); overflow: hidden; background: #111; clip-path: inset(0 calc(var(--gm) * (1 - var(--g, 0))) round 4px); }
.b-g { position: absolute; inset: 0; opacity: 0; background: var(--bg, #111); transition: opacity 1s var(--ease); }
.b-g.on { opacity: 1; }
.b-g img { width: 100%; height: 100%; object-fit: cover; display: block; filter: brightness(.5); }
.b-w { position: absolute; left: 50%; top: 7%; width: min(66%, 1240px); border-radius: 8px; overflow: hidden; background: #fff; opacity: 0; visibility: hidden; transform: translate3d(-50%, 24px, 0); transition: opacity .7s var(--ease), transform .9s var(--ease), visibility 0s .7s; box-shadow: 0 40px 90px -36px rgba(0, 0, 0, .7); }
.b-w.on { opacity: 1; visibility: visible; transform: translate3d(-50%, 0, 0); transition: opacity .7s var(--ease), transform .9s var(--ease); }
.b-w video { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.b-bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: #f6f6f6; border-bottom: 1px solid #ebebeb; color: #6f6f6f; font-size: 12px; }
.b-bar i { width: 8px; height: 8px; border-radius: 50%; background: #d4d4d4; }
.b-bar span { margin: 0 auto; transform: translateX(-18px); }
.b-f { position: absolute; z-index: 2; left: calc(var(--gm) + 24px); right: calc(var(--gm) + 24px); bottom: 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.b-tabs { display: flex; gap: 4px; min-width: 0; padding: 4px; overflow-x: auto; scrollbar-width: none; border-radius: 6px; background: rgba(255, 255, 255, .16); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .24); }
.b-tabs::-webkit-scrollbar { display: none; }
.pw .b-tabs button { flex: none; min-height: 44px; padding: 0 16px; border-radius: 4px; color: #fff; white-space: nowrap; transition: background-color .25s var(--ease), color .25s var(--ease); }
.pw .b-tabs button.on { background: #fff; color: #010101; }
.b-v { flex: none; display: inline-flex; align-items: center; min-height: 44px; color: #fff; text-decoration: underline; text-underline-offset: 4px; }

/* C: the real street map, drawn outward from the client's door */
.m { position: relative; height: 100svh; min-height: 680px; overflow: hidden; background: #fff; }
.m svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.m .sea, .m .lake { fill: #edf1f5; stroke: none; }
.m .riv { fill: none; stroke: #edf1f5; stroke-width: 12; stroke-linecap: round; stroke-linejoin: round; }
.m .r0, .m .r1, .m .pic { fill: none; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.m .r0 { stroke: #cfd4d9; stroke-width: 1; }
.m .r1 { stroke: #aeb4bb; stroke-width: 1.6; }
.m .pic { stroke: #4DA1FF; stroke-width: 3.5; }
.m text { font: 400 15px "Switzer", Arial, sans-serif; fill: #6c7178; paint-order: stroke; stroke: #fff; stroke-width: 5px; stroke-linejoin: round; letter-spacing: -.01em; }
.m text.w { fill: #79848f; stroke: #edf1f5; }
.m text.b { fill: #010101; }
.m .dot { fill: #4DA1FF; stroke: #fff; stroke-width: 3; transition: r .3s var(--ease); }
.m .pin:not(.on) .dot { fill: #010101; }
.m .pulse { fill: #4DA1FF; stroke: none; opacity: 0; transform-box: fill-box; transform-origin: center; }
.m .hit { fill: transparent; stroke: none; cursor: pointer; }
.m-fade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, #fff 18%, rgba(255, 255, 255, .86) 34%, rgba(255, 255, 255, 0) 56%); }
.m-t { position: absolute; z-index: 2; left: var(--gm); bottom: 92px; width: min(41vw, 720px); }
.pw .m h1 { font-size: var(--fs-h1); line-height: 1; letter-spacing: -.05em; }
.m-t p { max-width: 31.25rem; margin-top: clamp(20px, 3vh, 32px); }
.m-t .pb { margin-top: clamp(20px, 3vh, 32px); }
.m-c { position: absolute; z-index: 3; left: var(--px, 62%); top: var(--py, 56%); width: clamp(300px, 21vw, 360px); margin: 22px 0 0 22px; color: #010101; background: #fff; border-radius: 4px; overflow: hidden; box-shadow: 0 24px 60px -24px rgba(1, 1, 1, .42), 0 0 0 1px rgba(1, 1, 1, .06); opacity: 0; visibility: hidden; transform: translate3d(0, 14px, 0); transition: opacity .6s var(--ease), transform .7s var(--ease), visibility 0s .6s; }
.m-c.on { opacity: 1; visibility: visible; transform: none; transition: opacity .6s var(--ease), transform .7s var(--ease); }
.m-c.up { margin-top: 0; transform: translate3d(0, calc(-100% - 22px), 0); }
.m-c.left { margin-left: 0; translate: calc(-100% - 22px) 0; }
.m-c img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 42%; }
.m-c > span { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; }
.m-c b { font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-c small { flex: none; font-size: var(--fs); color: #6c7178; white-space: nowrap; }
@media (hover: hover) { .m-c:hover b { text-decoration: underline; } }
.m-cr { position: absolute; z-index: 2; right: var(--hp); bottom: 8px; display: inline-flex; align-items: center; min-height: 44px; font-size: 12px; color: #6c7178; }
.m a.pl-p text { cursor: pointer; }
@media (hover: hover) { .m a.pl-p:hover text { fill: #010101; } .m a.pl-p:hover .dot { fill: #4DA1FF; } }

/* below the hero: the approved family's type, hairlines and rhythm */
.pw .st-bc { margin-top: 20px; }
.pw .st-art { display: block; }
.pw .st-top { margin: var(--sp-large) var(--gm) 0; }
.pw .st-lead { max-width: calc(.75 * (100 * var(--vw) - 2 * var(--gm))); margin: 0; font-size: var(--fs-h4); line-height: 1.2; letter-spacing: -.05em; text-wrap: pretty; }
.pw .st-s, .pw .st-rel { margin-top: var(--sp-big); }
.pw .st-s > h2, .pw .st-rel > h2 { grid-column: 1 / 7; max-width: 26rem; margin: 0 0 28px; font-size: var(--fs-l); font-weight: 400; line-height: 1.2; letter-spacing: -.05em; text-wrap: balance; }
@media (min-width: 1000px) { .pw .st-s:not(.st-w):not(.st-p) > h2 { position: sticky; top: calc(var(--hh) + 24px); align-self: start; } }
.pw .st-c { grid-column: 7 / -1; max-width: 37rem; }
.pw .st-w > .st-wt, .pw .st-w > p { grid-column: 7 / -1; max-width: 37rem; }
.pw .st-b { margin: 1.4em 0 0; }
.pw .st-b li { padding: 14px 0 16px; border-top: 1px solid rgba(1, 1, 1, .14); }
.pw .st-b li::before { content: none; }
.pw .st-cg { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--gut); margin-top: var(--sp-large); padding: 0; list-style: none; counter-reset: pw; }
.pw .st-cg li { position: relative; min-height: 112px; padding: 16px 12% 30px 3.2rem; border: 0; border-top: 1px solid #010101; border-radius: 0; background: none; box-shadow: none; counter-increment: pw; }
.pw .st-cg li::before { content: counter(pw); position: absolute; left: 0; top: 13px; font-size: var(--fs-l); line-height: 1.2; letter-spacing: -.05em; }
.pw .st-n3 { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gut); margin-top: var(--sp-large); }
.pw .st-n li, .pw .st-n3 li { border-top: 1px solid #010101; }
.pw .st-pull .st-q { grid-column: 1 / -1; max-width: 62rem; margin: 0; font-size: var(--fs-h4); line-height: 1.2; letter-spacing: -.05em; }
.pw .st-cols { grid-column: 7 / -1; max-width: 37rem; column-count: 1; }
.pw .st-cols p { margin: 0 0 1.2em; }
.pw .st-p > h2 { max-width: none; margin-bottom: 40px; }

/* real work: one large piece beside smaller ones, never three equal cards */
.pw .st-pg { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--sp-large) var(--gut); }
.pw .st-pg > li { grid-column: span 5; }
.pw .st-pg > li:nth-child(4n+1) { grid-column: span 7; }
.pw .st-pg > li:nth-child(4n+4) { grid-column: span 7; }
.pw .st-pg > li:only-child { grid-column: 1 / -1; }
.pw .st-pg .sv-im { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 4px; background: #e6e6e6; }
.pw .st-pg .sv-im img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .6s var(--ease); }
@media (hover: hover) { .pw .st-pg a:hover .sv-im img { transform: scale(1.04); } }
.pw .st-pg .cp { display: flex; justify-content: space-between; gap: var(--gut); margin-top: 10px; }
.pw .st-note { color: #5b5b5b; font-size: var(--fs); }

/* client media dropped between sections */
.pw-m { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px var(--gut); margin: var(--sp-large) var(--gm) 0; }
.pw-f { grid-column: 1 / -1; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 4px; background: #e6e6e6; }
.pw-f img, .pw-f video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.pw-f.ph img { object-position: center; }
.pw-m.two .pw-f:nth-of-type(1) { grid-column: 1 / 9; aspect-ratio: 16 / 10; }
.pw-m.two .pw-f:nth-of-type(2) { grid-column: 9 / -1; aspect-ratio: auto; min-height: 100%; }
.pw-m figcaption { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: var(--gut); }
.pw-m figcaption span + span { color: #5b5b5b; text-align: right; }
.pw .pw-band { margin: var(--sp-large) var(--gm) 0; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 4px; background: #e6e6e6; }
.pw .pw-band img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* questions open on click; without the script they all stay open */
.pw .st-f > div { padding: 0; border-top: 1px solid rgba(1, 1, 1, .14); }
.pw .st-f > div:last-child { border-bottom: 1px solid rgba(1, 1, 1, .14); }
.pw .st-f dt { font-size: var(--fs-l); line-height: 1.2; letter-spacing: -.05em; }
.pw .st-f dt button { position: relative; display: block; width: 100%; min-height: 64px; padding: 18px 44px 18px 0; text-align: left; letter-spacing: inherit; }
.pw .st-f dt button::after { content: "+"; position: absolute; right: 2px; top: 16px; transition: transform .35s var(--ease); }
.pw .st-f .open dt button::after { transform: rotate(45deg); }
.pw .st-f dd { margin: 0 0 22px; }
.pw-js .pw .st-f div:not(.open) dd { display: none; }
.pw .st-rl a.st-r { padding: 16px 1.6em 18px 0; border-top-color: rgba(1, 1, 1, .14); }
.pw .st-r .n { font-size: var(--fs-l); line-height: 1.2; letter-spacing: -.05em; }
.pw .st-r .d { margin-top: 3px; color: #5b5b5b; font-size: var(--fs); }
.pw a.st-r::after { transition: transform .3s var(--ease); }
@media (hover: hover) { .pw a.st-r:hover::after { transform: translateX(4px); } }

/* motion: only once the script has said it is running */
@media (prefers-reduced-motion: no-preference) {
  .pw-js .pw-r { opacity: 0; transform: translate3d(0, 36px, 0); }
  .pw-js .pw-r.in { opacity: 1; transform: none; transition: opacity .9s var(--ease), transform 1.1s var(--ease); }
  .pw-js .rise { opacity: 0; transform: translate3d(0, 24px, 0); }
  .pw-js .pw-on .rise { opacity: 1; transform: none; transition: opacity .9s var(--ease) var(--d, .2s), transform .9s var(--ease) var(--d, .2s); }
  .pw-js .m .lines { clip-path: circle(0 at var(--cx) var(--cy)); }
  .pw-js .m.go .lines { clip-path: circle(2400px at var(--cx) var(--cy)); transition: clip-path 2.4s cubic-bezier(.3, .1, .3, 1); }
  .pw-js .m .pic { stroke-dasharray: 1; stroke-dashoffset: 1; }
  .pw-js .m.go .pic { stroke-dashoffset: 0; transition: stroke-dashoffset 1.3s var(--ease) .55s; }
  .pw-js .m text { opacity: 0; }
  .pw-js .m.go text { opacity: 1; transition: opacity .8s var(--ease) 1.1s; }
  .pw-js .m .dot { transform-box: fill-box; transform-origin: center; transform: scale(0); }
  .pw-js .m.go .dot { transform: none; transition: transform .6s cubic-bezier(.3, 1.5, .5, 1) .25s; }
  .m.go .pin.on .pulse { animation: mp 3.2s var(--ease) 1.2s infinite; }
  .pw-js .m:not(.go) .m-c { opacity: 0; }
}
@keyframes mp { 0% { opacity: .42; transform: scale(.4); } 70%, 100% { opacity: 0; transform: scale(3.4); } }

@media (max-width: 999px) {
  .pw .b h1, .b-s { grid-column: 1 / -1; }
  .b-s { margin-top: 18px; }
  .m-fade { background: linear-gradient(0deg, #fff 34%, rgba(255, 255, 255, .92) 44%, rgba(255, 255, 255, 0) 56%); }
  .m-t { width: calc(100% - 2 * var(--gm)); bottom: 122px; }
  .pw-pins .m-t { bottom: 128px; }
  .m:not(.has-pins) .m-t { bottom: 66px; }
  .m-c { left: var(--gm) !important; right: var(--gm); top: auto !important; bottom: 58px; width: auto; margin: 0; translate: none !important; }
  .m-c.up { transform: none; }
  .m-c img { display: none; }
  .m-c > span { align-items: center; min-height: 48px; padding: 8px 12px; }
  .m-cr { right: auto; left: var(--gm); bottom: 6px; }
  .pw .st-s > h2, .pw .st-rel > h2, .pw .st-c, .pw .st-w > .st-wt, .pw .st-w > p, .pw .st-cols { grid-column: 1 / -1; max-width: none; }
  .pw .st-s, .pw .st-rel { margin-top: var(--sp-big); }
}
@media (max-width: 699px) {
  .b-p { height: 74svh; }
  .b-w { width: 88%; top: 6%; }
  .b-f { left: 22px; right: 22px; bottom: 12px; display: block; }
  .b-v { margin-top: 4px; }
  .pw .st-cg, .pw .st-n3 { grid-template-columns: 1fr; }
  .pw .st-pg > li:nth-child(n) { grid-column: 1 / -1; }
  .pw-m.two .pw-f:nth-of-type(n) { grid-column: 1 / -1; aspect-ratio: 16 / 10; min-height: 0; }
  .pw-m figcaption { display: block; }
  .pw-m figcaption span { display: block; }
  .pw-m figcaption span + span { text-align: left; }
  .pw .st-pg .cp { flex-direction: column; gap: 2px; }
  .pw .st-cg li { min-height: 0; padding-right: 0; }
}
