/* Taylored Plumbing
   Palette, type and components. See DESIGN.md for the reasoning behind each token. */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("../fonts/atkinson-next-latin-var.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("../fonts/atkinson-next-latin-italic-var.woff2") format("woff2");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}

:root {
  /* Colour: taken from the materials in Jason's photos */
  --black: #000;            /* the logo and work tees */
  --white: #fff;            /* a new filter cartridge */
  --grey: #e8eae7;          /* the grey work hoodie, concrete pads */
  --rule: #cfd4d0;
  --slate: #4b5350;         /* secondary text */
  --galv: #7c8480;          /* galvanised pipe: unfiltered water */
  --copper: #b5652e;        /* new copper pipe: graphics only */
  --copper-ink: #8f4a1c;    /* copper as text on light grounds */
  --copper-light: #d9894f;  /* copper on black */

  --font-display: "Archivo", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Atkinson Hyperlegible Next", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Type scale after The Elements of Typographic Style: 14 18 21 24 36 48 72 */
  --step--1: 0.875rem;
  --step-0: 1.125rem;
  --step-1: 1.3125rem;
  --step-2: 1.5rem;
  --step-3: clamp(1.75rem, 1.4rem + 1.2vw, 2.25rem);
  --step-4: clamp(2.125rem, 1.55rem + 2.2vw, 3rem);
  --step-5: clamp(2.375rem, 1.45rem + 3.9vw, 4.5rem);

  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --space-section: clamp(64px, 9vw, 128px);
  --radius-photo: 4px;
  --header-h: 76px;
  /* The header's full height including its border; site.js keeps it exact. */
  --header-offset: calc(var(--header-h) + 1px);
  --callbar-h: 0px;
}

/* Base */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-offset) + 16px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.55;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img,
video,
svg {
  display: block;
  max-width: 100%;
}

img,
video {
  height: auto;
}

/* <picture> only chooses the file; the <img> inside does the layout. */
picture {
  display: contents;
}

/* Otherwise an empty <source> would take a cell in grid layouts. */
picture > source {
  display: none;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 {
  font-size: var(--step-5);
}

h2 {
  font-size: var(--step-4);
}

h3 {
  font-size: var(--step-1);
  font-stretch: 112%;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
}

p,
ul,
ol,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

p {
  text-wrap: pretty;
}

a {
  color: inherit;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--copper-ink);
}

:focus-visible {
  outline: 3px solid var(--copper);
  outline-offset: 3px;
}

::selection {
  background: var(--copper-light);
  color: var(--black);
}

@media (max-width: 479px) {
  h1 {
    font-stretch: 108%;
  }

  h2 {
    font-stretch: 112%;
  }
}

/* Layout */

.wrap {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
}

.section {
  padding-block: var(--space-section);
}

.section--grey {
  background: var(--grey);
}

.section--tight-top {
  padding-top: 0;
}

.stack > * + * {
  margin-top: var(--stack, 20px);
}

.lede {
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--slate);
  max-width: 34em;
}

.measure {
  max-width: 65ch;
}

.section-head {
  display: grid;
  gap: 20px;
  max-width: 46rem;
}

.section-head--split {
  max-width: none;
}

@media (min-width: 900px) {
  .section-head--split {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: end;
    gap: 48px;
  }
}

.more-link {
  display: inline-block;
  font-weight: 700;
  text-decoration-color: var(--copper);
  text-decoration-thickness: 2px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--black);
  color: var(--white);
  font-weight: 700;
  border-radius: 999px;
}

.skip-link:focus {
  top: 12px;
  color: var(--white);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border: 2px solid var(--black);
  border-radius: 999px;
  font: 700 1.0625rem/1.1 var(--font-body);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn svg {
  width: 20px;
  height: 20px;
  flex: none;
}

.btn--primary {
  background: var(--black);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--copper-ink);
  border-color: var(--copper-ink);
  color: var(--white);
}

.btn--outline {
  background: transparent;
  color: var(--black);
}

.btn--outline:hover {
  background: var(--black);
  color: var(--white);
}

.btn--light {
  background: var(--white);
  border-color: var(--white);
  color: var(--black);
}

.btn--light:hover {
  background: var(--copper-light);
  border-color: var(--copper-light);
  color: var(--black);
}

.btn--outline-light {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}

.btn--outline-light:hover {
  background: var(--white);
  color: var(--black);
}

.btn--small {
  min-height: 44px;
  padding: 0 18px;
  font-size: 1rem;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.phone {
  white-space: nowrap;
}

/* In buttons the number matches the big one in the call band. */
.btn .phone {
  font-family: var(--font-display);
  font-stretch: 108%;
  font-weight: 700;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--rule);
}

/* With JavaScript the header is fixed rather than sticky. On iPhones a sticky
   header bounces down with the page when you scroll back past the top; a
   fixed one stays put. The body makes room for it. */
.js .site-header {
  position: fixed;
  left: 0;
  right: 0;
}

.js body {
  padding-top: var(--header-offset);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
  color: var(--black);
  text-decoration: none;
}

.brand:hover {
  color: var(--black);
}

.brand__logo {
  width: 275px;
  height: 41px;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  padding: 0;
}

.nav__link {
  display: block;
  padding: 10px 12px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
}

.nav__link[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--copper);
  text-decoration-thickness: 3px;
  text-underline-offset: 9px;
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border: 2px solid var(--black);
  border-radius: 999px;
  background: var(--white);
  color: var(--black);
  font: 700 1rem/1 var(--font-body);
  cursor: pointer;
}

.menu-toggle svg {
  width: 20px;
  height: 20px;
}

.menu-toggle .icon-close {
  display: none;
}

.site-header[data-open] .menu-toggle .icon-open {
  display: none;
}

.site-header[data-open] .menu-toggle .icon-close {
  display: block;
}

@media (max-width: 1139px) {
  .js .menu-toggle {
    display: inline-flex;
  }

  .js .nav {
    display: none;
  }

  .js .site-header[data-open] .nav {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: calc(100vh - var(--header-offset));
    max-height: calc(100dvh - var(--header-offset));
    overflow-y: auto;
    background: var(--white);
    border-bottom: 2px solid var(--black);
  }

  .js .site-header[data-open] .nav__list {
    flex-direction: column;
    align-items: stretch;
    width: min(100% - 2 * var(--gutter), var(--wrap));
    margin: 0 auto;
    padding: 8px 0 24px;
  }

  .js .site-header[data-open] .nav__link {
    padding: 16px 0;
    font-family: var(--font-display);
    font-stretch: 112%;
    font-size: var(--step-2);
    border-bottom: 1px solid var(--rule);
  }

  .js .site-header[data-open] .nav__link[aria-current="page"] {
    text-underline-offset: 6px;
  }

  /* Without JavaScript the links simply wrap under the logo. */
  .site-header__inner {
    flex-wrap: wrap;
  }
}

@media (max-width: 479px) {
  :root {
    --header-h: 64px;
  }

  .site-header .brand__logo {
    width: 222px;
    height: 33px;
  }
}

/* Mobile call bar */

.callbar {
  display: none;
}

@media (max-width: 899px) {
  /* The call bar along the bottom takes over from the header button. */
  .header-call {
    display: none;
  }

  :root {
    --callbar-h: calc(72px + env(safe-area-inset-bottom, 0px));
  }

  .callbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    background: var(--white);
    border-top: 1px solid var(--rule);
  }

  .callbar .btn {
    min-height: 50px;
    padding: 0 12px;
  }
}

/* Hero */

.hero {
  padding-block: clamp(36px, 6vw, 88px) var(--space-section);
}

.hero__grid {
  display: grid;
  gap: 44px;
}

@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(40px, 5vw, 80px);
    align-items: center;
  }
}

.hero__copy > * + * {
  margin-top: 24px;
}

.hero__copy > .btn-row {
  margin-top: 32px;
}

.hero__media img,
.hero__media .video {
  width: 100%;
  border-radius: var(--radius-photo);
}

.hero__media img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.caption,
.hero__media figcaption {
  margin-top: 10px;
  font-size: var(--step--1);
  line-height: 1.45;
  color: var(--slate);
}

/* Review proof under the hero buttons */

.proof {
  max-width: 36em;
  padding-top: 20px;
  border-top: 2px solid var(--black);
}

.hero__copy > .proof {
  margin-top: 44px;
}

.proof__rating {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  font-weight: 700;
}

.proof__quote {
  margin-top: 10px;
}

.proof__name {
  margin-top: 6px;
  color: var(--slate);
}

.stars {
  display: inline-flex;
  gap: 2px;
  color: var(--copper);
}

.stars svg {
  width: 18px;
  height: 18px;
}

/* Services on the home page */

.features {
  display: grid;
  gap: 48px;
  margin-top: 56px;
}

@media (min-width: 900px) {
  .features {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 40px;
  }
}

.feature__link {
  display: block;
  text-decoration: none;
}

.feature__link img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-photo);
}

/* Side by side, both photos are the same height so the headings line up. */
@media (min-width: 900px) {
  .feature__link img {
    height: clamp(260px, 34vw, 440px);
  }
}

/* The gauges are near the top of the filtration photo. */
.feature__link .focus-top {
  object-position: 50% 15%;
}

.feature h3 {
  margin-top: 22px;
  font-size: var(--step-2);
}

.feature p {
  margin-top: 8px;
  color: var(--slate);
  max-width: 36em;
}

.feature .more-link {
  margin-top: 12px;
}

.feature__link:hover h3 {
  color: var(--copper-ink);
}

.service-list {
  display: grid;
  margin-top: 64px;
  padding: 0;
  list-style: none;
  border-top: 2px solid var(--black);
}

@media (min-width: 720px) {
  .service-list {
    grid-template-columns: 1fr 1fr;
    column-gap: 48px;
  }
}

.service-list li {
  border-bottom: 1px solid var(--rule);
}

.service-list a {
  display: block;
  height: 100%;
  padding: 20px 0 22px;
  text-decoration: none;
}

.service-list p {
  margin-top: 4px;
  color: var(--slate);
}

.service-list a:hover h3 {
  color: var(--copper-ink);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
}

/* Where your water goes: the pipe diagram */

.water {
  display: grid;
  gap: 48px;
}

@media (min-width: 960px) {
  .water {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(48px, 6vw, 88px);
    align-items: start;
  }
}

.water__copy > * + * {
  margin-top: 20px;
}

@media (min-width: 960px) {
  .water__copy {
    position: sticky;
    top: calc(var(--header-offset) + 32px);
  }
}

.water__copy > .toggle {
  margin-top: 32px;
}

.water__photo {
  margin-top: 40px;
}

.water__photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-photo);
}

.toggle {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border: 2px solid var(--black);
  border-radius: 999px;
  background: var(--white);
}


.toggle button {
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--black);
  font: 700 1rem/1.1 var(--font-body);
  cursor: pointer;
}

.toggle button[aria-pressed="true"] {
  background: var(--black);
  color: var(--white);
}

.toggle button:hover:not([aria-pressed="true"]) {
  background: var(--grey);
}

@media (max-width: 479px) {
  .toggle {
    display: grid;
  }

  .toggle button {
    padding: 0 10px;
    font-size: 0.9375rem;
  }
}

.pipes {
  --pipe: 14px;
  --x: 30px;
  --i: 0;
  --main: var(--galv);
  --branch: var(--galv);
  position: relative;
  padding: 28px clamp(20px, 3vw, 36px) 32px;
  background: var(--white);
  border-radius: 10px;
}

.pipes[data-mode="whole"] {
  --main: var(--copper);
  --branch: var(--copper);
}

.pipes__source {
  margin-top: 28px;
  font-weight: 700;
}

.pipes__riser {
  position: relative;
  height: 84px;
  margin-top: 8px;
}

.pipes__raw,
.pipes__main {
  position: absolute;
  left: var(--x);
  width: var(--pipe);
  box-shadow: inset 3px 0 0 rgb(255 255 255 / 0.28);
}

.pipes__raw {
  top: 0;
  height: 50%;
  background: var(--galv);
  border-radius: 3px 3px 0 0;
}

.pipes__main {
  top: 50%;
  bottom: 0;
  background: var(--main);
  transition: background-color 0.35s ease;
}

.pipes__branches {
  padding: 0;
  list-style: none;
}

.pipes__branch {
  position: relative;
  padding: 14px 0 12px calc(var(--x) + var(--pipe) + 14px);
}

/* Manifold: a vertical run down the left that each branch tees off */
.pipes__branch::before {
  content: "";
  position: absolute;
  left: var(--x);
  top: 0;
  bottom: 0;
  width: var(--pipe);
  background: var(--main);
  box-shadow: inset 3px 0 0 rgb(255 255 255 / 0.28);
  transition: background-color 0.35s ease calc(var(--i) * 0.07s);
}

.pipes__branch:last-child {
  overflow: hidden;
}

.pipes__branch:last-child::before {
  content: none;
}

.pipes__label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-weight: 700;
  line-height: 1.3;
}

.pipes__pct {
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.pipes__run {
  position: relative;
  display: block;
  height: var(--pipe);
  margin-top: 8px;
  margin-left: -14px;
  width: calc(14px + (100% - 14px) * var(--share) / 52);
}

.pipes__pipe {
  position: absolute;
  inset: 0;
  border-radius: 0 7px 7px 0;
  background: var(--branch);
  box-shadow: inset 0 3px 0 rgb(255 255 255 / 0.28);
  transform-origin: left center;
  transition:
    background-color 0.35s ease calc(var(--i) * 0.07s + 0.12s),
    transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) calc(var(--i) * 0.09s);
}

/* The last branch turns down out of the manifold as an elbow. */
.pipes__branch:last-child .pipes__run::before {
  content: "";
  position: absolute;
  left: calc(var(--pipe) * -1);
  bottom: 0;
  width: var(--pipe);
  height: 400px;
  background: var(--main);
  border-bottom-left-radius: var(--pipe);
  box-shadow: inset 3px 0 0 rgb(255 255 255 / 0.28);
  transition: background-color 0.35s ease calc(var(--i) * 0.07s);
}

.pipes[data-mode="sink"] .pipes__branch--taps .pipes__pipe {
  background: var(--copper);
}

.pipes__state {
  font-weight: 400;
  color: var(--slate);
  white-space: nowrap;
}

/* Filter units, drawn as white housings with black caps like the real ones */
.unit {
  display: inline-flex;
  gap: 3px;
  padding: 4px;
  background: var(--white);
  border: 2px solid var(--black);
  border-radius: 6px;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.unit i {
  display: block;
  width: 12px;
  height: 30px;
  background: var(--white);
  border: 2px solid var(--black);
  border-top-width: 7px;
  border-radius: 3px 3px 5px 5px;
}

.unit--whole {
  position: absolute;
  top: 50%;
  left: calc(var(--x) + var(--pipe) / 2);
  transform: translate(-50%, -50%);
}

.unit--sink {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  padding: 3px;
}

.unit--sink i {
  height: 26px;
}

.pipes[data-mode="sink"] .unit--whole {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.6);
}

.pipes[data-mode="whole"] .unit--sink {
  opacity: 0;
  transform: translateY(-50%) scale(0.6);
}

.pipes__summary {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 2px solid var(--black);
  font-size: var(--step-1);
  line-height: 1.4;
}

.pipes__figure {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 800;
}

.pipes__note {
  margin-top: 10px;
  font-size: var(--step--1);
  color: var(--slate);
}

/* The pipes fill once when the diagram first scrolls into view. */
.js .pipes[data-reveal] .pipes__pipe {
  transform: scaleX(0);
}

.js .pipes[data-reveal].is-visible .pipes__pipe {
  transform: scaleX(1);
}

/* Photo grids */

.work-grid {
  display: grid;
  gap: 32px 24px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  margin-top: 56px;
  padding: 0;
  list-style: none;
}

.work-grid img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-photo);
}

.work-grid figcaption {
  margin-top: 10px;
  font-size: 1rem;
  line-height: 1.45;
  color: var(--slate);
}

.gallery {
  columns: 3 280px;
  column-gap: 20px;
  margin-top: 40px;
}

.gallery__item {
  break-inside: avoid;
  margin-bottom: 28px;
}

.gallery__item[hidden] {
  display: none;
}

.gallery__open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}

.gallery__open img {
  width: 100%;
  border-radius: var(--radius-photo);
}

.gallery__item figcaption {
  margin-top: 8px;
  font-size: 1rem;
  line-height: 1.45;
  color: var(--slate);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
  padding: 0;
  list-style: none;
}

.chips button {
  min-height: 44px;
  padding: 0 18px;
  border: 2px solid var(--black);
  border-radius: 999px;
  background: var(--white);
  color: var(--black);
  font: 700 1rem/1.1 var(--font-body);
  cursor: pointer;
}

.chips button[aria-pressed="true"] {
  background: var(--black);
  color: var(--white);
}

.chips button:hover:not([aria-pressed="true"]) {
  background: var(--grey);
}

.gallery-count {
  margin-top: 16px;
  color: var(--slate);
}

/* Lightbox */

.lightbox {
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--white);
}

.lightbox::backdrop {
  background: rgb(0 0 0 / 0.92);
}

.lightbox__figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 72px 16px 32px;
}

.lightbox__figure img {
  width: auto;
  max-width: 100%;
  max-height: calc(100% - 64px);
  object-fit: contain;
  border-radius: var(--radius-photo);
}

.lightbox__figure figcaption {
  max-width: 60ch;
  margin-top: 14px;
  text-align: center;
}

.lightbox__btn {
  position: fixed;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: var(--white);
  color: var(--black);
  cursor: pointer;
}

.lightbox__btn svg {
  width: 24px;
  height: 24px;
}

.lightbox__btn:hover {
  background: var(--copper-light);
}

.lightbox__btn:focus-visible {
  outline-color: var(--copper-light);
}

.lightbox__close {
  top: 12px;
  right: 12px;
}

.lightbox__prev,
.lightbox__next {
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__prev {
  left: 12px;
}

.lightbox__next {
  right: 12px;
}

@media (max-width: 699px) {
  .lightbox__prev,
  .lightbox__next {
    top: auto;
    bottom: 16px;
    transform: none;
  }

  .lightbox__figure {
    padding-bottom: 88px;
  }
}

/* Reviews */

.quotes {
  display: grid;
  gap: 40px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  margin-top: 56px;
  padding: 0;
  list-style: none;
}

.quote {
  padding-top: 18px;
  border-top: 2px solid var(--black);
}

.quote blockquote {
  font-size: var(--step-0);
}

.quote__name {
  margin-top: 14px;
  font-weight: 700;
}

.quote__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--slate);
  font-size: var(--step--1);
}

.quotes--all {
  columns: 2 340px;
  column-gap: 48px;
  display: block;
}

.quotes--all .quote {
  break-inside: avoid;
  margin-bottom: 44px;
}

/* Service area */

.area {
  display: grid;
  gap: 40px;
}

@media (min-width: 900px) {
  .area {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 64px;
  }
}

.town-groups {
  display: grid;
  gap: 40px;
}

.towns-title {
  margin-bottom: 12px;
  font-family: var(--font-body);
  font-stretch: 100%;
  font-size: var(--step-0);
  color: var(--slate);
}

.towns {
  columns: 2 180px;
  column-gap: 32px;
  padding: 0;
  list-style: none;
  border-top: 2px solid var(--black);
}

.towns li {
  break-inside: avoid;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 700;
  font-size: var(--step-1);
  line-height: 1.25;
}

/* Call band */

.callout {
  padding-block: var(--space-section);
  background: var(--black);
  color: var(--white);
}

.callout__grid {
  display: grid;
  gap: 48px;
}

.callout__photo {
  display: none;
}

@media (min-width: 900px) {
  .callout__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    gap: clamp(40px, 6vw, 96px);
    align-items: center;
  }

  .callout__photo {
    display: block;
  }
}

.callout__photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-photo);
}

.callout__photo figcaption {
  margin-top: 10px;
  font-size: var(--step--1);
  color: rgb(255 255 255 / 0.7);
}

.callout__title {
  font-size: var(--step-4);
}

.callout__number {
  display: block;
  margin-top: 6px;
  font-size: var(--step-5);
  color: var(--white);
  text-decoration: none;
}

.callout__number:hover {
  color: var(--copper-light);
}

.callout p {
  margin-top: 24px;
  max-width: 36em;
  font-size: var(--step-1);
  line-height: 1.5;
}

.callout .btn-row {
  margin-top: 36px;
}

.callout :focus-visible {
  outline-color: var(--copper-light);
}

/* Footer */

.site-footer {
  padding-block: 56px calc(40px + var(--callbar-h));
  background: var(--black);
  color: var(--white);
  border-top: 1px solid rgb(255 255 255 / 0.18);
}

.callout + .site-footer {
  padding-top: 48px;
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--copper-light);
  text-decoration: underline;
}

.site-footer :focus-visible {
  outline-color: var(--copper-light);
}

.site-footer__grid {
  display: grid;
  gap: 40px;
}

@media (min-width: 900px) {
  .site-footer__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr);
    gap: 48px;
  }
}

.site-footer .brand {
  color: var(--white);
}

.site-footer .brand:hover {
  color: var(--white);
}

.site-footer__about {
  margin-top: 18px;
  max-width: 28em;
  color: rgb(255 255 255 / 0.8);
}

.site-footer h2 {
  font-size: var(--step-0);
  font-family: var(--font-body);
  font-stretch: 100%;
  font-weight: 700;
  letter-spacing: 0;
  color: rgb(255 255 255 / 0.7);
}

.site-footer ul {
  margin-top: 12px;
  padding: 0;
  list-style: none;
}

.site-footer li + li {
  margin-top: 6px;
}

.site-footer__legal {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid rgb(255 255 255 / 0.18);
  font-size: var(--step--1);
  color: rgb(255 255 255 / 0.7);
}

/* Inner page heading */

.page-hero {
  padding-block: clamp(40px, 6vw, 88px) clamp(48px, 6vw, 80px);
}

.page-hero__grid {
  display: grid;
  gap: 44px;
}

@media (min-width: 900px) {
  .page-hero__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(40px, 5vw, 80px);
    align-items: center;
  }
}

.page-hero__copy > * + * {
  margin-top: 24px;
}

.page-hero__copy > .btn-row {
  margin-top: 32px;
}

/* In-page links on the services page */

.jump {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  list-style: none;
}

.jump a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 2px solid var(--black);
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
}

.jump a:hover {
  background: var(--black);
  color: var(--white);
}

/* A service on the services page */

.service {
  display: grid;
  gap: 32px;
  padding-block: 56px;
  border-top: 2px solid var(--black);
}

.service:first-of-type {
  border-top: 0;
  padding-top: 0;
}

@media (min-width: 900px) {
  .service {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 64px;
    padding-block: 72px;
  }
}

.service__copy > * + * {
  margin-top: 18px;
}

.service__copy h2 {
  font-size: var(--step-3);
}

.service__copy p,
.service__copy li {
  color: var(--slate);
}

.ticks {
  display: grid;
  gap: 8px;
  padding: 0;
  list-style: none;
}

.ticks li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  color: var(--black);
}

.ticks svg {
  width: 22px;
  height: 22px;
  margin-top: 2px;
  color: var(--copper);
}

.service__photos {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0;
  list-style: none;
}

.service__photos img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-photo);
}

.service__photos li:only-child {
  grid-column: 1 / -1;
}

.service__photos li:only-child img {
  aspect-ratio: 3 / 2;
}

.service__photos figcaption {
  margin-top: 8px;
  font-size: var(--step--1);
  line-height: 1.45;
  color: var(--slate);
}

.service__review {
  padding: 24px;
  background: var(--grey);
  border-radius: 10px;
}

.service__review blockquote {
  font-size: var(--step-1);
  line-height: 1.45;
}

.service__review p {
  margin-top: 12px;
  font-weight: 700;
  color: var(--black);
}

/* Filtration page */

.video {
  position: relative;
  overflow: hidden;
  aspect-ratio: 9 / 16;
  background: var(--black);
  border-radius: var(--radius-photo);
}

.video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video__btn {
  position: absolute;
  left: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px 0 12px;
  border: 0;
  border-radius: 999px;
  background: var(--white);
  color: var(--black);
  font: 700 1rem/1 var(--font-body);
  cursor: pointer;
}

.video__btn svg {
  width: 20px;
  height: 20px;
}

.video__btn:hover {
  background: var(--copper-light);
}

.video__btn .icon-pause,
.video[data-playing] .video__btn .icon-play {
  display: none;
}

.video[data-playing] .video__btn .icon-pause {
  display: block;
}

.hero__media--video {
  max-width: 420px;
  justify-self: center;
  width: 100%;
}

.catch {
  display: grid;
  gap: 40px;
}

@media (min-width: 900px) {
  .catch {
    grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
    gap: 64px;
    align-items: center;
  }
}

.catch__photos {
  display: grid;
  gap: 12px;
  grid-template-columns: 3fr 2fr;
  align-items: start;
}

.catch__photos img {
  width: 100%;
  border-radius: var(--radius-photo);
  object-fit: cover;
}

.catch__photos .tall img {
  aspect-ratio: 3 / 4;
}

.catch__photos .short img {
  aspect-ratio: 3 / 4;
}

.catch__copy > * + * {
  margin-top: 20px;
}

.compare-wrap {
  margin-top: 48px;
  overflow-x: auto;
}

.compare {
  width: 100%;
  min-width: 320px;
  border-collapse: collapse;
}


.compare caption {
  text-align: left;
}

.compare th,
.compare td {
  padding: 16px 12px;
  border-bottom: 1px solid var(--rule);
  text-align: center;
  vertical-align: middle;
}

.compare th:first-child,
.compare td:first-child {
  padding-left: 0;
  text-align: left;
}

.compare thead th {
  border-bottom: 2px solid var(--black);
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 800;
  font-size: var(--step-1);
  line-height: 1.2;
}

.compare thead th span {
  display: block;
  margin-top: 4px;
  font-family: var(--font-body);
  font-stretch: 100%;
  font-weight: 400;
  font-size: var(--step--1);
  color: var(--slate);
}

.compare tbody th {
  font-weight: 700;
}

.compare td svg {
  display: inline-block;
  width: 26px;
  height: 26px;
  color: var(--copper);
  stroke-width: 2.75;
}

.compare .no {
  color: var(--galv);
  font-weight: 700;
}

@media (max-width: 599px) {
  .compare {
    table-layout: fixed;
    font-size: 0.9375rem;
  }

  .compare th:first-child {
    width: 31%;
  }

  .compare th,
  .compare td {
    padding: 12px 4px;
  }

  .compare thead th {
    font-size: 0.9375rem;
    font-stretch: 80%;
  }

  .compare thead th:first-child {
    vertical-align: bottom;
  }

  .compare thead th span {
    font-size: 0.75rem;
  }
}

.pairs {
  display: grid;
  gap: 40px 28px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  margin-top: 56px;
  padding: 0;
  list-style: none;
}

.pair__imgs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.pair__imgs img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius-photo);
}

.pair figcaption {
  margin-top: 10px;
  font-size: 1rem;
  color: var(--slate);
}

.video-split {
  display: grid;
  gap: 48px;
}

@media (min-width: 1000px) {
  .video-split {
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    gap: 64px;
    align-items: start;
  }
}

.videos {
  display: grid;
  gap: 40px;
}

@media (min-width: 640px) {
  .videos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
  }
}

.videos figcaption {
  margin-top: 12px;
  color: var(--slate);
}

.faq {
  margin-top: 40px;
  max-width: 50rem;
  border-top: 2px solid var(--black);
}

.faq details {
  border-bottom: 1px solid var(--rule);
}

.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 22px 0;
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 700;
  font-size: var(--step-1);
  line-height: 1.25;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  border-right: 3px solid var(--black);
  border-bottom: 3px solid var(--black);
  transform: translateY(-4px) rotate(45deg);
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: translateY(3px) rotate(-135deg);
}

.faq details > div {
  padding-bottom: 24px;
  max-width: 62ch;
  color: var(--slate);
}

/* Numbered sequences (only where the order is real) */

.steps {
  display: grid;
  gap: 28px;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps > li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 18px;
}

.steps > li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 2px solid var(--black);
  border-radius: 50%;
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 800;
  font-size: var(--step-1);
  line-height: 1;
}

.steps h3 {
  margin-top: 10px;
}

.section-head + .steps {
  margin-top: 48px;
}

.visually-hidden + .quotes {
  margin-top: 0;
}

.steps p {
  margin-top: 6px;
  color: var(--slate);
}

.steps--photos {
  gap: 48px;
}

@media (min-width: 900px) {
  .steps--photos {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px;
  }
}

/* With photos, the step number sits beside the heading under the photo. */
.steps--photos > li {
  display: block;
}

.steps--photos > li::before {
  content: none;
}

.steps--photos h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 0;
}

.steps--photos h3::before {
  content: counter(step);
  display: grid;
  flex: none;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 2px solid var(--black);
  border-radius: 50%;
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 800;
  font-size: var(--step-0);
  line-height: 1;
}

.steps__photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-photo);
  margin-bottom: 18px;
}

/* Simple pages (404) */

.notice {
  padding-block: clamp(64px, 12vw, 160px);
}

.notice > * + * {
  margin-top: 24px;
}

.notice .btn-row {
  margin-top: 36px;
}

/* Motion: everything above is still without it */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .js .pipes[data-reveal] .pipes__pipe {
    transform: none;
  }
}

@media print {
  .site-header,
  .callbar,
  .callout,
  .toggle {
    display: none;
  }
}
