:root {
  --navy: #062b48;
  --deep: #051f38;
  --blue: #075d88;
  --aqua: #75f1e5;
  --foam: #effbfc;
  --line: #b8dce3;
  --ink: #102e44;
  --muted: #39596a;
  --white: #fff;
  --radius: 1.15rem;
  --body: system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 1rem; }
body { margin: 0; color: var(--ink); font: 1rem/1.6 var(--body); }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
.wrap { width: min(100% - 2rem, 74rem); margin-inline: auto; }
.skip { position: absolute; z-index: 2; left: 1rem; top: 1rem; padding: .75rem; background: var(--white); transform: translateY(-200%); }
.skip:focus { transform: none; }
.header, .footer { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; column-gap: 1rem; padding-block: .65rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; color: var(--navy); font-size: 1.3rem; font-weight: 800; letter-spacing: -.045em; text-decoration: none; }
.drop { display: inline-block; width: 1rem; height: 1rem; border-radius: 70% 0 70% 70%; transform: rotate(-45deg); background: var(--blue); flex: none; }
nav { display: flex; gap: clamp(.5rem, 4vw, 2rem); flex-basis: 100%; order: 1; }
nav a, .header-call { display: inline-flex; align-items: center; min-height: 44px; font-size: .9rem; font-weight: 650; }
nav a { text-decoration: none; }
nav a:hover, .header-call:hover { color: var(--blue); text-decoration: underline; text-underline-offset: .2em; }
.hero { color: var(--white); position: relative; isolation: isolate; overflow: hidden; background: var(--deep); }
.hero-content { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; min-height: clamp(32rem, 52vw, 50rem); padding-block: 4rem; }
h1, h2, h3 { margin: 0; line-height: 1.1; letter-spacing: -.045em; text-wrap: balance; }
h1 { max-width: 11ch; font-size: clamp(2.65rem, 7.4vw, 6.4rem); font-weight: 800; }

h2 { font-size: clamp(2.1rem, 5vw, 3.8rem); font-weight: 800; }
h3 { font-size: 1.23rem; font-weight: 750; letter-spacing: -.025em; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: .7rem 1.25rem; border: 0; border-radius: 100px; background: var(--aqua); color: var(--deep); font: 750 1rem/1.25 var(--body); text-decoration: none; cursor: pointer; transition: background-color 170ms, transform 170ms; }
.button:hover { background: #b3fff7; transform: translateY(-2px); }
.button:disabled { cursor: default; opacity: .65; }
.hero .button { margin-top: 2rem; }
.hero a:focus-visible { outline-color: var(--white); }
.section { padding-block: clamp(3rem, 7vw, 6rem); }
.cards, .steps { display: grid; gap: 1rem; margin-top: 1.75rem; }
.cards article { min-width: 0; }
.cards p, .steps p { margin: .55rem 0 0; color: var(--muted); }
.service-symbol { display: grid; place-items: center; width: 2.65rem; height: 2.65rem; margin-bottom: 1rem; color: var(--blue); background: #d0f5f5; border-radius: 50%; }
.waves { font-size: 2rem; line-height: 1; }
.repair { width: 1.15rem; height: .32rem; border-radius: 9px; background: currentColor; transform: rotate(-45deg); box-shadow: 0 .38rem currentColor; }
.ring { width: 1.14rem; height: 1.14rem; border: 4px solid currentColor; outline: 1px dashed var(--white); outline-offset: -3px; border-radius: 50%; }
.process { background: var(--foam); border-block: 1px solid var(--line); }
.service-areas { border-top: 1px solid var(--line); }
.locations { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: .5rem 1rem; padding-inline-start: 1.25rem; margin: 1.25rem 0 0; }
.steps { padding: 0; list-style-type: none; counter-reset: step; }
.steps li { display: flex; align-items: flex-start; gap: .9rem; border-top: 1px solid var(--line); padding-top: 1rem; counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; flex: 0 0 2rem; height: 2rem; border-radius: 50%; background: var(--blue); color: var(--white); font-weight: 700; }
.contact { color: var(--white); background: var(--navy); }
.contact-grid { display: grid; gap: 2rem; }
.owner { margin: 1.25rem 0 .5rem; }
address { display: grid; justify-items: start; font-style: normal; overflow-wrap: anywhere; }
address a { display: inline-flex; align-items: center; min-height: 44px; color: var(--aqua); }
address a:focus-visible { outline-color: var(--white); }
form { padding: clamp(1rem, 4vw, 2rem); border-radius: var(--radius); background: var(--white); color: var(--ink); }
.fields { display: grid; gap: .85rem; }
label { display: grid; align-content: start; gap: .3rem; font-weight: 650; min-width: 0; }
input, textarea { width: 100%; min-height: 46px; padding: .55rem .7rem; border: 1px solid #7298aa; border-radius: .55rem; background: var(--white); color: var(--ink); font: inherit; font-weight: 400; }
textarea { resize: vertical; }
form .button { margin-top: 1rem; }
#preview-status { margin: 0; }
#preview-status:not(:empty) { margin-top: 1rem; border-radius: .55rem; padding: .65rem .85rem; background: var(--foam); }
.footer small { color: var(--muted); }
@media (min-width: 38rem) {
  .wrap { width: min(100% - 4rem, 74rem); }

  .cards, .fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wide { grid-column: 1 / -1; }
}
@media (min-width: 54rem) {
  nav { flex-basis: auto; order: 0; }
  .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .contact-grid { grid-template-columns: .85fr 1.15fr; gap: 4rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
  .button:hover { transform: none; }
}

[hidden] { display: none !important; }
.hero-water { position: absolute; z-index: -2; inset: -8% 0; background: url(hero.jpg) 63% center / cover; }
.hero::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, #051f38f5, #051f38b8 65%, #051f384d); }
.hero-content { position: relative; z-index: 1; }
.headline-line { display: block; }
.headline-line > span { display: inline-block; opacity: var(--word-opacity, 1); }
.headline-sub { margin-top: .5em; font-size: .52em; letter-spacing: -.035em; }

.loader { position: fixed; z-index: 20; inset: 0; display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; padding: clamp(1.25rem, 7vw, 7rem); background: var(--deep); color: var(--white); pointer-events: none; font-size: clamp(1.35rem, 4vw, 4rem); font-weight: 800; }
.loader-count { color: var(--aqua); font-size: clamp(3rem, 13vw, 12rem); line-height: .82; letter-spacing: -.09em; font-variant-numeric: tabular-nums; }
body:focus-within .loader { visibility: hidden; }
.scroll-progress { display: none; position: fixed; z-index: 9; inset: 0 0 auto; height: 3px; background: var(--aqua); transform: scaleX(0); transform-origin: left; pointer-events: none; }
.motion-ready .scroll-progress { display: block; }
.cursor { display: none; position: fixed; top: 0; left: 0; z-index: 19; pointer-events: none; color: var(--white); mix-blend-mode: difference; }
.cursor span { display: block; border: 1px solid currentColor; border-radius: 50%; width: 1.55rem; height: 1.55rem; translate: -50% -50%; }
.cursor span::after { content: ""; position: absolute; inset: 50% auto auto 50%; translate: -50% -50%; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.cursor.visible { display: block; }

.marquee { display: flex; align-items: center; background: var(--aqua); color: var(--deep); }
.marquee-window { overflow: hidden; flex: 1; }
.marquee-track { display: flex; width: max-content; font-size: clamp(1.8rem, 5vw, 4.8rem); font-weight: 800; letter-spacing: -.055em; }
.marquee-track > div { flex: none; padding: .08em .4em .16em 0; white-space: nowrap; }
.marquee-track b { display: inline-block; padding-inline: .32em; color: var(--blue); }
html:not(.motion-ready) .marquee-track { width: auto; }
html:not(.motion-ready) .marquee-track > div:first-child { white-space: normal; padding-inline: 1rem; }
html:not(.motion-ready) .marquee-track > div + div { display: none; }
.marquee-toggle { min-height: 44px; margin-inline: .7rem; color: var(--deep); border: 1px solid var(--deep); border-radius: 100px; background: transparent; font: 650 .875rem var(--body); cursor: pointer; }
.marquee-toggle:hover { background: var(--deep); color: var(--white); }

.card-inner { padding: clamp(1.45rem, 4vw, 3.5rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--foam); transition: background-color .2s, box-shadow .2s; }
.cards article:nth-child(2) .card-inner { background: #d8f5f6; }
.cards article:nth-child(3) .card-inner { background: #bceeed; }
.cards article:nth-child(4) .card-inner { background: #a0e6e4; }
@media (hover: hover) { .card-inner:hover { box-shadow: inset 0 0 0 2px var(--blue); } }
.motion-ready .cards { display: block; }
.motion-ready .cards article { position: sticky; top: clamp(1rem, 12svh, 7rem); padding-bottom: clamp(.9rem, 2vw, 2rem); }
.motion-ready .cards article:not(:last-child) { margin-bottom: clamp(2rem, 10svh, 7rem); }
.motion-ready .card-inner { min-height: clamp(12rem, 38svh, 23rem); display: flex; flex-direction: column; justify-content: center; transform-origin: center top; }
.motion-ready .card-inner h3 { font-size: clamp(1.65rem, 4vw, 3.25rem); }
.motion-ready .card-inner p { max-width: 36ch; }

.water-demo { background: var(--deep); color: var(--white); }
.water-figure { margin: 1.5rem 0 0; }
.water-figure figcaption { padding-top: .65rem; color: #c0e6ec; font-size: .9rem; }
.comparison { --clearance: 50%; position: relative; isolation: isolate; overflow: hidden; aspect-ratio: 4 / 3; border: 1px solid #ffffff55; border-radius: var(--radius); background: #067487; }
.water-sample { position: absolute; inset: 0; background: url(hero.jpg) center / cover; }
.cloudy-water { clip-path: inset(0 var(--clearance) 0 0); filter: saturate(.65) hue-rotate(-96deg) contrast(.6) brightness(.78); }
.cloudy-water::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 40% 30%, #a3a27fa0, #234d34a0); }
.water-divider { position: absolute; inset: 0 var(--clearance) 0 auto; width: 2px; background: var(--white); }
.water-label { position: absolute; bottom: .8rem; padding: .28rem .65rem; border-radius: 100px; background: var(--deep); color: var(--white); font-size: .875rem; font-weight: 700; }
.cloudy-label { left: .8rem; }
.clear-label { right: .8rem; }
[data-reveal]:focus-within { opacity: 1 !important; transform: none !important; }
@media (min-width: 38rem) {
  .hero::after { background: linear-gradient(90deg, #051f38f5 14%, #051f38b8 47%, #051f3826 85%); }
  .comparison { aspect-ratio: 2.3; }
}
@media (prefers-reduced-motion: reduce) {
  .loader, .cursor, .scroll-progress { display: none !important; }
  .headline-line > span { opacity: 1 !important; }
  .card-inner { transition: none; }
}

/* Editorial layout and image treatment */
:root {
  --deep: #071b24;
  --navy: #092731;
  --ink: #102e37;
  --muted: #3f6066;
  --foam: #edf6f3;
  --line: #c9ded8;
  --aqua: #a3f6db;
}
body { background: #f8fcfa; }
.wrap { width: min(100% - 2rem, 82rem); }
.header { padding-block: .45rem; }
nav { flex-wrap: wrap; }
.brand { letter-spacing: -.065em; }
.hero { margin-inline: clamp(0rem, 1.5vw, 1.5rem); border-radius: clamp(0rem, 2vw, 1.75rem); }
.hero-content { min-height: clamp(32rem, 57vw, 49rem); }
.hero h1 { font-size: clamp(3.1rem, 8.4vw, 8rem); letter-spacing: -.075em; }
.hero .headline-sub { font-size: .38em; letter-spacing: -.035em; max-width: 24ch; }
.hero .button { margin-top: 1.8rem; }
.hero::after { background: linear-gradient(90deg, #071b24f2, #071b2477 60%, #071b241a), linear-gradient(0deg, #071b2455, transparent 33%); }
.marquee { margin-top: clamp(.65rem, 2vw, 1.5rem); border-block: 1px solid #16444b; background: var(--deep); color: var(--aqua); }
.marquee-track { font-size: clamp(1.65rem, 4.5vw, 4rem); font-weight: 650; }
.marquee-track b { color: var(--aqua); opacity: .55; }
.marquee-toggle { color: var(--aqua); border-color: #a3f6db88; }
.marquee-toggle:hover { color: var(--deep); background: var(--aqua); }
.marquee-toggle:focus-visible { outline-color: var(--aqua); }
.service-heading h2, .water-demo h2, .contact h2 { font-size: clamp(2.8rem, 7.5vw, 7.25rem); letter-spacing: -.07em; line-height: .96; }
.service-heading h2 br { display: none; }
.service-pricing {
  width: fit-content;
  max-width: 100%;
  margin-top: clamp(1.25rem, 3vw, 2rem);
  padding: .9rem clamp(1rem, 3vw, 1.5rem) .4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--foam);
}
.service-pricing p { margin: 0; color: var(--muted); font-size: .9rem; font-weight: 650; }
.service-pricing strong {
  display: block;
  margin-top: .1rem;
  color: var(--navy);
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  line-height: 1.12;
  letter-spacing: -.055em;
}
.service-pricing a {
  display: inline-flex;
  align-items: center;
  gap: .35em;
  min-height: 44px;
  color: var(--blue);
  font-size: .9rem;
  font-weight: 700;
  text-underline-offset: .2em;
}
.service-pricing a:hover { color: var(--navy); }
.card-inner { border-radius: clamp(1rem, 2vw, 1.8rem); }
.motion-ready .card-inner { min-height: clamp(12rem, 29svh, 19rem); }
.motion-ready .cards article:not(:last-child) { margin-bottom: clamp(1.25rem, 5svh, 4rem); }
.water-demo { background: var(--deep); }
.water-demo h2 em { font-weight: inherit; color: var(--aqua); }
.water-figure { margin-top: clamp(1.5rem, 4vw, 3rem); }
.comparison { --split: clamp(1%, calc(100% - var(--clearance)), 99%); aspect-ratio: 1.15; border-radius: clamp(.9rem, 2vw, 1.75rem); }
.water-sample { width: 100%; height: 100%; object-fit: cover; background: none; }
.cloudy-water { background: url(pool-comparison.jpg) center / cover; filter: saturate(.65) hue-rotate(-78deg) contrast(.64) brightness(.83); }
.cloudy-water::after { background: radial-gradient(ellipse at 40% 30%, #b1b0828f, #33512799); }
.water-divider { inset: 0 auto 0 var(--split); transform: translateX(-50%); }
.water-divider span { position: absolute; top: 50%; left: 50%; translate: -50% -50%; display: grid; place-items: center; width: 2.6rem; aspect-ratio: 1; border-radius: 50%; background: var(--white); color: var(--deep); font-weight: 800; white-space: nowrap; }
.water-figure figcaption { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .7rem 2rem; }
.water-control { display: flex; align-items: center; flex-wrap: wrap; gap: .15rem .8rem; color: var(--white); }
.water-control input { width: min(40vw, 12rem); min-height: 44px; padding: 0; accent-color: var(--aqua); cursor: ew-resize; }
.water-control input:focus-visible { outline-color: var(--aqua); }
.service-areas .locations { grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); padding: 0; list-style: none; gap: 0 1.25rem; }
.locations li { padding-block: .75rem; border-bottom: 1px solid var(--line); }
.contact { background: var(--deep); }
.contact form { border-radius: 1.6rem; background: var(--foam); }
@media (min-width: 38rem) {
  .wrap { width: min(100% - 4rem, 82rem); }
  .comparison { aspect-ratio: 2; }
}
@media (min-width: 54rem) {
  .hero-content { width: min(100% - 7rem, 78rem); }
  .service-layout { display: grid; grid-template-columns: .82fr 1.18fr; gap: 3rem; align-items: start; }
  .service-heading h2 br { display: initial; }
  .motion-ready .service-heading { position: sticky; top: clamp(1rem, 12svh, 7rem); }
  .service-layout .cards { margin-top: 0; }
  .service-layout .cards:not(:only-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 37.99rem) {
  .hero::after { background: linear-gradient(90deg, #071b24ed, #071b24a8 75%, #071b2477); }
}

/* The hero pairs an architectural pool render with a projected particle surface. */
.hero {
  background: radial-gradient(ellipse at 72% 43%, #134a52 0%, #092934 40%, #05131e 76%);
  border: 1px solid #19434d;
}
.hero-water { opacity: .16; background-position: 68% 77%; }
.hero::after {
  background: linear-gradient(90deg, #05131ef2, #05131e70 54%, transparent),
    linear-gradient(0deg, #05131ea0, transparent 43%);
}
.hero-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-content: stretch;
  align-content: center;
  align-items: center;
  gap: .65rem;
  min-height: min(43rem, 88svh);
  padding-block: clamp(2rem, 6vw, 5rem);
  perspective: 950px;
}
.hero-copy { position: relative; z-index: 2; }
.hero h1 { font-size: clamp(3rem, 8vw, 7.6rem); }
.hero .headline-sub { color: #c3f9ef; }
.hero-object {
  position: relative;
  align-self: center;
  justify-self: center;
  width: min(100%, 38rem);
  pointer-events: none;
}
.hero-object::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 24% 3% 6%;
  background: radial-gradient(ellipse, #4affcf41, transparent 70%);
}
.hero-object img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  filter: drop-shadow(0 1.4rem 1.1rem #0008);
}
.particle-water { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; pointer-events: none; }
@media (min-width: 56rem) {
  .hero-content { min-height: clamp(35rem, 55vw, 51rem); grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); gap: 0; }
  .hero-object { width: 116%; max-width: 58rem; margin-right: -8%; }
}
