/* ==========================================================================
   Stone Flow Scapes: natural, premium, grounded. See getdesign.md.
   ========================================================================== */
:root {
  --green: #2D4A2D;
  --green-2: #3B5E3A;
  --green-deep: #1F3420;
  --earth: #8B7355;
  --earth-2: #6F5B42;
  --bg: #FAFAF6;
  --ink: #1A1C1A;
  --ink-2: #4A4D48;
  --sage: #E9EDE3;
  --sand: #F1ECE2;
  --line: rgba(26, 28, 26, .12);
  --water: #4F8C86;
  --white: #FAFAF6;

  --f-display: 'Fraunces', Georgia, serif;
  --f-head: 'Bricolage Grotesque', 'Instrument Sans', system-ui, sans-serif;
  --f-body: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --wrap: 1240px;
  --gut: clamp(20px, 4vw, 48px);
  --sec: clamp(96px, 12vw, 176px);
  --r: 22px;
  --ease: cubic-bezier(.22, .61, .21, 1);
  --slow: 1.4s;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.65 var(--f-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--f-head); font-weight: 600; letter-spacing: -.02em; line-height: 1.08; }
p { margin: 0 0 1em; }
button { font: inherit; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--green); color: var(--white); padding: 10px 16px; border-radius: 999px; z-index: 200; }
.skip:focus { left: 12px; }
:focus-visible { outline: 2px solid var(--earth); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.eyebrow {
  font: 600 12.5px/1.2 var(--f-body); letter-spacing: .18em; text-transform: uppercase;
  color: var(--earth); margin: 0 0 18px;
}
.eyebrow-light { color: rgba(250, 250, 246, .86); }
.h-xl { font-size: clamp(40px, 6vw, 84px); font-weight: 600; }
.h-lg { font-size: clamp(32px, 4.2vw, 56px); }
.h-md { font-size: clamp(26px, 2.8vw, 36px); }
.h-xl em, .h-lg em { font-family: var(--f-display); font-style: italic; font-weight: 300; color: var(--green); letter-spacing: -.01em; }
.lede { font-size: clamp(18px, 1.5vw, 21px); color: var(--ink-2); max-width: 620px; }
.muted { color: var(--ink-2); }
.fine { font-size: 13.5px; color: var(--ink-2); }
.section-head { margin-bottom: clamp(48px, 6vw, 80px); }
.section-head .h-xl, .section-head .h-lg { color: var(--green); }

/* ------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px; border-radius: 999px; border: 1.5px solid transparent;
  font: 600 16px/1 var(--f-body); text-decoration: none; cursor: pointer;
  transition: background .5s var(--ease), color .5s var(--ease), border-color .5s var(--ease), transform .5s var(--ease), box-shadow .5s var(--ease);
}
.btn-primary { background: var(--green); color: var(--white); box-shadow: 0 10px 30px -14px rgba(31, 52, 32, .6); }
.btn-primary:hover { background: var(--green-2); transform: translateY(-2px); }
.btn-outline { border-color: var(--earth); color: var(--earth-2); background: transparent; }
.btn-outline:hover { background: var(--earth); color: var(--white); }
.btn-sm { min-height: 42px; padding: 0 20px; font-size: 14.5px; }
.btn-lg { min-height: 60px; padding: 0 36px; font-size: 17px; }
.btn-block { width: 100%; }

/* ------------------------------------------------ nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; color: var(--white); transition: background .6s var(--ease), color .6s var(--ease), box-shadow .6s var(--ease); }
.nav-in { max-width: 1400px; margin: 0 auto; padding: 18px var(--gut); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.nav.solid { background: rgba(250, 250, 246, .9); color: var(--ink); box-shadow: 0 1px 0 var(--line); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.logo { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.logo-mark { width: 40px; height: 40px; flex: none; overflow: visible; }
.nav.solid .logo { color: var(--green); }
.nav-links { display: flex; gap: clamp(18px, 2.4vw, 36px); }
.nav-links a { text-decoration: none; font-weight: 500; font-size: 15.5px; opacity: .92; position: relative; padding: 6px 0; }
.nav-links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-right { display: flex; align-items: center; justify-content: flex-end; gap: 18px; }
.nav-phone { text-decoration: none; font-weight: 600; font-size: 15px; white-space: nowrap; }
.nav-phone-m { display: none; }
.burger { display: none; width: 44px; height: 44px; border: 0; background: transparent; color: inherit; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: currentColor; transition: transform .4s var(--ease); }
.burger span:first-child { top: 17px; } .burger span:last-child { top: 25px; }
.menu-open .burger span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-open .burger span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ------------------------------------------------ scrub sections */
.scrub { position: relative; }
.scrub-stage { position: sticky; top: 0; height: 100vh; height: 100lvh; overflow: hidden; background: var(--green-deep); }
.scrub video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s var(--ease); }
.scrub.video-ready video { opacity: 1; }

.hero { height: 280vh; }
.hero .poster { position: absolute; inset: -2%; background-size: cover; background-position: center; transform-origin: 52% 58%; will-change: transform; }
.hero-scrim { position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(14, 22, 14, .62) 0%, rgba(14, 22, 14, .28) 26%, rgba(14, 22, 14, 0) 46%),
    linear-gradient(0deg, rgba(14, 20, 14, .55) 0%, rgba(14, 20, 14, 0) 34%); }
.hero-copy { position: absolute; left: 0; right: 0; top: clamp(96px, 15vh, 160px); text-align: center; color: var(--white); padding: 0 var(--gut); }
.hero-name {
  font-family: var(--f-display); font-weight: 400; font-variation-settings: 'opsz' 144;
  font-size: clamp(52px, 10vw, 168px); line-height: .92; letter-spacing: -.035em;
  text-shadow: 0 2px 40px rgba(10, 18, 10, .35);
}
.hero-tag { font-family: var(--f-display); font-style: italic; font-weight: 300; font-size: clamp(20px, 2.6vw, 34px); margin: 18px 0 0; opacity: .95; text-shadow: 0 1px 24px rgba(10, 18, 10, .5); }
.hero-name { animation: settle 2s var(--ease) .1s both; }
.hero-tag, .hero-copy .eyebrow { animation: settle 2s var(--ease) .7s both; }
@keyframes settle { from { opacity: 0; transform: translateY(16px); } }
.hero-cta { position: absolute; left: 0; right: 0; bottom: clamp(70px, 13vh, 130px); display: flex; flex-direction: column; align-items: center; gap: 16px; opacity: 0; visibility: hidden; }
.hero-cta .btn-primary { background: var(--white); color: var(--green); box-shadow: 0 18px 50px -18px rgba(0, 0, 0, .6); }
.hero-cta .btn-primary:hover { background: #fff; }
.hero-call { color: var(--white); font-size: 15px; text-decoration: none; opacity: .9; text-shadow: 0 1px 12px rgba(0, 0, 0, .5); }
.hero-call:hover { text-decoration: underline; }
.cue { position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%); color: var(--white); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; display: flex; flex-direction: column; align-items: center; gap: 10px; opacity: .85; }
.cue span { width: 1px; height: 46px; background: linear-gradient(rgba(250, 250, 246, 0), var(--white)); animation: cue 2.8s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
.hero-fade { position: absolute; left: 0; right: 0; bottom: 0; height: 40%; pointer-events: none; opacity: 0; background: linear-gradient(0deg, var(--bg) 0%, rgba(250, 250, 246, .7) 30%, rgba(250, 250, 246, 0) 100%); }

/* static: reduced motion or no script. Everything at rest and readable. */
.scrub.static { height: auto; }
.scrub.static .scrub-stage { position: relative; }
.scrub.static .hero-cta, .scrub.static .t-line { opacity: 1; visibility: visible; }
.scrub.static .cue { display: none; }
html:not(.js) .hero { height: auto; }
html:not(.js) .scrub-stage { position: relative; }
html:not(.js) .hero-cta { opacity: 1; visibility: visible; }

/* ------------------------------------------------ growth reveals */
.js .grow { opacity: 0; transform: translateY(28px); transition: opacity var(--slow) var(--ease), transform var(--slow) var(--ease); }
.js .grow.in { opacity: 1; transform: none; }
.js .grow-img { clip-path: inset(14% 0 0 0); transition: clip-path 1.8s var(--ease); }
.js .grow-img img { transform: scale(1.08); transition: transform 2.4s var(--ease); }
.js .grow-img.in { clip-path: inset(0 0 0 0); }
.js .grow-img.in img { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .grow, .js .grow-img, .js .grow-img img { opacity: 1; transform: none; clip-path: none; transition: none; }
  * { animation: none !important; }
}

/* ------------------------------------------------ photos and photo slots */
.media { position: relative; overflow: hidden; background: var(--sand); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media.is-empty img { visibility: hidden; }
.media.is-empty {
  background:
    radial-gradient(120% 90% at 20% 100%, rgba(45, 74, 45, .16), transparent 60%),
    radial-gradient(90% 70% at 90% 0%, rgba(139, 115, 85, .16), transparent 60%),
    var(--sand);
}
.media.is-empty::before {
  content: ''; position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; transform: translate(-50%, -70%); opacity: .55;
  background: var(--green);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath d='M24 44V22M24 26c-8-1-13-7-14-16 9 0 14 6 14 16zm0 6c7-1 12-6 13-14-8 0-12 6-13 14z' fill='none' stroke='black' stroke-width='2.4' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath d='M24 44V22M24 26c-8-1-13-7-14-16 9 0 14 6 14 16zm0 6c7-1 12-6 13-14-8 0-12 6-13 14z' fill='none' stroke='black' stroke-width='2.4' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.media.is-empty::after {
  content: attr(data-label); position: absolute; left: 0; right: 0; top: 50%; margin-top: 14px; text-align: center;
  font: 600 11.5px/1.3 var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: var(--earth-2); opacity: .8; padding: 0 12px;
}
.media.is-empty:not([data-label])::after { content: 'Photo coming soon'; }

/* ------------------------------------------------ natural pools */
.pools { padding: var(--sec) 0 0; }
.pools-intro { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: end; margin-bottom: clamp(56px, 7vw, 96px); }
.pools-intro .eyebrow { grid-column: 1 / -1; margin-bottom: -8px; }
.pools-intro .h-xl { color: var(--green); font-size: clamp(40px, 5.4vw, 78px); }
.pools-lede p { font-size: clamp(17px, 1.4vw, 20px); color: var(--ink-2); }
.pools-lede p:last-child { margin: 0; color: var(--earth-2); font-family: var(--f-display); font-style: italic; font-size: clamp(19px, 1.6vw, 23px); }
.bleed { height: clamp(420px, 86vh, 920px); margin: 0; }
.bleed figcaption { position: absolute; left: var(--gut); bottom: clamp(24px, 4vw, 48px); color: var(--white); font: italic 300 clamp(22px, 2.6vw, 38px)/1.2 var(--f-display); text-shadow: 0 2px 24px rgba(0, 0, 0, .45); }
.bleed.is-empty figcaption { display: none; }

.pool-why { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(28px, 3vw, 48px); padding: clamp(72px, 9vw, 128px) 0; }
.why { border-top: 1.5px solid var(--green); padding-top: 22px; }
.why-n { font: 500 13px/1 var(--f-body); color: var(--earth); letter-spacing: .14em; }
.why h3 { font-size: 23px; margin: 14px 0 10px; color: var(--green); }
.why p { color: var(--ink-2); font-size: 16px; margin: 0; }

.diagram { background: var(--sage); border-radius: 32px; padding: clamp(28px, 4.5vw, 64px); }
.diagram-head { margin-bottom: 28px; }
.diagram-head .h-md { color: var(--green); margin-bottom: 8px; }
.diagram-head p.muted { margin: 0; }
.diagram-body { display: grid; grid-template-columns: 1fr 320px; gap: clamp(24px, 3vw, 48px); align-items: center; }
.pool-svg { width: 100%; height: auto; overflow: visible; }
.dg-label { font: 600 22px var(--f-body); fill: rgba(250, 250, 246, .92); letter-spacing: .02em; }
.dg-flow { animation: flow 3.2s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -64; } }
.dg-surface { animation: lap 7s ease-in-out infinite alternate; }
.dg-surface.s2 { animation-duration: 8.5s; }
@keyframes lap { from { transform: translateX(-6px); } to { transform: translateX(6px); } }
.dg-plants path { transform-box: fill-box; transform-origin: 50% 100%; animation: sway 6s ease-in-out infinite alternate; }
.dg-plants path:nth-child(2n) { animation-duration: 7.5s; }
@keyframes sway { from { transform: rotate(-2.5deg); } to { transform: rotate(2.5deg); } }
.hs { cursor: pointer; outline: none; }
.hs circle { fill: var(--green); stroke: var(--white); stroke-width: 3; transition: fill .4s var(--ease); }
.hs text { fill: var(--white); font: 700 19px var(--f-body); text-anchor: middle; pointer-events: none; }
.hs::before { content: none; }
.hs:hover circle, .hs:focus-visible circle, .hs.is-on circle { fill: var(--earth); }
.hs circle { animation: ping 3.6s var(--ease) infinite; }
.hs.is-on circle, .hs:hover circle { animation: none; }
@keyframes ping { 0%, 70%, 100% { stroke-width: 3; } 80% { stroke-width: 10; stroke-opacity: .4; } }
.dg-info { position: relative; min-height: 210px; }
.dg-card { position: absolute; inset: 0; background: var(--bg); border-radius: 20px; padding: 28px; opacity: 0; transform: translateY(12px); transition: opacity .8s var(--ease), transform .8s var(--ease); pointer-events: none; }
.dg-card.is-on { opacity: 1; transform: none; pointer-events: auto; }
.dg-card span { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--earth); color: var(--white); font-weight: 700; font-size: 14px; margin-bottom: 14px; }
.dg-card h4 { font-size: 22px; color: var(--green); margin-bottom: 10px; }
.dg-card p { color: var(--ink-2); font-size: 15.5px; margin: 0; }

.pool-styles { padding: clamp(80px, 10vw, 140px) 0 0; }
.styles-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.style-card { margin: 0; }
.style-card .media { aspect-ratio: 4 / 5; border-radius: var(--r); }
.style-card .media img { transition: transform 1.6s var(--ease); }
.style-card:hover .media img { transform: scale(1.05); }
.style-card h4 { font-size: 21px; margin: 18px 0 6px; color: var(--green); }
.style-card p { font-size: 15px; color: var(--ink-2); margin: 0; }
.pool-more { padding: clamp(80px, 10vw, 140px) 0 0; }
.more-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.2vw, 32px); }
.more-card { margin: 0; background: #fff; border: 1.5px solid var(--line); border-radius: var(--r); overflow: hidden; transition: border-color .7s var(--ease), transform .7s var(--ease); }
.more-card:hover { border-color: var(--green); transform: translateY(-4px); }
.more-card .media { aspect-ratio: 4 / 3; }
.more-card .media img { transition: transform 1.6s var(--ease); }
.more-card:hover .media img { transform: scale(1.05); }
.more-card figcaption { padding: 24px 26px 26px; }
.more-card h4 { font-size: 22px; color: var(--green); margin-bottom: 8px; }
.more-card p { color: var(--ink-2); font-size: 15.5px; margin-bottom: 12px; }
.pool-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: clamp(64px, 8vw, 112px) 0 var(--sec); }
.pool-cta p { flex: 1 1 420px; margin: 0; font: 300 clamp(20px, 1.9vw, 26px)/1.45 var(--f-display); color: var(--ink); }

.texture { height: clamp(180px, 34vh, 380px); }
.texture img { transform: scale(1.15); will-change: transform; }

/* ------------------------------------------------ services */
.services { padding: var(--sec) 0; }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.2vw, 32px); }
.svc-card { display: flex; flex-direction: column; background: #fff; border: 1.5px solid var(--line); border-radius: var(--r); overflow: hidden; transition: border-color .7s var(--ease), transform .7s var(--ease), box-shadow .7s var(--ease); }
.svc-card:hover { border-color: var(--green); transform: translateY(-4px); box-shadow: 0 30px 60px -36px rgba(31, 52, 32, .45); }
.svc-card .media { aspect-ratio: 4 / 3; }
.svc-card .media img { transition: transform 1.6s var(--ease); }
.svc-card:hover .media img { transform: scale(1.05); }
.svc-body { padding: 26px 28px 28px; display: flex; flex-direction: column; flex: 1; }
.svc-body h3 { font-size: 23px; color: var(--green); margin-bottom: 12px; }
.svc-body p { color: var(--ink-2); font-size: 15.5px; flex: 1; }
.more { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; padding: 6px 0; color: var(--green); font-weight: 600; font-size: 15px; cursor: pointer; text-decoration: none; }
.more::after { content: '→'; transition: transform .5s var(--ease); }
.more:hover::after { transform: translateX(5px); }
.consult { margin-top: clamp(56px, 7vw, 96px); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.consult p { font: 300 clamp(22px, 2.3vw, 32px)/1.35 var(--f-display); margin: 0; max-width: 760px; }

/* ------------------------------------------------ transformation intro */
.transform { height: 200vh; }
.t-layer { position: absolute; inset: 0; background: var(--green-deep); }
.t-layer img { width: 100%; height: 100%; object-fit: cover; }
.t-before.muted img { filter: grayscale(.8) sepia(.35) brightness(.62) contrast(.92) blur(1.2px); transform: scale(1.04); }
.t-after { --rv: 0%; -webkit-mask-image: radial-gradient(circle at 46% 64%, #000 calc(var(--rv) - 14%), transparent var(--rv)); mask-image: radial-gradient(circle at 46% 64%, #000 calc(var(--rv) - 14%), transparent var(--rv)); }
.transform.video-ready .t-layer { opacity: 0; }
.t-scrim { position: absolute; inset: 0; background: radial-gradient(70% 55% at 50% 50%, rgba(10, 16, 10, .42), rgba(10, 16, 10, 0) 70%); pointer-events: none; }
.t-eyebrow { position: absolute; top: clamp(90px, 14vh, 140px); left: 0; right: 0; text-align: center; }
.t-line { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); margin: 0; padding: 0 var(--gut); text-align: center; color: var(--white);
  font: 300 clamp(44px, 8vw, 128px)/1 var(--f-display); letter-spacing: -.03em; text-shadow: 0 4px 50px rgba(0, 0, 0, .45); opacity: 0; visibility: hidden; }
.transform .hero-fade { height: 30%; }
.static.transform .t-after { -webkit-mask-image: none; mask-image: none; }

/* ------------------------------------------------ portfolio */
.portfolio .wrap { padding-top: clamp(80px, 10vw, 140px); padding-bottom: var(--sec); }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.filters button { border: 1.5px solid var(--line); background: transparent; color: var(--ink); border-radius: 999px; padding: 11px 20px; font-weight: 500; font-size: 15px; cursor: pointer; transition: all .5s var(--ease); }
.filters button:hover { border-color: var(--green); color: var(--green); }
.filters button[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: var(--white); }
.pf-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(24px, 3vw, 44px); }
.pf-card { text-decoration: none; display: block; transition: opacity .8s var(--ease), transform .8s var(--ease); }
.pf-card.is-hidden { display: none; }
.pf-card .ba { border-radius: var(--r); aspect-ratio: 3 / 2; }
.pf-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-top: 18px; }
.pf-meta h3 { font-size: clamp(21px, 1.9vw, 26px); color: var(--green); transition: color .5s; }
.pf-card:hover .pf-meta h3 { color: var(--earth-2); }
.pf-loc { color: var(--ink-2); font-size: 15px; margin-top: 4px; }
.tag { flex: none; font-size: 12.5px; font-weight: 600; letter-spacing: .06em; color: var(--earth-2); border: 1.5px solid rgba(139, 115, 85, .45); padding: 6px 12px; border-radius: 999px; white-space: nowrap; }
.pf-note { margin-top: 44px; }

/* before / after slider */
.ba { --pos: 50%; position: relative; overflow: hidden; background: var(--sand); user-select: none; -webkit-user-select: none; touch-action: pan-y; }
.ba > .media { position: absolute; inset: 0; }
.ba .ba-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--white); box-shadow: 0 0 18px rgba(0, 0, 0, .35); pointer-events: none; }
.ba-handle::after { content: ''; position: absolute; top: 50%; left: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 6l-6 6 6 6M15 6l6 6-6 6' fill='none' stroke='%232D4A2D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 24px no-repeat; box-shadow: 0 8px 26px rgba(0, 0, 0, .3); }
.ba-tag { position: absolute; top: 16px; padding: 7px 13px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; background: rgba(26, 28, 26, .55); color: var(--white); pointer-events: none; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.ba-tag-b { left: 16px; } .ba-tag-a { right: 16px; }
.ba input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; }
.ba input[type=range]:focus-visible + .ba-focus { opacity: 1; }
.ba-focus { position: absolute; inset: 0; border: 3px solid var(--earth); border-radius: inherit; opacity: 0; pointer-events: none; }
/* on cards the slider only appears on hover */
.pf-card .ba .ba-before, .pf-card .ba .ba-handle, .pf-card .ba .ba-tag { opacity: 0; transition: opacity .7s var(--ease); }
.pf-card .ba .ba-tag-a { opacity: 1; }
.pf-card .ba .ba-tag-a::before { content: ''; }
.pf-card:hover .ba .ba-before, .pf-card:hover .ba .ba-handle, .pf-card:hover .ba .ba-tag, .pf-card:focus-visible .ba .ba-before, .pf-card:focus-visible .ba .ba-handle { opacity: 1; }
.pf-card .ba .ba-after img { transition: transform 1.6s var(--ease); }
.pf-card:hover .ba .ba-after img { transform: scale(1.03); }
.pf-cat { position: absolute; left: 16px; bottom: 16px; }

/* ------------------------------------------------ seasonal */
.seasonal { padding: 0 0 var(--sec); background: linear-gradient(180deg, var(--sage) 0, var(--bg) 70%); }
.banner { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; padding: 22px var(--gut); background: var(--earth); color: var(--white); text-align: center; }
.banner svg { width: 24px; height: 24px; flex: none; }
.banner p { margin: 0; font-weight: 500; font-size: 17px; }
.banner a { font-weight: 700; text-underline-offset: 4px; }
.seasonal .wrap { padding-top: clamp(80px, 10vw, 140px); }
.season-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(18px, 2vw, 28px); }
.season { display: flex; flex-direction: column; }
.season .media { aspect-ratio: 3 / 4; border-radius: var(--r); }
.season .media img { transition: transform 1.6s var(--ease); }
.season:hover .media img { transform: scale(1.05); }
.season h3 { font-size: 30px; color: var(--green); margin: 22px 0 14px; font-family: var(--f-display); font-weight: 400; letter-spacing: -.02em; }
.season ul { list-style: none; padding: 0; margin: 0 0 22px; flex: 1; }
.season li { padding: 9px 0 9px 26px; border-bottom: 1px solid var(--line); position: relative; font-size: 15.5px; }
.season li::before { content: ''; position: absolute; left: 2px; top: 17px; width: 9px; height: 9px; border-radius: 50% 0 50% 0; background: var(--green); transform: rotate(-12deg); }

/* ------------------------------------------------ about + faq */
.about { padding: var(--sec) 0; background: var(--bg); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 120px); align-items: start; }
.about-copy .h-xl { color: var(--green); margin-bottom: 30px; font-size: clamp(38px, 5vw, 68px); }
.about-copy p { font-size: 18px; color: var(--ink-2); }
.about-copy .btn { margin-top: 12px; }
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { display: flex; gap: 22px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.steps li:first-child { border-top: 1px solid var(--line); }
.steps span { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--earth); color: var(--earth-2); font: 500 19px var(--f-display); }
.steps h3 { font-size: 21px; color: var(--green); margin: 4px 0 8px; }
.steps p { margin: 0; color: var(--ink-2); font-size: 16px; }
.faq { padding-top: var(--sec); }
.faq-list { max-width: 900px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 26px 0; font: 600 clamp(19px, 1.6vw, 22px)/1.3 var(--f-head); color: var(--green); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; flex: none; width: 14px; height: 14px; border-right: 2px solid var(--earth); border-bottom: 2px solid var(--earth); transform: rotate(45deg) translateY(-4px); transition: transform .6s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details p { color: var(--ink-2); margin: 0 0 26px; max-width: 760px; }

/* ------------------------------------------------ estimate */
.estimate { background: var(--sand); }
.est-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
.est-photo { margin: 0; position: sticky; top: 0; height: 100vh; min-height: 520px; }
.est-photo img { position: absolute; inset: 0; }
.est-photo::before { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(14, 22, 14, .78), rgba(14, 22, 14, 0) 60%); z-index: 1; }
.est-photo.is-empty::before { content: none; }
.est-photo figcaption { position: absolute; left: clamp(24px, 4vw, 56px); right: clamp(24px, 4vw, 56px); bottom: clamp(28px, 5vw, 64px); z-index: 2; color: var(--white); display: flex; flex-direction: column; gap: 14px; }
.est-quote { font: 300 clamp(24px, 2.6vw, 38px)/1.25 var(--f-display); }
.est-photo figcaption a { font: 600 20px var(--f-head); text-decoration: none; }
.est-form-wrap { padding: clamp(56px, 7vw, 112px) clamp(24px, 5vw, 88px); max-width: 760px; }
.est-form-wrap .h-lg { color: var(--green); margin-bottom: 12px; }
.est-form { margin-top: 36px; display: grid; gap: 18px; }
.f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.est-form label { display: flex; flex-direction: column; gap: 8px; font-weight: 600; font-size: 14px; color: var(--ink); }
.opt { font-weight: 400; color: var(--ink-2); }
.est-form input, .est-form select, .est-form textarea {
  font: 400 16px/1.4 var(--f-body); color: var(--ink); background: var(--bg); border: 1.5px solid rgba(26, 28, 26, .16); border-radius: 14px; padding: 14px 16px; width: 100%;
  transition: border-color .4s var(--ease), box-shadow .4s var(--ease); -webkit-appearance: none; appearance: none;
}
.est-form select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%238B7355' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 42px; }
.est-form input:focus, .est-form select:focus, .est-form textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(45, 74, 45, .12); }
.est-form .bad { border-color: #A4452E; }
.form-err { color: #A4452E; font-weight: 500; margin: 0; }
.est-form .btn { margin-top: 8px; }
.est-form .fine { margin: 0; text-align: center; }
.thanks { margin-top: 36px; background: var(--bg); border-radius: 24px; padding: 40px; color: var(--green); outline: none; }
.thanks svg { width: 56px; height: 56px; margin-bottom: 18px; }
.thanks p { color: var(--ink); font-size: 18px; }
.thanks .muted { color: var(--ink-2); font-size: 15.5px; margin: 0; }
.thanks a { color: var(--green); font-weight: 600; }

/* ------------------------------------------------ footer */
.foot { background: var(--green-deep); color: rgba(250, 250, 246, .82); padding: clamp(72px, 9vw, 120px) 0 36px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 48px; }
.logo-light { color: var(--white); }
.foot-tag { margin-top: 18px; font-size: 15.5px; }
.foot h4 { font: 600 12.5px var(--f-body); letter-spacing: .18em; text-transform: uppercase; color: rgba(250, 250, 246, .55); margin-bottom: 16px; }
.foot-grid > div:nth-child(3) a { display: block; text-decoration: none; padding: 4px 0; }
.foot-grid a:hover { color: var(--white); }
.foot-phone { display: block; font: 600 24px var(--f-head); color: var(--white); text-decoration: none; margin-bottom: 18px; }
.foot .btn-primary { background: var(--white); color: var(--green); }
.made-by { color: rgba(250, 250, 246, .45); text-decoration: none; transition: color .5s var(--ease); }
.made-by:hover { color: rgba(250, 250, 246, .85); }
.foot-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 64px; padding-top: 24px; border-top: 1px solid rgba(250, 250, 246, .14); font-size: 13.5px; color: rgba(250, 250, 246, .55); }

.call-fab { display: none; }

/* ------------------------------------------------ service dialog */
.svc-dialog { width: min(880px, calc(100vw - 32px)); max-height: calc(100vh - 32px); border: 0; padding: 0; border-radius: 28px; background: var(--bg); color: var(--ink); overflow: auto; box-shadow: 0 40px 120px -40px rgba(0, 0, 0, .5); }
.svc-dialog[open] { display: grid; grid-template-columns: 1fr 1.1fr; animation: rise .8s var(--ease); }
.svc-dialog::backdrop { background: rgba(20, 28, 20, .55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
.svc-d-img { min-height: 320px; }
.svc-d-body { padding: 44px 40px; }
.svc-d-body .h-md { color: var(--green); margin-bottom: 14px; }
.svc-d-body p { color: var(--ink-2); }
.svc-d-body ul { padding: 0; list-style: none; margin: 0 0 28px; }
.svc-d-body li { padding: 8px 0 8px 24px; position: relative; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.svc-d-body li::before { content: ''; position: absolute; left: 2px; top: 16px; width: 9px; height: 9px; border-radius: 50% 0 50% 0; background: var(--earth); }
.x { position: absolute; top: 14px; right: 14px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(250, 250, 246, .92); color: var(--ink); font-size: 26px; line-height: 1; cursor: pointer; }

/* ------------------------------------------------ project page */
.pv { position: fixed; inset: 0; z-index: 120; background: var(--bg); overflow-y: auto; overscroll-behavior: contain; }
.pv[hidden] { display: none; }
.pv.opening { animation: pvIn .9s var(--ease); }
@keyframes pvIn { from { opacity: 0; transform: translateY(30px); } }
.pv-bar { position: sticky; top: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center; padding: 16px var(--gut); background: rgba(250, 250, 246, .94); box-shadow: 0 1px 0 var(--line); color: var(--green); }
.pv-back { text-decoration: none; font-weight: 600; color: var(--earth-2); }
.pv-back:hover { color: var(--green); }
.pv-head { max-width: var(--wrap); margin: 0 auto; padding: clamp(48px, 7vw, 96px) var(--gut) 36px; display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.pv-head h1 { font-size: clamp(40px, 6vw, 84px); color: var(--green); }
.pv-head .pf-loc { font-size: 18px; margin-top: 10px; }
.pv-ba { max-width: 1400px; margin: 0 auto; padding: 0 var(--gut); }
.pv-ba .ba { aspect-ratio: 16 / 9; max-height: 80vh; width: 100%; border-radius: 28px; }
.pv-hint { text-align: center; color: var(--ink-2); font-size: 14px; margin-top: 14px; }
.pv-story { max-width: var(--wrap); margin: 0 auto; padding: clamp(64px, 8vw, 112px) var(--gut); display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(32px, 6vw, 96px); }
.pv-story .lead { font: 300 clamp(21px, 2vw, 27px)/1.5 var(--f-display); color: var(--ink); }
.pv-story h2 { font-size: 15px; letter-spacing: .16em; text-transform: uppercase; color: var(--earth); font-family: var(--f-body); margin-bottom: 16px; }
.pv-story ul { list-style: none; padding: 0; margin: 0; }
.pv-story li { padding: 12px 0 12px 26px; border-bottom: 1px solid var(--line); position: relative; }
.pv-story li::before { content: ''; position: absolute; left: 2px; top: 21px; width: 9px; height: 9px; border-radius: 50% 0 50% 0; background: var(--green); }
.pv-gallery { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: clamp(180px, 20vw, 280px); gap: 16px; }
.pv-gallery .media { border-radius: 18px; }
.pv-gallery .media:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.pv-cta { margin: clamp(80px, 10vw, 140px) auto 0; background: var(--green); color: var(--white); text-align: center; padding: clamp(72px, 9vw, 128px) var(--gut); }
.pv-cta h2 { font: 300 clamp(36px, 5vw, 68px)/1.05 var(--f-display); letter-spacing: -.03em; margin-bottom: 18px; }
.pv-cta p { opacity: .85; margin-bottom: 30px; }
.pv-cta .btn-primary { background: var(--white); color: var(--green); }
.pv-cta .btn-outline { border-color: rgba(250, 250, 246, .6); color: var(--white); margin-left: 10px; }
body.pv-open { overflow: hidden; }

/* ------------------------------------------------ responsive */
@media (max-width: 1180px) {
  .nav-phone { display: none; }
}
@media (max-width: 1080px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .more-row { grid-template-columns: repeat(2, 1fr); }
  .season-grid, .styles-row, .pool-why { grid-template-columns: repeat(2, 1fr); }
  .diagram-body { grid-template-columns: 1fr; }
  .dg-info { min-height: 180px; }
  .est-grid { grid-template-columns: 1fr; }
  .est-photo { position: relative; height: 62vh; min-height: 420px; }
  .est-form-wrap { max-width: none; }
}
@media (max-width: 900px) {
  .nav-in { grid-template-columns: 1fr auto; }
  .burger { display: block; }
  .nav-right .btn { display: none; }
  .nav-links {
    position: fixed; inset: 0; z-index: -1; flex-direction: column; justify-content: center; align-items: flex-start; gap: 6px;
    padding: 100px var(--gut) 40px; background: var(--bg); color: var(--ink);
    opacity: 0; visibility: hidden; transition: opacity .6s var(--ease), visibility .6s;
  }
  .nav-links a { font: 600 34px/1.2 var(--f-head); color: var(--green); }
  .nav-links .nav-phone-m { display: block; font: 600 18px var(--f-body); color: var(--earth-2); margin-top: 24px; }
  .menu-open .nav-links { opacity: 1; visibility: visible; }
  /* a blurred bar becomes the containing block and would trap the menu */
  .menu-open .nav, .nav.menu-open { -webkit-backdrop-filter: none; backdrop-filter: none; background: transparent; box-shadow: none; color: var(--ink); }
  .menu-open .logo { color: var(--green); }
  .pools-intro, .about-grid, .pv-story { grid-template-columns: 1fr; }
  .pf-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > div:first-child { grid-column: 1 / -1; }
  .svc-dialog[open] { grid-template-columns: 1fr; }
  .svc-d-img { min-height: 220px; aspect-ratio: 16 / 9; }
  .call-fab { display: grid; place-items: center; position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 40; width: 58px; height: 58px; border-radius: 50%; background: var(--green); color: var(--white); box-shadow: 0 14px 34px -10px rgba(0, 0, 0, .45); opacity: 0; transform: translateY(20px); transition: opacity .6s var(--ease), transform .6s var(--ease); pointer-events: none; }
  .call-fab svg { width: 24px; height: 24px; }
  .call-fab.on { opacity: 1; transform: none; pointer-events: auto; }
  .pf-card .ba .ba-before, .pf-card .ba .ba-handle, .pf-card .ba .ba-tag { opacity: 0 !important; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .svc-grid, .season-grid, .styles-row, .pool-why, .more-row { grid-template-columns: 1fr; }
  .styles-row { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; margin-right: calc(-1 * var(--gut)); padding-right: var(--gut); }
  .style-card { scroll-snap-align: start; }
  .season .media { aspect-ratio: 4 / 3; }
  .f2 { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; gap: 36px; }
  .foot-base { flex-direction: column; margin-top: 44px; }
  .pv-gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; gap: 10px; }
  .pv-gallery .media:nth-child(1) { grid-row: span 1; }
  .pv-gallery .media:nth-child(1), .pv-gallery .media:nth-child(6) { grid-column: span 2; }
  .pv-ba .ba { aspect-ratio: 4 / 5; }
  .pv-cta .btn-outline { margin: 12px 0 0; }
  .hero-copy { top: 112px; }
  .hero-copy .eyebrow { font-size: 10.5px; letter-spacing: .12em; }
  .section-head h2 br, .about-copy h2 br { display: none; }
  .bleed { height: 64vh; }
  .bleed img { object-position: 42% 88%; }
  .diagram { border-radius: 24px; padding: 24px 18px; }
  .dg-label { font-size: 30px; }
  .pf-meta { flex-direction: column; gap: 8px; }
  .banner p { font-size: 15.5px; }
}
