@font-face {
  font-family: "Sofia Sans Extra Condensed";
  src: url("/fonts/sofia-sans-extra-condensed-latin-wght-normal.woff2") format("woff2");
  font-weight: 1 1000;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Sofia Sans";
  src: url("/fonts/sofia-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 1 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  --cupboard: #0E1418;
  --panel: #1A262E;
  --rule: #2A3740;
  --paper: #E8EDEE;
  --muted: #A3B3BA;
  --torch: #FFE3A1;
  --torch-press: #FFD27A;
  --outline: rgba(232, 237, 238, 0.7);
  --display: "Sofia Sans Extra Condensed", "Arial Narrow", system-ui, sans-serif;
  --text: "Sofia Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: 16px;
  --max: 1200px;
  --radius: 12px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cupboard);
  color: var(--paper);
  font: 400 1.0625rem/1.55 var(--text);
  -webkit-font-smoothing: antialiased;
}

.js body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }

h1, h2, h3, p, ol, ul, figure { margin: 0; }

p, li { text-wrap: pretty; }

h1, h2 {
  font-family: var(--display);
  font-weight: 820;
  text-wrap: balance;
}

h1 {
  font-size: clamp(3rem, 2rem + 4.4vw, 5.5rem);
  line-height: 0.92;
  letter-spacing: -0.005em;
}

h2 {
  font-size: clamp(2.25rem, 1.7rem + 2.2vw, 3.5rem);
  line-height: 0.98;
}

h3 {
  font: 700 1.25rem/1.2 var(--text);
}

a { color: inherit; }

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

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.lead {
  font-size: clamp(1.1875rem, 1.05rem + 0.5vw, 1.375rem);
  line-height: 1.45;
}

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

.site-header .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--paper);
}

.brand .symbol { width: 36px; height: 36px; flex: none; }

.wordmark {
  font: 760 1.25rem/1 var(--display);
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.header-call { display: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 22px;
  border-radius: var(--radius);
  font: 700 1.125rem/1 var(--text);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease-out, border-color 0.15s ease-out, transform 0.15s ease-out;
}

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

.btn-call { background: var(--torch); color: var(--cupboard); }
.btn-call:hover { background: var(--torch-press); }
.btn-call:active { background: var(--torch-press); transform: translateY(1px); }

.btn-text {
  border: 2px solid var(--outline);
  color: var(--paper);
  min-height: 52px;
}
.btn-text:hover { background: rgba(232, 237, 238, 0.08); border-color: var(--paper); }
.btn-text:active { transform: translateY(1px); }

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

.actions {
  display: grid;
  gap: 12px;
}

.hero-grid { display: grid; }

.hero-scene {
  margin-inline: calc(-1 * var(--gutter));
  overflow: hidden;
  background: #121A1F;
}

.hero-scene { --band: min(24vh, 252px); --band: min(24svh, 252px); height: var(--band); }

.scene {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 800 / 560;
  translate: 0 clamp(calc(var(--band) - 70vw), calc(var(--band) / 2 - 42.5vw), 0px);
}

.hero-copy { display: grid; gap: 12px; padding-block: 22px 40px; }

.hero .lead { max-width: 30ch; }

.address {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--muted);
  font-size: 1rem;
}

.address svg { width: 20px; height: 20px; flex: none; margin-top: 2px; color: var(--muted); }

.leak-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  justify-self: start;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.leak-link svg { width: 18px; height: 18px; flex: none; }

.leak-link:hover { text-decoration-thickness: 2px; }

@media (prefers-reduced-motion: no-preference) {
  .scene-lit, .scene-air { animation: torch-on 0.7s var(--ease-out) both; }
}

@keyframes torch-on {
  from { opacity: 0.35; }
  to { opacity: 1; }
}

.section { padding-block: 64px; }

.section h2 { margin-bottom: 16px; }

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

.stop-tap { padding-top: 40px; }

.stop-tap-intro { display: grid; gap: 28px; }

.stop-tap .lead { max-width: 52ch; }

.diagram-figure {
  display: grid;
  gap: 12px;
  max-width: 420px;
}

.diagram { display: block; width: 100%; height: auto; }

.diagram-figure figcaption {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.35;
  text-align: center;
  text-wrap: balance;
}

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

.steps li {
  display: grid;
  grid-template-columns: 40px 1fr;
  column-gap: 14px;
  align-content: start;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  font: 820 2.75rem/0.9 var(--display);
  color: var(--paper);
}

.steps p { max-width: 46ch; }

.steps strong { font-weight: 700; }

.then {
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
  display: grid;
  gap: 20px;
}

.then p { font-size: 1.1875rem; max-width: 46ch; }

.services .lead { max-width: 46ch; }

.service-groups {
  display: grid;
  gap: 36px;
  margin-top: 40px;
}

.service-group { border-top: 1px solid var(--rule); padding-top: 20px; }

.service-group h3 { margin-bottom: 12px; }

.service-group ul { list-style: none; padding: 0; display: grid; gap: 4px; }

.service-group li {
  font-size: 1.125rem;
  padding-block: 4px;
  padding-left: 24px;
  position: relative;
}

.service-group li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.82em;
  width: 7px;
  height: 7px;
  border-radius: 1px;
  background: var(--muted);
}

.note { margin-top: 36px; color: var(--muted); max-width: 52ch; }

.local-close-grid { display: grid; gap: 56px; }

.local p, .close p { max-width: 44ch; }

.close { display: grid; gap: 0; align-content: start; }

.close .actions { margin-top: 24px; }

.site-footer { border-top: 1px solid var(--rule); }

.footer-inner {
  display: grid;
  gap: 8px;
  padding-block: 36px 40px;
  font-size: 1rem;
}

.footer-inner .brand { margin-bottom: 8px; justify-self: start; }

.callbar {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 10;
  display: none;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: var(--cupboard);
  border-top: 1px solid var(--rule);
  transition: transform 0.2s var(--ease-out), visibility 0.2s;
}

.js .callbar { display: grid; }

.callbar.is-hidden { transform: translateY(110%); visibility: hidden; }

.btn-bar { min-height: 52px; padding: 0 14px; font-size: 1rem; gap: 8px; }
.btn-bar svg { width: 20px; height: 20px; }
.btn-text.btn-bar { min-height: 52px; }

@media (max-width: 379px) {
  .btn-bar { padding: 0 12px; font-size: 0.9375rem; }
  .btn-bar .extra {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .callbar, .btn { transition: none; }
}

.page-404 main { min-height: 50vh; }
.page-404 h1 { margin-bottom: 20px; }
.page-404 .actions { margin-top: 32px; max-width: 420px; }

@media (min-width: 768px) {
  :root { --gutter: 32px; }

  .js body { padding-bottom: 0; }

  .js .callbar { display: none; }

  .site-header .header-inner { min-height: 76px; }

  .brand .symbol { width: 40px; height: 40px; }

  .wordmark { font-size: 1.4375rem; }

  .header-call { display: block; }

  .actions { grid-auto-flow: column; justify-content: start; }

  .hero-scene { height: auto; }

  .scene { translate: none; }

  .section { padding-block: 96px; }

  .stop-tap { padding-top: 72px; }

  .steps { grid-template-columns: repeat(2, 1fr); gap: 36px 40px; }

  .service-groups { grid-template-columns: repeat(2, 1fr); gap: 48px; }

  .local-close-grid { grid-template-columns: repeat(2, 1fr); gap: 64px; }
}

@media (min-width: 768px) and (max-width: 899px) {
  .hero-scene { margin-inline: 0; max-width: calc(70vh * 800 / 560); max-width: calc(70svh * 800 / 560); }
}

@media (min-width: 900px) {
  .hero { padding-block: 24px 64px; }

  .hero-grid {
    grid-template-columns: 5fr 7fr;
    gap: 48px;
    align-items: center;
  }

  .hero-scene { grid-column: 2; grid-row: 1; margin-inline: 0; }

  .hero-copy { grid-column: 1; grid-row: 1; gap: 24px; padding-block: 0; }
}

@media (min-width: 1100px) {
  :root { --gutter: 48px; }

  .stop-tap-intro { grid-template-columns: 7fr 5fr; gap: 64px; align-items: center; }

  .diagram-figure { justify-self: end; width: 100%; }

  .steps { grid-template-columns: repeat(4, 1fr); gap: 40px; }

  .steps li { grid-template-columns: 1fr; row-gap: 14px; align-content: start; }

  .section { padding-block: 112px; }

  .stop-tap { padding-top: 80px; }
}
