/* ===========================================================
   Kaion Energy Solutions — kaionenergy.com
   Colours, type and buttons come from the approved Kaion mockup.
   Layout and page structure follow the Imagine Work site.
   =========================================================== */

:root {
  /* Brand */
  --crimson: #a81c1c;
  --crimson-deep: #7c1111;
  --crimson-bright: #c62f2f;
  --amber: #ffb200;
  --amber-deep: #e89400;

  /* Warm neutrals */
  --ink: #15110e;
  --steel-900: #1b1714;
  --steel-800: #241f1b;
  --steel-700: #322b25;
  --steel-500: #5a5048;
  --paper: #fbf9f6;
  --paper-2: #f2ede6;
  --paper-3: #e7e0d6;

  --line: rgba(21, 17, 14, 0.12);
  --line-soft: rgba(21, 17, 14, 0.07);
  --line-dark: rgba(255, 255, 255, 0.13);

  /* Pump diagram flows (blue and green are the logo's globe colours) */
  --flow-water: #2f86bd;
  --flow-heat: #e8590c;
  --flow-ground: #3aa05a;
  --flow-waste: #8b5e3c;

  --display: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --maxw: 1240px;
  --gutter: clamp(20px, 5vw, 48px);
  --section-y: clamp(72px, 10vw, 128px);
  --radius: 16px;
  --radius-lg: 24px;
  --header-h: 74px;

  --shadow-sm: 0 2px 8px rgba(21, 17, 14, 0.08);
  --shadow-md: 0 14px 40px -12px rgba(21, 17, 14, 0.28);
  --shadow-lg: 0 40px 90px -30px rgba(21, 17, 14, 0.45);
}

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

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

body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

[hidden] {
  display: none !important;
}

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

a {
  color: inherit;
  text-decoration: none;
}

p {
  margin: 0 0 1em;
}
p:last-child {
  margin-bottom: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

::selection {
  background: var(--amber);
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
}
.skip:focus {
  top: 12px;
}

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

/* ---- Type ------------------------------------------------- */

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

h1 {
  font-size: clamp(2.5rem, 5.6vw, 4.6rem);
}
h2 {
  font-size: clamp(2rem, 4vw, 3.15rem);
}
h3 {
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.012em;
}
h4 {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.005em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  margin: 0 0 18px;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--crimson);
}
.eyebrow::before {
  content: "";
  width: 30px;
  height: 2px;
  background: var(--amber);
  flex: 0 0 auto;
}
.on-dark .eyebrow,
.eyebrow.on-dark {
  color: var(--amber);
}

.lede {
  max-width: 56ch;
  font-size: clamp(1.06rem, 1.45vw, 1.25rem);
  line-height: 1.55;
  color: var(--steel-500);
}
.on-dark .lede {
  color: rgba(255, 255, 255, 0.74);
}

.muted {
  color: var(--steel-500);
}

/* ---- Buttons and links ------------------------------------ */

.btn {
  --btn-bg: var(--crimson);
  --btn-fg: #fff;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 54px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--display);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  box-shadow:
    0 10px 24px -10px color-mix(in srgb, var(--btn-bg) 75%, #000),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition:
    transform 0.18s var(--spring),
    box-shadow 0.25s var(--ease),
    color 0.2s var(--ease);
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.42) 48%, transparent 62%);
  transform: translateX(-120%) skewX(-12deg);
  transition: transform 0.7s var(--ease-out);
}
.btn:hover {
  transform: translateY(-2px);
}
.btn:hover::before {
  transform: translateX(120%) skewX(-12deg);
}
.btn:active {
  transform: translateY(0) scale(0.97);
  transition-duration: 0.06s;
}
.btn .arr {
  transition: transform 0.25s var(--ease);
}
.btn:hover .arr {
  transform: translateX(4px);
}
.btn--amber {
  --btn-bg: var(--amber);
  --btn-fg: var(--ink);
}
.btn--ghost {
  --btn-fg: var(--ink);
  background: transparent;
  box-shadow: inset 0 0 0 2px var(--line);
}
.btn--ghost:hover {
  color: var(--crimson);
  box-shadow: inset 0 0 0 2px var(--crimson);
}
.on-dark .btn--ghost,
.btn--ghost.on-dark {
  --btn-fg: #fff;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.28);
}
.on-dark .btn--ghost:hover,
.btn--ghost.on-dark:hover {
  color: var(--amber);
  box-shadow: inset 0 0 0 2px var(--amber);
}
.btn--sm {
  min-height: 44px;
  padding: 0 20px;
  font-size: 0.8rem;
}
.btn--block {
  width: 100%;
}
/* Very small phones: let long button labels wrap instead of pushing the page wider. */
@media (max-width: 400px) {
  .btn {
    max-width: 100%;
    min-height: 50px;
    padding: 10px 22px;
    white-space: normal;
    text-align: center;
    line-height: 1.25;
  }
}

.textlink {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  padding-bottom: 3px;
  border-bottom: 2px solid var(--amber);
  font-family: var(--display);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--crimson);
  transition: color 0.2s var(--ease);
}
.textlink:hover {
  color: var(--crimson-deep);
}
.on-dark .textlink,
.aud--dark .textlink,
.card--dark .textlink {
  color: var(--amber);
}
.on-dark .textlink:hover,
.aud--dark .textlink:hover,
.card--dark .textlink:hover {
  color: #fff;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  margin-top: 32px;
}

.inline-link {
  color: var(--crimson);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--crimson) 35%, transparent);
  text-underline-offset: 3px;
}
.inline-link:hover {
  text-decoration-color: var(--crimson);
}
.on-dark .inline-link {
  color: var(--amber);
  text-decoration-color: color-mix(in srgb, var(--amber) 45%, transparent);
}

/* ---- Layout ----------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  padding-block: var(--section-y);
}
.section--tight {
  padding-block: clamp(48px, 6vw, 84px);
}
.section--alt {
  background: var(--paper-2);
}
.section--dark {
  background: var(--ink);
  color: #fff;
}
.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: #fff;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 760px;
  margin-bottom: clamp(36px, 5vw, 60px);
}
.section-head .eyebrow {
  margin-bottom: 2px;
}
.section-head--center {
  align-items: center;
  margin-inline: auto;
  text-align: center;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 88px);
  align-items: center;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 980px) {
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 860px) {
  .split,
  .grid-2 {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* ---- Header ---------------------------------------------- */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line-soft);
  transition:
    background 0.3s var(--ease),
    border-color 0.3s var(--ease);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

/* The Kaion wordmark — unchanged from the approved mockup. Tinos is a
   metric twin of Times New Roman for phones that don't have it. */
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.2em;
  font-family: "Times New Roman", Tinos, Georgia, serif;
  font-weight: 700;
  font-size: clamp(20px, 2.4vw, 29px);
  line-height: 1;
  color: var(--crimson);
  white-space: nowrap;
}
.wordmark.light {
  color: #fff;
}
.wordmark .wm-globe {
  position: relative;
  top: 0.02em;
  width: 0.82em;
  height: 0.82em;
  flex: 0 0 auto;
}
.wordmark .wm-word {
  display: inline-block;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 28px);
}
.nav a:not(.btn) {
  position: relative;
  padding: 6px 0;
  white-space: nowrap;
  font-family: var(--display);
  font-size: 0.93rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink);
}
.nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--crimson);
  transform: scaleX(0);
  transition: transform 0.3s var(--ease);
}
.nav a:not(.btn):hover::after {
  transform: scaleX(1);
}
.nav a:not(.btn)[aria-current="page"] {
  color: var(--crimson);
}
.nav a:not(.btn)[aria-current="page"]::after {
  background: var(--amber);
  transform: scaleX(1);
}
.h1-sm {
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
}

.menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-right: -8px;
  border: 0;
  background: none;
  cursor: pointer;
}
.menu-btn span,
.menu-btn span::before,
.menu-btn span::after {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  transition:
    transform 0.3s var(--ease),
    background 0.3s var(--ease),
    top 0.3s var(--ease);
}
.menu-btn span {
  position: relative;
}
.menu-btn span::before,
.menu-btn span::after {
  content: "";
  position: absolute;
  left: 0;
}
.menu-btn span::before {
  top: -8px;
}
.menu-btn span::after {
  top: 8px;
}

@media (max-width: 1160px) {
  .nav {
    display: none;
  }
  .menu-btn {
    display: inline-flex;
  }
}

.drawer {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: calc(var(--header-h) + 24px) var(--gutter) 40px;
  background: var(--ink);
  clip-path: circle(0% at calc(100% - 40px) 37px);
  visibility: hidden;
  transition:
    clip-path 0.55s var(--ease-out),
    visibility 0s linear 0.55s;
}
.drawer a:not(.btn) {
  font-family: var(--display);
  font-size: clamp(1.7rem, 7vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  padding-block: 6px;
}
.drawer a:not(.btn):hover,
.drawer a:not(.btn)[aria-current="page"] {
  color: var(--amber);
}
.drawer .drawer-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: 28px;
}
.drawer .drawer-phone {
  font-size: 1.15rem;
  color: var(--amber);
}

.menu-open {
  overflow: hidden;
}
.menu-open .drawer {
  clip-path: circle(150% at calc(100% - 40px) 37px);
  visibility: visible;
  transition: clip-path 0.55s var(--ease-out);
}
.menu-open .header {
  background: var(--ink);
  border-color: var(--line-dark);
}
.menu-open .header .wordmark {
  color: #fff;
}
.menu-open .menu-btn span {
  background: transparent;
}
.menu-open .menu-btn span::before {
  top: 0;
  transform: rotate(45deg);
  background: #fff;
}
.menu-open .menu-btn span::after {
  top: 0;
  transform: rotate(-45deg);
  background: #fff;
}

/* ---- Home hero: one wide photo behind the words ----------- */

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: clamp(560px, 76vh, 760px);
  overflow: hidden;
  padding-block: clamp(64px, 8vw, 112px);
  background: var(--ink);
  color: #fff;
}
/* the photo is mirrored so the electrician stands on the right, clear of the words */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
  transform: scaleX(-1);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(21, 17, 14, 0.9) 0%, rgba(21, 17, 14, 0.8) 36%, rgba(21, 17, 14, 0.4) 66%, rgba(21, 17, 14, 0.22) 100%),
    linear-gradient(0deg, rgba(21, 17, 14, 0.6), transparent 38%);
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 32px;
  width: 100%;
}
.hero-copy {
  max-width: 700px;
}
.hero h1 {
  margin-bottom: 22px;
  color: #fff;
}
.hero h1 .accent {
  color: var(--amber);
}
.hero .lede {
  color: rgba(255, 255, 255, 0.84);
}
.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(21, 17, 14, 0.62);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff;
  font-family: var(--display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.hero-chip svg {
  color: var(--amber);
}

@media (max-width: 900px) {
  .hero {
    min-height: 0;
  }
  .hero::before {
    background: linear-gradient(0deg, rgba(21, 17, 14, 0.92), rgba(21, 17, 14, 0.72));
  }
  .hero-bg {
    object-position: 70% 50%;
  }
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-chip {
    justify-self: start;
  }
}

/* Inner page photo beside the heading */
.hero-shot {
  display: block;
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
@media (max-width: 900px) {
  .hero-shot {
    aspect-ratio: 16 / 10;
  }
}

/* ---- Capability strip and statement --------------------- */

.caps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  padding-block: 30px;
  list-style: none;
}
.cap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: #fff;
  font-family: var(--display);
  font-size: 0.87rem;
  font-weight: 600;
}
.cap svg {
  color: var(--crimson);
}

.statement {
  max-width: 30em;
  margin: 0 auto;
  font-family: var(--display);
  font-size: clamp(1.45rem, 2.7vw, 2.25rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.018em;
  text-align: center;
  text-wrap: balance;
}
.statement .muted {
  color: color-mix(in srgb, var(--steel-500) 80%, var(--paper));
}

/* ---- Featured service cards ---------------------------------- */

.fcard {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.4s var(--ease-out),
    box-shadow 0.4s var(--ease-out);
}
.fcard:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.fcard-art {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  background-color: var(--ink);
  background-image:
    radial-gradient(70% 90% at 80% 0%, rgba(168, 28, 28, 0.38), transparent 60%),
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size:
    auto,
    24px 24px,
    24px 24px;
}
.fcard-art > svg {
  width: 78%;
  height: auto;
}
.fcard-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  padding: 26px 26px 28px;
}
.fcard-body p {
  color: var(--steel-500);
  font-size: 0.97rem;
}
.fcard-body .textlink {
  align-self: flex-start;
  margin-top: auto;
}
.badge {
  position: absolute;
  top: 16px;
  left: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--amber);
  color: var(--ink);
  font-family: var(--display);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.badge--static {
  position: static;
}

/* ---- Audience panels --------------------------------------- */

.aud {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: #fff;
}
.aud--dark {
  border-color: transparent;
  background: var(--ink);
  color: #fff;
}
.aud--dark h3 {
  color: #fff;
}
.aud .aud-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--crimson) 10%, transparent);
  color: var(--crimson);
}
.aud--dark .aud-icon {
  background: rgba(255, 178, 0, 0.14);
  color: var(--amber);
}
.aud h3 {
  font-size: clamp(1.45rem, 2.2vw, 1.8rem);
  font-weight: 800;
}
.aud > p {
  color: var(--steel-500);
}
.aud--dark > p {
  color: rgba(255, 255, 255, 0.7);
}
.aud .textlink {
  align-self: flex-start;
  margin-top: 8px;
}

.checks {
  display: flex;
  flex-direction: column;
  gap: 11px;
  list-style: none;
}
.checks li {
  position: relative;
  padding-left: 30px;
  line-height: 1.5;
}
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--crimson) 12%, transparent)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a81c1c' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E")
    center / 12px no-repeat;
}
.on-dark .checks li::before,
.aud--dark .checks li::before {
  background-color: rgba(255, 178, 0, 0.16);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffb200' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E");
}
.aud--dark .checks li {
  color: rgba(255, 255, 255, 0.86);
}

/* ---- Grouped service list (home) --------------------------- */

.svc-columns {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 28px;
}
.svc-col h3 {
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--amber);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--crimson);
}
.svc-col ul {
  display: flex;
  flex-direction: column;
  gap: 4px;
  list-style: none;
}
.svc-col a {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line-soft);
  font-weight: 600;
  line-height: 1.35;
  transition: color 0.2s var(--ease);
}
.svc-col a::after {
  content: "›";
  color: var(--crimson);
  transition: transform 0.25s var(--ease);
}
.svc-col a:hover {
  color: var(--crimson);
}
.svc-col a:hover::after {
  transform: translateX(3px);
}
@media (max-width: 1080px) {
  .svc-columns {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 760px) {
  .svc-columns {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .svc-columns {
    grid-template-columns: 1fr;
  }
}

/* ---- Rebate band ------------------------------------------- */

.rebate-band {
  overflow: hidden;
  background-color: var(--crimson-deep);
  background-image:
    radial-gradient(60% 120% at 100% 0%, rgba(255, 178, 0, 0.22), transparent 60%),
    radial-gradient(80% 120% at 0% 100%, rgba(21, 17, 14, 0.5), transparent 60%);
  color: #fff;
}
.rebate-band h2,
.rebate-band h3 {
  color: #fff;
}
.rebate-band .lede {
  color: rgba(255, 255, 255, 0.82);
}
.rebate-steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
  list-style: none;
  counter-reset: rs;
}
.rebate-steps li {
  position: relative;
  padding: 20px 22px 20px 74px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  background: rgba(21, 17, 14, 0.28);
  counter-increment: rs;
}
.rebate-steps li::before {
  content: counter(rs);
  position: absolute;
  left: 20px;
  top: 18px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--amber);
  color: var(--ink);
  font-family: var(--display);
  font-weight: 800;
}
.rebate-steps strong {
  display: block;
  font-family: var(--display);
  font-size: 1.05rem;
}
.rebate-steps span {
  display: block;
  margin-top: 4px;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.76);
}
.fine {
  margin-top: 18px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.66);
}
.fine--light {
  color: var(--steel-500);
}

/* ---- Process steps --------------------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  list-style: none;
}
.step img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius);
}
.step .step-num {
  display: block;
  margin: 18px 0 6px;
  font-family: var(--display);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--amber);
}
.step h3 {
  margin-bottom: 8px;
}
.step p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
}
.section:not(.section--dark) .step p {
  color: var(--steel-500);
}
.section:not(.section--dark) .step .step-num {
  color: var(--crimson);
}
@media (max-width: 980px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 520px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

/* Numbered timeline used on the service pages */
.timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  list-style: none;
  counter-reset: tl;
}
.timeline li {
  position: relative;
  padding: 24px 24px 26px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: #fff;
  counter-increment: tl;
}
.timeline li::before {
  content: counter(tl, decimal-leading-zero);
  display: block;
  margin-bottom: 12px;
  font-family: var(--display);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--crimson);
}
.timeline h3 {
  margin-bottom: 8px;
  font-size: 1.12rem;
}
.timeline p {
  font-size: 0.95rem;
  color: var(--steel-500);
}
.section--dark .timeline li {
  border-color: var(--line-dark);
  background: var(--steel-800);
}
.section--dark .timeline li::before {
  color: var(--amber);
}
.section--dark .timeline p {
  color: rgba(255, 255, 255, 0.7);
}
@media (max-width: 980px) {
  .timeline {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .timeline {
    grid-template-columns: 1fr;
  }
}

/* ---- About and facts ----------------------------------------- */

.facts {
  margin: 0;
  padding: clamp(26px, 3.5vw, 38px);
  border-radius: var(--radius-lg);
  background: var(--ink);
  color: #fff;
}
.facts h3 {
  margin-bottom: 18px;
  color: #fff;
}
.facts dl {
  margin: 0;
}
.facts .fact {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 14px;
  padding: 13px 0;
  border-top: 1px solid var(--line-dark);
}
.facts dt {
  font-family: var(--display);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  padding-top: 3px;
}
.facts dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
}
.facts a:hover {
  color: var(--amber);
}
@media (max-width: 460px) {
  .facts .fact {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

.values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 28px;
  margin-top: 30px;
}
.value h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  font-size: 1.05rem;
}
.value h3::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--amber);
}
.value p {
  font-size: 0.95rem;
  color: var(--steel-500);
}
@media (max-width: 520px) {
  .values {
    grid-template-columns: 1fr;
  }
}

/* ---- Questions (FAQ) --------------------------------------- */

.segs {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  padding: 5px;
  border-radius: 999px;
  background: var(--paper-3);
}
.seg {
  min-height: 42px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--steel-500);
  font-family: var(--display);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    background 0.2s var(--ease),
    color 0.2s var(--ease);
}
.seg:hover {
  color: var(--ink);
}
.seg[aria-pressed="true"] {
  background: #fff;
  color: var(--crimson);
  box-shadow: var(--shadow-sm);
}

.qa {
  max-width: 860px;
  margin-inline: auto;
  border-top: 1px solid var(--line);
}
.qa details {
  border-bottom: 1px solid var(--line);
}
.qa summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 4px;
  cursor: pointer;
  list-style: none;
}
.qa summary::-webkit-details-marker {
  display: none;
}
.qa summary h3 {
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  transition: color 0.2s var(--ease);
}
.qa summary:hover h3 {
  color: var(--crimson);
}
.qa .plus {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--paper-3);
  color: var(--crimson);
  transition:
    transform 0.3s var(--ease),
    background 0.2s var(--ease);
}
.qa details[open] .plus {
  transform: rotate(45deg);
  background: var(--amber);
  color: var(--ink);
}
.qa details > p,
.qa details > div {
  max-width: 70ch;
  padding: 0 4px 24px;
  color: var(--steel-500);
}
.after-note {
  margin-top: 32px;
  text-align: center;
  color: var(--steel-500);
}
.after-note a {
  color: var(--crimson);
  font-weight: 700;
}

/* ---- Areas ------------------------------------------------- */

.areas {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.areas-list {
  margin: 0;
  border-bottom: 1px solid var(--line);
}
/* one row per region: the region on the left, its cities on the right */
.area {
  display: grid;
  grid-template-columns: minmax(118px, 0.42fr) minmax(0, 1fr);
  gap: 6px 20px;
  align-items: baseline;
  padding: 15px 0;
  border-top: 1px solid var(--line);
}
.area dt {
  font-family: var(--display);
  font-weight: 800;
}
.area dd {
  margin: 0;
  color: var(--steel-500);
}
@media (max-width: 860px) {
  .areas {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 420px) {
  .area {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---- CTA band ------------------------------------------------ */

.cta-band {
  position: relative;
  overflow: hidden;
  padding-block: clamp(72px, 9vw, 120px);
  background-color: var(--ink);
  background-image:
    radial-gradient(60% 90% at 15% 100%, rgba(168, 28, 28, 0.45), transparent 60%),
    radial-gradient(50% 70% at 95% 0%, rgba(255, 178, 0, 0.16), transparent 60%);
  color: #fff;
  text-align: center;
}
.cta-band h2 {
  max-width: 18em;
  margin: 0 auto;
  color: #fff;
}
.cta-band .lede {
  margin: 18px auto 0;
}
.phone-xl {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  transition: color 0.2s var(--ease);
}
.phone-xl:hover {
  color: var(--amber);
}
.phone-xl svg {
  width: 0.8em;
  height: 0.8em;
  color: var(--amber);
}
.cta-band .actions {
  justify-content: center;
}

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

.footer {
  padding: clamp(56px, 7vw, 84px) 0 26px;
  background: var(--steel-900);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: 40px;
}
.footer-summary {
  max-width: 36ch;
  margin-top: 16px;
}
.footer h2 {
  margin-bottom: 16px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
}
.footer ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
}
.footer a:hover {
  color: var(--amber);
}
.footer address {
  font-style: normal;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid var(--line-dark);
  font-size: 0.85rem;
}
.footer-tag {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--crimson-bright);
}
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 540px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ---- Inner page hero ----------------------------------------- */

.page-hero {
  padding-block: clamp(36px, 5vw, 64px) clamp(52px, 7vw, 92px);
  background: var(--paper-2);
  border-bottom: 1px solid var(--line-soft);
}
.page-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.page-hero h1 {
  font-size: clamp(2.3rem, 5vw, 4rem);
  margin-bottom: 20px;
}
.page-hero .badge {
  position: static;
  margin-bottom: 18px;
}
.hero-art {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 5 / 4;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background-color: var(--ink);
  background-image:
    radial-gradient(70% 80% at 85% 0%, rgba(168, 28, 28, 0.42), transparent 60%),
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size:
    auto,
    26px 26px,
    26px 26px;
  box-shadow: var(--shadow-lg);
}
.hero-art > svg {
  width: 82%;
  height: auto;
}
.hero-art .badge {
  position: absolute;
  margin: 0;
}
.page-hero--plain .page-hero-grid {
  grid-template-columns: 1fr;
  max-width: 820px;
}
@media (max-width: 900px) {
  .page-hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-art {
    aspect-ratio: 16 / 10;
  }
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
  list-style: none;
  font-size: 0.88rem;
  color: var(--steel-500);
}
.crumbs li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--line);
}
.crumbs a {
  font-weight: 600;
}
.crumbs a:hover {
  color: var(--crimson);
}

/* Quick answer box (the first thing AI tools and readers see) */
.answer {
  max-width: 880px;
  margin-inline: auto;
  padding: clamp(24px, 3.5vw, 36px) clamp(24px, 4vw, 42px);
  border-left: 4px solid var(--amber);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.answer h2 {
  margin-bottom: 12px;
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
}
.answer p {
  color: var(--steel-500);
  font-size: 1.04rem;
}

/* ---- All services page ------------------------------------------ */

.svc-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.toc {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  padding: 22px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: #fff;
}
.toc h2 {
  margin-bottom: 12px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel-500);
}
.toc ol {
  display: flex;
  flex-direction: column;
  gap: 2px;
  list-style: none;
}
.toc .toc-group {
  margin-top: 12px;
  font-family: var(--display);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--crimson);
}
.toc .toc-group:first-child {
  margin-top: 0;
}
.toc a {
  display: block;
  padding: 6px 10px;
  margin-inline: -10px;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.35;
  transition:
    background 0.2s var(--ease),
    color 0.2s var(--ease);
}
.toc a:hover,
.toc a.is-current {
  background: var(--paper-2);
  color: var(--crimson);
}

.svc-group + .svc-group {
  margin-top: clamp(48px, 6vw, 80px);
}
.svc-group-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 8px;
}
.svc-group-head .num {
  font-family: var(--display);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--amber-deep);
}
.svc-group-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
}
.svc-group-intro {
  max-width: 62ch;
  color: var(--steel-500);
}

.svc-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 40px;
  margin-top: 26px;
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  background: #fff;
}
.svc-block-head {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.svc-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  flex: 0 0 auto;
  border: 1.5px solid color-mix(in srgb, var(--crimson) 25%, transparent);
  border-radius: 50%;
  color: var(--crimson);
}
.svc-block h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 800;
}
.svc-block .svc-summary {
  margin-top: 8px;
  color: var(--steel-500);
}
.svc-block h4 {
  margin-bottom: 12px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel-500);
}
.svc-block .checks li {
  font-size: 0.96rem;
}
.svc-block-foot {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--paper-2);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--steel-700);
}
.chip::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--crimson);
}
.chip--dealer::before {
  background: var(--amber-deep);
}
@media (max-width: 960px) {
  .svc-layout {
    grid-template-columns: 1fr;
  }
  .toc {
    position: static;
  }
  .toc ol {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
  }
  .toc .toc-group {
    display: none;
  }
  .toc a {
    margin: 0;
    padding: 7px 12px;
    border: 1px solid var(--line-soft);
    border-radius: 999px;
    font-size: 0.85rem;
  }
}
@media (max-width: 680px) {
  .svc-block {
    grid-template-columns: 1fr;
  }
}

/* Links to the three dedicated service pages */
.mini-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.mini-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: var(--steel-800);
  transition:
    transform 0.35s var(--ease-out),
    border-color 0.3s var(--ease);
}
.mini-card:hover {
  transform: translateY(-4px);
  border-color: var(--amber);
}
.mini-card h3 {
  color: #fff;
  font-size: 1.15rem;
}
.mini-card p {
  font-size: 0.93rem;
  color: rgba(255, 255, 255, 0.68);
}
.mini-card span {
  margin-top: auto;
  font-family: var(--display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber);
}
@media (max-width: 860px) {
  .mini-cards {
    grid-template-columns: 1fr;
  }
}

/* ---- Info cards, tables and lists on service pages ---------- */

.card {
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  background: #fff;
}
.card h3 {
  margin-bottom: 10px;
}
.card > p {
  color: var(--steel-500);
}
.card .checks {
  margin-top: 16px;
}
/* Cards that link to a page (audience pages) */
.pm-card {
  display: flex;
  flex-direction: column;
  transition:
    transform 0.35s var(--ease-out),
    box-shadow 0.35s var(--ease-out),
    border-color 0.3s var(--ease);
}
.pm-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--crimson) 30%, transparent);
  box-shadow: var(--shadow-md);
}
.pm-card > p:not(.card-kicker) {
  color: var(--steel-500);
}
.pm-card .textlink {
  align-self: flex-start;
  margin-top: auto;
}
.pm-card h3 + p {
  margin-bottom: 16px;
}
.card--dark {
  border-color: transparent;
  background: var(--ink);
  color: #fff;
}
.card--dark h3 {
  color: #fff;
}
.card--dark > p {
  color: rgba(255, 255, 255, 0.72);
}
.card--dark .checks li {
  color: rgba(255, 255, 255, 0.86);
}
.card--dark .checks li::before {
  background-color: rgba(255, 178, 0, 0.16);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffb200' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E");
}
.card-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--crimson);
}
.card--dark .card-kicker {
  color: var(--amber);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  background: #fff;
}
.compare {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 0.97rem;
}
.compare caption {
  padding: 22px 24px 0;
  text-align: left;
  font-family: var(--display);
  font-weight: 700;
}
.compare th,
.compare td {
  padding: 16px 24px;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  vertical-align: top;
}
.compare thead th {
  font-family: var(--display);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel-500);
  background: var(--paper);
}
.compare tbody th {
  width: 22%;
  font-family: var(--display);
  font-weight: 700;
}
.compare tbody tr:last-child th,
.compare tbody tr:last-child td {
  border-bottom: 0;
}
.compare td {
  color: var(--steel-700);
}

.signs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  list-style: none;
}
.signs li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 20px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: #fff;
}
.signs li svg {
  flex: 0 0 auto;
  margin-top: 2px;
  color: var(--crimson);
}
.signs li > span {
  display: block;
}
.signs strong {
  display: block;
  font-family: var(--display);
  line-height: 1.3;
  color: var(--ink);
}
.signs strong + span {
  display: block;
  margin-top: 4px;
  font-size: 0.92rem;
  color: var(--steel-500);
}
@media (max-width: 900px) {
  .signs {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 560px) {
  .signs {
    grid-template-columns: 1fr;
  }
}

.callout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 28px;
  margin-top: 28px;
  padding: 22px 26px;
  border-radius: var(--radius);
  background: var(--paper-3);
}
.callout p {
  max-width: 62ch;
  margin: 0;
}
.callout strong {
  font-family: var(--display);
}

/* ---- Pump diagram -------------------------------------------------- */

.diagram-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}
.diagram-head .section-head {
  margin-bottom: 0;
}
.view-toggle {
  flex: 0 1 auto;
  max-width: 100%;
}
@media (max-width: 400px) {
  .seg {
    padding: 0 13px;
    font-size: 0.84rem;
  }
}

.diagram {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 22px;
  align-items: start;
}
.diagram-stage {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #e9f2f8 0%, #f6f1ea 58%);
  box-shadow: var(--shadow-sm);
}
.diagram-stage svg {
  width: 100%;
  height: auto;
}
.diagram-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
  padding: 14px 20px;
  background: var(--ink);
  color: #fff;
}
.diagram-title strong {
  font-family: var(--display);
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.diagram-title span {
  font-size: 0.86rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.72);
}
.diagram-hint {
  position: absolute;
  right: 14px;
  top: 66px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  font-family: var(--display);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--steel-700);
  pointer-events: none;
}

/* Flow lines and focus behaviour */
.dg-pipe {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 6;
}
.dg-flow {
  fill: none;
  stroke: #fff;
  stroke-linecap: round;
  stroke-width: 2.2;
  stroke-dasharray: 3 13;
  opacity: 0.9;
  animation: dg-flow 1.1s linear infinite;
}
@keyframes dg-flow {
  to {
    stroke-dashoffset: -32;
  }
}
.sys-water .dg-pipe {
  stroke: var(--flow-water);
}
.sys-heat .dg-pipe {
  stroke: var(--flow-heat);
}
.sys-ground .dg-pipe {
  stroke: var(--flow-ground);
}
.sys-waste .dg-pipe {
  stroke: var(--flow-waste);
}
.dg-sys {
  transition: opacity 0.35s var(--ease);
}
.diagram[data-focus] .dg-sys {
  opacity: 0.16;
}
.diagram[data-focus="booster"] .sys-water,
.diagram[data-focus="circulation"] .sys-heat,
.diagram[data-focus="sump"] .sys-ground,
.diagram[data-focus="sanitary"] .sys-waste {
  opacity: 1;
}
.diagram[data-focus="booster"] .sys-water .dg-pipe,
.diagram[data-focus="circulation"] .sys-heat .dg-pipe,
.diagram[data-focus="sump"] .sys-ground .dg-pipe,
.diagram[data-focus="sanitary"] .sys-waste .dg-pipe {
  stroke-width: 8;
}

.dg-marker {
  cursor: pointer;
}
.dg-marker circle.ring {
  fill: var(--crimson);
  stroke: #fff;
  stroke-width: 3;
  transition: transform 0.25s var(--spring);
  transform-box: fill-box;
  transform-origin: center;
}
.dg-marker text {
  fill: #fff;
  font-family: var(--display);
  font-size: 19px;
  font-weight: 800;
  pointer-events: none;
}
.dg-marker:hover circle.ring,
.dg-marker:focus-visible circle.ring,
.dg-marker.is-active circle.ring {
  transform: scale(1.18);
  fill: var(--amber-deep);
}
.dg-marker:focus {
  outline: none;
}
.dg-pulse {
  fill: none;
  stroke: var(--crimson);
  stroke-width: 2;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}
.dg-marker.is-active .dg-pulse {
  animation: dg-pulse 1.6s var(--ease-out) infinite;
}
@keyframes dg-pulse {
  0% {
    opacity: 0.8;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(2.2);
  }
}
.dg-label {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 700;
}
.dg-small {
  font-family: var(--body);
  font-size: 12.5px;
  font-weight: 600;
  fill: var(--steel-500);
}
@media (max-width: 640px) {
  .diagram-stage .dg-label,
  .diagram-stage .dg-small,
  .diagram-stage .dg-callout,
  .diagram-hint {
    display: none;
  }
  /* Bigger numbers so they're easy to tap on a phone */
  .dg-marker {
    transform-box: fill-box;
    transform-origin: center;
    transform: scale(1.6);
  }
}

.pump-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pump-card {
  position: relative;
  padding: 18px 20px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: #fff;
  transition:
    border-color 0.25s var(--ease),
    box-shadow 0.25s var(--ease),
    transform 0.25s var(--ease-out);
}
.pump-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.pump-card.is-active {
  border-color: var(--crimson);
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--crimson) 14%, transparent),
    var(--shadow-sm);
}
/* The title row is the button; its ::after stretches over the whole card. */
.pump-card-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.pump-card-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}
.pump-card-btn:focus-visible {
  outline: none;
}
.pump-card-btn:focus-visible::after {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
  border-radius: var(--radius);
}
.pump-num {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--crimson);
  color: #fff;
  font-family: var(--display);
  font-weight: 800;
}
.pump-card.is-active .pump-num {
  background: var(--amber-deep);
}
.pump-card strong {
  font-family: var(--display);
  font-size: 1.05rem;
  line-height: 1.2;
}
.pump-swatch {
  width: 26px;
  height: 6px;
  margin-left: auto;
  border-radius: 3px;
}
.pump-card p {
  margin: 10px 0 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--steel-500);
}
.pump-card .pump-more {
  display: none;
  margin-top: 10px;
  padding-left: 18px;
  font-size: 0.9rem;
  color: var(--steel-700);
}
.pump-card.is-active .pump-more {
  display: block;
}
.pump-card .pump-more li + li {
  margin-top: 4px;
}
.card-kicker .pump-num {
  width: 26px;
  height: 26px;
  font-size: 0.85rem;
  letter-spacing: 0;
}
.card--steel {
  border-color: var(--line-dark);
  background: var(--steel-800);
}
.plan .card--steel h3 small {
  color: var(--amber);
}

.system-strip {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px 22px 24px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
}
.system-strip .legend {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.system-strip strong {
  font-family: var(--display);
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.system-strip p {
  max-width: 52ch;
  margin: 4px 0 0;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.72);
}
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  list-style: none;
  font-size: 0.85rem;
  font-weight: 600;
}
.legend li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.legend i {
  width: 22px;
  height: 5px;
  border-radius: 3px;
}

.illustration {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--ink);
  box-shadow: var(--shadow-md);
}
.illustration img {
  width: 100%;
  max-width: 760px;
  margin-inline: auto;
}
.illustration figcaption {
  padding: 16px 22px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
}

@media (max-width: 980px) {
  .diagram {
    grid-template-columns: 1fr;
  }
}

/* Maintenance plan */
.plan {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.plan .card h3 {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.plan .card h3 small {
  font-family: var(--body);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--crimson);
}
@media (max-width: 900px) {
  .plan {
    grid-template-columns: 1fr;
  }
}

/* ---- Contact page ------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.contact-lines {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 26px 0 0;
}
.contact-line {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-soft);
}
.contact-line .ico {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border-radius: 10px;
  background: color-mix(in srgb, var(--crimson) 10%, transparent);
  color: var(--crimson);
}
.contact-line .cl-label {
  display: block;
  font-family: var(--display);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel-500);
}
.contact-line .cl-value {
  display: block;
  margin: 2px 0 0;
  font-weight: 600;
}
.contact-line a:hover {
  color: var(--crimson);
}
.next-steps {
  margin-top: 30px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--paper-2);
}
.next-steps h2 {
  margin-bottom: 14px;
  font-size: 1.1rem;
}
.next-steps ol {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-left: 20px;
  color: var(--steel-700);
}

.form-card {
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--line-soft);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-md);
}
.form-card h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
}
.form-card > p {
  margin-top: 8px;
  color: var(--steel-500);
}
.form {
  margin-top: 22px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}
@media (max-width: 560px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 16px;
}
.field label {
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel-500);
}
.field label .req {
  color: var(--crimson);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1rem;
  transition:
    border-color 0.2s var(--ease),
    background 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}
.field select {
  appearance: none;
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235a5048' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
}
.field textarea {
  min-height: 130px;
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--crimson);
  background-color: #fff;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--crimson) 14%, transparent);
}
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--crimson-bright);
  background-color: #fff6f5;
}
.field-error {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--crimson-bright);
}
.trap {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-status {
  margin: 16px 0 0;
  padding: 14px 16px;
  border-radius: 12px;
  font-weight: 600;
}
.form-status[data-tone="working"] {
  background: var(--paper-2);
  color: var(--steel-700);
}
.form-status[data-tone="good"] {
  border: 1px solid color-mix(in srgb, #2a7a2a 30%, transparent);
  background: color-mix(in srgb, #2a7a2a 10%, transparent);
  color: #1c5a1c;
}
.form-status[data-tone="bad"] {
  border: 1px solid color-mix(in srgb, var(--crimson) 30%, transparent);
  background: color-mix(in srgb, var(--crimson) 8%, transparent);
  color: var(--crimson-deep);
}
.form-status a {
  text-decoration: underline;
}
.form-note {
  margin-top: 14px;
  font-size: 0.88rem;
  text-align: center;
  color: var(--steel-500);
}
.form-note a {
  color: var(--crimson);
  font-weight: 700;
}
.btn[disabled] {
  opacity: 0.7;
  cursor: progress;
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* ---- Plain text pages (privacy, 404) ------------------------- */

.prose {
  max-width: 720px;
}
.prose h2 {
  margin: 40px 0 12px;
  font-size: 1.5rem;
}
.prose p,
.prose li {
  color: var(--steel-700);
}
.prose ul {
  padding-left: 20px;
  margin-bottom: 1em;
}
.prose li + li {
  margin-top: 6px;
}
.prose a {
  color: var(--crimson);
  font-weight: 700;
}

/* ---- Reveal on scroll (only when JavaScript is running) --------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.8s var(--ease-out),
    transform 0.8s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
  .dg-flow {
    animation: none;
    stroke-dasharray: none;
    opacity: 0;
  }
}

/* =========================================================
   Mega menu (approved option B)
   ========================================================= */

.chev {
  transition: transform 0.25s var(--ease);
}
.header-inner {
  position: static;
}
.mega {
  display: flex;
  align-items: center;
  gap: 2px;
}
.mega-btn {
  display: grid;
  place-items: center;
  width: 24px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: none;
  color: var(--steel-500);
  cursor: pointer;
}
.mega-btn:hover {
  color: var(--crimson);
}
.mega-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 60;
  border-top: 1px solid var(--line-soft);
  background: #fff;
  box-shadow: 0 34px 60px -34px rgba(21, 17, 14, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition:
    opacity 0.2s var(--ease),
    transform 0.2s var(--ease),
    visibility 0s linear 0.2s;
}
/* A strip above the panel keeps it open while the pointer travels down to it */
.mega-panel::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -26px;
  height: 26px;
}
.mega:hover .mega-panel,
.mega:focus-within .mega-panel,
.mega.is-open .mega-panel {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}
.mega:hover .mega-btn .chev,
.mega.is-open .mega-btn .chev {
  transform: rotate(180deg);
}
.mega-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 44px;
  padding-block: 28px 32px;
}
.mega-intro {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 0 18px;
  align-content: start;
}
.mega-photo {
  grid-row: span 4;
  width: 100px;
  height: 128px;
  object-fit: cover;
  border-radius: 12px;
}
.mega-intro .eyebrow {
  margin-bottom: 6px;
  font-size: 11px;
}
.mega-intro .eyebrow::before {
  width: 18px;
}
.mega-title {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.mega-text {
  margin-bottom: 12px;
  font-size: 0.92rem;
  color: var(--steel-500);
}
.nav .mega-intro .textlink {
  justify-self: start;
  padding: 0 0 3px;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--crimson);
}
/* The audience you're inside stays highlighted in the menu */
.nav .mega > a.is-active {
  color: var(--crimson);
}
.nav .mega > a.is-active::after {
  background: var(--amber);
  transform: scaleX(1);
}
.nav .mega-intro .textlink::after {
  display: none;
}
.mega-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 18px;
  align-content: start;
}
.nav .mega-links a {
  display: block;
  padding: 11px 14px;
  border-radius: 12px;
  white-space: normal;
}
.nav .mega-links a::after {
  display: none;
}
.nav .mega-links a:hover,
.nav .mega-links a[aria-current="page"] {
  background: var(--paper-2);
}
.mega-links strong {
  display: block;
  font-family: var(--display);
  font-size: 1rem;
  color: var(--ink);
}
.mega-links span {
  display: block;
  margin-top: 2px;
  font-family: var(--body);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--steel-500);
}
.nav .mega-links a:hover strong,
.nav .mega-links a[aria-current="page"] strong {
  color: var(--crimson);
}

/* Phone menu: each audience is an expandable section */
.drawer {
  justify-content: flex-start;
  overflow-y: auto;
  padding-top: calc(var(--header-h) + 28px);
}
.drawer-group summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 6px;
  list-style: none;
  cursor: pointer;
  font-family: var(--display);
  font-size: clamp(1.7rem, 7vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}
.drawer-group summary::-webkit-details-marker {
  display: none;
}
.drawer-group summary .chev {
  width: 22px;
  height: 22px;
  color: var(--amber);
}
.drawer-group[open] summary .chev {
  transform: rotate(180deg);
}
.drawer-sub {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 4px 0 10px 4px;
  padding: 2px 0 6px 16px;
  border-left: 2px solid var(--amber);
}
.drawer .drawer-sub a {
  padding-block: 7px;
  font-size: 1.1rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
}
.drawer .drawer-sub a span {
  display: block;
  font-family: var(--body);
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
}

/* =========================================================
   Job photo carousels and the preview window
   ========================================================= */

.gallery {
  --frame: 4 / 5;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  margin: 0;
}
.gallery[data-aspect="landscape"] {
  --frame: 4 / 3;
}
.gallery[data-aspect="square"] {
  --frame: 1 / 1;
}
.gallery-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.gallery-title {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.gallery-title strong {
  font-family: var(--display);
  font-size: 1.05rem;
  line-height: 1.25;
}
.gallery-nav {
  display: flex;
  flex: 0 0 auto;
  gap: 6px;
}
.gallery-nav button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  transition:
    border-color 0.2s var(--ease),
    color 0.2s var(--ease);
}
.gallery-nav button:hover {
  border-color: var(--crimson);
  color: var(--crimson);
}
.gallery-viewport {
  position: relative;
  overflow: hidden;
  aspect-ratio: var(--frame);
  border-radius: var(--radius);
  background: var(--paper-3);
  touch-action: pan-y;
}
.gallery-track {
  display: flex;
  height: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  transition: transform 0.7s var(--ease-out);
}
.gallery-slide {
  position: relative;
  flex: 0 0 100%;
  height: 100%;
}
.gallery-open {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  overflow: hidden;
  cursor: zoom-in;
}
.gallery-open img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}
.gallery-open:hover img,
.gallery-open:focus-visible img {
  transform: scale(1.04);
}
.gallery-open:focus-visible {
  outline-offset: -4px;
}
.gallery-caption {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  margin: 0;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(21, 17, 14, 0.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 0.84rem;
  line-height: 1.4;
  pointer-events: none;
}
.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
}
.gallery-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(21, 17, 14, 0.18);
  cursor: pointer;
  transition:
    width 0.3s var(--ease),
    background 0.3s var(--ease);
}
.section--dark .gallery-dots button {
  background: rgba(255, 255, 255, 0.25);
}
.gallery-dots button[aria-current="true"] {
  width: 22px;
  background: var(--crimson);
}
.section--dark .gallery-dots button[aria-current="true"] {
  background: var(--amber);
}
.gallery.is-single .gallery-nav,
.gallery.is-single .gallery-dots {
  display: none;
}
/* Without JavaScript the photos sit in a row you can scroll sideways */
html:not(.js) .gallery-viewport {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}
html:not(.js) .gallery-slide {
  scroll-snap-align: start;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px 22px;
}
.gallery-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.gallery-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 1100px) {
  .gallery-grid,
  .gallery-grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .gallery-grid,
  .gallery-grid--3,
  .gallery-grid--2 {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Photo carousel in a page's top section */
.hero-gallery .gallery-viewport {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* Job rows (commercial page, like Imagine Work's) */
.job {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding-block: clamp(28px, 4vw, 44px);
  border-top: 1px solid var(--line);
}
.job:first-child {
  border-top: 0;
  padding-top: 0;
}
.job-label {
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--crimson);
}
.job h3 {
  margin: 8px 0 10px;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 800;
}
.job p {
  color: var(--steel-500);
}
.job .checks {
  margin-top: 14px;
}
@media (max-width: 860px) {
  .job {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* The preview window */
.lightbox {
  width: 100vw;
  max-width: 100vw;
  height: 100vh;
  max-height: 100vh;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
}
.lightbox::backdrop {
  background: rgba(10, 8, 7, 0.92);
}
.lightbox[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  animation: lb-in 0.25s var(--ease-out);
}
@keyframes lb-in {
  from {
    opacity: 0;
  }
}
.lb-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: max(14px, env(safe-area-inset-top, 0px)) max(18px, env(safe-area-inset-right, 0px)) 10px max(18px, env(safe-area-inset-left, 0px));
  font-family: var(--display);
  font-size: 0.9rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.75);
}
.lb-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 0;
  padding: 0 70px;
}
.lb-stage img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7);
}
.lb-caption {
  max-width: 70ch;
  margin: 0 auto;
  padding: 14px 20px max(18px, env(safe-area-inset-bottom, 0px));
  text-align: center;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
}
.lb-btn {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  transition:
    background 0.2s var(--ease),
    border-color 0.2s var(--ease);
}
.lb-btn:hover {
  border-color: var(--amber);
  background: rgba(255, 178, 0, 0.18);
}
.lb-prev,
.lb-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}
.lb-prev {
  left: 12px;
}
.lb-next {
  right: 12px;
}
.lightbox.is-single .lb-prev,
.lightbox.is-single .lb-next,
.lightbox.is-single .lb-count {
  visibility: hidden;
}
@media (max-width: 640px) {
  .lb-stage {
    padding: 0 10px;
  }
  .lb-prev,
  .lb-next {
    top: auto;
    bottom: -60px;
    transform: none;
  }
  .lb-prev {
    left: 18px;
  }
  .lb-next {
    right: 18px;
  }
  .lb-caption {
    padding-inline: 78px;
  }
}

/* Audience cards with a photo (home page) */
.aud-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  background: #fff;
  transition:
    transform 0.4s var(--ease-out),
    box-shadow 0.4s var(--ease-out);
}
.aud-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.aud-card-photo {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.aud-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}
.aud-card:hover .aud-card-photo img {
  transform: scale(1.04);
}
.aud-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 24px 24px 26px;
}
.aud-card-body h3 {
  font-size: 1.45rem;
  font-weight: 800;
}
.aud-card-body > p {
  color: var(--steel-500);
}
.aud-card-links {
  display: flex;
  flex-direction: column;
  margin-top: 4px;
  list-style: none;
}
.aud-card-links a {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 0;
  border-top: 1px solid var(--line-soft);
  font-weight: 700;
}
.aud-card-links a::after {
  content: "›";
  color: var(--crimson);
}
.aud-card-links a:hover {
  color: var(--crimson);
}
.aud-card-body .textlink {
  align-self: flex-start;
  margin-top: auto;
  padding-top: 8px;
}

@media (prefers-reduced-motion: reduce) {
  .gallery-track {
    transition: none;
  }
}

/* Text beside a photo carousel */
.split--photo {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
}
.split--photo.split--flip {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}
.split--photo .checks {
  margin-top: 22px;
}
.split--photo .gallery {
  max-width: 460px;
  justify-self: center;
  width: 100%;
}
@media (max-width: 860px) {
  .split--photo,
  .split--photo.split--flip {
    grid-template-columns: minmax(0, 1fr);
  }
  .split--flip > :first-child {
    order: 2;
  }
}
.page-hero .hero-media .gallery {
  max-width: 480px;
  margin-inline: auto;
}
.page-hero .hero-media .gallery[data-aspect="landscape"] {
  max-width: none;
}
.jobs + .fine {
  margin-top: 28px;
}

/* Service cards that serve two audiences get a link for each */
.fcard-body .fcard-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: auto;
  padding-top: 4px;
}
.fcard-links .textlink {
  margin-top: 0;
}

/* Home page "Recent work" tiles */
.work-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.work-item > .textlink {
  align-self: flex-start;
}
.aud-card-body h3 a {
  color: inherit;
}
.aud-card-body h3 a:hover {
  color: var(--crimson);
}

/* Captions stay white on their dark strip, whatever section they sit in */
.gallery p.gallery-caption {
  margin: 0;
  color: #fff;
  font-size: 0.84rem;
}
/* Tall photos in a job row don't need the full column */
.job .gallery:not([data-aspect]) {
  max-width: 440px;
  margin-inline: auto;
}
/* Photo frames in a grid line up even when one title wraps */
.gallery-grid .gallery-head {
  min-height: 2.75rem;
}

/* =========================================================
   Motion: the service drawings power up, and every "Let's talk"
   banner gets an electrical surge (see js/site.js).
   Nothing moves for visitors who ask for reduced motion.
   ========================================================= */

.cta-band > .wrap {
  position: relative;
  z-index: 1;
}
.surge {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}
.surge path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* light running along cables and pipes (added by site.js) */
.fx-run {
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 3 11;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.fx-run.is-water {
  stroke-width: 2.4;
  stroke-dasharray: 4 12;
}
.surge .wire {
  stroke: rgba(255, 255, 255, 0.07);
  stroke-width: 1.5;
}
.surge .bolt {
  opacity: 0;
}
.surge .bolt-glow {
  stroke: rgba(255, 178, 0, 0.55);
  stroke-width: 9;
  filter: blur(5px);
}
.surge .bolt-core {
  stroke: #fff6dc;
  stroke-width: 2;
}
.surge .bolt-branch {
  stroke: #ffd36b;
  stroke-width: 1.2;
}

@media (prefers-reduced-motion: no-preference) {
  /* the drawing sketches itself in... */
  .fx-ready [stroke]:not([stroke-dasharray]) {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
  }
  .fx-ready [fill]:not([fill="none"]) {
    opacity: 0;
  }
  .fx-ready.is-on [stroke]:not([stroke-dasharray]) {
    animation: fx-draw 1.3s cubic-bezier(0.65, 0, 0.35, 1) forwards;
    animation-delay: calc(var(--n, 0) * 45ms);
  }
  .fx-ready.is-on [fill]:not([fill="none"]) {
    animation: fx-fade 0.5s ease 1.2s forwards;
  }
  /* ...then its amber parts switch on */
  .fx-ready.is-on .fx-wire,
  .fx-ready.is-on .fx-screen,
  .fx-ready.is-on .fx-needle,
  .fx-ready.is-on .fx-spin {
    animation:
      fx-draw 1.3s cubic-bezier(0.65, 0, 0.35, 1) forwards,
      fx-switch-on 1.6s ease-out 1.5s forwards;
  }
  .fx-ready.is-on .fx-bolt,
  .fx-ready.is-on .fx-dot,
  .fx-ready.is-on .fx-rec {
    animation:
      fx-fade 0.4s ease 1.4s forwards,
      fx-breathe 3s ease-in-out 2s infinite;
  }
  .fx-ready.is-on .fx-beam {
    animation: fx-fade 0.6s ease 1.4s both;
  }
  /* ...and then it keeps running. The reveal classes are gone by now
     (site.js swaps is-on for is-live), so these are the only rules moving it. */
  .fx-ready.is-live [stroke]:not([stroke-dasharray]) {
    stroke-dasharray: none;
    stroke-dashoffset: 0;
  }
  .fx-ready.is-live [fill]:not([fill="none"]) {
    opacity: 1;
  }
  .fx-ready.is-live .fx-run {
    opacity: 0.95;
    animation: fx-flow 0.9s linear infinite;
  }
  .fx-ready.is-live .fx-run.is-water {
    animation-duration: 1.3s;
  }
  .fx-ready.is-live .fx-bolt,
  .fx-ready.is-live .fx-dot {
    animation: fx-breathe 1.6s ease-in-out infinite;
  }
  .fx-ready.is-live .fx-needle {
    animation: fx-swing 3.2s ease-in-out infinite alternate;
    animation-delay: -1.75s; /* start near upright, where the reveal left it */
  }
  .fx-ready.is-live .fx-spin {
    animation: fx-turn 1.8s linear infinite;
  }
  .fx-ready.is-live .fx-arrow {
    animation: fx-rise 1.8s ease-in infinite;
  }
  .fx-ready.is-live .fx-arrow--2 {
    animation-delay: -0.9s;
  }
  .fx-ready.is-live .fx-drip {
    animation: fx-drop 2.2s ease-in infinite;
  }
  /* the surge in the banner */
  .surge .bolt.is-striking {
    animation: fx-strike 0.75s ease-out forwards;
  }
  .cta-band.is-struck .phone-xl svg {
    animation: fx-flicker 0.6s steps(1) forwards;
  }
}

@keyframes fx-draw {
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes fx-fade {
  to {
    opacity: 1;
  }
}
@keyframes fx-breathe {
  50% {
    opacity: 0.45;
  }
}
@keyframes fx-switch-on {
  0% {
    filter: none;
  }
  15% {
    filter: drop-shadow(0 0 6px #ffb200) drop-shadow(0 0 14px rgba(255, 178, 0, 0.7));
  }
  100% {
    filter: drop-shadow(0 0 3px rgba(255, 178, 0, 0.45));
  }
}
@keyframes fx-flow {
  to {
    stroke-dashoffset: -28;
  }
}
@keyframes fx-swing {
  from {
    transform: rotate(-35deg);
  }
  to {
    transform: rotate(25deg);
  }
}
@keyframes fx-turn {
  to {
    transform: rotate(360deg);
  }
}
@keyframes fx-rise {
  0% {
    transform: translateY(6px);
    opacity: 0;
  }
  30% {
    opacity: 1;
  }
  100% {
    transform: translateY(-8px);
    opacity: 0;
  }
}
@keyframes fx-drop {
  0% {
    transform: translateY(-6px);
    opacity: 0;
  }
  25% {
    opacity: 1;
  }
  100% {
    transform: translateY(14px);
    opacity: 0;
  }
}
@keyframes fx-strike {
  0% {
    opacity: 0;
  }
  8% {
    opacity: 1;
  }
  20% {
    opacity: 0.25;
  }
  30% {
    opacity: 0.95;
  }
  100% {
    opacity: 0;
  }
}
@keyframes fx-flicker {
  0%,
  40% {
    filter: drop-shadow(0 0 8px #ffb200);
  }
  20%,
  60%,
  100% {
    filter: none;
  }
}
