/* Combined Plumbing Group — site styles. Colours measured from their logo. */
:root {
  --paper: #ffffff;
  --paper-2: #f4f7f9;
  --paper-3: #e9eff3;
  --ink: #0d1a25;
  --ink-2: #44566a;
  --navy: #003b66;
  --navy-2: #00456c;
  --navy-deep: #00253f;
  --sky: #4caecf;
  --sky-ink: #19698a;
  --orange: #e89838;
  --steel: #849daa;
  --rule: #d6e0e7;
  --sans: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --head-h: 64px;
  --gutter: 16px;
  --max: 1180px;
  --radius: 18px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + 12px); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  text-rendering: optimizeLegibility; overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--navy); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--sky-ink); }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { color: var(--navy); line-height: 1.08; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 650; text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 9.2vw, 4.4rem); }
h2 { font-size: clamp(1.75rem, 6.4vw, 2.9rem); }
h3 { font-size: 1.25rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; text-wrap: pretty; }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 38ch; }
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Skip link */
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 10px; color: #fff; }

/* The motif: the three rising bars from their logo (orange, sky, steel) */
.bars { display: inline-flex; align-items: flex-end; gap: 2px; height: .8em; margin-right: .55em; vertical-align: -.02em; }
.bars i { display: block; width: 3px; background: var(--orange); height: 62%; }
.bars i:nth-child(2) { background: var(--sky); height: 100%; }
.bars i:nth-child(3) { background: var(--steel); height: 78%; }

/* Mono labels and small print */
.label { font: 500 .75rem/1.3 var(--mono); letter-spacing: .09em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 1rem; display: flex; align-items: center; flex-wrap: wrap; }
.mono { font-family: var(--mono); }
.small { font-size: .875rem; color: var(--ink-2); }

/* Buttons are pipe couplings: a band at each end */
.btn {
  --b: var(--navy); --t: #fff;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 52px; padding: 0 26px; border: 0; border-radius: 999px; background: var(--b); color: var(--t);
  font: 600 1rem/1 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease), background-color .25s;
}
.btn::before, .btn::after { content: ""; position: absolute; top: 9px; bottom: 9px; width: 3px; border-radius: 2px; background: var(--orange); opacity: .95; }
.btn::before { left: 11px; }
.btn::after { right: 11px; }
.btn:hover { color: var(--t); background: var(--navy-2); transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn.ghost { --b: transparent; --t: var(--navy); box-shadow: inset 0 0 0 1.5px var(--navy); }
.btn.ghost:hover { background: var(--paper-2); }
.btn.ghost::before, .btn.ghost::after { background: var(--sky); }
.btn.light { --b: #fff; --t: var(--navy); }
.btn.light:hover { background: #eaf3f8; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; }

/* Header */
.head { position: sticky; top: 0; z-index: 40; height: var(--head-h); background: rgba(255,255,255,.9); -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: height .3s var(--ease), border-color .3s, transform .35s var(--ease); }
.head .wrap { height: 100%; display: flex; align-items: center; gap: 18px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand img { height: 40px; width: auto; transition: height .3s var(--ease); }
html[data-scrolled] .head { border-color: var(--rule); }
html[data-scrolled] .brand img { height: 34px; }
.head-phone { font: 600 .95rem/1 var(--mono); color: var(--navy); text-decoration: none; display: none; white-space: nowrap; }
.head .btn { min-height: 42px; padding: 0 20px; font-size: .9rem; display: none; }
.menu-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 14px; border: 1.5px solid var(--rule); background: #fff; border-radius: 999px; font: 500 .8rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--navy); cursor: pointer; }
.menu-btn span { display: block; width: 16px; height: 2px; background: currentColor; box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor; }
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav a { text-decoration: none; color: var(--ink); }
.nav a[aria-current="page"] { color: var(--navy); font-weight: 600; }
/* Phone: the menu drops down under the header */
.nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--rule); box-shadow: 0 20px 40px -20px rgba(0,37,63,.25); }
.nav ul { width: min(100% - 32px, var(--max)); margin: 0 auto; padding: 8px 0 16px; }
.nav li a { display: flex; align-items: center; min-height: 48px; border-bottom: 1px solid var(--paper-3); font-size: 1.05rem; }
.js .nav { display: none; }
.js .nav.open { display: block; animation: drop .3s var(--ease); }
html:not(.js) .menu-btn { display: none; }
html:not(.js) .nav { position: static; box-shadow: none; border: 0; }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } }
@media (min-width: 980px) {
  .menu-btn { display: none; }
  .nav, .js .nav { display: block; position: static; background: none; border: 0; box-shadow: none; }
  .nav ul { display: flex; gap: 22px; width: auto; padding: 0; }
  .nav li a { min-height: 0; border: 0; font-size: .95rem; }
  .nav li a:hover { color: var(--sky-ink); }
  .head-phone, .head .btn { display: inline-flex; }
  .brand { margin-right: 18px; }
  .nav { margin-right: auto; }
}

/* Bottom phone bar (phones): the number never leaves the screen */
.callbar { position: fixed; z-index: 45; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); display: flex; gap: 8px; padding: 8px; border-radius: 999px; background: rgba(255,255,255,.94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 10px 30px -8px rgba(0,37,63,.35), 0 0 0 1px rgba(0,59,102,.08); transition: gap .3s var(--ease); }
.callbar .btn { flex: 1 1 auto; min-height: 50px; padding: 0 18px; font-size: .95rem; }
.callbar .btn.ghost { flex: 0 1 auto; transition: max-width .35s var(--ease), padding .35s var(--ease), opacity .25s; max-width: 220px; overflow: hidden; }
html[data-dir="down"] .callbar .btn.ghost { max-width: 0; padding: 0; opacity: 0; }
html[data-dir="down"] .callbar { gap: 0; }
.callbar .num { font-family: var(--mono); font-weight: 600; letter-spacing: .01em; }
@media (min-width: 980px) { .callbar { display: none; } }

/* Sections and the deck of cards (home) */
.section { padding: 72px 0; }
.deck { padding: 8px 0 40px; }
.card {
  position: relative; background: var(--paper); border-radius: var(--radius);
  margin: 0 8px 14px; padding: 36px 0 40px;
  box-shadow: 0 1px 0 rgba(0,37,63,.06), 0 18px 40px -26px rgba(0,37,63,.35);
  border: 1px solid var(--paper-3);
  transform-origin: 50% 0;
}
.card.tint { background: var(--paper-2); }
.card.navy { background: var(--navy); border-color: var(--navy); color: #eaf2f7; }
.card.navy h2, .card.navy h3 { color: #fff; }
.card.navy .label { color: #a9c6d8; }
.card.navy a:not(.btn) { color: #fff; }
.card > .wrap { width: min(100% - 2 * 20px, var(--max)); }
.card-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.card-head h2 { margin: 0; }
.more { font: 500 .8rem/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.more::after { content: "→"; transition: transform .25s var(--ease); }
.more:hover::after { transform: translateX(4px); }
@media (min-width: 760px) {
  .card { margin: 0 20px 20px; padding: 56px 0 60px; }
}

/* Cards settle as they arrive, and sink back as the next one covers them */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .deck .card { animation: settle linear both, sink linear both; animation-timeline: view(), view(); animation-range: entry 0% entry 55%, exit 0% exit 100%; }
    @keyframes settle { from { transform: translateY(46px) scale(.97); opacity: .3; } to { transform: none; opacity: 1; } }
    @keyframes sink { to { transform: scale(.94); opacity: .55; filter: saturate(.6); } }
    .deck .card.hero-card { animation: sink linear both; animation-timeline: view(); animation-range: exit 0% exit 100%; }
  }
}

/* Arrivals for everything else */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js [data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js [data-reveal] { opacity: 1; transform: none; transition: none; } }

/* HERO */
.hero-card { padding-top: 28px; }
.hero-grid { display: grid; gap: 26px; }
.hero h1 { margin-bottom: .32em; }
.hero h1 em { font-style: normal; color: var(--sky-ink); }
.hero .who { font-size: 1.08rem; color: var(--ink-2); margin-bottom: 18px; max-width: 34ch; }
.hero .who strong { color: var(--ink); font-weight: 600; }
.run { width: 100%; max-width: 460px; height: auto; margin: 0 0 6px; overflow: visible; }
.hero-photo { position: relative; margin: 0; border-radius: 14px; overflow: hidden; background: var(--paper-3); aspect-ratio: 880 / 748; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo figcaption { position: absolute; left: 10px; bottom: 10px; background: rgba(255,255,255,.92); color: var(--ink); font: 500 .7rem/1.2 var(--mono); letter-spacing: .07em; text-transform: uppercase; padding: 7px 10px; border-radius: 6px; }
.facts { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 18px 0 0; padding: 0; list-style: none; font: 500 .78rem/1.4 var(--mono); color: var(--ink-2); letter-spacing: .03em; }
.facts li { display: flex; align-items: center; }
@media (prefers-reduced-motion: no-preference) {
  .hero-photo img { animation: drift 24s ease-in-out infinite alternate; }
  @keyframes drift { from { transform: scale(1.04) translate(0, 0); } to { transform: scale(1.1) translate(-1.5%, -1%); } }
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.05fr .95fr; align-items: center; gap: 48px; }
  .hero-card { padding: 56px 0 64px; }
}

/* The fitting run in the hero (pipe lengths slide together) */
.run .seg { transform-box: fill-box; }
@media (prefers-reduced-motion: no-preference) {
  .run .seg { animation: fit .7s var(--ease) both; }
  .run .s1 { animation-delay: .15s; } .run .s2 { animation-delay: .35s; } .run .s3 { animation-delay: .55s; }
  .run .s4 { animation-delay: .75s; } .run .s5 { animation-delay: .95s; }
  .run .cpl { animation: pop .45s var(--ease) both; transform-box: fill-box; transform-origin: center; }
  .run .c1 { animation-delay: .6s; } .run .c2 { animation-delay: .8s; } .run .c3 { animation-delay: 1s; } .run .c4 { animation-delay: 1.2s; }
  .run .flow { stroke-dasharray: 14 220; animation: flow 2.6s 1.5s ease-in-out both; }
  @keyframes fit { from { transform: translateX(-36px); opacity: 0; } }
  @keyframes pop { from { transform: scaleY(.2); opacity: 0; } }
  @keyframes flow { from { stroke-dashoffset: 240; opacity: 1; } 90% { opacity: 1; } to { stroke-dashoffset: -10; opacity: 0; } }
}
@media (prefers-reduced-motion: reduce) { .run .flow { display: none; } }

/* Swipe rows (projects, gallery) */
.row { display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 20px 14px; margin: 0 -20px; scrollbar-width: thin; scroll-padding-inline: 20px; overscroll-behavior-x: contain; }
.row > * { scroll-snap-align: start; }
@media (min-width: 640px) { .row { grid-auto-columns: 44%; } }
@media (min-width: 1000px) { .row { grid-auto-columns: calc((100% - 36px) / 4); margin: 0; padding: 2px 0 14px; } }
.proj { display: flex; flex-direction: column; text-decoration: none; color: inherit; border-radius: 14px; overflow: hidden; background: #fff; border: 1px solid var(--paper-3); min-height: 100%; }
.proj .ph { aspect-ratio: 4 / 3; background: var(--paper-3); overflow: hidden; }
.proj .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.proj:hover .ph img { transform: scale(1.04); }
.proj .tx { padding: 14px 16px 16px; display: grid; gap: 4px; }
.proj h3 { font-size: 1.08rem; margin: 0; color: var(--navy); }
.proj .meta { font: 500 .72rem/1.45 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); }
.proj .meta b { color: var(--ink); font-weight: 600; }
.tag { display: inline-block; font: 600 .68rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: 5px 7px; border-radius: 5px; background: var(--paper-2); color: var(--navy); }
.tag.live { background: #fdf1e2; color: #8a4b05; }
.ph.drawn { display: grid; place-items: center; background: var(--paper-2); }
.ph.drawn svg { width: 86%; height: auto; }

/* Services tabs */
.tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 18px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--rule); background: #fff; color: var(--ink); font: 500 .9rem/1 var(--sans); cursor: pointer; transition: background .25s, color .25s, border-color .25s; }
.tab[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.tab[aria-selected="true"] .bars { display: inline-flex; }
.tab .bars { display: none; }
.panel { display: grid; gap: 18px; }
.panel[hidden] { display: none; }
.panel .ph { border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--paper-3); }
.panel .ph img { width: 100%; height: 100%; object-fit: cover; }
.panel ul { margin: 0 0 16px; padding: 0; list-style: none; display: grid; gap: 6px; }
.panel li { display: flex; align-items: baseline; gap: 10px; }
.panel li::before { content: ""; flex: none; width: 10px; height: 2px; background: var(--orange); transform: translateY(-4px); }
.js .panel:not([data-active]) { display: none; }
@media (prefers-reduced-motion: no-preference) { .js .panel[data-active] { animation: fade .45s var(--ease); } @keyframes fade { from { opacity: 0; transform: translateY(8px); } } }
@media (min-width: 820px) { .panel { grid-template-columns: 1fr 1fr; align-items: center; gap: 40px; } }
html:not(.js) .tabs { display: none; }
html:not(.js) .panel + .panel { margin-top: 28px; }

/* Map: a narrow strip of coast beside the list on a phone */
.map-grid { display: grid; grid-template-columns: minmax(104px, 34%) 1fr; gap: 14px; align-items: start; }
.map { width: 100%; max-width: 250px; margin: 0 auto; }
.map text { font-family: var(--mono); fill: var(--navy); }
.map .map-lab { font-size: 7.4px; font-weight: 600; letter-spacing: .05em; paint-order: stroke; stroke: #fff; stroke-width: 3px; }
.map .map-sea { font-size: 6.5px; letter-spacing: .5em; fill: var(--ink-2); }
.map .map-n text { font-size: 8px; font-weight: 600; }
.map-grid h2 { font-size: clamp(1.6rem, 6vw, 2.9rem); }
.map-grid .places { margin-left: -14px; }
@media (max-width: 420px) { .map-grid .places .jobs { font-size: .84rem; } .map-grid .places button { padding: 10px 12px; } }
.proj .h3 { font-size: 1.3rem; margin: 0 0 .3em; }
.team-ph { border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 3; }
.team-ph img { width: 100%; height: 100%; object-fit: cover; }
.cta-band .lines { margin: 0; }
.cta-band .lines li:last-child { padding-top: 14px; }
.map .pin { cursor: pointer; }
.map .pin circle.dot { transition: r .25s var(--ease); }
.map .pin:hover circle.dot, .map .pin.on circle.dot { r: 7; }
.map .pin .ring { opacity: 0; transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: no-preference) { .map .pin.on .ring { animation: ring 1.8s ease-out infinite; } @keyframes ring { from { opacity: .7; transform: scale(.5); } to { opacity: 0; transform: scale(2.2); } } }
.places { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.places button, .places .pl { width: 100%; text-align: left; display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 12px 14px; border-radius: 10px; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.places button:hover, .places button[aria-pressed="true"] { background: var(--paper-2); }
.places b { color: var(--navy); font-weight: 600; }
.places .n { font: 500 .75rem/1.6 var(--mono); color: var(--ink-2); }
.places .jobs { grid-column: 1 / -1; font-size: .92rem; color: var(--ink-2); }
.far { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.far span { font: 500 .72rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; padding: 8px 10px; border-radius: 6px; border: 1px dashed var(--steel); color: var(--ink-2); }
@media (min-width: 860px) { .map-grid { grid-template-columns: 1fr 1.2fr; align-items: center; gap: 48px; } .map { max-width: 300px; } }

/* Team */
.team-grid { display: grid; gap: 22px; }
.card.navy .team-grid .btns { align-items: center; gap: 18px; }
.card.navy .lines { margin-bottom: 18px; }
@media (max-width: 859px) { .card .team-grid .ph { aspect-ratio: 16 / 10; } .panel .ph { aspect-ratio: 16 / 10; } .card .label + h2 { margin-top: -4px; } }
.sc-more { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.sc-more summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 48px; font: 500 .72rem/1.2 var(--mono); letter-spacing: .09em; text-transform: uppercase; color: var(--ink-2); }
.sc-more summary::-webkit-details-marker { display: none; }
.sc-more summary::after { content: "+"; font-size: 1.2rem; color: var(--sky-ink); }
.sc-more[open] summary::after { content: "−"; }
.sc-more .sc-cur { margin-left: auto; color: var(--navy); font-weight: 600; letter-spacing: .04em; text-transform: none; }
.sc-more .sc-two { padding: 4px 0 14px; }
.team-grid .ph { border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--paper-3); }
.team-grid .ph img { width: 100%; height: 100%; object-fit: cover; }
.stamps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0 20px; }
.stamp { border-top: 2px solid var(--navy); padding-top: 8px; }
.stamp b { display: block; font: 600 1.5rem/1.1 var(--mono); color: var(--navy); letter-spacing: -.02em; }
.stamp span { font: 500 .68rem/1.35 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); }
@media (min-width: 860px) { .team-grid { grid-template-columns: 1fr 1fr; align-items: center; gap: 48px; } }

/* Contact card */
.lines { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 2px; }
.lines a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.16); text-decoration: none; }
.lines a .who { font: 500 .75rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #a9c6d8; }
.lines a .no { font: 600 1.15rem/1 var(--mono); color: #fff; }
.lines a:hover .no { color: var(--sky); }
.contact-grid { display: grid; gap: 24px; }
@media (min-width: 860px) { .contact-grid { grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: end; } }
.card.navy .btn.light::before, .card.navy .btn.light::after { background: var(--orange); }

/* Inner pages */
.page-hero { padding: 34px 0 30px; }
.page-hero .grid { display: grid; gap: 24px; }
.page-hero .ph { border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--paper-3); }
.page-hero .ph img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) { .page-hero { padding: 64px 0 50px; } .page-hero .grid { grid-template-columns: 1.1fr .9fr; align-items: center; gap: 56px; } }
.crumbs { font: 500 .72rem/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 14px; }
.crumbs a { color: var(--ink-2); }
.prose { max-width: 66ch; }
.prose h2 { font-size: clamp(1.5rem, 5vw, 2.1rem); margin-top: 1.4em; }
.split { display: grid; gap: 28px; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 56px; } }
.list { list-style: none; padding: 0; margin: 0 0 1.2em; border-top: 1px solid var(--rule); }
.list li { padding: 14px 0; border-bottom: 1px solid var(--rule); display: grid; gap: 4px; }
.list li b { color: var(--navy); font-weight: 600; }
.list li span { color: var(--ink-2); font-size: .98rem; }
.band { background: var(--paper-2); }
.cta-band { background: var(--navy); color: #eaf2f7; border-radius: var(--radius); padding: 34px 22px; margin: 0 8px; display: grid; gap: 18px; }
.cta-band h2 { color: #fff; margin: 0; }
.cta-band p { margin: 0; }
@media (min-width: 760px) { .cta-band { margin: 0 20px; padding: 48px; grid-template-columns: 1.3fr auto; align-items: center; } }

.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.gallery figure { margin: 0; position: relative; border-radius: 12px; overflow: hidden; background: var(--paper-3); aspect-ratio: 3 / 4; }
.gallery figure.wide { aspect-ratio: 4 / 3; grid-column: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 10px 9px; background: linear-gradient(transparent, rgba(0,20,35,.78)); color: #fff; font: 500 .7rem/1.3 var(--mono); letter-spacing: .05em; text-transform: uppercase; }
@media (min-width: 760px) { .gallery { grid-template-columns: repeat(4, 1fr); gap: 12px; } .gallery figure.wide { grid-column: span 2; } }

.projects-list { display: grid; gap: 18px; }
.pcard { display: grid; gap: 0; border: 1px solid var(--paper-3); border-radius: 16px; overflow: hidden; background: #fff; scroll-margin-top: calc(var(--head-h) + 16px); }
.pcard .ph { aspect-ratio: 4 / 3; background: var(--paper-2); overflow: hidden; }
.pcard .ph img { width: 100%; height: 100%; object-fit: cover; }
.pcard .tx { padding: 18px 18px 22px; }
.pcard h2 { font-size: 1.5rem; margin-bottom: .3em; }
.pcard dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 12px 0 0; font-size: .95rem; }
.pcard dt { font: 500 .72rem/1.7 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--ink-2); }
.pcard dd { margin: 0; }
.pcard:target { box-shadow: 0 0 0 3px var(--sky); }
@media (min-width: 760px) { .projects-list { grid-template-columns: 1fr 1fr; } }

.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; font-weight: 600; color: var(--navy); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.4rem/1 var(--mono); color: var(--sky-ink); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 14px; color: var(--ink-2); }

/* Footer */
.foot { background: var(--navy-deep); color: #b9cfdd; padding: 54px 0 130px; margin-top: 28px; font-size: .95rem; }
.foot a { color: #fff; text-decoration: none; }
.foot a:hover { color: var(--sky); }
.foot .logo { height: 70px; width: auto; margin-bottom: 14px; }
.foot-grid { display: grid; gap: 28px; }
.foot h2 { font: 500 .72rem/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #7fa3bb; margin: 0 0 10px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot .legal { margin-top: 36px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; gap: 8px 22px; font: 500 .74rem/1.6 var(--mono); letter-spacing: .03em; color: #8fb0c5; }
.foot .credit a { color: #8fb0c5; }
@media (min-width: 860px) { .foot { padding-bottom: 54px; } .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }

/* Quote drawer: rises over the page */
.qd { position: fixed; inset: auto 0 0 0; margin: 0; width: 100%; max-height: 92vh; overflow: auto; border: 0; padding: 0; border-radius: 22px 22px 0 0; background: #fff; color: var(--ink); box-shadow: 0 -20px 60px -10px rgba(0,37,63,.45); }
.qd::backdrop { background: rgba(0,25,45,.45); }
.qd-in { padding: 18px 20px calc(24px + env(safe-area-inset-bottom)); }
.qd-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 6px; }
.qd-top h2 { font-size: 1.6rem; margin: 0; }
.qd-close { min-width: 44px; min-height: 44px; border-radius: 999px; border: 1.5px solid var(--rule); background: #fff; color: var(--navy); font: 400 1.3rem/1 var(--mono); cursor: pointer; }
.qd-grab { width: 44px; height: 4px; border-radius: 4px; background: var(--rule); margin: 0 auto 12px; }
.qd form { display: grid; gap: 12px; margin-top: 12px; }
.field { display: grid; gap: 6px; }
.field label { font: 500 .74rem/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.field input, .field textarea { width: 100%; font: 400 1rem/1.4 var(--sans); color: var(--ink); padding: 13px 14px; border-radius: 10px; border: 1.5px solid var(--rule); background: #fff; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 3px rgba(76,174,207,.25); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.carried { display: none; font: 500 .72rem/1.4 var(--mono); letter-spacing: .05em; color: var(--sky-ink); text-transform: uppercase; align-items: center; }
.carried.on { display: flex; }
.qd-next { margin: 14px 0 0; padding: 14px 0 0 18px; border-top: 1px solid var(--rule); font-size: .9rem; color: var(--ink-2); display: grid; gap: 4px; }
.qd .btn { width: 100%; }
[popover].qd:not(:popover-open) { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .qd { transition: transform .45s var(--ease), overlay .45s allow-discrete, display .45s allow-discrete; transform: translateY(0); }
  @starting-style { .qd:popover-open { transform: translateY(100%); } }
  .qd:not(:popover-open) { transform: translateY(100%); }
  .qd::backdrop { transition: opacity .45s, overlay .45s allow-discrete, display .45s allow-discrete; opacity: 1; }
  @starting-style { .qd:popover-open::backdrop { opacity: 0; } }
}
@media (min-width: 760px) {
  .qd { inset: auto 24px 24px auto; width: 440px; border-radius: 20px; max-height: calc(100vh - 48px); }
  .qd-grab { display: none; }
}
/* Browsers without popovers show the form in place at the foot of the page */
.no-popover .qd { position: static; display: block; box-shadow: none; border-top: 1px solid var(--rule); border-radius: 0; max-height: none; }
.no-popover .qd-close { display: none; }

/* Photo carry: a picture grows into the top of its own page */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }
::view-transition-group(*) { animation-duration: .5s; animation-timing-function: var(--ease); }
::view-transition-old(*), ::view-transition-new(*) { height: 100%; object-fit: cover; }
.vt-water { view-transition-name: svc-water; }
.vt-fire { view-transition-name: svc-fire; }
.vt-earth { view-transition-name: svc-earth; }
.vt-comm { view-transition-name: svc-comm; }

/* 404 */
.lost { padding: 60px 0 40px; text-align: left; }
.lost svg { max-width: 420px; margin: 0 0 24px; }

@media print { .head, .callbar, .qd, .foot { display: none !important; } }

/* Phone length: tighter where it helps */
@media (max-width: 859px) {
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 24px 16px; }
  .foot-grid > :first-child, .foot-grid > :nth-child(2) { grid-column: 1 / -1; }
  .foot .logo { height: 56px; }
  .foot { padding-top: 40px; }
  .hero .btns .btn { padding: 0 20px; }
  .card { padding: 30px 0 32px; margin-bottom: 10px; }
  .hero-card { padding-top: 24px; }
  .hero .who { margin-bottom: 12px; }
  .lead { font-size: 1.06rem; }
}
.far.small { display: block; margin-top: 12px; }
@media (max-width: 859px) { .places button { padding: 8px 12px; } .places .jobs { font-size: .86rem; line-height: 1.35; } }
@media (max-width: 430px) { .callbar .cw { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .callbar .btn.ghost { flex: none; } .callbar .btn { padding: 0 22px; } }
@media (max-width: 859px) { .map .map-lab { display: none; } }
