/* Self-hosted (farmfonts.py), latin subset, from https://fonts.googleapis.com/css2 */
@font-face {
  font-family: 'DM Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/dmmono-7e5f82a6.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/dmmono-6d9330a5.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/assets/fonts/manrope-cf48e3e1.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* New Braunfels Septic — single stylesheet, inlined into <head> for zero
   render-blocking requests. Keep it small. */

:root {
  --ink: #181c20;
  --ink-soft: #606c7b;
  --ink-faint: #606a76;
  --bg: #fdfdfd;
  --bg-soft: #f5f6f7;
  --bg-sink: #eaecee;
  --line: #d8dbdf;
  --brand: #657586;
  --brand-dk: #53616e;
  --brand-lt: #eceef1;
  --on-brand: #fbfcfc;
  --accent: #a36514;
  --accent-lt: #fbf6ef;
  --on-accent: #fbfcfc;
  --warn: #936906;
  --warn-bg: #fdf7e8;
  --radius: 6px;
  --wrap: 1100px;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #ebedef;
    --ink-soft: #a4abb4;
    --ink-faint: #868f9a;
    --bg: #101316;
    --bg-soft: #181b21;
    --bg-sink: #21252c;
    --line: #2e353d;
    --brand: #8594a3;
    --brand-dk: #a1acb8;
    --brand-lt: #272e34;
    --on-brand: #0b0f0e;
    --accent: #ce8527;
    --accent-lt: #2c2316;
    --on-accent: #0b0f0e;
    --warn: #d3a945;
    --warn-bg: #2b2517;
  }
}

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

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

/* ---------- Skip link ---------- */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--brand); color: var(--on-brand); padding: 10px 16px;
}
.skip:focus { left: 8px; top: 8px; }

/* ---------- Header ---------- */
.top {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.top-in {
  display: flex; align-items: center; gap: 20px;
  min-height: 68px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 1.06rem; letter-spacing: -0.01em;
  color: var(--ink); text-decoration: none; flex: 0 0 auto;
}
.logo svg { flex: 0 0 auto; }
.logo span small {
  display: block; font-size: 0.66rem; font-weight: 500;
  color: var(--ink-faint); letter-spacing: 0.02em; text-transform: uppercase;
}
.top-cta { margin-left: auto; display: flex; align-items: center; gap: 12px; }

/* ---------- Nav ---------- */
.nav { border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.nav ul {
  display: flex; flex-wrap: wrap; gap: 2px;
  list-style: none; margin: 0; padding: 0;
}
.nav a {
  display: block; padding: 11px 13px;
  font-size: 0.905rem; font-weight: 550;
  color: var(--ink-soft); text-decoration: none;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--brand); background: var(--bg); }
.nav a[aria-current="page"] {
  color: var(--brand); border-bottom-color: var(--brand); background: var(--bg);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 12px 20px;
  background: var(--brand); color: var(--on-brand);
  font-weight: 650; font-size: 0.95rem; line-height: 1.2;
  text-decoration: none; border: 0; border-radius: var(--radius);
  cursor: pointer; text-align: center;
}
.btn:hover { background: var(--brand-dk); }
.btn-lg { padding: 15px 28px; font-size: 1.04rem; }
.btn-ghost {
  background: transparent; color: var(--brand);
  border: 1.5px solid var(--brand);
}
.btn-ghost:hover { background: var(--brand-lt); color: var(--brand-dk); }
.btn-phone { background: var(--accent); color: var(--on-accent); }
.btn-phone:hover { filter: brightness(0.88); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(170deg, var(--brand-lt) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
  padding: 52px 0 46px;
}
.hero h1 {
  font-size: clamp(1.85rem, 4.4vw, 2.75rem);
  line-height: 1.15; letter-spacing: -0.022em;
  margin: 0 0 16px; max-width: 20ch;
}
.hero .lede {
  font-size: clamp(1.04rem, 2vw, 1.2rem);
  color: var(--ink-soft); max-width: 62ch; margin: 0 0 26px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Trust strip ---------- */
.trust {
  background: var(--bg-sink); border-bottom: 1px solid var(--line);
  padding: 16px 0; font-size: 0.9rem;
}
.trust ul {
  display: flex; flex-wrap: wrap; gap: 10px 30px;
  list-style: none; margin: 0; padding: 0; color: var(--ink-soft);
}
.trust li { display: flex; align-items: center; gap: 8px; }
.trust svg { flex: 0 0 auto; color: var(--brand); }

/* ---------- Page body ---------- */
main { display: block; }
.page { padding: 40px 0 60px; }
.page h1 {
  font-size: clamp(1.7rem, 3.6vw, 2.35rem);
  line-height: 1.18; letter-spacing: -0.02em; margin: 0 0 8px;
}
.page h2 {
  font-size: clamp(1.28rem, 2.4vw, 1.55rem);
  line-height: 1.25; letter-spacing: -0.014em;
  margin: 2.2em 0 0.6em; padding-top: 0.2em;
}
.page h3 {
  font-size: 1.11rem; line-height: 1.3;
  margin: 1.7em 0 0.45em;
}
.page p, .page ul, .page ol { margin: 0 0 1.05em; }
.page ul, .page ol { padding-left: 1.35em; }
.page li { margin-bottom: 0.4em; }
.page a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.page a:hover { color: var(--brand-dk); }
.lede-big { font-size: 1.12rem; color: var(--ink-soft); }

/* ---------- Breadcrumbs ---------- */
.crumbs { font-size: 0.85rem; color: var(--ink-faint); margin: 0 0 18px; }
.crumbs a { color: var(--ink-faint); }
.crumbs span { padding: 0 6px; }

/* ---------- Meta line ---------- */
.meta {
  font-size: 0.82rem; color: var(--ink-faint);
  padding-bottom: 20px; margin-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

/* ---------- Callouts ---------- */
.note, .warnbox, .keybox {
  border-radius: var(--radius); padding: 18px 20px; margin: 1.6em 0;
  font-size: 0.965rem;
}
.note { background: var(--bg-soft); border-left: 4px solid var(--brand); }
.warnbox { background: var(--warn-bg); border-left: 4px solid var(--warn); }
.keybox { background: var(--accent-lt); border-left: 4px solid var(--accent); }
.note > :first-child, .warnbox > :first-child, .keybox > :first-child { margin-top: 0; }
.note > :last-child, .warnbox > :last-child, .keybox > :last-child { margin-bottom: 0; }
.note strong, .warnbox strong, .keybox strong { display: block; margin-bottom: 4px; }

/* ---------- Tables ---------- */
.tablewrap { overflow-x: auto; margin: 1.6em 0; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 0.94rem; }
th, td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); }
th { background: var(--bg-soft); font-weight: 650; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; white-space: nowrap; }
caption { caption-side: bottom; padding: 10px 14px; font-size: 0.82rem; color: var(--ink-faint); text-align: left; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 16px; margin: 1.6em 0; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.card {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; background: var(--bg);
}
.card h3 { margin: 0 0 6px; font-size: 1.04rem; }
.card p { margin: 0 0 10px; font-size: 0.94rem; color: var(--ink-soft); }
.card p:last-child { margin-bottom: 0; }
.card a.more { font-weight: 600; font-size: 0.9rem; text-decoration: none; }
.card a.more:hover { text-decoration: underline; }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; counter-reset: s; margin: 1.6em 0; }
.steps > li {
  counter-increment: s; position: relative;
  padding: 0 0 20px 52px; margin: 0;
  border-left: 2px solid var(--line); margin-left: 15px;
}
.steps > li:last-child { border-left-color: transparent; padding-bottom: 0; }
.steps > li::before {
  content: counter(s);
  position: absolute; left: -16px; top: 0;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--brand); color: var(--on-brand);
  font-size: 0.85rem; font-weight: 700;
  display: grid; place-items: center;
}
.steps h3 { margin: 2px 0 4px; font-size: 1.03rem; }
.steps p { margin: 0 0 0.5em; font-size: 0.95rem; }

/* ---------- FAQ ---------- */
details.faq {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0; margin: 0 0 10px; background: var(--bg);
}
details.faq summary {
  cursor: pointer; padding: 15px 18px;
  font-weight: 620; font-size: 1rem; list-style: none;
  display: flex; justify-content: space-between; gap: 14px;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; color: var(--brand); font-size: 1.3rem; line-height: 1; flex: 0 0 auto; }
details.faq[open] summary::after { content: "\2212"; }
details.faq .fa { padding: 0 18px 4px; }
details.faq .fa > :first-child { margin-top: 0; }

/* ---------- Form ---------- */
.formcard {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; background: var(--bg-soft); margin: 1.6em 0;
}
.formcard h2 { margin-top: 0; }
.field { margin-bottom: 15px; }
.field label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 5px; }
.field .hint { display: block; font-weight: 400; color: var(--ink-faint); font-size: 0.82rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 13px;
  font-family: inherit; font-size: 1rem; color: var(--ink);
  background: var(--bg); border: 1.5px solid var(--line);
  border-radius: 8px;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--brand); outline-offset: 0; border-color: var(--brand);
}
.field textarea { min-height: 110px; resize: vertical; }
.field-row { display: grid; gap: 15px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.hp { position: absolute; left: -9999px; }
.formnote { font-size: 0.82rem; color: var(--ink-faint); margin: 12px 0 0; }
.alert { border-radius: var(--radius); padding: 15px 18px; margin: 0 0 18px; font-size: 0.95rem; }
.alert-ok { background: var(--brand-lt); border-left: 4px solid var(--brand); }
.alert-err { background: var(--warn-bg); border-left: 4px solid var(--warn); }
.errlist { margin: 6px 0 0; padding-left: 1.2em; }

/* ---------- CTA band ---------- */
.ctaband {
  background: var(--brand); color: var(--on-brand);
  padding: 44px 0; margin-top: 50px;
}
.ctaband h2 { margin: 0 0 10px; font-size: clamp(1.35rem, 2.8vw, 1.8rem); letter-spacing: -0.018em; }
.ctaband p { margin: 0 0 22px; opacity: 0.92; max-width: 60ch; }
.ctaband .btn { background: #fff; color: var(--brand-dk); }
.ctaband .btn:hover { background: var(--brand-lt); }
.ctaband .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.6); }
.ctaband .btn-ghost:hover { background: rgba(255,255,255,0.12); color: #fff; }
.ctaband .hero-actions { gap: 12px; }

/* ---------- Related links ---------- */
.related { margin: 2.4em 0 0; padding-top: 24px; border-top: 1px solid var(--line); }
.related h2 { margin-top: 0; font-size: 1.15rem; }
.related ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.related a { font-weight: 600; font-size: 0.94rem; }

/* ---------- Footer ---------- */
.foot {
  background: var(--bg-sink); border-top: 1px solid var(--line);
  padding: 40px 0 26px; font-size: 0.9rem; color: var(--ink-soft);
}
.foot-cols { display: grid; gap: 26px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.foot h3 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-faint); margin: 0 0 10px; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin-bottom: 6px; }
.foot a { color: var(--ink-soft); text-decoration: none; }
.foot a:hover { color: var(--brand); text-decoration: underline; }
.foot-legal {
  margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line);
  font-size: 0.82rem; color: var(--ink-faint);
}
.foot-legal p { margin: 0 0 8px; }

/* ---------- Utility ---------- */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mt0 { margin-top: 0; }

@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .top-in { min-height: 60px; }
  .logo span small { display: none; }
  .hero { padding: 36px 0 32px; }
  .nav ul { overflow-x: auto; flex-wrap: nowrap; }
  .nav a { white-space: nowrap; }
  .formcard { padding: 20px 16px; }
}

/* ---------- Admin ---------- */
.admin-body { background: var(--bg-soft); }
.admin-shell { max-width: 1200px; margin: 0 auto; padding: 24px 20px 60px; }
.admin-top {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 16px 0; margin-bottom: 20px; border-bottom: 1px solid var(--line);
}
.admin-top h1 { font-size: 1.25rem; margin: 0; }
.admin-top .spacer { margin-left: auto; }
.login-shell { max-width: 380px; margin: 8vh auto; padding: 0 20px; }
.stat-row { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-bottom: 22px; }
.stat { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.stat b { display: block; font-size: 1.7rem; line-height: 1.1; letter-spacing: -0.02em; }
.stat span { font-size: 0.82rem; color: var(--ink-faint); }
.lead-detail { font-size: 0.88rem; color: var(--ink-soft); }
.pill { display: inline-block; padding: 2px 9px; border-radius: 20px; font-size: 0.76rem; font-weight: 600; background: var(--brand-lt); color: var(--brand-dk); }

/* ===========================================================================
   FIGURES — original inline SVG diagrams + motion
   =========================================================================== */

:root {
  --fig-sky-1: #dbeaf2;  --fig-sky-2: #eef4f3;
  --fig-hill: #9fb9ae;
  --fig-grass: #6ea567;  --fig-soil: #a9855f;
  --fig-rock: #b9b3a6;   --fig-rock-line: #8d8577;  --fig-void: #4a453c;
  --fig-water: #6aa9c9;  --fig-water-line: #2f7fa8;
  --fig-house: #e6e0d6;  --fig-roof: #7b4a3a;  --fig-glass: #8fc0d6;
  --fig-tank: #f2efe9;   --fig-tank-line: #5d6b68;
  --fig-pipe: #4a5a57;   --fig-panel: #34433f;  --fig-led: #6fe0a8;
  --fig-bubble: #ffffff; --fig-sludge: #6d5a44;
  --fig-accent: #b4531c; --fig-good: #2f8f56;   --fig-bad: #c0492c;
  --fig-warn: #b08428;
  --fig-panel-ok: #f4f7f6; --fig-panel-bad: #fdf1ee;
  --fig-ink: #16211f;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --fig-sky-1: #1b2b33;  --fig-sky-2: #16211f;
    --fig-hill: #2f4740;
    --fig-grass: #3f7a48;  --fig-soil: #6b5238;
    --fig-rock: #4a463d;   --fig-rock-line: #6d6656;  --fig-void: #0d0c0a;
    --fig-water: #2b6a8a;  --fig-water-line: #63bde4;
    --fig-house: #3a4442;  --fig-roof: #5a3428;       --fig-glass: #2f6b83;
    --fig-tank: #232f2d;   --fig-tank-line: #8ba09b;
    --fig-pipe: #8ba09b;   --fig-panel: #0f1614;      --fig-led: #6fe0a8;
    --fig-bubble: #cfeee2; --fig-sludge: #4a3c2c;
    --fig-accent: #e8925c; --fig-good: #4fbf7c;       --fig-bad: #e57455;
    --fig-warn: #d8b05e;
    --fig-panel-ok: #17211f; --fig-panel-bad: #2a1a16;
    --fig-ink: #e9efee;
  }
}

.fig {
  margin: 2em 0;
  padding: 0;
}
.fig svg {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-soft);
  overflow: visible;
}
.fig figcaption {
  margin-top: 10px;
  font-size: 0.87rem;
  line-height: 1.55;
  color: var(--ink-faint);
}
.fig figcaption a { color: var(--brand); }

/* Break wide figures out of the narrow text column on large screens */
@media (min-width: 900px) {
  .fig-wide { width: calc(100% + 150px); margin-left: -75px; }
}

/* Hero figure sits beside the hero copy on wide screens */
.hero-grid { display: grid; gap: 30px; align-items: center; }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1fr 1fr; gap: 44px; }
  .hero-grid .fig { margin: 0; }
}
.fig-hero svg { border-color: transparent; background: transparent; }
.fig-hero figcaption { font-size: 0.83rem; }

/* SVG text styles */
.fig-h    { font: 700 15px/1 var(--sans); fill: var(--fig-ink); letter-spacing: -.01em; }
.fig-sub  { font: 500 12.5px/1 var(--sans); fill: var(--fig-ink); opacity: .72; }
.fig-lbl  { font: 700 10px/1 var(--sans); fill: var(--fig-ink); letter-spacing: .07em; opacity: .85; }
.fig-lbl-inv { fill: #fff; opacity: .95; }
.fig-numt { font: 700 13px/1 var(--sans); fill: #fff; }
.fig-pill { font: 700 11px/1 var(--sans); fill: #fff; }

/* ---------- Motion ---------- */
@keyframes fig-rise {
  0%   { transform: translateY(0);     opacity: 0; }
  15%  { opacity: .95; }
  100% { transform: translateY(-74px); opacity: 0; }
}
.fig-bubbles > * { animation: fig-rise 2.4s linear infinite; }

@keyframes fig-fall {
  0%   { transform: translateY(0);    opacity: 0; }
  20%  { opacity: .9; }
  100% { transform: translateY(104px); opacity: 0; }
}
.fig-perc > * { animation: fig-fall 2.8s linear infinite; }

@keyframes fig-settle-k {
  0%   { transform: translateY(0);    opacity: 0; }
  25%  { opacity: .9; }
  100% { transform: translateY(52px); opacity: 0; }
}
.fig-settle > * { animation: fig-settle-k 2.6s ease-in infinite; }

@keyframes fig-drip-k {
  0%   { transform: translateY(-4px); opacity: 0; }
  30%  { opacity: .95; }
  100% { transform: translateY(20px); opacity: 0; }
}
.fig-drip > * { animation: fig-drip-k 2s ease-in infinite; }

@keyframes fig-spray-k {
  0%, 100% { opacity: .25; transform: scale(.94); }
  50%      { opacity: 1;   transform: scale(1); }
}
.fig-spray > g { animation: fig-spray-k 2.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center bottom; }
.fig-spray > rect { animation: none; }

@keyframes fig-flow {
  0%   { stroke-dasharray: 0 200; opacity: .2; }
  40%  { opacity: 1; }
  100% { stroke-dasharray: 200 0; opacity: .2; }
}
.fig-filter > * { animation: fig-flow 2.6s ease-in-out infinite; }

@keyframes fig-blink { 0%, 55% { opacity: 1; } 56%, 100% { opacity: .15; } }
.fig-led { animation: fig-blink 2.2s steps(1) infinite; }

@keyframes fig-alarm-k {
  0%, 49%   { opacity: 1;  r: 3.4; }
  50%, 100% { opacity: .2; r: 2.6; }
}
.fig-alarm { animation: fig-alarm-k .9s steps(1) infinite; }

@keyframes fig-spin { to { transform: rotate(360deg); } }
.fig-fan { animation: fig-spin 1.1s linear infinite; transform-box: fill-box; transform-origin: center; }

@keyframes fig-odour-k {
  0%   { opacity: 0;  transform: translateY(6px); }
  35%  { opacity: .85; }
  100% { opacity: 0;  transform: translateY(-22px); }
}
.fig-odour > * { animation: fig-odour-k 3.2s ease-out infinite; }

@keyframes fig-pop {
  0%   { transform: scale(0); opacity: 0; }
  70%  { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}
.fig-mark, .fig-num, .fig-pill-g { transform-box: fill-box; transform-origin: center; }

/* Bars animate out when the figure scrolls into view */
.fig-bar { width: 0; }
.is-in .fig-bar { animation: fig-grow 1s cubic-bezier(.22,.8,.3,1) forwards; }
@keyframes fig-grow { to { width: var(--bw); } }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); }
.reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity .6s ease, transform .6s cubic-bezier(.22,.8,.3,1);
}

/* Cards and steps lift slightly on hover */
.card { transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.card:hover {
  transform: translateY(-3px);
  border-color: var(--brand);
  box-shadow: 0 8px 24px -12px rgba(0,0,0,.22);
}
.btn { transition: background-color .18s ease, transform .12s ease; }
.btn:active { transform: translateY(1px); }
details.faq { transition: border-color .2s ease; }
details.faq[open] { border-color: var(--brand); }

/* ---------- Respect reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .fig-bar { width: var(--bw); }
  html { scroll-behavior: auto; }
}

/* The hero figure renders at roughly half the width of the full-bleed ones, so its
   in-SVG type needs to be proportionally larger to stay legible. */
.fig-hero .fig-lbl { font-size: 15px; letter-spacing: .04em; }
.fig-hero .fig-sub { font-size: 16px; }
.fig-hero .fig-h   { font-size: 19px; }
@media (max-width: 899px) {
  .fig-hero .fig-lbl { font-size: 11px; }
  .fig-hero .fig-sub { font-size: 13px; }
}

/* On narrow screens a dense diagram squeezed to 335px makes its labels unreadable.
   Rather than shrink the type into illegibility, let the figure scroll inside its own
   container at a legible minimum width. The page body still never scrolls sideways. */
@media (max-width: 760px) {
  .fig {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  .fig svg { min-width: 600px; }
  .fig figcaption {
    position: sticky; left: 0;
    min-width: 0; max-width: 100vw;
  }
  .fig::after {
    content: "Swipe the diagram to see all of it";
    display: block; position: sticky; left: 0;
    margin-top: 4px; font-size: 0.75rem; color: var(--ink-faint); font-style: italic;
  }
  .fig-wide { width: auto; margin-left: 0; }
}

/* Destructive action in the lead dashboard */
.btn-danger { background: var(--fig-bad); }
.btn-danger:hover { background: #9e3a20; }

/* ---------- Photography ---------- */
.fig-photo img {
  display: block; width: 100%; height: auto;
  border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--bg-soft);
}
.fig-photo { overflow: visible; }
.fig-photo::after { content: none; }        /* no swipe hint - photos scale fine */
.illus {
  display: inline-block; margin-right: 6px; padding: 1px 7px;
  border-radius: 20px; background: var(--bg-sink); color: var(--ink-faint);
  font-size: 0.72rem; font-weight: 650; letter-spacing: .03em;
  text-transform: uppercase; vertical-align: 1px;
}
@media (max-width: 760px) {
  .fig-photo { overflow-x: visible; }
  .fig-photo img { min-width: 0; }
}

/* ---------- Consent checkbox ---------- */
/* The whole label is the target, not the 13px box: a checkbox that is hard to
   hit is one people tick by accident, and accidental consent is exactly what
   this control exists to avoid. */
.field-consent { margin: 22px 0 6px; }
.consent-label {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg-soft); cursor: pointer;
  font-weight: 400; font-size: 0.92rem; line-height: 1.5; color: var(--ink-soft);
}
.consent-label:hover { border-color: var(--brand); }
.consent-label input[type="checkbox"] {
  flex: 0 0 auto; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--brand);
}
.consent-label input[type="checkbox"]:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.field-consent.has-err .consent-label { border-color: #c0492c; background: #fdf1ee; }
.field-consent .hint { margin: 8px 2px 0; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 3px;
}

/* There was no base link colour, so in-body links fell back to the
   browser default blue, which belongs to no palette. */
a { color: var(--brand); }
a:hover { color: var(--brand-dk); }


/* ---------- Hero with a moving background ---------- */
/* Matches the wildlife sites so the portfolio reads as one operation. The
   scrim is deliberately lighter than it first looks like it should be: white
   text clears 4.5:1 against anything up to roughly 46% luminance, and a
   heavier gradient buys no legibility while destroying all the detail in the
   footage. The headline carries its own shadow instead. */
.hero.has-media {
  position: relative; overflow: hidden;
  background: var(--brand-dk); border-bottom: 0;
}
.hero-media { position: absolute; inset: 0; overflow: hidden; }
.hero-media img, .hero-media video {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.hero-media video[hidden] { display: none; }
.hero-media::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(75% 60% at 15% 92%, rgba(20,26,32,0.30), transparent 62%),
    linear-gradient(180deg, rgba(14,18,22,0.58) 0%, rgba(14,18,22,0.34) 42%, rgba(14,18,22,0.80) 100%);
}
.hero.has-media .wrap { position: relative; padding: 78px 0 66px; }
.hero.has-media h1 {
  color: #fff; max-width: 20ch;
  text-shadow: 0 2px 18px rgba(0,0,0,0.72), 0 1px 3px rgba(0,0,0,0.55);
}
.hero.has-media .lede {
  color: #fff; max-width: 56ch;
  text-shadow: 0 1px 12px rgba(0,0,0,0.70), 0 1px 2px rgba(0,0,0,0.5);
}
.hero.has-media .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.66); }
.hero.has-media .btn-ghost:hover { background: rgba(255,255,255,0.14); color: #fff; }
@media (max-width: 760px) { .hero.has-media .wrap { padding: 48px 0 42px; } }
@media (prefers-reduced-motion: reduce) { .hero-media video { display: none; } }


/* ---------- Footer market list ---------- */
.foot-network { border-top: 1px solid var(--line); margin-top: 26px; padding-top: 22px; }
.foot-network h3 { margin: 0 0 12px; font-size: 0.86rem; letter-spacing: .04em;
                   text-transform: uppercase; color: var(--ink-faint); }
.foot-network ul {
  list-style: none; margin: 0 0 10px; padding: 0;
  display: grid; gap: 4px 20px;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}
.foot-network a { font-size: 0.88rem; color: var(--ink-soft); text-decoration: none; }
.foot-network a:hover { color: var(--brand); text-decoration: underline; }
.foot-network p { margin: 0; font-size: 0.86rem; }

/* ===========================================================================
   2026-10 redesign layer . Shared by every septic site; the :root SKIN block is per site, loaded after
   style.css by header.php.

   Reads the ground under Rankin County: Yazoo clay is a blue-grey marine clay
   ("blue gumbo") that weathers olive, under a skin of wind-blown loess that
   turns ochre in a cut bank. So: cool clay-grey sheets, slate ink, Yazoo
   blue-grey for place, loess ochre for action. Archivo (semi-expanded for
   display) with IBM Plex Mono for every measurement. Softened from the old
   permit-packet look: hairlines instead of 3px rules, 6px radius, no hard
   offset shadows, and a much more generous section rhythm.
   =========================================================================== */
/* SKIN:BEGIN Tailwind Cyan / Fuchsia on limestone */
:root {
  --ink: #0F2A33; --ink-soft: #33505A; --ink-faint: #4D6670;
  --paper: #F7F5EF; --paper-2: #ECE8DC; --sheet: #FDFCF8;
  --brand: #0E7490; --brand-2: #7DC4D1;
  --accent: #A21CAF; --accent-hi: #F0ABFC; --accent-dk: #86198F; --accent-ink: #FFFFFF;
  --display: 'Manrope', Arial, sans-serif;
  --body: 'Manrope', system-ui, -apple-system, sans-serif;
  --mono: 'DM Mono', ui-monospace, Consolas, monospace;
  --r: 10px; --r2: 14px; --rb: 10px; --stretch: 100%;
}
/* SKIN:END */
:root {
  --line: color-mix(in srgb, var(--ink) 14%, transparent); --line-2: color-mix(in srgb, var(--ink) 26%, transparent);
  --scrim: color-mix(in srgb, var(--ink) 92%, #000);
  --bw: 1px; --bw-thin: 1px;
  --maxw: 1200px; --narrow: 720px;
  --ease: cubic-bezier(.22,1,.36,1);
}
body { background: var(--paper); background-image: none; color: var(--ink-soft);
       font: 400 17.5px/1.68 var(--body); }
h1, h2, h3, h4 { font-family: var(--display); text-transform: none; color: var(--ink);
                 font-stretch: var(--stretch); letter-spacing: -0.022em; line-height: 1.06; }
h1 { font-weight: 800; font-size: clamp(2.5rem, 5.6vw, 4.6rem); }
h2 { font-weight: 750; font-size: clamp(1.75rem, 3.3vw, 2.55rem);
     margin-top: clamp(64px, 9vw, 112px); padding-top: 22px;
     border-top: 1px solid var(--line-2); position: relative; }
h2::after { display: none; }
h2::before { content: ''; position: absolute; top: -2px; left: 0; width: 56px; height: 3px; background: var(--accent); }
h2.mt0 { margin-top: 0; }
h3 { font-weight: 700; font-size: clamp(1.15rem, 2vw, 1.35rem); letter-spacing: -0.012em; font-stretch: var(--stretch); }
h4 { font-weight: 700; font-stretch: 100%; letter-spacing: 0; }
p, ul, ol { max-width: 66ch; }
strong, b { color: var(--ink); }
a { color: var(--brand); text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }
.lede, .lede-big { font-family: var(--body); font-weight: 450; color: var(--ink);
  font-size: clamp(1.2rem, 2.1vw, 1.45rem); line-height: 1.45; letter-spacing: -0.008em; max-width: 46ch; }
.lede-big { max-width: 52ch; }
.page { padding: clamp(40px, 6vw, 72px) 0 clamp(80px, 10vw, 128px); }

/* ---- masthead + nav: one quiet dark bar, then a light sticky index ---- */
.top { background: var(--ink); border-bottom: 0; }
.logo { font-family: var(--display); font-stretch: var(--stretch); text-transform: none; font-weight: 750;
        font-size: 1.15rem; letter-spacing: -0.01em; }
.logo small { font-family: var(--mono); color: var(--accent-hi); letter-spacing: .12em; }
.nav { background: color-mix(in srgb, var(--paper) 93%, transparent); border-bottom: 1px solid var(--line);
       -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px); }
.nav a { color: var(--ink-soft); font-family: var(--mono); font-weight: 500; text-transform: uppercase;
         font-size: .72rem; letter-spacing: .08em; padding: 16px 14px; border-right: 0; position: relative; }
.nav a::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 9px; height: 2px;
                background: var(--accent); transform: scaleX(0); transform-origin: left;
                transition: transform .35s var(--ease); }
.nav a:hover { background: transparent; color: var(--ink); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { background: transparent; color: var(--ink); box-shadow: none; }

/* ---- hero: the video stays; the scrim is tinted slate, not black ---- */
.hero { border-bottom: 0; background: var(--ink); padding: clamp(72px, 12vw, 148px) 0 clamp(40px, 6vw, 72px); }
.hero::before { display: none; }
.hero.has-media::after { background:
   linear-gradient(90deg, color-mix(in srgb, var(--scrim) 95%, transparent) 0%, color-mix(in srgb, var(--scrim) 82%, transparent) 38%, color-mix(in srgb, var(--scrim) 34%, transparent) 78%, color-mix(in srgb, var(--scrim) 20%, transparent) 100%),
   linear-gradient(0deg, color-mix(in srgb, var(--scrim) 80%, transparent) 0%, transparent 42%); }
.hero-media img, .hero-media video { filter: saturate(.6) contrast(1.04); }
.hero h1 { max-width: 13ch; font-size: clamp(2.7rem, 6.4vw, 5.4rem); line-height: .98; color: #fff; }
.hero h1 em { color: var(--accent-hi); box-shadow: none; font-style: normal; }
.hero .lede { color: rgba(255,255,255,.84); max-width: 44ch; margin-top: 22px; }
.hero-actions { margin-top: 32px; gap: 12px; }
.hero-stats { margin-top: clamp(48px, 7vw, 88px); border-top: 1px solid rgba(255,255,255,.2); }
.hero-stats li { border-right: 1px solid rgba(255,255,255,.12); padding: 20px 20px 4px 0; }
.hero-stats li + li { padding-left: 20px; }
.hero-stats b { color: #fff; font-family: var(--mono); font-weight: 500;
                font-size: clamp(1.5rem, 3vw, 2.3rem); letter-spacing: -0.02em; }
.hero-stats span { color: rgba(255,255,255,.62); font-size: .68rem; }

.trust { background: var(--sheet); color: var(--ink-soft); border-bottom: 1px solid var(--line); }
.trust ul { padding: 16px 0; }
.trust li { font-weight: 500; font-size: .7rem; }
.trust svg { color: var(--accent); }

/* ---- surfaces ---- */
.card { background: var(--sheet); border: 1px solid var(--line); border-radius: var(--r);
        box-shadow: 0 1px 0 color-mix(in srgb, var(--ink) 4%, transparent); padding: 28px;
        transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -22px color-mix(in srgb, var(--ink) 35%, transparent); border-color: var(--line-2); }
.card h3 { font-size: 1.2rem; }
.grid { gap: 16px; }
.keybox { border: 0; border-radius: var(--r); background: var(--ink); color: rgba(255,255,255,.82);
          padding: 30px 32px; position: relative; overflow: hidden; }
.keybox::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--accent-hi); }
.keybox strong { color: #fff; font-family: var(--display); font-stretch: var(--stretch); text-transform: none;
                 font-size: 1.3rem; letter-spacing: -0.01em; }
.keybox b { color: #fff; }
.keybox a { color: var(--accent-hi); }
.stat-note { border: 1px solid var(--line); border-radius: var(--r); background: var(--sheet); }
.steps > li { border-top: 1px solid var(--line-2); padding-left: clamp(60px, 9vw, 96px); }
.steps > li:last-child { border-bottom: 1px solid var(--line-2); }
.steps > li::before { font-weight: 500; color: var(--accent); font-size: clamp(1.6rem, 4vw, 2.3rem); }
.steps h3 { font-size: 1.15rem; text-transform: none; }

/* ---- buttons ---- */
.btn { font-family: var(--body); text-transform: none; font-weight: 650; letter-spacing: -0.005em;
       font-size: 1rem; border: 1px solid transparent; border-radius: var(--rb); box-shadow: none; padding: 15px 22px;
       transition: background .25s, transform .25s var(--ease), box-shadow .25s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -12px color-mix(in srgb, var(--accent) 70%, transparent); background: var(--accent-dk); color: #fff; }
.btn:active { transform: translateY(1px); box-shadow: none; }
.btn-lg { padding: 18px 28px; font-size: 1.06rem; }
.btn-ghost { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.42); box-shadow: none; color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--ink); box-shadow: none; }
.btn-phone, .btn-phone:hover { background: #fff; color: var(--ink); }

/* ---- tables: clean rules, mono numbers, stacked cards on phones ---- */
.tw { border: 1px solid var(--line); border-radius: var(--r); background: var(--sheet); }
table { font-size: .95rem; }
th, td { padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--paper-2); color: var(--ink); font-weight: 600; font-size: .68rem; }
tbody tr:nth-child(even) { background: transparent; }
tbody tr { transition: background .2s; }
tbody tr:hover { background: color-mix(in srgb, var(--brand) 6%, transparent); }
caption { color: var(--ink-faint); padding: 12px 18px; }
.rv-arm tr { opacity: 0; transform: translateY(8px); }
.rv-arm.is-in tr { opacity: 1; transform: none; transition: opacity .5s var(--ease), transform .5s var(--ease);
                   transition-delay: calc(var(--i, 0) * 70ms); }
@media (max-width: 600px) {
  .tw { overflow: visible; border: 0; background: transparent; }
  table.is-stack { min-width: 0; }
  table.is-stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.is-stack tr { display: block; background: var(--sheet) !important; border: 1px solid var(--line);
                      border-radius: var(--r); margin-bottom: 10px; padding: 6px 0; }
  table.is-stack td { display: block; border: 0; padding: 8px 16px; white-space: normal; }
  table.is-stack td::before { content: attr(data-label); display: block; font-family: var(--mono); font-size: .64rem;
    letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 2px; }
  table.is-stack caption { padding: 4px 0 0; }
}

/* ---- forms, faq, related ---- */
.formcard { border: 1px solid var(--line); border-radius: var(--r2); box-shadow: 0 30px 60px -40px color-mix(in srgb, var(--ink) 45%, transparent); background: var(--sheet); }
input[type=text], input[type=tel], input[type=email], select, textarea { border: 1px solid var(--line-2); border-radius: var(--r); background: #fff; }
label { font-weight: 600; color: var(--ink); }
details.faq { border-top: 1px solid var(--line-2); }
details.faq:last-of-type { border-bottom: 1px solid var(--line-2); }
details.faq summary { font-family: var(--display); text-transform: none; font-stretch: var(--stretch); font-weight: 650;
                      font-size: 1.12rem; color: var(--ink); }
.related { border: 1px solid var(--line); border-radius: var(--r2); background: var(--sheet); padding: 28px; }
.related h2 { border-top: 0; padding-top: 0; font-size: 1.3rem; margin-top: 0; }
.related h2::before { display: none; }
.related ul { gap: 8px; }
.related a { border: 1px solid var(--line); border-radius: var(--r); background: #fff; text-transform: none;
             font-family: var(--body); font-weight: 600; padding: 13px 16px;
             transition: border-color .25s, color .25s, transform .3s var(--ease); }
.related a:hover { background: #fff; color: var(--accent); border-color: var(--accent); transform: translateX(3px); }
.crumbs, .meta { font-size: .68rem; }

/* ---- figures: drawing sheets, legible at every width ---- */
figure.fig { border: 1px solid var(--line); border-radius: var(--r2); background: var(--sheet);
             padding: 28px 28px 0; overflow: hidden; margin: 48px 0; }
figure.fig figcaption { font-family: var(--body); font-size: .9rem; line-height: 1.55; color: var(--ink-soft);
   border-top: 1px solid var(--line); background: transparent; margin: 24px -28px 0; padding: 16px 28px 20px; }
/* The old rule was meant to print an em dash and shipped as a broken glyph. */
figure.fig figcaption::before { content: 'Fig. ' counter(fig) '  /  '; font-family: var(--mono); font-size: .76rem;
   letter-spacing: .04em; color: var(--accent); font-weight: 600; }
figure.fig.fig-photo { padding: 0; }
figure.fig.fig-photo figcaption { margin: 0; }
.fig .f-title { font-family: var(--display); font-stretch: var(--stretch); text-transform: none; font-weight: 750;
                font-size: 19px; letter-spacing: -0.01em; }
.fig .f-label { font-family: var(--mono); font-size: 13px; font-weight: 500; }
.fig .f-small { font-family: var(--mono); font-size: 11.5px; fill: var(--ink); opacity: .8; letter-spacing: .03em; }
.fig .f-plate { fill: var(--sheet); opacity: .92; }
figure.fig .fighint { font-family: var(--mono); color: var(--accent); }
figure.fig .figscroll::-webkit-scrollbar-thumb { background: var(--brand-2); border-radius: 4px; }
/* draw-on: line work traces itself, then the labels arrive */
.draw-arm .f-line, .draw-arm .f-thin { stroke-dasharray: 2400; stroke-dashoffset: 2400; }
.draw-arm text { opacity: 0; }
.draw-arm.is-in .f-line, .draw-arm.is-in .f-thin { stroke-dashoffset: 0; transition: stroke-dashoffset 1.8s var(--ease); }
.draw-arm.is-in text { opacity: 1; transition: opacity .6s ease .8s; }
.rise-arm { opacity: 0; transform: translateY(18px); }
.rise-arm.is-in { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease); }
/* The Remotion clip sits above the drawing it animates, never instead of it. */
figure.fig.fig-clip { padding: 0; background: var(--ink); border-color: var(--ink); }
figure.fig.fig-clip video { width: 100%; height: auto; display: block; aspect-ratio: 16 / 9; object-fit: cover; }
figure.fig.fig-clip figcaption { color: rgba(255,255,255,.78); border-top-color: rgba(255,255,255,.12); margin: 0; }

.foot { background: var(--ink); border-top: 0; }
.foot h3 { color: var(--accent-hi); }

@media (max-width: 900px) {
  figure.fig { padding: 20px 20px 0; }
  figure.fig figcaption { margin: 20px -20px 0; padding: 14px 20px 18px; }
  figure.fig.fig-photo figcaption, figure.fig.fig-clip figcaption { margin: 0; }
}
@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .card { padding: 22px; box-shadow: none; }
  .formcard { box-shadow: none; }
  .hero-stats li { padding-left: 0 !important; padding-right: 12px; border-right: 0; }
  .hero h1 { font-size: clamp(2.4rem, 11vw, 3.2rem); }
  .keybox { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .card, .btn, .related a, .nav a::after { transition: none !important; }
  .card:hover, .btn:hover { transform: none; }
}
@media (max-width: 480px) {
  .top-cta .btn { padding: 11px 14px; font-size: .9rem; white-space: nowrap; }
  .logo { font-size: 1rem; }
}

/* Local, sourced block on service pages (part_local_service, 2026-10-23) */
.local-svc .office { background: var(--sheet, transparent); border-left: 3px solid var(--accent); padding: 10px 14px; }
.local-svc .srcs, .srcs { font-size: .86rem; color: var(--ink-faint); }
.local-svc .srcs a, .srcs a { color: inherit; }

/* ===== New Braunfels: same system, mapped onto its own markup ===== */
:root { --bg: var(--paper); --bg-soft: var(--paper-2); --bg-sink: var(--paper-2);
  --brand-dk: var(--accent-dk); --brand-lt: var(--paper-2); --on-brand: #fff;
  --accent-lt: var(--paper-2); --on-accent: #fff; --sans: var(--body); --radius: var(--r);
  --line: color-mix(in srgb, var(--ink) 14%, transparent); color-scheme: light; }
body { counter-reset: fig; background: var(--paper); color: var(--ink-soft); }
figure.fig { counter-increment: fig; }
/* masthead: one dark bar, real wordmark */
.top { background: var(--ink); border-bottom: 0; position: relative; }
.top-in { min-height: 72px; }
.logo { color: #fff; font-family: var(--display); font-weight: 800; font-size: 1.18rem; letter-spacing: -0.015em; gap: 12px; }
.logo svg { width: 36px; height: 36px; }
.logo span small { color: var(--accent-hi); font-family: var(--mono); font-size: .66rem; letter-spacing: .12em; margin-top: 2px; }
/* nav: one sticky row, scrolls sideways instead of wrapping */
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 94%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.nav ul { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 0; }
.nav ul::-webkit-scrollbar { display: none; }
.nav a { white-space: nowrap; font-family: var(--mono); font-weight: 500; text-transform: uppercase; font-size: .72rem;
  letter-spacing: .08em; padding: 16px 13px; border-bottom: 0; position: relative; color: var(--ink-soft); }
.nav a::after { content: ''; position: absolute; left: 13px; right: 13px; bottom: 9px; height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav a:hover, .nav a[aria-current="page"] { background: transparent; color: var(--ink); border-bottom-color: transparent; }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
/* buttons: accent, not teal */
.btn { background: var(--accent); color: #fff; border-radius: var(--rb); font-family: var(--body); font-weight: 700; padding: 15px 22px; }
.btn:hover { background: var(--accent-dk); color: #fff; }
.btn-ghost { background: rgba(255,255,255,.06); color: #fff; border: 1px solid rgba(255,255,255,.45); }
.btn-ghost:hover { background: #fff; color: var(--ink); }
.page .btn-ghost { color: var(--brand); border-color: var(--brand); background: transparent; }
.btn-phone { background: #fff; color: var(--ink); }
/* hero: tinted scrim, big display type */
.hero { background: var(--ink); border-bottom: 0; padding: clamp(80px, 12vw, 150px) 0 clamp(56px, 8vw, 96px); }
.hero h1 { color: #fff; font-family: var(--display); font-weight: 800; font-size: clamp(2.6rem, 6vw, 5rem); line-height: 1; letter-spacing: -0.03em; max-width: 14ch; }
.hero .lede { color: rgba(255,255,255,.86); max-width: 46ch; }
.hero.has-media::after { background:
  linear-gradient(90deg, color-mix(in srgb, var(--ink) 95%, transparent) 0%, color-mix(in srgb, var(--ink) 80%, transparent) 40%, color-mix(in srgb, var(--ink) 30%, transparent) 80%),
  linear-gradient(0deg, color-mix(in srgb, var(--ink) 80%, transparent) 0%, transparent 45%) !important; }
.hero-media img, .hero-media video { filter: saturate(.6) contrast(1.04); }
.trust { background: var(--sheet); border-bottom: 1px solid var(--line); }
.trust li { font-family: var(--mono); text-transform: uppercase; font-size: .7rem; letter-spacing: .08em; }
.trust svg { color: var(--accent); }
/* sections */
.page { padding: clamp(40px, 6vw, 72px) 0 clamp(80px, 10vw, 128px); }
.page h1 { font-family: var(--display); color: var(--ink); font-weight: 800; font-size: clamp(2.3rem, 5vw, 3.8rem); line-height: 1.04; letter-spacing: -0.025em; }
.page h2 { font-family: var(--display); color: var(--ink); font-weight: 750; font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  margin-top: clamp(56px, 8vw, 104px); padding-top: 22px; border-top: 1px solid var(--line-2, var(--line)); position: relative; letter-spacing: -0.02em; line-height: 1.08; }
.page h2::before { content: ''; position: absolute; top: -2px; left: 0; width: 56px; height: 3px; background: var(--accent); }
.page h3 { font-family: var(--display); color: var(--ink); }
.page a { color: var(--brand); }
.lede-big { color: var(--ink); font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.45; }
.note, .warnbox { border-radius: var(--r); background: var(--sheet); border: 1px solid var(--line); border-left: 4px solid var(--brand); }
.warnbox { border-left-color: var(--accent); }
.keybox { background: var(--ink); color: rgba(255,255,255,.84); border: 0; border-left: 4px solid var(--accent-hi); border-radius: var(--r); }
.keybox strong { color: #fff; }
.keybox a { color: var(--accent-hi) !important; }
.tablewrap { background: var(--sheet); border-radius: var(--r); }
th { background: var(--paper-2); color: var(--ink); font-family: var(--mono); font-weight: 500; text-transform: uppercase; font-size: .7rem; letter-spacing: .06em; }
.foot, footer { background: var(--ink); color: rgba(255,255,255,.78); }
footer a { color: rgba(255,255,255,.86); }
footer h3, footer h4 { color: var(--accent-hi); }
/* figure labels were 10px at 85% opacity: too small and too faint */
.fig-lbl { font-size: 12px; opacity: 1; }
.fig-sub { font-size: 13.5px; opacity: .85; }
.fig figcaption::before { content: 'Fig. ' counter(fig) '  /  '; }
