@font-face {
  font-family: "Geologica";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("../fonts/Geologica-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Geologica";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("../fonts/Geologica-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Geologica";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("../fonts/Geologica-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* BalRock practice site. A solid engineering firm: light pages, deep navy for the
   opening band and page headers, the logo's green for actions, large plain numbers,
   photographs in black and white so their age does not show. */

:root {
  --bg: #ffffff;
  --soft: #f4f4f1;
  --line: #dedfdb;
  --ink: #16191d;
  --muted: #565a60;
  --navy: #063784;
  --navy-deep: #062a63;
  --on-navy: #ffffff;
  --on-navy-soft: #c9d6ec;
  --green: #1e7a3c;
  --green-deep: #175f2f;
  --charcoal: #1b1e22; /* footer */
  --on-charcoal: #c8cbcf;
  --green-light: #8fdba8; /* the accent on navy */
  --error: #b3261e;

  --sans: "Geologica", system-ui, -apple-system, "Segoe UI", sans-serif;
  /* faint strata lines on the navy grounds */
  --strata: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='480' height='120' fill='none' stroke='%23ffffff' stroke-opacity='.07'%3E%3Cpath d='M0 20c60-12 120 12 180 0s120-12 180 0 80 8 120 0M0 62c50-10 110 10 170 0s130-12 190 0 80 8 120 0M0 100c70-10 120 8 190 0s110-10 170 0 80 6 120 0'/%3E%3C/svg%3E");
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 6px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
  scrollbar-color: #a9aca8 var(--soft);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans);
  overflow-x: clip;
  caret-color: var(--navy);
  accent-color: var(--navy);
}
::selection {
  background: var(--navy);
  color: var(--on-navy);
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: var(--navy);
  text-decoration-color: rgba(6, 55, 132, 0.35);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  transition: color 0.2s, text-decoration-color 0.2s, background-color 0.2s, border-color 0.2s;
}
a:hover {
  text-decoration-color: currentColor;
}
:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
  border-radius: 3px;
}
h1,
h2,
h3,
p,
ul,
dl,
dd,
figure,
fieldset {
  margin: 0;
  padding: 0;
}
ul {
  list-style: none;
}
fieldset {
  border: 0;
  min-width: 0;
}
h1,
h2,
h3 {
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h1 {
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
  overflow-wrap: break-word;
}
h2 {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
}
h3 {
  font-size: 1.3rem;
  letter-spacing: -0.01em;
}
p {
  text-wrap: pretty;
}

.wrap {
  max-width: 78rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.skip {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  z-index: 20;
  padding: 0.6rem 1rem;
  background: var(--navy);
  color: var(--on-navy);
  border-radius: 0 0 var(--radius) var(--radius);
}
.skip:focus {
  top: 0;
}
.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.lede {
  max-width: 42rem;
  font-size: clamp(1.1rem, 1.5vw, 1.25rem);
  font-weight: 300;
  color: var(--muted);
}
.fine {
  font-size: 0.9rem;
  color: var(--muted);
}

/* ---------- Masthead ---------- */

.mast {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.mast .wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.3rem clamp(0.9rem, 2.2vw, 2rem);
  padding-block: 0.55rem;
}
.brand img {
  width: auto;
  height: 3.4rem;
}
.nav {
  margin-left: auto;
}
.nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.1rem clamp(0.9rem, 2vw, 1.75rem);
}
.nav a {
  display: block;
  padding: 0.6rem 0;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.9875rem;
  text-decoration: none;
  background: linear-gradient(var(--green), var(--green)) left bottom / 0 2px no-repeat;
  transition: background-size 0.3s var(--ease), color 0.2s;
}
.nav a:hover,
.nav a[aria-current] {
  color: var(--navy);
  background-size: 100% 2px;
}
.langs {
  display: flex;
  gap: 0.1rem;
}
.langs a {
  display: block;
  padding: 0.45rem 0.4rem;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-decoration: none;
}
.langs a:hover {
  color: var(--navy);
}
.langs a[aria-current] {
  color: var(--navy);
  font-weight: 700;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.55rem;
  padding: 0.9rem 1.4rem;
  border: 2px solid var(--green);
  border-radius: var(--radius);
  background: var(--green);
  color: var(--on-navy);
  font: 600 1rem/1.2 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s var(--ease);
}
.btn:hover {
  background: var(--green-deep);
  border-color: var(--green-deep);
}
.btn:active {
  transform: translateY(1px);
}
.btn .icon {
  transition: transform 0.3s var(--ease);
}
.btn:hover .icon {
  transform: translateX(3px);
}
.btn-line {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn-line:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--on-navy);
}
.btn-light {
  background: var(--on-navy);
  border-color: var(--on-navy);
  color: var(--navy-deep);
}
.btn-light:hover {
  background: var(--green-light);
  border-color: var(--green-light);
  color: var(--navy-deep);
}
.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--on-navy);
}
.btn-ghost:hover {
  background: transparent;
  border-color: var(--on-navy);
}
.mast-cta {
  padding: 0.6rem 1rem;
  font-size: 0.9375rem;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ---------- Photographs ---------- */

/* Old, small photographs: black and white, and never shown larger than their pixels. */
.ph {
  position: relative;
  width: 100%;
  max-width: var(--w);
}
.ph img {
  width: 100%;
  border-radius: var(--radius);
  /* old photographs are set in plain black and white, highlights held just below white */
  filter: grayscale(1) brightness(0.96) contrast(1.06);
  /* a held edge, so pale skies do not dissolve into the white page */
  outline: 1px solid rgba(22, 25, 29, 0.16);
  outline-offset: -1px;
  transition: filter 0.4s;
}
.ph figcaption {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
}
.ph figcaption::before {
  content: "";
  display: inline-block;
  width: 1.25rem;
  height: 2px;
  margin-right: 0.6rem;
  vertical-align: middle;
  background: var(--green);
}
.ph a {
  display: block;
}

/* ---------- Home: opening ---------- */

.hero {
  padding-block: clamp(3rem, 6vw, 5.5rem) 0;
  background: var(--navy-deep) var(--strata);
  color: var(--on-navy);
}
.hero .lede {
  color: var(--on-navy-soft);
}
.hero :focus-visible,
.page-head :focus-visible {
  outline-color: var(--green-light);
}

/* the well, drawn */
.diagram svg {
  display: block;
  width: 100%;
  max-width: 34rem;
  margin-inline: auto;
  fill: none;
  stroke: rgba(255, 255, 255, 0.82);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.dg-ground path {
  stroke: rgba(255, 255, 255, 0.5);
}
.dg-ground path:first-child {
  stroke: rgba(255, 255, 255, 0.9);
  stroke-width: 2;
}
.dg-fill {
  stroke: rgba(255, 255, 255, 0.22);
  stroke-width: 1;
}
.dg-water path {
  stroke: var(--green-light);
  stroke-opacity: 0.7;
}
.dg-casing {
  stroke-width: 3;
}
.dg-screen {
  stroke-dasharray: 5 6;
}
.dg-pipe {
  stroke: var(--green-light);
  stroke-width: 2.5;
}
.dg-pump {
  fill: var(--green-light);
  stroke: none;
}
.dg-labels path {
  stroke: rgba(255, 255, 255, 0.55);
  stroke-width: 1;
}
.dg-labels text {
  fill: var(--on-navy);
  stroke: none;
  font: 500 15px var(--sans);
}
.dg-labels .dg-quiet {
  fill: var(--on-navy-soft);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.04em;
}
.dg-labels .dg-wet {
  fill: var(--green-light);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 11fr) minmax(0, 12fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}
.hero h1 {
  max-width: 16ch;
  font-size: clamp(2.5rem, 4.6vw, 3.9rem);
}
.hero .lede {
  margin-top: 1.4rem;
}
.hero .actions {
  margin-top: 2rem;
}
.photo-pair {
  position: relative;
  width: 100%;
  margin-top: 2rem;
  padding: 0 0 2.5rem 2.5rem;
}
.pair-main figcaption {
  /* keeps clear of the smaller photograph that overlaps the lower left corner */
  padding-left: 34%;
  text-align: right;
}
.pair-side {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 30%;
  padding: 5px;
  border-radius: var(--radius);
  background: var(--bg);
}

/* the facts: large plain numbers */
.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 2.5rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-block: clamp(1.75rem, 3vw, 2.5rem) clamp(2.25rem, 4vw, 3.25rem);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}
/* large, light numerals against the heavy headline */
.facts dt {
  color: var(--on-navy);
  font-size: clamp(3.2rem, 7vw, 6rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: lining-nums tabular-nums;
}
.facts dd {
  position: relative;
  margin-top: 1rem;
  padding-top: 0.9rem;
  max-width: 16rem;
  color: var(--on-navy-soft);
  font-size: 0.9875rem;
  line-height: 1.45;
}
.facts dd::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 2.25rem;
  height: 3px;
  background: var(--green-light);
}

/* ---------- Sections ---------- */

.section {
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
}
.section-head {
  display: grid;
  gap: 1rem;
  justify-items: start;
  align-content: start;
}
.section-head .btn {
  margin-top: 0.75rem;
}
.section-head.row {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}
.section-head.row .btn {
  margin-top: 0;
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}
.split.flip {
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  align-items: center;
}
.band-soft {
  background: var(--soft);
}
.band-soft h2 {
  margin-bottom: 1.25rem;
}

/* ruled link rows */
.link-list {
  border-top: 2px solid var(--ink);
}
.link-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0.25rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 1.125rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s, padding 0.3s var(--ease), background-color 0.2s;
}
.link-list a:hover {
  padding-left: 0.75rem;
  color: var(--navy);
  background: var(--soft);
}
.link-list .icon {
  color: var(--green);
}

/* the quote band: two plain steps */
.quote-band h2 {
  margin-bottom: 0;
}
.steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2.5rem);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  padding-top: 1.1rem;
  border-top: 2px solid var(--ink);
  font-size: 1.0625rem;
}
.steps li::before {
  content: counter(step);
  display: block;
  margin-bottom: 0.6rem;
  color: var(--green);
  font-size: clamp(2.8rem, 5vw, 4.25rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.04em;
}

.checks {
  display: grid;
  gap: 0.8rem;
}
.checks li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}
.checks .icon {
  margin-top: 0.28em;
  color: var(--green);
}
.checks.cols {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem clamp(1.5rem, 4vw, 3.5rem);
  margin-top: 0.5rem;
}

/* about on the home page */
.about-home {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}
.about-home .btn {
  margin-top: 1.75rem;
}
.proof {
  display: grid;
  gap: 2rem;
}
.growth figcaption {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.9375rem;
}
.bars {
  margin-top: 2.5rem;
  width: fit-content;
  padding-inline: 0.25rem 2.5rem;
  display: flex;
  align-items: flex-end;
  gap: 1.25rem;
  height: 12.5rem;
  padding-bottom: 1.75rem;
  border-bottom: 2px solid var(--ink);
}
.bars span {
  position: relative;
  width: 6.5rem;
  height: calc(var(--v) / 4.44 * 100%);
  border-radius: 3px 3px 0 0;
  background: #c3c6c2;
}
.bars span + span {
  background: var(--navy);
}
.bars b {
  position: absolute;
  left: 0;
  bottom: calc(100% + 0.3rem);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: lining-nums tabular-nums;
}
.bars i {
  position: absolute;
  left: 0;
  top: calc(100% + 0.35rem);
  color: var(--muted);
  font-style: normal;
  font-size: 0.9375rem;
  font-variant-numeric: lining-nums tabular-nums;
}
.badge {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: 1.25rem;
  align-items: center;
}
.badge p {
  color: var(--muted);
  font-size: 0.9875rem;
}

/* photo tiles */
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 12rem), 1fr));
  gap: clamp(0.75rem, 1.5vw, 1.25rem);
}
.tiles.strip {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.tile {
  max-width: none;
}
.tile img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
/* the original colours come back under the pointer or keyboard focus */
.tile:hover img,
.tile:focus-within img,
.cover:hover img {
  filter: none;
}
/* touch screens have no hover, so gallery photographs show their own colours */
@media (hover: none) and (pointer: coarse) {
  .tiles:not(.strip) .tile img {
    filter: none;
  }
}

/* ---------- Page heads ---------- */

.page-head {
  padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2.25rem, 4vw, 3.25rem);
  background: var(--navy-deep) var(--strata);
  color: var(--on-navy);
}
.page-head h1 {
  max-width: 18ch;
  font-size: clamp(2.3rem, 5.4vw, 4.4rem);
}
.page-head .lede {
  margin-top: 1.25rem;
  color: var(--on-navy-soft);
}
.page-head + * {
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.page-head + .wrap:last-child,
main > .wrap:last-child {
  padding-bottom: clamp(3.5rem, 8vw, 6.5rem);
}

/* ---------- Service pages ---------- */

.service {
  display: grid;
  grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
  padding-bottom: clamp(3.5rem, 8vw, 6.5rem);
}
.toc {
  position: sticky;
  top: 6.5rem;
  font-size: 0.9875rem;
}
.toc ul {
  border-top: 2px solid var(--ink);
}
.toc li a {
  display: block;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-weight: 500;
  line-height: 1.35;
  text-decoration: none;
}
.toc li a:hover {
  color: var(--navy);
}
.toc-link {
  margin-top: 1.25rem;
}
.prose {
  max-width: 46rem;
}
.prose p + p {
  margin-top: 1rem;
}
.prose article + article {
  margin-top: clamp(2.25rem, 4vw, 3.25rem);
  padding-top: clamp(2.25rem, 4vw, 3.25rem);
  border-top: 1px solid var(--line);
}
.prose h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
}
/* an article with a photograph: text and picture side by side, nothing wraps around the picture */
.with-pic {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 40%);
  gap: 0 1.75rem;
  align-items: start;
}
.with-pic h2 {
  grid-column: 1 / -1;
}
.services-two {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  padding-bottom: clamp(3.5rem, 8vw, 6.5rem);
}
.services-two h2 {
  margin-bottom: 1.25rem;
}
.services-two h2 a {
  color: var(--ink);
  text-decoration: none;
}

/* ---------- Gallery ---------- */

.albums {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2.5rem);
}
.albums a {
  display: block;
  color: var(--ink);
  text-decoration: none;
}
.cover {
  max-width: none;
  margin-bottom: 1rem;
}
.cover img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.albums h2 {
  font-size: 1.5rem;
}
.albums a:hover h2 {
  color: var(--navy);
}
.albums p {
  margin-top: 0.25rem;
  color: var(--muted);
  font-variant-numeric: lining-nums tabular-nums;
}
.others {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.others ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  font-weight: 500;
}

/* ---------- Quote form ---------- */

.quote {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 20rem);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.quote-form fieldset {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.1rem 1.5rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 2px solid var(--ink);
}
.quote-form legend {
  float: left;
  grid-column: 1 / -1;
  width: 100%;
  margin-bottom: 0.4rem;
  padding: 0;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.quote-form legend + * {
  clear: both;
}
.quote-form .wide {
  grid-column: 1 / -1;
}
.quote-form label {
  display: grid;
  gap: 0.35rem;
  align-content: start;
}
.quote-form label span {
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.35;
}
.quote-form abbr {
  color: var(--error);
  text-decoration: none;
  cursor: help;
}
.quote-form input,
.quote-form select,
.quote-form textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid #7b8086;
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.4 var(--sans);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.quote-form select {
  max-width: 16rem;
}
.quote-form textarea {
  resize: vertical;
}
.quote-form :is(input, select, textarea):hover {
  border-color: var(--navy);
}
.quote-form :is(input, select, textarea):focus-visible {
  outline: 0;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(6, 55, 132, 0.2);
}
.quote-form [aria-invalid="true"] {
  border-color: var(--error);
}
.quote-form input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}
.quote-form input[type="number"]::-webkit-inner-spin-button {
  appearance: none;
}
/* a follow-up question, shown only after a "yes" */
.depends {
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  background: var(--soft);
}
.depends[hidden] {
  display: none;
}
.field-error {
  color: var(--error);
  font-size: 0.875rem;
  font-weight: 500;
}
.composed {
  margin-top: 2rem;
  padding: 1.5rem;
  border: 2px solid var(--green);
  border-radius: var(--radius);
}
.composed[hidden] {
  display: none;
}
.composed h2 {
  font-size: 1.5rem;
  margin-bottom: 0.6rem;
}
.composed-text {
  margin: 1rem 0 1.25rem;
  padding: 1rem;
  border-radius: var(--radius);
  background: var(--soft);
  font: 400 0.9375rem/1.6 var(--sans);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  user-select: all;
}
.form-error {
  margin-top: 1.25rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--error);
  border-radius: var(--radius);
  color: var(--error);
  font-weight: 500;
}
.quote-send {
  display: grid;
  gap: 0.9rem;
  justify-items: start;
  margin-top: 1.75rem;
}
.quote-side {
  position: sticky;
  top: 6.5rem;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--soft);
}
.quote-side h2 {
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}
.big-tel {
  margin-top: 0.6rem;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  font-variant-numeric: lining-nums tabular-nums;
}
.big-tel a {
  text-decoration: none;
}
.quote-side .staff {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  margin-top: 1.25rem;
}

/* ---------- People and details ---------- */

.staff {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(1.5rem, 3vw, 2.5rem);
}
.staff li {
  padding-block: 1.1rem;
  border-top: 1px solid var(--line);
}
.staff .role {
  margin-block: 0.25rem 0.5rem;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.4;
}
.staff p:last-child {
  font-variant-numeric: lining-nums tabular-nums;
  overflow-wrap: anywhere;
}
.details div {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  gap: 1rem;
  padding-block: 0.85rem;
  border-top: 1px solid var(--line);
}
.details div:first-child {
  border-top: 2px solid var(--ink);
}
.details dt {
  color: var(--muted);
  font-size: 0.9375rem;
}
.details dd {
  font-weight: 500;
  font-variant-numeric: lining-nums tabular-nums;
}
.contact {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}
.contact h2 {
  margin-bottom: 1.25rem;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
}
.contact .actions,
.place .actions {
  margin-top: 1.75rem;
}
.place {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}
.place .fine {
  margin-top: 1rem;
}
.about {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
  padding-block: 0 clamp(3.5rem, 8vw, 6.5rem);
}
.about-side {
  position: sticky;
  top: 6.5rem;
  display: grid;
  gap: 2rem;
}

/* ---------- Footer ---------- */

.foot {
  padding-block: clamp(3rem, 6vw, 4.5rem) 1.75rem;
  background: var(--charcoal);
  color: var(--on-charcoal);
  font-size: 0.9875rem;
}
.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  padding-bottom: 2.5rem;
}
.foot-name {
  color: var(--on-navy);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.foot-reg {
  margin-top: 1rem;
  font-size: 0.9375rem;
  font-variant-numeric: lining-nums tabular-nums;
}
.foot h2 {
  margin-bottom: 0.8rem;
  color: var(--on-navy);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0;
}
.foot li {
  padding-block: 0.18rem;
}
.foot a {
  color: inherit;
  text-decoration-color: transparent;
}
.foot a:hover {
  color: var(--on-navy);
  text-decoration-color: var(--green-light);
}
.foot :focus-visible {
  outline-color: var(--green-light);
}
.foot-note {
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.8125rem;
}

/* ---------- Narrower screens ---------- */

@media (max-width: 62rem) {
  .hero-grid,
  .split,
  .split.flip,
  .about-home,
  .service,
  .quote,
  .contact,
  .place,
  .about,
  .services-two {
    grid-template-columns: minmax(0, 1fr);
  }
  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 2rem;
  }
  .diagram svg {
    max-width: 26rem;
  }
  /* the drawing is smaller here, so its lettering is set larger to stay readable */
  .dg-labels text {
    font-size: 19px;
  }
  .dg-labels .dg-quiet {
    font-size: 16px;
  }
  .toc,
  .quote-side,
  .about-side {
    position: static;
  }
  .toc ul {
    columns: 2;
    column-gap: 2rem;
  }
  .tiles.strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .foot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 44rem) {
  .mast {
    position: static;
  }
  .mast .wrap {
    padding-block: 0.5rem 0.15rem;
  }
  .mast .wrap {
    gap: 0.2rem 0.6rem;
  }
  /* the drawing is only about 350px wide here: larger lettering, allowed to run into the gutter */
  .diagram svg {
    overflow: visible;
  }
  .dg-labels text {
    font-size: 21px;
  }
  .dg-labels .dg-quiet {
    font-size: 19px;
  }
  /* tap targets of at least 44px */
  .langs a {
    padding: 0.85rem 0.55rem;
  }
  .foot li {
    padding-block: 0.55rem;
  }
  .foot li a,
  .others a {
    display: inline-block;
    padding-block: 0.3rem;
  }
  .brand img {
    height: 2.4rem;
  }
  .langs {
    margin-left: auto;
  }
  .mast-cta {
    padding: 0.45rem 0.7rem;
    font-size: 0.8125rem;
  }
  .nav {
    order: 3;
    width: 100%;
    margin-left: 0;
  }
  .nav ul {
    justify-content: space-between;
    gap: 0 0.6rem;
  }
  .nav a {
    font-size: 0.8125rem;
    padding: 0.6rem 0;
  }
  .photo-pair {
    padding: 0 0 1.75rem 1.75rem;
  }
  .steps,
  .albums,
  .staff,
  .checks.cols,
  .quote-form fieldset,
  .foot-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .toc ul {
    columns: 1;
  }
  /* two columns on phones, so the smallest photographs are never stretched past their pixels */
  .tiles,
  .tiles.strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .actions .btn {
    flex: 1 1 auto;
  }
  .with-pic {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
  }
  .details div {
    grid-template-columns: 6.5rem minmax(0, 1fr);
  }
  .bars span {
    width: 5rem;
  }
  .badge {
    grid-template-columns: 5rem minmax(0, 1fr);
  }
}

/* smallest phones: logo and quote button, then the links in one scrolling row, then languages */
@media (max-width: 23rem) {
  .brand img {
    height: 2.3rem;
  }
  .mast-cta {
    margin-left: auto;
  }
  .langs {
    order: 4;
    margin-left: 0;
  }
  .nav ul {
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 0 1rem;
    overflow-x: auto;
    scrollbar-width: none;
    /* the row fades out on the right, so it reads as scrollable */
    -webkit-mask-image: linear-gradient(to right, #000 82%, transparent);
    mask-image: linear-gradient(to right, #000 82%, transparent);
    padding-right: 2rem;
  }
  .nav a {
    white-space: nowrap;
  }
}

/* ---------- Motion ---------- */

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(1.1rem);
  }
}
@keyframes grow {
  from {
    transform: scaleY(0);
  }
}
.hero h1,
.page-head h1 {
  animation: rise 0.8s var(--ease) 0.05s both;
}
.hero .lede,
.page-head .lede {
  animation: rise 0.8s var(--ease) 0.15s both;
}
.hero .actions {
  animation: rise 0.8s var(--ease) 0.25s both;
}
@keyframes draw {
  from {
    stroke-dashoffset: 1;
  }
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes fade {
  from {
    opacity: 0;
  }
}
/* the well is drilled once on load: casing down, then the pipe to the house, then the labels */
.dg-ground,
.dg-fill,
.dg-water,
.dg-house {
  animation: fade 1s ease 0.1s both;
}
.dg-casing,
.dg-pipe {
  stroke-dasharray: 1;
  animation: draw 1.4s var(--ease) 0.5s both;
}
.dg-pipe {
  animation-delay: 1.5s;
}
.dg-screen,
.dg-pump {
  animation: fade 0.6s ease 1.4s both;
}
.dg-labels {
  animation: fade 0.8s ease 2.2s both;
}
@supports (animation-timeline: view()) {
  .section-head,
  .link-list,
  .steps li,
  .ph.wide,
  .proof {
    animation: rise linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 45%;
  }
}
@supports (animation-timeline: view()) {
  .bars span {
    transform-origin: bottom;
    animation: grow linear both;
    animation-timeline: view();
    animation-range: entry 10% entry 70%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-property: color, background-color, border-color, text-decoration-color, box-shadow !important;
  }
}

@media print {
  .nav,
  .langs,
  .mast-cta {
    display: none;
  }
}

/* ---------- Gallery lightbox ---------- */

.lightbox {
  max-width: min(96vw, 70rem);
  max-height: 94vh;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: var(--charcoal);
  color: var(--on-navy);
  overflow: hidden;
}
.lightbox::backdrop {
  background: rgba(22, 25, 29, 0.82);
}
.lightbox img {
  display: block;
  max-width: 100%;
  max-height: calc(94vh - 4.5rem);
  margin-inline: auto;
}
.lightbox-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0.6rem 0.6rem 1rem;
  font-size: 0.9375rem;
}
.lightbox button {
  min-height: 2.75rem;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius);
  background: transparent;
  color: var(--on-navy);
  font: 600 0.9375rem/1.2 var(--sans);
  cursor: pointer;
}
.lightbox button:hover {
  border-color: var(--on-navy);
}
.lightbox :focus-visible {
  outline-color: var(--green-light);
}
