/* Aloft Labs OpenDesign system. Static, self-hosted, and Cloudflare Pages friendly. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: optional;
  src: url("/fonts/inter-regular-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: optional;
  src: url("/fonts/inter-semibold-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Display role is Inter SemiBold at large sizes (fonts/README). Inter Display is not self-hosted. */

:root {
  --midnight: #0c2428;
  --deep-teal: #1f5855;
  --aloft-teal: #276f6a;
  --signal-mint: #7ccbc0;
  --aloft-mist: #e1f4f4;
  --cloud-white: #f7f9f8;
  --lockup-paper: #fdfdfd; /* lockup.png paper rgb(253,253,253) */
  --white: #ffffff;
  --ink-soft: #526a6c;
  --ink-faint: #6f8586;
  --line: #c9dedd;
  --line-soft: #e5eeee;
  --danger: #6b1515;
  --danger-bg: #f3e8e8;
  --danger-rule: #d4b4b4;

  --font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --text-display: clamp(2.85rem, 1.75rem + 4vw, 5.4rem);
  --text-h1: clamp(2.35rem, 1.55rem + 2.8vw, 4rem);
  --text-h2: clamp(1.65rem, 1.35rem + 1vw, 2.35rem);
  --text-h3: clamp(1.1rem, 1rem + 0.3vw, 1.3rem);
  --text-body: 1.0625rem;
  --text-label: 0.75rem;
  --track-display: -0.04em;
  --track-h1: -0.03em;
  --track-label: 0.09em;
  --leading-display: 1.05;
  --leading-h1: 1.12;
  --leading-h2: 1.2;
  --leading-body: 1.65;

  --container: 86rem;
  --gutter: clamp(1.25rem, 4vw, 3.25rem);
  --measure: 65ch;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --control-min: 44px;
  --section-y: clamp(4.75rem, 9vw, 8.5rem);
  --ease: 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  color-scheme: light;
}

html,
body {
  background: var(--cloud-white);
  overflow-x: clip;
}

body {
  min-height: 100dvh;
  margin: 0;
  display: flex;
  flex-direction: column;
  color: var(--midnight);
  font-family: var(--font);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}

main > .band:last-of-type,
main > .intro:last-of-type,
main > .hero:last-of-type {
  flex: 1 0 auto;
}

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

.grain { display: none; }

.skip {
  position: absolute;
  top: 0.75rem;
  left: -9999px;
  z-index: 1001;
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius-sm);
  background: var(--aloft-teal);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
}

.skip:focus { left: var(--gutter); }
.skip:link,
.skip:visited,
.skip:hover,
.skip:focus { color: var(--white); }

/* Header: full-bleed lockup-paper so stacked lockup.png blends. In-flow; midnight hero sits below. */
.site-header {
  width: 100%;
  background: var(--lockup-paper);
  color: var(--midnight);
}

.header-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.75rem;
  padding: 0.75rem 0 0.85rem;
}

.header-link {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  min-width: 0;
  padding: 0.15rem 0.5rem 0.15rem 0;
  color: var(--midnight);
  text-decoration: none;
}

.header-link:hover { color: var(--midnight); }

/* lockup.png is 530×456 RGB; size by width, height auto (aspect 530/456). */
.mark {
  display: block;
  height: auto;
  aspect-ratio: 530 / 456;
}

.site-header .mark {
  width: 72px;
}

.site-header nav[aria-label="Primary"] {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.25rem 1.35rem;
  min-width: 0;
  font-size: 0.9rem;
  font-weight: 600;
}

.site-header nav[aria-label="Primary"] a {
  position: relative;
  display: inline-flex;
  min-height: var(--control-min);
  align-items: center;
  color: var(--midnight);
  text-decoration: none;
  white-space: nowrap;
}

.site-header nav[aria-label="Primary"] a::after {
  position: absolute;
  right: 0;
  bottom: 0.7rem;
  left: 0;
  height: 2px;
  background: var(--signal-mint);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--ease);
}

.site-header nav[aria-label="Primary"] a:hover { color: var(--deep-teal); }

.site-header nav[aria-label="Primary"] a:hover::after,
.site-header nav[aria-label="Primary"] a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.site-header nav[aria-label="Primary"] a.nav-cta {
  min-height: var(--control-min);
  padding: 0.45rem 0.95rem;
  border: 1px solid var(--aloft-teal);
  border-radius: var(--radius-sm);
  color: var(--aloft-teal);
  font-weight: 600;
}

.site-header nav[aria-label="Primary"] a.nav-cta::after { display: none; }

.site-header nav[aria-label="Primary"] a.nav-cta:hover {
  background: var(--aloft-teal);
  color: var(--white);
}

/* Type */
h1,
h2,
h3 {
  margin: 0;
  font-weight: 600;
  text-wrap: balance;
}

h1 {
  font-size: var(--text-h1);
  letter-spacing: var(--track-h1);
  line-height: var(--leading-h1);
}

h2 {
  color: var(--midnight);
  font-size: var(--text-h2);
  letter-spacing: -0.025em;
  line-height: var(--leading-h2);
}

h3 {
  color: var(--midnight);
  font-size: var(--text-h3);
  letter-spacing: -0.02em;
  line-height: 1.25;
}

p { margin: 0 0 1.2rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--aloft-teal); }
a:hover { color: var(--deep-teal); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--aloft-teal);
  outline-offset: 3px;
}

::selection {
  background: var(--aloft-mist);
  color: var(--midnight);
}

.eyebrow,
.section-kicker,
.step-index,
.leak-index {
  margin: 0 0 1rem;
  color: var(--aloft-teal);
  font-size: var(--text-label);
  font-weight: 600;
  letter-spacing: var(--track-label);
  line-height: 1.3;
  text-transform: uppercase;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(12rem, 0.45fr) minmax(0, 1fr);
  gap: 2rem 5rem;
  align-items: start;
  margin-bottom: 3.5rem;
}

.section-heading h2 { max-width: 22ch; }

.section-heading p {
  max-width: 55ch;
  color: var(--ink-soft);
}

.prose {
  max-width: var(--measure);
  color: var(--ink-soft);
}

.hero .prose,
.intro .prose { color: var(--aloft-mist); }

/* Buttons and link groups */
.btn {
  display: inline-flex;
  min-height: var(--control-min);
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.78rem 1.25rem;
  border: 1px solid var(--aloft-teal);
  border-radius: var(--radius-sm);
  background: var(--aloft-teal);
  color: var(--white);
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--ease), background-color var(--ease), border-color var(--ease);
}

a.btn:link,
a.btn:visited { color: var(--white); }

.btn::after {
  content: "→" / "";
  font-size: 1.1em;
  line-height: 1;
}

.btn:hover {
  border-color: var(--deep-teal);
  background: var(--deep-teal);
  color: var(--white);
  text-decoration: none;
  transform: translateY(-2px);
}

.btn:active { transform: translateY(0); }

.hero-actions { margin: 0; }

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-top: 1.6rem;
  font-weight: 600;
}

.links a { text-decoration: none; }

.links a::after {
  margin-left: 0.4rem;
  content: "→" / "";
}

/* Homepage hero */
.hero,
.intro {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--cloud-white);
  background-color: var(--midnight);
}

.hero {
  min-height: min(760px, calc(100svh - 6.5rem));
  display: grid;
  align-items: center;
  padding-block: clamp(4.5rem, 9vw, 8.25rem);
  background-image:
    linear-gradient(115deg, transparent 0 61%, rgb(124 203 192 / 7%) 61% 61.15%, transparent 61.15%),
    linear-gradient(115deg, transparent 0 74%, rgb(124 203 192 / 5%) 74% 74.1%, transparent 74.1%),
    radial-gradient(ellipse 50% 72% at 94% 10%, rgb(225 244 244 / 13%), transparent 70%),
    radial-gradient(ellipse 48% 60% at 3% 100%, rgb(39 111 106 / 35%), transparent 72%);
}

.hero::after,
.intro::after {
  position: absolute;
  right: -10rem;
  bottom: -7rem;
  z-index: -1;
  width: 30rem;
  height: 30rem;
  border: 1px solid rgb(124 203 192 / 20%);
  border-radius: 50%;
  content: "";
  transform: rotate(-15deg);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr);
  gap: clamp(3rem, 7vw, 8rem);
  align-items: center;
}

.hero-copy { max-width: 42rem; }

.hero .eyebrow,
.intro .eyebrow { color: var(--signal-mint); }

.hero h1 {
  max-width: 14ch;
  color: var(--cloud-white);
  font-size: var(--text-display);
  font-weight: 600;
  letter-spacing: var(--track-display);
  line-height: var(--leading-display);
}

.hero .lead,
.intro .lead {
  max-width: 42ch;
  margin: 1.75rem 0 2rem;
  color: var(--aloft-mist);
  font-size: clamp(1.08rem, 1rem + 0.35vw, 1.3rem);
  line-height: 1.55;
}

.hero .sub,
.intro .sub {
  margin-top: 1rem;
  color: #acc2c1;
  font-size: 0.9rem;
}

/* Hero system map: CSS-only, no image or script request. */
.system-map {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 440px;
  padding: 1.25rem;
  overflow: hidden;
  border: 1px solid rgb(225 244 244 / 26%);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, #13383b, #0c2428 68%);
  box-shadow: 0 24px 64px rgb(0 0 0 / 20%);
}

.system-map::before {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgb(225 244 244 / 7%) 1px, transparent 1px), linear-gradient(90deg, rgb(225 244 244 / 7%) 1px, transparent 1px);
  background-size: 2rem 2rem;
  content: "";
  mask-image: linear-gradient(135deg, #000, transparent 78%);
  opacity: 0.35;
}

.map-head,
.map-foot,
.map-flows { position: relative; z-index: 1; }

.map-head,
.map-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  color: #acc2c1;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
}

.map-flows {
  display: grid;
  flex: 1;
  gap: 0.7rem;
  align-content: center;
  margin-block: 2.15rem 1.65rem;
}

.map-labels,
.map-row {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) 1rem minmax(0, 1.15fr) 1rem minmax(0, 1fr);
  gap: 0.4rem;
  align-items: stretch;
}

.map-labels {
  color: var(--signal-mint);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
}

.map-cell {
  min-width: 0;
  padding: 0.8rem;
  border: 1px solid rgb(225 244 244 / 18%);
  border-radius: var(--radius-sm);
  background: rgb(247 249 248 / 7%);
  color: var(--cloud-white);
  font-size: 0.82rem;
  line-height: 1.35;
}

.map-cell small {
  display: block;
  margin-top: 0.25rem;
  color: #acc2c1;
  font-size: 0.68rem;
}

.map-cell.action {
  border-color: rgb(124 203 192 / 38%);
  background: rgb(124 203 192 / 10%);
}

.map-cell.output {
  border-color: rgb(124 203 192 / 55%);
  background: var(--aloft-mist);
  color: var(--midnight);
}

.map-cell.output small { color: var(--deep-teal); }

.flow-arrow {
  align-self: center;
  color: var(--signal-mint);
  text-align: center;
}

.map-foot { margin-top: auto; }

/* Shared page intros */
.intro {
  padding-block: clamp(4rem, 8vw, 7.5rem);
  background-image:
    linear-gradient(115deg, transparent 0 68%, rgb(124 203 192 / 7%) 68% 68.1%, transparent 68.1%),
    radial-gradient(ellipse 52% 80% at 96% 0%, rgb(225 244 244 / 12%), transparent 68%),
    radial-gradient(ellipse 42% 60% at 0% 100%, rgb(39 111 106 / 25%), transparent 72%);
}

.intro h1 {
  max-width: 17ch;
  color: var(--cloud-white);
  font-size: clamp(2.6rem, 1.75rem + 3.3vw, 4.65rem);
  letter-spacing: var(--track-display);
  line-height: var(--leading-display);
}

.intro .container { position: relative; z-index: 1; }

/* Sections */
.band {
  padding-block: var(--section-y);
  background: var(--cloud-white);
}

.band-mist { background: var(--aloft-mist); }

.band-midnight {
  position: relative;
  overflow: hidden;
  color: var(--cloud-white);
  background-color: var(--midnight);
  background-image: radial-gradient(ellipse 55% 80% at 100% 50%, rgb(39 111 106 / 28%), transparent 70%);
}

.band-midnight h2 { color: var(--cloud-white); }
.band-midnight .prose { color: var(--aloft-mist); }
.band-midnight a { color: var(--signal-mint); }
.band-midnight a:hover { color: var(--cloud-white); }
.band-midnight .eyebrow { color: var(--signal-mint); }

.band-midnight::after {
  position: absolute;
  right: 3%;
  bottom: -12rem;
  width: 24rem;
  height: 24rem;
  border: 1px solid rgb(124 203 192 / 22%);
  border-radius: 50%;
  content: "";
  transform: rotate(-15deg);
}

.stack {
  display: flex;
  flex-direction: column;
  gap: clamp(3rem, 7vw, 6.5rem);
}

.stack > section { max-width: 58rem; }

.band h2::after,
.intro h2::after {
  display: block;
  width: 3.5rem;
  height: 2px;
  margin-top: 1rem;
  background: var(--aloft-teal);
  content: "";
  transform: rotate(-15deg);
  transform-origin: left;
}

/* Form helpers are headings for a11y, not section titles — skip the motif rule. */
.band h2.helper::after {
  display: none;
}

.band-midnight h2::after,
.intro h2::after { background: var(--signal-mint); }

.band h2 + .prose,
.band h2 + p { margin-top: 1.3rem; }

.band h2.helper + .prose {
  margin-top: 0;
}

/* Homepage solution cards */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.solution-card,
.leak-card {
  display: flex;
  min-height: 15rem;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--midnight);
  text-decoration: none;
  transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease);
}

.solution-card:hover,
.leak-card:hover {
  border-color: var(--aloft-teal);
  color: var(--midnight);
  text-decoration: none;
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgb(12 36 40 / 11%);
}

.solution-card .card-top {
  display: flex;
  width: 100%;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.solution-card .card-index {
  color: var(--aloft-teal);
  font-family: var(--font);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: var(--track-label);
}

.solution-card h2,
.solution-card h3 {
  max-width: 12ch;
  margin-top: 1.4rem;
  font-size: 1.55rem;
}

.solution-card h2::after { display: none; }

.solution-card p {
  max-width: 28ch;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.5;
}

.solution-card::after,
.leak-card::after {
  display: block;
  width: 3.5rem;
  height: 2px;
  margin-top: 1.25rem;
  background: var(--aloft-teal);
  content: "";
  transform: rotate(-15deg);
  transform-origin: left center;
  transition: transform var(--ease);
}

.solution-card:hover::after,
.leak-card:hover::after { transform: rotate(-15deg) scaleX(1.3); }

.supporting-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.supporting-link {
  padding: 1.25rem 1.35rem;
  border-top: 1px solid var(--line);
  color: var(--midnight);
  text-decoration: none;
}

.supporting-link:hover { color: var(--deep-teal); }

.supporting-link span {
  display: block;
  margin-top: 0.3rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

/* Process / operating model */
.process-grid,
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.process-card,
.step {
  position: relative;
  min-height: 12rem;
  padding: 1.5rem;
  border-top: 1px solid var(--line);
}

.process-card:not(:last-child)::after,
.step:not(:last-child)::after {
  position: absolute;
  top: 2rem;
  right: -1.1rem;
  width: 2.2rem;
  height: 1px;
  background: var(--aloft-teal);
  content: "";
  transform: rotate(-15deg);
}

.process-card h3,
.step h2 { margin-bottom: 0.65rem; }

.process-card p,
.step p { color: var(--ink-soft); font-size: 0.95rem; }

.step-index { margin-bottom: 0.8rem; }

.split {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: start;
}

.split > :nth-child(even) { padding-top: 3.5rem; }

.tool-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.5rem;
}

.tool-list span {
  display: inline-flex;
  min-height: 2.1rem;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--deep-teal);
  font-size: 0.85rem;
  font-weight: 600;
}

.band-midnight .tool-list span {
  border-color: rgb(225 244 244 / 25%);
  color: var(--aloft-mist);
}

/* Lead capture */
.start-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.2fr);
  gap: clamp(2.5rem, 8vw, 8rem);
  align-items: start;
}

.start-copy { padding-top: 0.5rem; }

.helper {
  max-width: 13ch;
  margin: 0;
  color: var(--midnight);
  font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.7rem);
  font-weight: 600;
  letter-spacing: var(--track-h1);
  line-height: 1.15;
  text-wrap: balance;
}

.form-panel {
  max-width: 46rem;
  padding: clamp(1.35rem, 3vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: 0 18px 46px rgb(12 36 40 / 8%);
}

form { position: relative; margin: 0; }

.lead-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.15rem 1rem;
}

.field { margin: 0; }
.field-span { grid-column: 1 / -1; }

label {
  display: block;
  margin: 0 0 0.4rem;
  color: var(--deep-teal);
  font-size: var(--text-label);
  font-weight: 600;
  letter-spacing: var(--track-label);
  line-height: 1.3;
  text-transform: uppercase;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  display: block;
  width: 100%;
  min-height: var(--control-min);
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--cloud-white);
  color: var(--midnight);
  font: inherit;
  line-height: 1.4;
  transition: border-color var(--ease), box-shadow var(--ease);
}

textarea { min-height: 8.2rem; resize: vertical; }

input[type="text"]:hover,
input[type="email"]:hover,
input[type="tel"]:hover,
textarea:hover { border-color: var(--aloft-teal); }

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus {
  border-color: var(--aloft-teal);
  box-shadow: 0 0 0 3px rgb(39 111 106 / 18%);
}

input[type="text"]:focus-visible,
input[type="email"]:focus-visible,
input[type="tel"]:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--aloft-teal);
  outline-offset: 2px;
}

.hp {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.form-actions { margin-top: 0.25rem; }
.form-actions .btn { min-width: 13rem; }

.form-disclaimer {
  margin: 0.85rem 0 0;
  color: var(--ink-soft);
  font-size: 0.8125rem;
  line-height: 1.45;
}

.form-err {
  display: none;
  margin: 0 0 1.25rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--danger-rule);
  border-radius: var(--radius-sm);
  background: var(--danger-bg);
  color: var(--danger);
}

.form-err.is-visible,
.form-err:target { display: block; }

/* Footer */
.site-footer {
  padding-block: 3.75rem 2.5rem;
  background: var(--midnight);
  color: #acc2c1;
  font-size: 0.85rem;
  line-height: 1.6;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2rem 5rem;
  align-items: start;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  margin-bottom: 1.2rem;
  text-decoration: none;
}

.footer-brand:hover { opacity: 0.92; }
.footer-brand .mark {
  width: 110px;
  background: var(--lockup-paper);
}

.footer-note { max-width: 44ch; }

.site-footer nav[aria-label="Footer"] {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 0.55rem 1.75rem;
  justify-content: end;
  margin: 0 0 1.5rem;
  font-weight: 600;
}

.site-footer nav[aria-label="Footer"] a {
  min-height: var(--control-min);
  display: inline-flex;
  align-items: center;
}

.site-footer a { color: var(--cloud-white); text-decoration: none; }
.site-footer a:hover { color: var(--signal-mint); }
.site-footer nav a[aria-current="page"] { color: var(--signal-mint); }
.footer-legal a {
  color: var(--signal-mint);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}
.footer-legal a:hover { color: var(--white); }

.site-footer .footer-legal {
  grid-column: 1 / -1;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgb(225 244 244 / 18%);
}

/* Existing page structures inherit the system. */
.leak-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 2rem; }
.leak-card { min-height: 12rem; }
.leak-name { font-size: clamp(1.35rem, 1.15rem + 0.8vw, 1.8rem); font-weight: 600; letter-spacing: -0.03em; }
.band-mist .form-panel { background: var(--white); }

@media (min-width: 64rem) {
  .header-bar {
    flex-wrap: nowrap;
    align-items: center;
    padding: 1.35rem 0 1.45rem;
  }

  .site-header .mark {
    width: 180px;
    height: auto;
  }

  .site-header nav[aria-label="Primary"] {
    flex-wrap: nowrap;
    flex: 0 0 auto;
  }

  /* 180px lockup + 2.8rem header padding ≈ 14.05rem */
  .hero {
    min-height: calc(100dvh - 14.25rem);
  }
}

@media (max-width: 63.99rem) {
  .site-header nav[aria-label="Primary"] {
    flex: 1 1 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    padding-bottom: 0.15rem;
  }
  .site-header nav[aria-label="Primary"] a::after { bottom: 0.25rem; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .system-map { max-width: 42rem; }
  .start-grid { grid-template-columns: 1fr; }
  .start-copy { padding-top: 0; }
  .helper { max-width: 20ch; }
}

@media (max-width: 47.99rem) {
  :root { --section-y: clamp(3.75rem, 13vw, 5.5rem); }
  .header-bar { gap: 0.5rem 1rem; padding: 0.55rem 0 0.65rem; }
  .site-header .mark { width: 64px; }
  .site-header nav[aria-label="Primary"] { gap: 0.2rem 0.85rem; font-size: 0.82rem; }
  .site-header nav[aria-label="Primary"] a[href="/"] { display: none; }
  .hero { padding-block: 4.25rem 4.75rem; }
  .hero h1 { max-width: 13ch; }
  .hero .lead, .intro .lead { margin-top: 1.4rem; }
  .system-map { min-height: 0; padding: 1rem; }
  .map-flows {
    grid-template-columns: 1fr;
    margin-block: 1.5rem;
  }
  .map-labels { display: none; }
  .map-row {
    grid-template-columns: 1fr;
    gap: 0.45rem;
    padding: 0.8rem;
    border: 1px solid rgb(225 244 244 / 14%);
    border-radius: var(--radius-sm);
  }
  .map-cell {
    padding: 0.7rem;
    font-size: 0.8rem;
  }
  .map-cell::before {
    display: block;
    margin-bottom: 0.3rem;
    color: var(--signal-mint);
    content: attr(data-label);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: var(--track-label);
    text-transform: uppercase;
  }
  .map-cell.output::before { color: var(--deep-teal); }
  .map-cell small { font-size: 0.66rem; }
  .flow-arrow { transform: rotate(90deg); }
  .section-heading { grid-template-columns: 1fr; gap: 0.75rem; margin-bottom: 2.25rem; }
  .solutions-grid,
  .process-grid,
  .steps,
  .split,
  .leak-grid,
  .supporting-links { grid-template-columns: 1fr; }
  .solution-card { min-height: 13rem; }
  .process-card,
  .step { min-height: 0; padding: 1.25rem 0; }
  .process-card:not(:last-child)::after,
  .step:not(:last-child)::after { top: auto; right: auto; bottom: -0.7rem; left: 1.5rem; width: 2rem; }
  .split > :nth-child(even) { padding-top: 0; }
  .lead-form { grid-template-columns: 1fr; }
  .field-span { grid-column: auto; }
  .form-actions .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .site-footer nav[aria-label="Footer"] { justify-content: start; }
  .site-footer .footer-legal { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .btn:hover,
  .solution-card:hover,
  .leak-card:hover { transform: none; }
}
