/* Challenge Plumbing redesign. Geist Sans for everything, Geist Mono for labels, numbers and data.
   Black and white only, square corners (Guido 11-23). Containers centered; section heads, page heads, hero and call band
   centered; cards, tables, lists, forms and body text left-aligned. */
:root {
  --bg: #ffffff;
  --bg-2: #f3f3f3;
  --ink: #0c0c0c;
  --ink-2: #5c5c5c;
  --line: #e2e2e2;
  --line-2: #cfcfcf;
  --wrap: 1440px;
  --pad: clamp(16px, 4vw, 48px);
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ease: cubic-bezier(.23, 1, .32, 1);
  --top: 72px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; scroll-padding-top: calc(var(--top) + 16px); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.55 var(--sans); font-feature-settings: "kern" 1; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3 { margin: 0; font-weight: 650; text-wrap: balance; }
h1 { font-size: clamp(42px, 6.2vw, 88px); line-height: .98; letter-spacing: -.045em; }
h2 { font-size: clamp(28px, 3.2vw, 44px); line-height: 1.05; letter-spacing: -.035em; }
h3 { font-size: 18px; line-height: 1.3; letter-spacing: -.015em; }
p { margin: 0; text-wrap: pretty; }
p + p { margin-top: .75em; }
.mono { font-family: var(--mono); font-size: 13px; line-height: 1.5; letter-spacing: 0; }
.muted { color: var(--ink-2); }
.small { font-size: 14px; }
.nowrap { white-space: nowrap; }
.gap { margin-top: 16px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: #fff; padding: 10px 14px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.hero :focus-visible, .band--cta :focus-visible { outline-color: #fff; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }

/* icons: 16px glyph; tiles 32px */
.ico { display: inline-flex; flex: none; width: 16px; height: 16px; }
.ico svg { width: 16px; height: 16px; }
.ico--tile { width: 32px; height: 32px; align-items: center; justify-content: center; background: var(--bg-2); color: var(--ink); }

/* buttons: square, black and white */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border: 1px solid transparent;
  font: 550 15px/1 var(--sans); letter-spacing: -.01em; text-decoration: none; white-space: nowrap; cursor: pointer; user-select: none; touch-action: manipulation;
  transition: background-color .15s, border-color .15s, color .15s, transform .12s var(--ease); }
.btn:active { transform: scale(.97); }
.btn--solid { background: var(--ink); color: #fff; }
.btn--line { background: var(--bg); color: var(--ink); border-color: var(--ink); }
.btn--light { background: #fff; color: var(--ink); }
.btn--ghost { background: transparent; color: #fff; border-color: rgb(255 255 255 / .7); }
@media (hover: hover) and (pointer: fine) {
  .btn--solid:hover { background: #333; }
  .btn--line:hover { background: var(--ink); color: #fff; }
  .btn--light:hover { background: #e4e4e4; }
  .btn--ghost:hover { background: rgb(255 255 255 / .14); border-color: #fff; }
}

/* header: nav left, stacked wordmark centered, actions right */
.top { position: sticky; top: 0; z-index: 30; background: var(--bg); border-bottom: 1px solid var(--line); }
.top__in { display: grid; grid-template-columns: 1fr auto 1fr; grid-template-areas: "nav brand act"; align-items: center; gap: 24px; height: var(--top); }
.brand { grid-area: brand; display: grid; justify-items: center; font: 900 20px/.88 var(--sans); letter-spacing: -.02em; text-decoration: none; white-space: nowrap; }
.nav { grid-area: nav; justify-self: start; display: flex; gap: 2px; margin-left: -12px; }
.nav a { padding: 8px 12px; font-size: 15px; color: var(--ink-2); text-decoration: none; }
.nav a[aria-current] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--ink); }
@media (hover: hover) and (pointer: fine) { .nav a:hover { color: var(--ink); } }
.top__act { grid-area: act; justify-self: end; display: flex; gap: 8px; }
.top__act .btn { min-height: 38px; padding: 0 14px; font-size: 14px; }
.burger { display: none; align-items: center; gap: 8px; min-height: 44px; padding: 0; border: 0; background: none; color: var(--ink); font: 550 15px/1 var(--sans); cursor: pointer; }
.top__call { display: none; grid-area: nav; justify-self: start; align-items: center; gap: 8px; min-height: 44px; font: 550 15px/1 var(--sans); text-decoration: none; touch-action: manipulation; }
.menu { border-top: 1px solid var(--line); background: var(--bg); }
.menu .wrap { display: grid; padding-top: 12px; padding-bottom: 20px; }
.menu .wrap > a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 20px; font-weight: 550; letter-spacing: -.02em; text-decoration: none; }
.menu__act { display: grid; gap: 10px; margin-top: 18px; }
.burger .ico--x, .burger[aria-expanded="true"] .ico--menu { display: none; }
.burger[aria-expanded="true"] .ico--x { display: inline-flex; }
/* below 1100: Call left, wordmark centered, Menu right */
@media (max-width: 1100px) {
  .nav, .top__phone, .top__req { display: none; }
  .burger, .top__call { display: inline-flex; }
}
@media (max-width: 720px) { .brand { font-size: 17px; } }
@media (min-width: 1101px) { .menu { display: none; } }

/* layout */
.band { padding: clamp(56px, 8vw, 112px) 0; }
.band--alt { background: var(--bg-2); }
.shead { display: flex; flex-direction: column; align-items: center; gap: 20px; margin-bottom: 40px; text-align: center; }
.shead p { margin: 12px auto 0; max-width: 60ch; color: var(--ink-2); font-size: 17px; }
.grid { display: grid; gap: 16px; grid-auto-rows: 1fr; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.split { grid-auto-rows: auto; }
@media (max-width: 1100px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } .grid { grid-auto-rows: auto; } }

/* cards: square, text left */
.card { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 28px 24px; background: #fff; border: 1px solid var(--line); text-decoration: none; }
.card p { color: var(--ink-2); }
.card__more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 6px; font-weight: 550; font-size: 15px; color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
a.card__more::after { content: ""; position: absolute; inset: 0; }
.card:has(a.card__more) { transition: border-color .15s; }
@media (hover: hover) and (pointer: fine) { .card:has(a.card__more):hover, a.card:hover { border-color: var(--ink); } }

/* hero: 50/50 split (Guido 11-24): text left on black, their group photo right, 4 info cards in a row below, all inside the first screen */
.hero { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto; min-height: calc(100svh - var(--top)); background: var(--bg); color: #fff; }
.hero__media { grid-area: 1 / 2; position: relative; margin: 0; overflow: hidden; }
.hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hero__text { grid-area: 1 / 1; display: flex; flex-direction: column; justify-content: center; background: var(--ink); padding: clamp(40px, 7vh, 96px) clamp(32px, 4vw, 72px) clamp(40px, 7vh, 96px) max(var(--pad), calc((100vw - var(--wrap)) / 2 + var(--pad))); }
.hero h1 { font-size: clamp(44px, min(5vw, 10vh), 92px); line-height: .94; letter-spacing: -.045em; font-weight: 700; max-width: 11ch; }
.hero .lede { margin-top: 24px; max-width: 42ch; color: #d6d6d6; font-size: clamp(18px, 1.4vw, 20px); line-height: 1.45; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
@media (max-width: 720px) { .hero__actions .btn { flex: 1 1 100%; } }
.hero__note { margin-top: 18px; color: #c2c2c2; }
.hero__cards { grid-area: 2 / 1 / 3 / 3; width: 100%; padding-top: clamp(16px, 3vh, 32px); padding-bottom: clamp(16px, 3vh, 32px); }
.info { color: var(--ink); }
.info h3 { font-size: 17px; }
.info p { font-size: 15px; line-height: 1.45; }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; grid-template-rows: auto; min-height: 0; }
  .hero__media { grid-area: 1 / 1; aspect-ratio: 4 / 3; }
  .hero__text { grid-area: 2 / 1; background: var(--ink); padding: 48px var(--pad) 56px; }
  .hero h1 { font-size: clamp(44px, 11vw, 72px); }
  .hero__cards { grid-area: 3 / 1; padding-top: 16px; padding-bottom: 0; }
}

/* page heads */
.phead { padding: clamp(40px, 6vw, 88px) 0 clamp(32px, 4vw, 56px); border-bottom: 1px solid var(--line); text-align: center; }
.phead h1 { font-size: clamp(40px, 5.4vw, 76px); max-width: 16ch; margin: 0 auto; }
.phead .lede { margin: 20px auto 0; max-width: 56ch; font-size: clamp(18px, 1.5vw, 21px); color: var(--ink-2); }
.crumbs { display: flex; justify-content: center; gap: 8px; margin-bottom: 20px; color: var(--ink-2); }
.crumbs a { text-decoration: none; }

/* services, stats, divisions */
.svc h3 { font-size: 17px; }
.card .stat__n { display: flex; align-items: baseline; gap: 10px; font-size: clamp(48px, 5vw, 72px); font-weight: 500; line-height: 1; letter-spacing: -.04em; color: var(--ink); }
.stat__n span { font-size: 15px; letter-spacing: 0; color: var(--ink-2); }
.stat h3 { margin-top: 12px; }
.div { padding: 0; overflow: hidden; }
.div img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.div__body { padding: 28px 28px 32px; }
.div__body h3 { font-size: 22px; margin-bottom: 10px; }

/* letters */
.quote { margin: 0; }
.quote blockquote { margin: 0; }
.quote blockquote p { color: var(--ink); font-size: 18px; line-height: 1.45; letter-spacing: -.01em; }
.quote figcaption { display: grid; gap: 2px; margin-top: 6px; font-size: 15px; }
.quote figcaption span { color: var(--ink-2); }

/* ruled tables */
.ruled { width: 100%; border-collapse: collapse; }
.ruled th, .ruled td { padding: 14px 16px 14px 0; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.ruled tr:last-child th, .ruled tr:last-child td { border-bottom: 1px solid var(--line); }
.ruled th { width: 32%; font-weight: 550; }
.ruled td { color: var(--ink-2); }
.ruled thead th { font: 500 13px/1.4 var(--mono); color: var(--ink-2); border-top: 0; }
.creds { grid-auto-rows: auto; align-items: start; gap: clamp(24px, 4vw, 56px); }
.creds h2 + p { margin-top: 14px; }
.creds p + p { margin-top: 24px; }
.rights th { width: 56px; color: var(--ink-2); }
.cmp th { width: 16%; }
.cmp td { width: 42%; }
.cmp td:last-child { color: var(--ink); }

/* call band: black, one centered column */
.band--cta { background: var(--ink); color: #fff; }
.ctabox { display: grid; justify-items: center; gap: 40px; text-align: center; }
.ctabox__offices .card { text-align: left; }
.ctabox p { margin: 14px auto 0; max-width: 46ch; color: #c4c4c4; font-size: 17px; }
.ctabox__offices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: min(760px, 100%); }
.band--cta .card { background: #161616; border-color: #2e2e2e; color: #fff; }
.band--cta .card .muted { color: #a3a3a3; }
.band--cta .card__more { color: #fff; }
@media (hover: hover) and (pointer: fine) { .band--cta a.card:hover { border-color: #fff; } }
.office { gap: 6px; }
@media (max-width: 720px) { .ctabox__offices { grid-template-columns: 1fr; } }

/* our jobs */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-flow: dense; gap: 12px; }
.shot:nth-child(1), .shot:nth-child(11) { grid-column: span 2; grid-row: span 2; }
.shot { padding: 0; border: 0; overflow: hidden; background: var(--bg-2); cursor: zoom-in; aspect-ratio: 4 / 3; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
@media (hover: hover) and (pointer: fine) { .shot:hover img { transform: scale(1.03); } }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
.lightbox { padding: 0; border: 0; background: transparent; max-width: min(1200px, 94vw); }
.lightbox::backdrop { background: rgb(0 0 0 / .86); }
.lightbox img { max-height: 82vh; width: auto; }
.lightbox form { display: flex; justify-content: center; margin-top: 12px; }
.tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 16px; }
.field--search { flex: 1 1 260px; }
.tools input, .tools select, .form input, .form select, .form textarea { width: 100%; min-height: 44px; padding: 10px 14px; border: 1px solid var(--line-2); border-radius: 0; background: #fff; color: var(--ink); font: 16px/1.4 var(--sans); text-align: left; }
.tools input:focus, .tools select:focus, .form input:focus, .form select:focus, .form textarea:focus { border-color: var(--ink); }
.tools select { width: auto; padding-right: 32px; }
.tools__count { margin-left: auto; color: var(--ink-2); }
.tablewrap { overflow-x: auto; border: 1px solid var(--line); background: #fff; }
.jobs { width: 100%; border-collapse: collapse; font-size: 15px; }
.jobs th, .jobs td { padding: 14px 16px; text-align: left; vertical-align: top; border-top: 1px solid var(--line); }
.jobs thead th { position: sticky; top: 0; background: #fff; border-top: 0; font: 500 13px/1.4 var(--mono); color: var(--ink-2); }
.jobs td:nth-child(3), .jobs td:nth-child(7) { color: var(--ink-2); }
.num { text-align: right !important; white-space: nowrap; }
.tag { display: inline-block; margin-left: 8px; padding: 1px 7px; border: 1px solid var(--ink); color: var(--ink); font: 500 12px/1.5 var(--mono); vertical-align: 1px; }
.tablewrap + .small { margin-top: 16px; max-width: 80ch; }
@media (max-width: 900px) {
  .tablewrap { border: 0; background: none; overflow: visible; }
  .jobs thead { display: none; }
  .jobs, .jobs tbody { display: grid; gap: 12px; }
  .jobs tr { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; padding: 20px 18px; background: #fff; border: 1px solid var(--line); }
  .jobs td { padding: 0; border: 0; }
  .jobs td:first-child, .jobs td:nth-child(2), .jobs td:nth-child(3) { grid-column: 1 / -1; }
  .jobs td:nth-child(n+4)::before { content: attr(data-l); display: block; font: 500 12px/1.5 var(--mono); color: var(--ink-2); }
  .jobs .num { text-align: left !important; }
  .tools select { flex: 1 1 140px; }
  .field--search { flex: 1 1 100%; }
}

/* about */
.about { align-items: center; gap: clamp(24px, 4vw, 64px); }
.photo { margin: 0; overflow: hidden; }
.creds__photo { margin-top: 32px; }
.creds__photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.pull { margin: 0 0 24px; }
.prose .pull p { font-size: clamp(24px, 2.4vw, 34px); line-height: 1.15; letter-spacing: -.03em; font-weight: 600; }
.pull cite { display: block; margin-top: 10px; font-style: normal; }
.prose p { font-size: 17px; max-width: 60ch; }

/* faq + article */
.faqwrap, .article { max-width: 820px; margin: 0 auto; }
.qa { border-top: 1px solid var(--line); }
.qa:last-child { border-bottom: 1px solid var(--line); }
.qa summary { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 20px 0; font-size: 18px; font-weight: 550; letter-spacing: -.01em; cursor: pointer; list-style: none; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary .ico { margin-top: 5px; transition: transform .2s var(--ease); }
.qa[open] summary .ico { transform: scaleY(-1); }
.qa p { padding: 0 0 22px; max-width: 64ch; color: var(--ink-2); font-size: 17px; }
.article h2 { font-size: clamp(24px, 2.4vw, 32px); margin: 56px 0 16px; }
.article h2:first-child { margin-top: 0; }
.article > p { font-size: 17px; max-width: 66ch; }
.article .ruled { margin: 8px 0 20px; }

/* contact */
.chan b, .office b { font-size: 18px; font-weight: 550; letter-spacing: -.01em; overflow-wrap: anywhere; }
.chan .mono, .office .mono { margin-top: 6px; }
.offices { margin-top: 16px; }
.form { gap: 0; padding: clamp(24px, 3vw, 36px); align-items: stretch; }
.form h2 { font-size: 30px; }
.form > .muted { margin: 8px 0 24px; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px; }
.field label { display: block; margin-bottom: 6px; font-weight: 550; font-size: 15px; }
.field--full { grid-column: 1 / -1; }
.form textarea { resize: vertical; }
.form [aria-invalid="true"] { border-color: #b42318; }
.err { min-height: 0; margin-top: 4px; color: #b42318; font-size: 14px; }
.err:empty { display: none; }
.form .btn { align-self: flex-start; }
.form__done { display: flex; gap: 14px; margin-top: 20px; padding: 16px; background: var(--bg-2); }
.form__done p { color: var(--ink-2); }
.form.is-sent .form__grid, .form.is-sent > .btn { display: none; }
.side { gap: 0; align-self: start; padding: clamp(24px, 3vw, 36px); align-items: stretch; }
.side h2 { font-size: 30px; margin-bottom: 20px; }
@media (max-width: 720px) { .form__grid { grid-template-columns: 1fr; } }

/* footer */
.foot { padding: 64px 0 24px; border-top: 1px solid var(--line); }
.foot__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; font-size: 15px; }
.foot__grid .mono { margin-bottom: 8px; }
.foot__grid a { text-decoration: none; }
.foot__links { display: grid; gap: 4px; }
.foot__base { margin-top: 56px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--ink-2); }
@media (max-width: 1100px) { .foot__grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .foot__grid { grid-template-columns: 1fr 1fr; } .foot { padding-bottom: 96px; } }

/* phone dock: mobile only; on the homepage it waits until the hero buttons have scrolled away */
.dock { display: none; }
@media (max-width: 720px) {
  .dock { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 25; display: grid; grid-template-columns: 1fr 1.6fr; gap: 8px;
    padding: 8px; background: #fff; border: 1px solid var(--ink); box-shadow: 0 8px 30px rgb(0 0 0 / .14);
    transition: transform .3s var(--ease), opacity .2s; }
  .dock--wait { transform: translateY(140%); opacity: 0; pointer-events: none; }
}

/* fade-up once on scroll */
.js [data-in] { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: calc(var(--i, 0) * 50ms); }
.js [data-in].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .01ms !important; } }

/* short laptop screens: keep the 4 info cards inside the first screen */
@media (max-height: 820px) and (min-width: 901px) {
  .hero h1 { font-size: clamp(44px, min(5vw, 8.4vh), 92px); }
  .hero__text { padding-top: 28px; padding-bottom: 28px; }
  .hero .lede { margin-top: 18px; }
  .hero__actions { margin-top: 24px; }
  .infos .card { padding: 18px 20px; gap: 6px; }
}
