/* Aqua Expand — palette taken from a pool build: plaster, deep end, waterline tile, coping stone */
:root {
  --plaster: #f4f8f8;
  --plaster-2: #e9f1f1;
  --coping: #e6dfd2;
  --ink: #0e2b35;
  --ink-2: #3f5d66;
  --line: #cddbdb;
  --aqua: #19a9ac;
  --aqua-deep: #0a7376;
  --tile: #1d4f86;
  --tile-2: #2f6fa8;
  --white: #ffffff;
  --focus: #f2b632;

  --measure: 68ch;
  --wrap: 1140px;
  --gutter: clamp(16px, 4vw, 40px);

  --f-body: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --s-0: 1.125rem;   /* 18 body */
  --s-1: 1.375rem;   /* 22 */
  --s-2: 1.75rem;    /* 28 */
  --s-3: 2.25rem;    /* 36 */
  --s-4: clamp(2.5rem, 5.4vw, 4rem);
  --s-5: clamp(2.9rem, 7.6vw, 5.75rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--plaster);
  color: var(--ink);
  font: 400 var(--s-0)/1.6 var(--f-body);
  font-stretch: 100%;
  text-rendering: optimizeLegibility;
}
img, video, svg { max-width: 100%; display: block; }
a { color: var(--aqua-deep); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--tile); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 {
  font-family: var(--f-body);
  font-stretch: 78%;
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: var(--s-5); }
h2 { font-size: var(--s-4); margin-top: 0; }
h3 { font-size: var(--s-2); line-height: 1.1; font-stretch: 85%; }
p, ul, ol { margin: 0 0 1em; }
p, li { max-width: var(--measure); }
strong { font-weight: 650; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--plaster); padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; }

/* Header */
.site-head { position: sticky; top: 0; z-index: 20; background: rgba(244, 248, 248, 0.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-stretch: 80%; font-size: 1.5rem; letter-spacing: -0.01em; }
.brand svg { width: 30px; height: 30px; flex: none; }
.nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav a { color: var(--ink); text-decoration: none; font-size: 1rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--aqua-deep); text-decoration: underline; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 6px; padding: 8px 12px; font: inherit; font-size: 1rem; color: var(--ink); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ink); color: var(--plaster); text-decoration: none;
  font-weight: 650; font-size: 1.0625rem; line-height: 1.2;
  padding: 15px 24px; border-radius: 6px; border: 2px solid var(--ink);
}
.btn:hover { background: var(--aqua-deep); border-color: var(--aqua-deep); color: var(--white); }
.btn-small { padding: 10px 16px; font-size: 0.9375rem; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--plaster); border-color: var(--ink); }
.nav .btn { color: var(--plaster); }
.nav .btn:hover { color: var(--white); text-decoration: none; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--plaster); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 12px; border-bottom: 2px solid var(--ink); }
}

/* Hero */
.hero { padding: clamp(48px, 8vw, 96px) 0 0; }
.hero-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: end; }
.hero h1 { font-size: clamp(2.5rem, 5.2vw, 4.4rem); margin-bottom: 0.35em; }
.hero .tagline { font-size: var(--s-1); font-weight: 600; color: var(--tile); margin-bottom: 0.6em; }
.hero .lede { font-size: 1.25rem; color: var(--ink-2); max-width: 54ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 12px; }
.hero-note { font-size: 0.9375rem; color: var(--ink-2); }
.hero-video { background: var(--ink); border-radius: 8px; overflow: hidden; border: 6px solid var(--white); box-shadow: 0 0 0 1px var(--line); }
.hero-video figcaption { background: var(--white); color: var(--ink); padding: 12px 6px 4px; font-size: 0.9375rem; }
.hero-video figcaption strong { display: block; font-size: 1rem; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }

/* Proof ledger */
.ledger { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.ledger div { padding: 22px 20px 22px 0; border-right: 1px solid var(--line); }
.ledger div + div { padding-left: 20px; }
.ledger div:last-child { border-right: 0; }
.ledger b { display: block; font-size: var(--s-3); font-stretch: 78%; font-weight: 800; line-height: 1; margin-bottom: 6px; }
.ledger span { font-size: 0.9375rem; color: var(--ink-2); }
@media (max-width: 760px) {
  .ledger { grid-template-columns: 1fr 1fr; }
  .ledger div { border-right: 0; padding-left: 0 !important; border-bottom: 1px solid var(--line); }
  .ledger div:nth-child(odd) { border-right: 1px solid var(--line); }
  .ledger div:nth-child(even) { padding-left: 16px !important; }
}

/* Sections */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 60ch; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head p { color: var(--ink-2); font-size: 1.1875rem; }
.kicker { font-size: 1rem; font-weight: 650; color: var(--aqua-deep); margin-bottom: 10px; }

/* Lost-job timeline */
.timeline { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 3px solid var(--ink); }
.timeline li { padding: 18px 20px 0 0; max-width: none; }
.timeline time { display: block; font-weight: 800; font-stretch: 78%; font-size: var(--s-2); line-height: 1; margin-bottom: 10px; }
.timeline h3 { font-size: 1.25rem; margin-bottom: 6px; font-stretch: 90%; }
.timeline p { font-size: 1rem; color: var(--ink-2); }
.timeline li:last-child time { color: #a23b2a; }
@media (max-width: 860px) { .timeline { grid-template-columns: 1fr 1fr; row-gap: 24px; } }
@media (max-width: 520px) { .timeline { grid-template-columns: 1fr; } }
.story { max-width: 62ch; font-size: 1.1875rem; }
.story p { margin-bottom: 0.8em; }
.fine { font-size: 0.875rem; color: var(--ink-2); }

/* Pool cross-section: the signature element */
.xsection { margin: 8px 0 40px; }
.xsection svg { width: 100%; height: auto; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
.step h3 { margin-top: 14px; }
.step ul { padding-left: 1.1em; color: var(--ink-2); font-size: 1rem; }
.depth {
  display: inline-grid; place-items: center; min-width: 92px; height: 56px; padding: 0 14px;
  background: var(--white); border: 2px solid var(--ink); border-radius: 3px;
  font-weight: 800; font-stretch: 75%; font-size: 1.75rem; color: var(--tile); line-height: 1;
  box-shadow: inset 0 0 0 4px var(--white), inset 0 0 0 5px var(--line);
}
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* Qualification tiles (mosaic grid, square corners like set tile) */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--line); border: 2px solid var(--line); }
.tiles div { background: var(--plaster); padding: 24px; }
.tiles h3 { font-size: 1.5rem; margin-bottom: 2px; }
.tiles .sub { font-weight: 650; color: var(--aqua-deep); margin-bottom: 8px; font-size: 1rem; }
.tiles p { font-size: 1rem; color: var(--ink-2); margin: 0; }
.section-alt .tiles div { background: var(--white); }
@media (max-width: 860px) { .tiles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .tiles { grid-template-columns: 1fr; } }

/* Chat example */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.chat { background: var(--plaster-2); border: 1px solid var(--line); border-radius: 10px; padding: 18px; font-size: 0.9875rem; }
.chat-head { display: flex; justify-content: space-between; font-size: 0.875rem; color: var(--ink-2); padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.msg { max-width: 86%; padding: 10px 14px; border-radius: 14px; margin: 0 0 10px; line-height: 1.45; }
.msg.out { background: var(--white); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg.in { background: var(--tile); color: var(--white); margin-left: auto; border-bottom-right-radius: 4px; }
.msg small { display: block; opacity: .7; font-size: 0.75rem; margin-top: 4px; }
.booked { margin-top: 14px; padding: 12px 14px; border: 2px solid var(--aqua-deep); border-radius: 8px; font-weight: 650; color: var(--aqua-deep); background: var(--white); }

/* Testimonial */
.quote { margin: 0; }
.quote blockquote { margin: 0 0 20px; font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.3; font-weight: 500; font-stretch: 95%; max-width: 32ch; }
.quote blockquote p { max-width: none; }
.quote figcaption { color: var(--ink-2); }
.quote figcaption strong { color: var(--ink); }

/* Tables */
.table-wrap { overflow-x: auto; margin: 8px 0 28px; border: 1px solid var(--line); border-radius: 6px; background: var(--white); }
table { border-collapse: collapse; width: 100%; font-size: 1rem; min-width: 560px; }
th, td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid var(--line); }
thead th { background: var(--plaster-2); font-weight: 700; font-size: 0.9375rem; }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
tbody th { font-weight: 650; }
td.us, th.us { background: #e4f4f4; }

/* FAQ */
.faq { max-width: 820px; border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font-weight: 650; font-size: 1.1875rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 1.75rem; font-weight: 400; color: var(--aqua-deep); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--ink-2); padding-right: 40px; }

/* CTA band */
.cta { background: var(--ink); color: var(--plaster); padding: clamp(56px, 8vw, 96px) 0; }
.cta h2 { color: var(--white); max-width: 18ch; }
.cta p { color: #bfd3d6; font-size: 1.1875rem; }
.cta .btn { background: var(--aqua); border-color: var(--aqua); color: var(--ink); }
.cta .btn:hover { background: var(--white); border-color: var(--white); color: var(--ink); }

/* Inner pages */
.page-head { padding: clamp(40px, 6vw, 72px) 0 clamp(28px, 4vw, 40px); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: var(--s-4); max-width: 22ch; }
.crumbs { font-size: 0.9375rem; color: var(--ink-2); margin-bottom: 18px; }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line); }
.crumbs a { color: var(--ink-2); }
.byline { font-size: 0.9375rem; color: var(--ink-2); margin: 0; }
.answer { border-left: 4px solid var(--aqua); background: var(--white); padding: 18px 22px; margin: 24px 0 0; max-width: 76ch; border-radius: 0 6px 6px 0; }
.answer p { margin: 0; font-size: 1.1875rem; max-width: none; }
.answer .label { font-weight: 700; font-size: 0.9375rem; color: var(--aqua-deep); margin-bottom: 4px; }

.article { padding: clamp(40px, 6vw, 64px) 0 clamp(56px, 8vw, 96px); }
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: clamp(32px, 5vw, 72px); }
.article h2 { font-size: var(--s-3); margin-top: 1.6em; }
.article h2:first-child { margin-top: 0; }
.article h3 { font-size: 1.5rem; margin-top: 1.4em; }
.article li { margin-bottom: 0.35em; }
.aside { position: sticky; top: 92px; align-self: start; font-size: 1rem; }
.aside .box { border: 1px solid var(--line); background: var(--white); border-radius: 6px; padding: 20px; margin-bottom: 16px; }
.aside h2 { font-size: 1.375rem; margin: 0 0 10px; }
.aside ul { padding-left: 1.1em; margin: 0; }
.aside p { font-size: 1rem; }
@media (max-width: 960px) { .article-grid { grid-template-columns: minmax(0, 1fr); } .aside { position: static; } }

.callout { border: 1px solid var(--line); background: var(--white); border-radius: 6px; padding: 18px 22px; margin: 24px 0; }
.callout p:last-child { margin-bottom: 0; }

.agency { border-top: 1px solid var(--line); padding-top: 8px; margin-top: 28px; }
.agency h3 { margin-top: 12px; }
.agency dl { display: grid; grid-template-columns: 140px 1fr; gap: 6px 16px; font-size: 1rem; margin: 0 0 12px; }
.agency dt { font-weight: 650; }
.agency dd { margin: 0; color: var(--ink-2); }
@media (max-width: 560px) { .agency dl { grid-template-columns: 1fr; } .agency dd { margin-bottom: 8px; } }

/* Calculator */
.calc { border: 2px solid var(--ink); border-radius: 8px; background: var(--white); padding: clamp(18px, 3vw, 28px); margin: 24px 0 32px; }
.calc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.calc label { display: block; font-size: 0.9375rem; font-weight: 650; margin-bottom: 6px; }
.calc input { width: 100%; font: inherit; font-size: 1.0625rem; padding: 10px 12px; border: 1px solid var(--ink-2); border-radius: 6px; background: var(--plaster); color: var(--ink); }
.calc-out { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0; margin-top: 22px; border-top: 1px solid var(--line); }
.calc-out div { padding: 14px 12px 4px 0; }
.calc-out b { display: block; font-size: var(--s-2); font-stretch: 78%; font-weight: 800; line-height: 1.1; }
.calc-out span { font-size: 0.875rem; color: var(--ink-2); }

.related { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.related li { max-width: none; }
.related a { display: block; padding: 18px; border: 1px solid var(--line); background: var(--white); border-radius: 6px; text-decoration: none; color: var(--ink); height: 100%; }
.related a:hover { border-color: var(--aqua-deep); }
.related strong { display: block; font-size: 1.125rem; margin-bottom: 4px; }
.related span { color: var(--ink-2); font-size: 0.9375rem; }

/* Footer */
.site-foot { background: var(--plaster-2); border-top: 1px solid var(--line); padding: 48px 0 32px; font-size: 0.9375rem; color: var(--ink-2); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.site-foot h2 { font-size: 1.125rem; font-stretch: 90%; color: var(--ink); margin-bottom: 10px; }
.site-foot ul { list-style: none; padding: 0; margin: 0; }
.site-foot li { margin-bottom: 6px; }
.site-foot a { color: var(--ink-2); }
.foot-legal { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }


/* Client result cards */
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 36px); }
.case { border-top: 3px solid var(--ink); padding-top: 18px; }
.case h3 { font-size: var(--s-2); margin-bottom: 8px; }
.case-who { font-size: 1rem; color: var(--ink-2); }
.case-label { font-weight: 700; font-size: 0.9375rem; color: var(--aqua-deep); margin: 14px 0 2px; }
.case p, .case ul { font-size: 1rem; }
.case ul { padding-left: 1.1em; margin-bottom: 12px; }
@media (max-width: 860px) { .cases { grid-template-columns: 1fr; } }

/* ====================================================================
   Motion + depth layer
   ==================================================================== */
:root {
  --deep: #07202b;
  --deep-2: #0b3a52;
  --glow: #7fd3d4;
  --shadow-1: 0 1px 2px rgba(14,43,53,.06), 0 8px 24px -12px rgba(14,43,53,.18);
  --shadow-2: 0 2px 4px rgba(14,43,53,.08), 0 24px 48px -20px rgba(14,43,53,.35);
  --ease: cubic-bezier(.2,.7,.2,1);
}

/* Header */
.site-head { transition: box-shadow .3s var(--ease), background .3s; }
.site-head.scrolled { box-shadow: 0 10px 30px -18px rgba(14,43,53,.45); background: rgba(244,248,248,.97); }
.nav a:not(.btn) { background: linear-gradient(var(--aqua), var(--aqua)) 0 100% / 0 2px no-repeat; text-decoration: none !important; padding: 4px 0; transition: background-size .3s var(--ease), color .2s; }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { background-size: 100% 2px; }
.brand svg { transition: transform .5s var(--ease); }
.brand:hover svg { transform: rotate(-8deg) scale(1.08); }

/* Buttons: lift and a light sweep across the surface */
.btn { position: relative; overflow: hidden; border-radius: 10px; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, border-color .2s, color .2s; isolation: isolate; }
.btn::after { content: ""; position: absolute; inset: 0; z-index: -1; transform: translateX(-120%) skewX(-20deg); background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent); transition: transform .6s var(--ease); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -10px rgba(14,43,53,.55); }
.btn:hover::after { transform: translateX(120%) skewX(-20deg); }
.btn:active { transform: translateY(0); box-shadow: none; }

/* Hero: deep end of the pool */
.hero {
  position: relative; overflow: hidden; color: var(--white);
  padding: clamp(56px, 8vw, 104px) 0 clamp(150px, 16vw, 210px);
  background:
    radial-gradient(1200px 520px at 85% -10%, rgba(47,111,168,.55), transparent 60%),
    linear-gradient(170deg, var(--deep) 0%, var(--deep-2) 52%, var(--tile) 130%);
}
.hero .wrap { position: relative; z-index: 2; }
.hero h1 { color: var(--white); }
.hero .tagline { color: var(--glow); }
.hero .lede { color: #c9dfe2; }
.hero-note { color: #9fc3c8; }
.hero .btn { background: var(--aqua); border-color: var(--aqua); color: var(--deep); }
.hero .btn:hover { background: var(--white); border-color: var(--white); color: var(--deep); }
.hero .btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.45); }
.hero .btn-ghost:hover { background: rgba(255,255,255,.12); border-color: var(--white); color: var(--white); }
.hero-video { border: 0; padding: 8px; border-radius: 18px; background: linear-gradient(150deg, rgba(255,255,255,.28), rgba(255,255,255,.06)); box-shadow: 0 30px 60px -24px rgba(0,0,0,.6), inset 0 0 0 1px rgba(255,255,255,.25); backdrop-filter: blur(6px); animation: bob 7s ease-in-out infinite; }
.hero-video video { border-radius: 12px; width: 100%; height: auto; background: #000; }
.hero-video figcaption { background: transparent; color: #dcebed; padding: 12px 6px 4px; }
.hero-video figcaption strong { color: var(--white); }
@keyframes bob { 50% { transform: translateY(-8px); } }

/* Light shafts on the hero floor */
.caustics { position: absolute; inset: -20%; z-index: 0; pointer-events: none; opacity: .55; mix-blend-mode: screen;
  background:
    radial-gradient(ellipse 22% 14% at 20% 30%, rgba(127,211,212,.45), transparent 70%),
    radial-gradient(ellipse 18% 22% at 62% 18%, rgba(255,255,255,.28), transparent 70%),
    radial-gradient(ellipse 26% 16% at 80% 60%, rgba(127,211,212,.35), transparent 70%),
    radial-gradient(ellipse 16% 20% at 35% 75%, rgba(47,111,168,.5), transparent 70%);
  animation: drift 22s ease-in-out infinite alternate; }
@keyframes drift { 0% { transform: translate3d(-3%, -2%, 0) scale(1); } 100% { transform: translate3d(4%, 3%, 0) scale(1.12) rotate(2deg); } }

/* Bubbles */
.bubbles { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.bubbles i { position: absolute; left: var(--x); bottom: -30px; width: var(--s); height: var(--s); border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.75), rgba(255,255,255,.12) 60%, transparent 70%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.35);
  animation: rise var(--d) linear var(--l) infinite; opacity: 0; }
@keyframes rise { 0% { transform: translate3d(0,0,0); opacity: 0; } 10% { opacity: .9; } 50% { transform: translate3d(14px,-45vh,0); } 90% { opacity: .7; } 100% { transform: translate3d(-10px,-95vh,0); opacity: 0; } }

/* Waves */
.waves { position: absolute; left: 0; right: 0; bottom: -1px; height: clamp(60px, 9vw, 120px); z-index: 1; overflow: hidden; pointer-events: none; }
.waves .w { position: absolute; left: 0; bottom: 0; width: 200%; max-width: none; height: 100%; }
.waves .w path { fill: var(--plaster); }
.waves .w-back { opacity: .4; animation: slide 16s linear infinite reverse; }
.waves .w-front { animation: slide 10s linear infinite; }
@keyframes slide { to { transform: translateX(-50%); } }
.waves-top { top: -1px; bottom: auto; transform: scaleY(-1); }

/* Ledger floats over the wave */
.ledger { position: relative; z-index: 3; margin-top: calc(clamp(60px, 7vw, 96px) * -1); background: var(--white); border: 0; border-radius: 16px; box-shadow: var(--shadow-2); padding: 8px 12px; }
.ledger div { padding: 20px 20px 20px 24px; border-right: 1px solid var(--line); }
.ledger div + div { padding-left: 24px; }
.ledger b { background: linear-gradient(135deg, var(--tile), var(--aqua-deep)); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { .ledger div, .ledger div + div { padding: 16px 12px !important; } }

/* Hero entrance: one orchestrated sequence on load */
.hero-copy > * { animation: rise-in .8s var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: .1s; }
.hero-copy > :nth-child(3) { animation-delay: .2s; }
.hero-copy > :nth-child(4) { animation-delay: .3s; }
.hero-copy > :nth-child(5) { animation-delay: .4s; }
@keyframes rise-in { from { opacity: 0; transform: translateY(22px); } }

/* Sections */
.kicker { display: inline-flex; align-items: center; gap: 10px; }
.kicker::before { content: ""; width: 26px; height: 10px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 10'%3E%3Cpath d='M0 5q3.25-5 6.5 0t6.5 0 6.5 0 6.5 0' fill='none' stroke='%2319a9ac' stroke-width='2'/%3E%3C/svg%3E") center / contain no-repeat; }
.section-alt { background: linear-gradient(180deg, var(--white), #ecf5f5); }

/* Scroll reveal (only when JS has confirmed it can run) */
.anim .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.anim .reveal.in { opacity: 1; transform: none; }

/* Timeline draws itself */
.timeline { border-top: 3px solid var(--line); position: relative; }
.timeline::before { content: ""; position: absolute; left: 0; top: -3px; height: 3px; width: 100%; background: linear-gradient(90deg, var(--aqua), var(--tile) 70%, #a23b2a); transform-origin: left; }
.anim .timeline::before { transform: scaleX(0); transition: transform 2.6s cubic-bezier(.5,0,.2,1); }
.anim .timeline.in::before { transform: scaleX(1); }
.anim .timeline li { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.anim .timeline.in li { opacity: 1; transform: none; }
.anim .timeline.in li:nth-child(1) { transition-delay: .1s; }
.anim .timeline.in li:nth-child(2) { transition-delay: .8s; }
.anim .timeline.in li:nth-child(3) { transition-delay: 1.5s; }
.anim .timeline.in li:nth-child(4) { transition-delay: 2.2s; }
.timeline li:last-child time { animation: pulse-red 2.4s ease-in-out 3.2s infinite; }
@keyframes pulse-red { 50% { opacity: .55; } }

/* Pool cross-section comes alive */
.x-wave { animation: x-slide 5s linear infinite; }
.x-wave-b { animation-duration: 8s; animation-direction: reverse; }
@keyframes x-slide { to { transform: translateX(120px); } }
.x-wave-b { animation-name: x-slide-b; }
@keyframes x-slide-b { from { transform: translate(0, 10px); } to { transform: translate(120px, 10px); } }
.xsection { filter: drop-shadow(0 24px 24px rgba(14,43,53,.18)); }
.anim .x-draw { stroke-dasharray: 100; stroke-dashoffset: 100; }
.anim .xsection.in .x-draw { stroke-dashoffset: 0; transition: stroke-dashoffset 3.2s cubic-bezier(.5,0,.2,1) .2s; }
.anim .x-dot { transform-box: fill-box; transform-origin: center; transform: scale(0); }
.anim .xsection.in .x-dot { transform: scale(1); transition: transform .5s cubic-bezier(.3,1.6,.5,1); }
.anim .xsection.in .x-dot-1 { transition-delay: .1s; }
.anim .xsection.in .x-dot-2 { transition-delay: 1.5s; }
.anim .xsection.in .x-dot-3 { transition-delay: 3s; }

/* Steps */
.step { background: var(--plaster); border: 1px solid var(--line); border-radius: 16px; padding: 26px; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s; }
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); border-color: var(--aqua); }
.depth { border-radius: 8px; background: linear-gradient(180deg, #fff, #eaf4f4); transition: transform .4s var(--ease); }
.step:hover .depth { transform: scale(1.06) rotate(-2deg); }

/* Tiles */
.tiles { gap: 2px; border-radius: 14px; overflow: hidden; border: 2px solid var(--line); }
.tiles div { position: relative; transition: background .3s, transform .3s var(--ease); }
.tiles div::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: linear-gradient(90deg, var(--aqua), var(--tile)); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.tiles div:hover { background: #e4f4f4; }
.tiles div:hover::after { transform: scaleX(1); }

/* Chat replays */
.chat { border-radius: 18px; box-shadow: var(--shadow-1); background: linear-gradient(180deg, #eef6f6, var(--plaster-2)); }
.anim .chat .msg, .anim .chat .booked { opacity: 0; transform: translateY(12px) scale(.97); transform-origin: left bottom; transition: opacity .45s var(--ease), transform .45s var(--ease); }
.anim .chat .msg.in { transform-origin: right bottom; }
.anim .chat.in .msg, .anim .chat.in .booked { opacity: 1; transform: none; }
.booked { animation: none; }
.anim .chat.in .booked { box-shadow: 0 0 0 0 rgba(25,169,172,.5); animation: ping 2.2s ease-out 6s 2; }
@keyframes ping { 70% { box-shadow: 0 0 0 14px rgba(25,169,172,0); } 100% { box-shadow: 0 0 0 0 rgba(25,169,172,0); } }

/* Case study cards */
.case { position: relative; background: var(--white); border: 1px solid var(--line); border-top: 0; border-radius: 16px; padding: 28px 26px 22px; overflow: hidden; box-shadow: var(--shadow-1); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.case::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: linear-gradient(90deg, var(--aqua), var(--tile)); }
.case:hover { transform: translateY(-8px); box-shadow: var(--shadow-2); }
.case h3 { background: linear-gradient(135deg, var(--ink), var(--tile)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section-alt .case { background: var(--plaster); }

/* Tables and misc cards */
.table-wrap { border-radius: 14px; box-shadow: var(--shadow-1); }
tbody tr { transition: background .2s; }
tbody tr:hover td, tbody tr:hover th { background: #f1f8f8; }
tbody tr:hover td.us { background: #d6eeee; }
.related a { border-radius: 14px; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .2s; }
.related a:hover { transform: translateY(-4px); box-shadow: var(--shadow-1); }
.aside .box, .callout, .calc, .answer { border-radius: 14px; }
.aside .box { box-shadow: var(--shadow-1); }
.answer { box-shadow: var(--shadow-1); border-left-width: 5px; }

/* FAQ */
.faq summary { transition: color .2s; }
.faq summary:hover { color: var(--aqua-deep); }
.faq summary::after { content: "+"; transition: transform .35s var(--ease); }
.faq details[open] summary::after { content: "+"; transform: rotate(135deg); }
.faq details[open] p { animation: fade-in .4s var(--ease); }
@keyframes fade-in { from { opacity: 0; transform: translateY(-6px); } }

/* CTA band: water again */
.cta { position: relative; overflow: hidden; background: radial-gradient(900px 400px at 100% 100%, rgba(47,111,168,.5), transparent 60%), linear-gradient(160deg, var(--deep), var(--deep-2)); padding: clamp(96px, 12vw, 150px) 0 clamp(56px, 8vw, 96px); }
.cta .wrap { position: relative; z-index: 2; }

/* Inner page headers */
.page-head { position: relative; overflow: hidden; border-bottom: 0; padding-bottom: clamp(64px, 8vw, 96px); background: radial-gradient(700px 260px at 90% 0%, rgba(25,169,172,.22), transparent 70%), linear-gradient(180deg, #dcefef, var(--plaster)); }
.page-head .wrap { position: relative; z-index: 2; }
.page-head .bubbles i { background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.95), rgba(25,169,172,.25) 60%, transparent 70%); box-shadow: inset 0 0 0 1px rgba(25,169,172,.35); }
.waves-sm { height: clamp(34px, 5vw, 56px); }

/* Booking page */
.book { padding: clamp(24px, 4vw, 40px) 0 clamp(40px, 6vw, 72px); }
.book-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.book-side { position: sticky; top: 92px; }
.book-side h2 { font-size: var(--s-2); }
.book-steps { list-style: none; counter-reset: s; padding: 0; margin: 0 0 22px; }
.book-steps li { counter-increment: s; position: relative; padding: 0 0 20px 48px; max-width: none; }
.book-steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--white); font-weight: 800; font-stretch: 80%; }
.book-steps li:not(:last-child)::after { content: ""; position: absolute; left: 16px; top: 38px; bottom: 4px; width: 2px; background: var(--line); }
.book-steps strong { display: block; }
.book-steps span { color: var(--ink-2); font-size: 1rem; }
.book-facts { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.book-facts li { background: #e4f4f4; color: var(--aqua-deep); border-radius: 999px; padding: 6px 14px; font-size: .9375rem; font-weight: 650; max-width: none; margin: 0; }
.book-card { background: var(--white); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-2); padding: clamp(8px, 2vw, 20px); position: relative; }
.book-card iframe { display: block; width: 100%; min-height: 720px; border: 0; }
@media (max-width: 900px) { .book-grid { grid-template-columns: minmax(0, 1fr); } .book-side { position: static; } }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
  .bubbles { display: none; }
}

/* ====================================================================
   Night theme: starry sky above, a lit pool below.
   Overrides the daytime layer above; tokens are redefined first so
   anything that reads them flips with the page.
   ==================================================================== */
:root {
  --plaster: #050e1c;
  --plaster-2: #081a2e;
  --ink: #e9f3fa;
  --ink-2: #a3bacb;
  --line: rgba(140, 200, 230, .17);
  --aqua: #4fd8dc;
  --aqua-deep: #6fe3e6;
  --tile: #5aa2e8;
  --tile-2: #7db8f0;
  --focus: #ffd166;
  --deep: #04101f;
  --deep-2: #082a45;
  --glow: #8fe9ec;
  --surface: rgba(255, 255, 255, .045);
  --shadow-1: inset 0 1px 0 rgba(255, 255, 255, .05), 0 14px 34px -18px rgba(0, 0, 0, .75);
  --shadow-2: inset 0 1px 0 rgba(255, 255, 255, .07), 0 30px 64px -26px rgba(0, 0, 0, .85);
  --f-body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
}

html { background: var(--plaster); color-scheme: dark; }
body { background: transparent; font-weight: 400; }
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(900px 620px at 12% -8%, rgba(36, 96, 160, .38), transparent 62%),
    radial-gradient(820px 520px at 100% 8%, rgba(20, 150, 170, .16), transparent 60%);
}
#stars { position: fixed; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
::selection { background: rgba(79, 216, 220, .35); color: #fff; }

a { color: var(--aqua-deep); }
a:hover { color: #fff; }

h1, h2, h3 { font-stretch: 100%; font-weight: 300; letter-spacing: -.035em; line-height: 1.05; }
h3 { font-weight: 500; letter-spacing: -.02em; font-stretch: 100%; line-height: 1.15; }
strong { font-weight: 600; }
h1 { color: #fff; }

/* Floating pill header */
.site-head { top: 12px; background: none; border: 0; backdrop-filter: none; padding: 0 var(--gutter); }
.site-head.scrolled { background: none; box-shadow: none; }
.site-head .wrap {
  max-width: 1080px; min-height: 60px; padding: 0 10px 0 22px; border-radius: 999px;
  background: rgba(7, 20, 38, .6); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border: 1px solid var(--line); box-shadow: 0 14px 44px -22px #000; transition: background .3s;
}
.site-head.scrolled .wrap { background: rgba(5, 14, 28, .86); }
.brand { color: #fff; font-weight: 600; font-stretch: 100%; letter-spacing: -.02em; font-size: 1.3rem; }
.nav a { color: var(--ink); font-size: .9875rem; }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: #fff; }
.nav .btn { color: #02222c; }
.nav .btn:hover { color: #02222c; }
.nav-toggle { color: var(--ink); border-color: var(--line); border-radius: 999px; background: transparent; }

/* Buttons: pool-light aqua pills */
.btn { background: var(--aqua); border-color: var(--aqua); color: #02222c; font-weight: 600; border-radius: 999px; box-shadow: 0 0 0 1px rgba(79, 216, 220, .25), 0 10px 34px -10px rgba(79, 216, 220, .6); }
.btn:hover { background: #fff; border-color: #fff; color: #02222c; box-shadow: 0 14px 40px -10px rgba(143, 233, 236, .8); }
.btn-ghost, .hero .btn-ghost { background: rgba(255, 255, 255, .03); color: #fff; border-color: rgba(255, 255, 255, .3); box-shadow: none; }
.btn-ghost:hover, .hero .btn-ghost:hover { background: rgba(255, 255, 255, .1); border-color: #fff; color: #fff; box-shadow: none; }
.hero .btn, .cta .btn { background: var(--aqua); border-color: var(--aqua); color: #02222c; }
.hero .btn:hover, .cta .btn:hover { background: #fff; border-color: #fff; color: #02222c; }

@media (max-width: 900px) {
  .site-head .wrap { padding-left: 18px; }
  .nav { top: 70px; left: var(--gutter); right: var(--gutter); background: rgba(5, 14, 28, .97); border: 1px solid var(--line); border-radius: 22px; padding: 6px 20px 18px; }
  .nav a { border-bottom-color: var(--line); }
  .nav .btn { border-bottom: 1px solid var(--aqua); }
}

/* Hero: the sky, then the pool light coming up from below */
.hero {
  color: #fff;
  padding: clamp(36px, 6vw, 84px) 0 clamp(170px, 18vw, 250px);
  background:
    radial-gradient(60% 46% at 50% 112%, rgba(79, 216, 220, .5), transparent 70%),
    radial-gradient(32% 22% at 50% 104%, rgba(190, 248, 250, .45), transparent 72%);
}
.hero h1 { font-size: clamp(2.5rem, 5.4vw, 4.7rem); font-weight: 300; letter-spacing: -.04em; line-height: 1.02; }
.hero .tagline { color: var(--glow); font-weight: 500; letter-spacing: -.01em; }
.hero .lede { color: #c5d8e6; }
.hero-note { color: #8fa9bb; }
.caustics { opacity: .3; }
.hero-video { background: linear-gradient(150deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .03)); box-shadow: 0 0 90px -24px rgba(79, 216, 220, .5), 0 30px 60px -24px rgba(0, 0, 0, .8), inset 0 0 0 1px rgba(255, 255, 255, .2); }
.hero-video figcaption { color: #c5d8e6; }
.waves .w path { fill: var(--plaster); }

/* Proof ledger */
.ledger { background: rgba(8, 24, 44, .72); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--line); box-shadow: var(--shadow-2); }
.ledger b { background: linear-gradient(135deg, #fff 20%, var(--aqua)); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 300; font-stretch: 100%; letter-spacing: -.03em; }
.ledger span { color: var(--ink-2); }

/* Sections */
.section-alt { background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .012)); border-color: var(--line); }
.section-head p { color: var(--ink-2); }
.kicker { color: var(--aqua); font-weight: 600; }
.kicker::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 10'%3E%3Cpath d='M0 5q3.25-5 6.5 0t6.5 0 6.5 0 6.5 0' fill='none' stroke='%234fd8dc' stroke-width='2'/%3E%3C/svg%3E"); }
.timeline { border-top-color: var(--line); }
.timeline time { font-weight: 300; font-stretch: 100%; letter-spacing: -.03em; }
.timeline li:last-child time { color: #ff8a73; }
.timeline::before { background: linear-gradient(90deg, var(--aqua), var(--tile) 70%, #ff8a73); }
.xsection { filter: drop-shadow(0 0 46px rgba(79, 216, 220, .3)); }
.step { background: var(--surface); border-color: var(--line); }
.step:hover { border-color: rgba(79, 216, 220, .6); box-shadow: 0 0 44px -14px rgba(79, 216, 220, .4), var(--shadow-2); }
.depth { background: rgba(79, 216, 220, .08); border: 1px solid rgba(79, 216, 220, .45); box-shadow: none; color: var(--aqua); font-weight: 400; font-stretch: 100%; letter-spacing: -.02em; }
.tiles { background: var(--line); border-color: var(--line); }
.tiles div, .section-alt .tiles div { background: #07172a; }
.tiles div:hover, .section-alt .tiles div:hover { background: #0d2a44; }
.tiles .sub { color: var(--aqua); }

.chat { background: rgba(255, 255, 255, .035); border-color: var(--line); box-shadow: var(--shadow-1); }
.msg.out { background: rgba(255, 255, 255, .08); border-color: var(--line); color: var(--ink); }
.msg.in { background: linear-gradient(135deg, #1d5f9f, #1a8590); color: #fff; }
.booked { background: rgba(79, 216, 220, .1); border-color: var(--aqua); color: var(--aqua); }

.quote blockquote { font-weight: 300; letter-spacing: -.02em; font-stretch: 100%; }
.quote figcaption strong { color: #fff; }

.table-wrap { background: rgba(255, 255, 255, .035); border-color: var(--line); box-shadow: var(--shadow-1); }
thead th { background: rgba(255, 255, 255, .06); }
td.us, th.us { background: rgba(79, 216, 220, .1); }
tbody tr:hover td, tbody tr:hover th { background: rgba(255, 255, 255, .04); }
tbody tr:hover td.us { background: rgba(79, 216, 220, .17); }

.faq { border-top: 1px solid var(--line); }
.faq summary:hover { color: #fff; }
.faq summary::after { color: var(--aqua); }

.case, .section-alt .case { background: var(--surface); border-color: var(--line); box-shadow: var(--shadow-1); }
.case h3 { background: linear-gradient(135deg, #fff 30%, var(--aqua)); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 400; }
.case-label { color: var(--aqua); }
.case-who { color: var(--ink-2); }

/* CTA band: lit water rising at the bottom */
.cta {
  background:
    radial-gradient(70% 70% at 50% 135%, rgba(79, 216, 220, .42), transparent 70%),
    linear-gradient(180deg, transparent, rgba(8, 42, 69, .55));
}
.cta h2 { color: #fff; font-weight: 300; }
.cta p { color: #b9cedb; }

/* Inner pages */
.page-head { background: radial-gradient(700px 280px at 88% 0%, rgba(79, 216, 220, .16), transparent 70%); border-bottom: 0; }
.page-head h1 { font-weight: 300; letter-spacing: -.04em; }
.page-head .bubbles i { background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .7), rgba(255, 255, 255, .1) 60%, transparent 70%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); }
.crumbs, .crumbs a, .byline { color: var(--ink-2); }
.crumbs li + li::before { color: var(--ink-2); }
.answer { background: rgba(79, 216, 220, .07); border-left-color: var(--aqua); box-shadow: none; }
.answer .label { color: var(--aqua); }
.article h2 { font-weight: 300; }
.aside .box, .callout, .related a { background: var(--surface); border-color: var(--line); }
.aside .box, .related a:hover { box-shadow: var(--shadow-1); }
.related a { color: var(--ink); }
.related a:hover { border-color: var(--aqua); }
.related strong { color: #fff; }
.calc { background: var(--surface); border: 1px solid rgba(79, 216, 220, .45); box-shadow: 0 0 60px -26px rgba(79, 216, 220, .5); }
.calc input { background: rgba(255, 255, 255, .06); color: #fff; border-color: var(--line); }
.calc-out b { color: #fff; font-weight: 300; font-stretch: 100%; letter-spacing: -.03em; }

/* Footer */
.site-foot { background: rgba(2, 8, 16, .72); border-top: 1px solid var(--line); }
.site-foot h2 { color: #fff; font-weight: 500; font-stretch: 100%; letter-spacing: -.01em; }
.site-foot a { color: var(--ink-2); }
.site-foot a:hover { color: #fff; }

/* Booking page */
.book-steps li::before { background: rgba(79, 216, 220, .12); color: var(--aqua); border: 1px solid var(--aqua); font-weight: 600; font-stretch: 100%; }
.book-steps li:not(:last-child)::after { background: var(--line); }
.book-facts li { background: rgba(79, 216, 220, .1); color: var(--aqua); }
.book-card { background: #fff; border-color: rgba(79, 216, 220, .4); box-shadow: 0 0 0 1px rgba(79, 216, 220, .25), 0 0 90px -24px rgba(79, 216, 220, .55); }

/* Bubbles read as drifting orbs on a dark sky, so keep them faint */
.bubbles { opacity: .4; }

/* Daily ad spend slider */
.calc-day { margin-bottom: 22px; }
.calc-day-top { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.calc-day-top label { margin: 0; }
.calc-day-top output { font-size: 1.125rem; color: var(--ink-2); }
.calc-day-top output b { font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 300; letter-spacing: -.04em; color: #fff; line-height: 1; }
.calc-scale { display: flex; justify-content: space-between; gap: 12px; font-size: .9375rem; color: var(--ink-2); }
.calc-scale b { color: #fff; font-weight: 600; }
.calc input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 36px; padding: 0; border: 0; background: transparent; cursor: pointer; --p: 11%; }
.calc input[type=range]::-webkit-slider-runnable-track { height: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--aqua) var(--p), rgba(255, 255, 255, .16) var(--p)); }
.calc input[type=range]::-moz-range-track { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .16); }
.calc input[type=range]::-moz-range-progress { height: 8px; border-radius: 99px; background: var(--aqua); }
.calc input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; margin-top: -11px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 0 0 7px rgba(79, 216, 220, .25), 0 0 26px rgba(79, 216, 220, .75); }
.calc input[type=range]::-moz-range-thumb { width: 30px; height: 30px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 0 0 7px rgba(79, 216, 220, .25), 0 0 26px rgba(79, 216, 220, .75); }
.calc input[type=range]:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; border-radius: 99px; }
.calc-out { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.calc-out div { padding: 16px 14px 8px 0; }

/* Home hero: one headline over a real pool photo */
body:has(.hero-photo) .site-head { margin-bottom: -72px; }
.hero { min-height: min(88vh, 780px); display: flex; align-items: center; padding: clamp(120px, 15vw, 180px) 0 clamp(150px, 16vw, 220px); background: none; isolation: isolate; }
.hero-photo { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-photo img { width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 62%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(3, 10, 22, .86) 0%, rgba(3, 10, 22, .55) 48%, rgba(3, 10, 22, .12) 100%),
    linear-gradient(180deg, rgba(3, 10, 22, .55) 0%, transparent 28%, transparent 62%, var(--plaster) 100%); }
.hero .wrap { width: 100%; }
.hero-copy { max-width: 760px; }
.hero h1 { font-size: clamp(2.7rem, 6.2vw, 5.4rem); line-height: 1; letter-spacing: -.045em; margin-bottom: .45em; text-shadow: 0 2px 30px rgba(0, 0, 0, .35); }
.hero .lede { font-size: clamp(1.1rem, 1.7vw, 1.4rem); color: #d3e3ee; max-width: 34ch; margin-bottom: 0; }
.hero-actions { margin: 32px 0 0; }
.hero .btn { font-size: 1.125rem; padding: 18px 32px; }
.proof .hero-video { animation: none; }
@media (max-width: 700px) {
  .hero { min-height: 640px; align-items: flex-end; padding-bottom: 150px; }
  .hero::before { background: linear-gradient(180deg, rgba(3, 10, 22, .5) 0%, rgba(3, 10, 22, .35) 35%, rgba(3, 10, 22, .85) 80%, var(--plaster) 100%); }
  .hero-photo img { object-position: 30% 50%; }
}
/* Mirror the photo so the pool sits on the right, clear of the headline */
.hero-photo img { transform: scaleX(-1); object-position: 50% 78%; }
.hero::before { background:
    linear-gradient(90deg, rgba(3, 10, 22, .84) 0%, rgba(3, 10, 22, .5) 42%, rgba(3, 10, 22, 0) 75%),
    linear-gradient(180deg, rgba(3, 10, 22, .5) 0%, transparent 26%, transparent 66%, var(--plaster) 100%); }
@media (max-width: 700px) { .hero-photo img { object-position: 70% 70%; } }
@media (max-width: 700px) {
  .hero { min-height: 700px; align-items: flex-start; padding: 118px 0 130px; }
  .hero::before { background: linear-gradient(180deg, rgba(3, 10, 22, .82) 0%, rgba(3, 10, 22, .6) 38%, rgba(3, 10, 22, .05) 64%, var(--plaster) 100%); }
  .hero-photo img { object-position: 74% 100%; }
}
@media (max-width: 700px) { .hero { min-height: 780px; padding-bottom: 270px; } }
@media (max-width: 700px) { .hero-photo img { object-position: 92% 100%; } }
@media (max-width: 700px) { .hero-photo img { object-position: 8% 100%; } }  /* image is mirrored, so the pool side is the left edge of the source */

/* Logo mark (image) */
.brand img { height: 34px; width: auto; flex: none; transition: transform .5s var(--ease); }
.brand:hover img { transform: scale(1.06); }
.site-foot .brand img, footer .brand img { height: 30px; }
