/* Karl Burman Pools concept (Vendrato). Direction: the logo's own pool.
   The brand mark is a pool drawn as a slanted parallelogram with two ladder rails
   hooked over its left edge; type is the logo's own Ubuntu; colours are the live
   site's cream header, khaki welcome panel, brass mark and slate band. Plain CSS. */
:root {
  --cream: #f5efdc;
  --cream-2: #fbf7ea;
  --khaki: #b3a87e;
  --brass: #7d6c2e;
  --brass-hover: #685a24;
  --brass-on-dark: #d4c48c;
  --slate: #2e3d55;
  --ink: #1f2328;
  --ink-2: #3b4048;
  --muted: #585d63;
  --on-dark: #f5efdc;
  --on-dark-2: #d2cdbd;
  --rule: rgba(31, 35, 40, .18);
  --rule-dark: rgba(245, 239, 220, .22);
  --display: "Ubuntu", "Ubuntu Sans", system-ui, sans-serif;
  --text: "Ubuntu Sans", "Ubuntu", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1320px;
  --gutter: clamp(16px, 4vw, 48px);
  --section: clamp(72px, 9vw, 136px);
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --radius: 3px;
  --hdr: 72px;
  --slant: 22%;
}

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr) + 16px); -webkit-text-size-adjust: 100%; }
body.kb { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--text); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
.kb img { max-width: 100%; height: auto; display: block; }
.kb a { color: inherit; }
:where(.kb) :where(h1, h2, h3, h4) { margin: 0; font-weight: 500; }
:where(.kb) :where(p) { margin: 0; }
:where(.kb) :where(ul, ol) { margin: 0; padding: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: 12px; z-index: 200; width: 0; height: 0; padding: 0; overflow: hidden; background: var(--ink); color: var(--cream); text-decoration: none; }
.skip:focus { width: auto; height: auto; padding: 12px 16px; overflow: visible; }
.kb :focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
.dark :focus-visible, .close :focus-visible, .site-footer :focus-visible { outline-color: var(--brass-on-dark); }

/* type */
.display, .h2, .h3, .statement, .hero h1 { font-family: var(--display); font-weight: 500; letter-spacing: -0.02em; text-wrap: balance; }
.h2 { font-size: clamp(32px, 3.6vw, 52px); line-height: 1.06; }
.h3 { font-size: clamp(22px, 2vw, 28px); line-height: 1.15; }
.display { line-height: 1; }
.lede { font-size: clamp(18px, 1.45vw, 20px); line-height: 1.55; color: var(--ink-2); max-width: 58ch; }
.body-copy { color: var(--ink-2); max-width: 62ch; }
.body-copy p + p { margin-top: 1em; }
.small { font-size: 15px; line-height: 1.5; }
.caption { font-size: 14px; line-height: 1.45; color: var(--muted); margin-top: 12px; }
.dark .caption { color: var(--on-dark-2); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: var(--radius); font: 500 16px/1 var(--display); text-decoration: none; border: 1.5px solid transparent; transition: background-color .16s var(--ease), color .16s var(--ease), border-color .16s var(--ease); cursor: pointer; white-space: nowrap; }
.btn:active { transform: scale(.98); }
.btn svg { width: 18px; height: 18px; flex: none; }
.kb .btn-brass { background: var(--brass); color: #fff; }
.kb .btn-brass:hover { background: var(--brass-hover); color: #fff; }
.kb .btn-line { border-color: currentColor; color: var(--ink); background: transparent; }
.kb .btn-line:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.kb .dark .btn-line, .kb .close .btn-line { color: var(--on-dark); }
.kb .dark .btn-line:hover, .kb .close .btn-line:hover { background: var(--on-dark); color: var(--ink); border-color: var(--on-dark); }
.kb .mobile-menu .btn-line { color: var(--ink); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.textlink { display: inline-block; padding: 10px 0; font-weight: 500; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 6px; text-decoration-color: var(--brass); transition: color .16s; }
.textlink:hover { color: var(--brass); }
.dark .textlink:hover, .close .textlink:hover { color: var(--brass-on-dark); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* header */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--hdr); background: #F5EFDC; box-shadow: 0 1px 0 var(--rule); }
.site-header .hdr { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: block; flex: none; }
.brand img { height: 46px; width: auto; }
.brand .logo-light { display: none; }
.nav, .hdr-actions { display: none; }
.menu-toggle { margin-left: auto; min-height: 44px; min-width: 44px; padding: 0 14px; display: inline-flex; align-items: center; gap: 8px; background: transparent; border: 1.5px solid currentColor; border-radius: var(--radius); color: var(--ink); font: 500 15px/1 var(--display); cursor: pointer; }
.menu-toggle .bars { width: 16px; height: 10px; position: relative; }
.menu-toggle .bars::before, .menu-toggle .bars::after { content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .2s var(--ease); }
.menu-toggle .bars::before { top: 0; } .menu-toggle .bars::after { bottom: 0; }
.menu-toggle[aria-expanded="true"] .bars::before { transform: translateY(4.25px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bars::after { transform: translateY(-4.25px) rotate(-45deg); }
.mobile-menu { position: fixed; top: var(--hdr); left: 0; right: 0; bottom: 0; background: var(--cream); padding: 24px var(--gutter) 120px; overflow-y: auto; }
.mobile-menu[hidden] { display: none; }
.mobile-menu nav a { display: block; font-family: var(--display); font-weight: 500; font-size: 30px; line-height: 1.2; padding: 14px 0; border-bottom: 1px solid var(--rule); text-decoration: none; }
.mobile-menu nav a[aria-current="page"] { color: var(--brass); }
.mobile-menu .mm-contact { margin-top: 28px; display: grid; gap: 12px; }
.mobile-menu .mm-contact .btn { width: 100%; }
@media (min-width: 1000px) {
  :root { --hdr: 84px; }
  .brand img { height: 54px; }
  .nav { display: flex; gap: 32px; margin-left: auto; }
  .nav a { font: 500 15px/1 var(--display); text-decoration: none; padding: 14px 0; position: relative; }
  .nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 2px; background: var(--brass); transform: scaleX(0); transform-origin: left; transition: transform .2s var(--ease); }
  .nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
  .hdr-actions { display: flex; align-items: center; margin-left: 12px; }
  .menu-toggle { display: none; }
  .mobile-menu { display: none !important; }
}

/* mobile call bar: appears once the in-page call buttons scroll away */
.callbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: var(--ink); transform: translateY(110%); transition: transform .3s var(--ease); }
body.cb-show .callbar { transform: none; }
.callbar a { min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: var(--radius); font: 500 16px/1 var(--display); text-decoration: none; }
.callbar .cb-call { background: var(--brass); color: #fff; }
.callbar .cb-enq { border: 1.5px solid rgba(245,239,220,.5); color: var(--on-dark); }
.callbar svg { width: 18px; height: 18px; }
@media (min-width: 1000px) { .callbar { display: none; } }

/* home hero: cream field, photo cut on the logo's slanted edge, the logo's ladder rails hooked over it */
.hero { position: relative; background: var(--cream); padding-top: var(--hdr); overflow: hidden; }
.hero-photo-wrap { position: relative; }
.kb .hero-photo-img { width: 100%; height: 44svh; min-height: 270px; object-fit: cover; object-position: 35% 55%; clip-path: polygon(0 0, 100% 0, 100% 100%, 16% 100%); }
.rails { position: absolute; left: 3%; bottom: -8px; width: 60px; height: 60px; color: var(--brass); }
.hero-text { position: relative; padding-top: 26px; padding-bottom: 40px; }
.hero h1 { color: var(--ink); }
.hero .h1-main { display: block; font-size: clamp(38px, 6vw, 88px); line-height: 1.03; letter-spacing: -0.03em; }
.hero .h1-sub { display: block; font-family: var(--text); font-weight: 400; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.45; letter-spacing: 0; margin-top: 18px; color: var(--ink-2); max-width: 34ch; }
.hero .hero-lede { margin-top: 8px; font-size: 16px; color: var(--muted); }
.hero .actions { margin-top: 24px; }
@media (max-width: 999px) { .hero .actions .btn { flex: 1 1 100%; } }
@media (min-width: 1000px) {
  .hero { min-height: min(100svh, 920px); display: flex; align-items: center; }
  .hero-photo-wrap { position: absolute; top: var(--hdr); right: 0; bottom: 0; width: 64%; }
  .kb .hero-photo-img { height: 100%; min-height: 0; clip-path: polygon(var(--slant) 0, 100% 0, 100% 100%, 0 100%); object-position: 30% 55%; }
  .rails { left: -1.5%; bottom: 10%; width: 120px; height: 120px; }
  .hero-text { width: 100%; padding-top: 48px; padding-bottom: 64px; }
  .hero-text > * { max-width: 520px; }
}

/* sections */
.section { padding: var(--section) 0; }
.dark { background: var(--slate); color: var(--on-dark); }
.dark .lede, .dark .body-copy { color: var(--on-dark-2); }
.khaki { background: var(--khaki); color: var(--ink); }
.khaki .lede { color: var(--ink); }

/* statement + build path drawn as the logo's parallelograms */
.statement { font-size: clamp(28px, 3.4vw, 48px); line-height: 1.18; max-width: 27ch; }
.path { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 8px; margin-top: 40px; position: relative; z-index: 0; }
.path li { position: relative; font: 500 15px/1 var(--display); padding: 14px 26px; color: var(--ink); }
.path li::before { content: ""; position: absolute; inset: 0; border: 1.5px solid var(--brass); transform: skewX(-38deg); z-index: -1; }
.path li:first-child::before { background: var(--brass); }
.path li:first-child { color: #fff; }

/* pool styles: alternating rows, photos cut on the logo's slant */
.styles { padding-top: 0; }
.styles .h2 { margin-bottom: clamp(32px, 4vw, 56px); }
.style-rows { display: grid; gap: clamp(48px, 6vw, 96px); }
.style-row { display: grid; gap: 20px; align-items: center; }
.slant-fig { margin: 0; }
.slant-fig img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.style-copy h3 { font-family: var(--display); font-weight: 500; font-size: clamp(30px, 3.4vw, 48px); line-height: 1.05; letter-spacing: -0.02em; text-wrap: balance; }
.style-copy p:not(.caption) { margin-top: 14px; font-size: 18px; color: var(--ink-2); max-width: 40ch; }
@media (min-width: 900px) {
  .style-row { grid-template-columns: 1.5fr 1fr; gap: 56px; }
  .style-row.flip { grid-template-columns: 1fr 1.5fr; }
  .style-row.flip .slant-fig { order: 2; }
}
.note { margin-top: 40px; }

/* signature: fit out the pool (the logo's pool, with its equipment switched on and off) */
.kit-head { display: grid; gap: 16px; margin-bottom: 40px; }
@media (min-width: 900px) { .kit-head { grid-template-columns: 1fr 1.2fr; align-items: end; gap: 64px; } }
.kit-grid { display: grid; gap: 32px; }
@media (min-width: 1000px) { .kit-grid { grid-template-columns: 1.45fr 1fr; gap: 64px; align-items: start; } }
.kit-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.kit-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px; font: 500 15px/1 var(--display); color: var(--ink); background: transparent; border: 1.5px solid var(--ink); border-radius: var(--radius); cursor: pointer; transition: background-color .16s, color .16s; }
.kit-btn .kit-sw { width: 26px; height: 14px; border-radius: 7px; border: 1.5px solid currentColor; position: relative; box-sizing: border-box; }
.kit-btn .kit-sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 7px; height: 7px; border-radius: 50%; background: currentColor; transition: transform .2s var(--ease); }
.kit-btn[aria-pressed="true"] { background: var(--ink); color: var(--cream); }
.kit-btn[aria-pressed="true"] .kit-sw::after { transform: translateX(12px); }
.kit-svg { width: 100%; height: auto; display: block; overflow: visible; }
.kit-svg .k-water { fill: #4f8a92; }
.kit-svg .k-edge { fill: none; stroke: var(--brass); stroke-width: 16; stroke-linejoin: miter; }
.kit-svg .k-rails { fill: none; stroke: var(--brass); stroke-width: 12; }
.kit-svg .k-ripples path { fill: none; stroke: rgba(245,239,220,.38); stroke-width: 2; }
.kit-svg .k-cover > path:first-child { fill: #2c6693; }
.kit-svg .k-slats { fill: none; stroke: rgba(245,239,220,.32); stroke-width: 2; }
.kit-svg .k-cover { transition: transform .8s var(--ease); }
.kit-svg .k-part.is-off .k-cover { transform: translateX(-660px); }
.kit-svg .k-bot rect { fill: var(--ink); }
.kit-svg .k-bot path { stroke: var(--ink); stroke-width: 5; }
.kit-svg .k-bot { animation: bot 10s ease-in-out infinite alternate; }
@keyframes bot { 0% { transform: translate(0, 0); } 50% { transform: translate(180px, -140px); } 100% { transform: translate(-110px, -40px); } }
.kit-svg .k-roof, .kit-svg .k-thin, .kit-svg .k-pipe { fill: none; stroke: var(--ink); stroke-width: 3; }
.kit-svg .k-box { fill: var(--cream-2); stroke: var(--ink); stroke-width: 3; }
.kit-svg .k-solar { fill: none; stroke: var(--ink); stroke-width: 5; }
.kit-svg .k-pipe { stroke-width: 4; }
.kit-svg .k-heat { fill: none; stroke: #9c4626; stroke-width: 3; stroke-linecap: round; animation: heat 2.4s ease-in-out infinite; }
@keyframes heat { 0%, 100% { opacity: .3; transform: translateY(4px); } 50% { opacity: 1; transform: translateY(-4px); } }
.kit-svg .k-part { transition: opacity .35s var(--ease); }
.kit-svg .k-part.is-off { opacity: 0; }
.kit-svg .k-part[data-part="cover"].is-off { opacity: 1; }
.kit-list { border-top: 1.5px solid var(--ink); }
.kit-item { padding: 18px 0; border-bottom: 1px solid rgba(31,35,40,.3); transition: opacity .3s var(--ease); }
.kit-item h3 { font-family: var(--display); font-weight: 500; font-size: 22px; }
.kit-item p { margin-top: 6px; color: var(--ink); }
.kit-item .kit-fact { font-size: 15px; color: #2b2a26; }
.kit-item.is-off { opacity: .62; }
.kit-list > p { margin-top: 12px; }

/* after the build */
.after-grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 1000px) { .after-grid { grid-template-columns: 1fr 1fr; gap: 80px; } }
.svc { margin: 28px 0 32px; border-top: 1px solid var(--rule); }
.svc div { display: grid; gap: 4px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.svc dt { font-family: var(--display); font-weight: 500; font-size: 20px; }
.svc dd { margin: 0; color: var(--ink-2); }
@media (min-width: 600px) { .svc div { grid-template-columns: 11em 1fr; gap: 20px; } }

/* FAQ */
.faq { padding-top: 0; }
.faq .h2 { margin-bottom: 32px; }
.faq-cols { display: grid; gap: 0 64px; }
.faq-item { padding: 24px 0; border-top: 1px solid var(--rule); }
.faq-item h3 { font-family: var(--display); font-weight: 500; font-size: 20px; line-height: 1.3; margin-bottom: 8px; }
.faq-item p { color: var(--ink-2); max-width: 62ch; }
@media (min-width: 900px) { .faq-cols { grid-template-columns: 1fr 1fr; } }

/* close */
.close { background: var(--slate); color: var(--on-dark); padding: clamp(64px, 7vw, 104px) 0; }
.close-grid { display: grid; gap: 24px; }
.close .lede { color: var(--on-dark-2); }
.close .actions { margin-top: 24px; }
.close-meta { margin-top: 20px; font-size: 15px; color: var(--on-dark-2); }
.close-meta a { color: var(--on-dark); display: inline-block; padding: 12px 0; }
@media (min-width: 900px) { .close-grid { grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; } }

/* inner page hero */
.page-hero { padding: calc(var(--hdr) + clamp(36px, 5vw, 80px)) 0 clamp(36px, 4vw, 64px); }
.page-hero .crumb { font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.page-hero .crumb a { color: var(--muted); display: inline-block; padding: 12px 0; }
.page-hero h1 { font-family: var(--display); font-weight: 500; letter-spacing: -0.03em; line-height: 1.03; font-size: clamp(38px, 5.4vw, 78px); max-width: 15ch; text-wrap: balance; }
.page-hero .actions { margin-top: 24px; }
.page-hero-grid { display: grid; gap: 24px; }
@media (min-width: 1000px) { .page-hero-grid { grid-template-columns: 1.3fr 1fr; align-items: end; gap: 64px; } }
.hero-photo { margin: 0; }
.hero-photo img { width: 100%; aspect-ratio: 21 / 8; object-fit: cover; }
@media (max-width: 699px) { .hero-photo img { aspect-ratio: 4 / 3; } }

/* editorial lists (services) */
.elist { list-style: none; border-top: 1px solid var(--rule); }
.elist li { display: grid; gap: 6px; padding: 20px 0; border-bottom: 1px solid var(--rule); }
.elist .e-name { font-family: var(--display); font-weight: 500; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.1; }
.elist .e-desc { color: var(--ink-2); max-width: 56ch; }
@media (min-width: 900px) { .elist li { grid-template-columns: 1fr 1.5fr; gap: 32px; align-items: baseline; } }

/* services */
.subnav-bar { position: sticky; top: var(--hdr); z-index: 50; background: rgba(245,239,220,.97); box-shadow: 0 1px 0 var(--rule); }
.subnav { display: flex; gap: 24px; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
@media (min-width: 1000px) { .subnav { -webkit-mask-image: none; mask-image: none; } }
.subnav a { white-space: nowrap; font: 500 15px/1 var(--display); text-decoration: none; padding: 16px 0; }
.subnav a:hover { color: var(--brass); }
.cat { display: grid; gap: 28px; padding: clamp(56px, 7vw, 104px) 0; border-top: 1px solid var(--rule); scroll-margin-top: calc(var(--hdr) + 56px); }
.cat:first-of-type { border-top: 0; }
@media (min-width: 1000px) { .cat { grid-template-columns: .9fr 1.6fr; gap: 72px; } .cat .cat-head { position: sticky; top: calc(var(--hdr) + 72px); align-self: start; } }
.cat .cat-head p { margin-top: 16px; color: var(--ink-2); max-width: 40ch; }
.cat-photo { margin: 28px 0 0; }
.cat-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.prod-list { list-style: none; border-top: 1px solid var(--rule); }
.prod { display: grid; gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--rule); }
.prod.noimg { grid-template-columns: 1fr; }
.prod h3 { font-family: var(--display); font-weight: 500; font-size: clamp(22px, 2vw, 28px); line-height: 1.15; }
.prod p { margin-top: 8px; color: var(--ink-2); max-width: 62ch; }
.prod ul { margin-top: 10px; padding-left: 18px; color: var(--ink-2); list-style: disc; }
.prod ul li + li { margin-top: 4px; }
.cmp-wrap { overflow-x: auto; margin-bottom: 8px; }
.cmp { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 16px; }
.cmp caption { text-align: left; font-family: var(--display); font-weight: 500; font-size: 20px; padding-bottom: 12px; }
.cmp th, .cmp td { text-align: left; vertical-align: top; padding: 12px 16px 12px 0; border-bottom: 1px solid var(--rule); }
.cmp thead th { font-family: var(--display); font-weight: 500; border-bottom: 1.5px solid var(--ink); }
.cmp tbody th { font-weight: 500; width: 20%; }
.cmp td { color: var(--ink-2); }
.cmp-note { font-size: 14px; color: var(--muted); margin: 8px 0 24px; }
.twocol-list { columns: 2; column-gap: 32px; list-style: none; }
.twocol-list li { break-inside: avoid; padding: 10px 0; border-bottom: 1px solid var(--rule); }
@media (max-width: 520px) { .twocol-list { columns: 1; } }

/* gallery */
.gal-group { padding-top: clamp(48px, 6vw, 88px); }
.gal-group:first-child { padding-top: 0; }
.gal-group .gh { display: grid; gap: 12px; margin-bottom: 28px; }
@media (min-width: 900px) { .gal-group .gh { grid-template-columns: 1fr 1fr; align-items: end; gap: 64px; } }
.gal { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.gal figure { margin: 0; }
.gal a { display: block; overflow: hidden; background: var(--ink); }
.gal img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 2; transition: transform .8s var(--ease); }
.gal a:hover img { transform: scale(1.03); }
.gal figcaption { font-size: 14px; color: var(--muted); padding: 10px 0 6px; line-height: 1.4; }
.gal .w2 { grid-column: span 2; }
.gal .tall img { aspect-ratio: 2 / 3; }
@media (min-width: 900px) {
  .gal { grid-template-columns: repeat(12, 1fr); gap: 20px; }
  .gal figure { grid-column: span 4; }
  .gal .w2 { grid-column: span 8; }
  .gal .w6 { grid-column: span 6; }
  .gal .w12 { grid-column: span 12; }
  .gal .w12 img { aspect-ratio: 21 / 9; }
  .gal .w2 img { aspect-ratio: 16 / 10; }
  .gal .tall { grid-row: span 2; }
  .gal .tall img { aspect-ratio: auto; height: 100%; }
  .gal .tall a { height: calc(100% - 44px); }
}
.gal-note { margin-top: 16px; font-size: 14px; color: var(--muted); max-width: 70ch; }

/* lightbox */
.lightbox { border: 0; padding: 0; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; background: rgba(20,23,27,.96); color: var(--on-dark); }
.lightbox::backdrop { background: rgba(20,23,27,.9); }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; }
.lb-top { display: flex; justify-content: flex-end; padding: 12px; }
.lb-btn { min-width: 48px; min-height: 48px; border-radius: var(--radius); border: 1.5px solid rgba(245,239,220,.4); background: transparent; color: var(--on-dark); font: 500 15px var(--display); cursor: pointer; padding: 0 14px; }
.lb-btn:hover { background: rgba(245,239,220,.1); }
.lb-stage { display: grid; place-items: center; padding: 0 12px; min-height: 0; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lb-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 12px 20px; }
.lb-cap { font-size: 15px; color: var(--on-dark-2); text-align: center; flex: 1; }

/* about */
.about-grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 1fr 1.1fr; gap: 96px; } }
.pull { font-family: var(--display); font-weight: 400; font-size: clamp(26px, 3vw, 42px); line-height: 1.2; letter-spacing: -0.015em; max-width: 24ch; }
.pull-src { margin-top: 20px; font-size: 15px; color: var(--on-dark-2); }
.facts { border-top: 1px solid var(--rule); }
.facts div { display: grid; grid-template-columns: 9em 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.facts dt { font-size: 15px; color: var(--muted); }
.facts dd { margin: 0; font-weight: 500; }
.sec-head { display: grid; gap: 20px; margin-bottom: clamp(32px, 4vw, 56px); }
@media (min-width: 900px) { .sec-head.split { grid-template-columns: 1.1fr 1fr; align-items: start; gap: 64px; } }
.kart-grid { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.kart-grid figure { margin: 0; }
.kart-grid .big { grid-column: span 2; }
.kart-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.kart-grid .big img { aspect-ratio: 16 / 10; }
@media (min-width: 900px) { .kart-grid { grid-template-columns: 1.4fr 1fr; gap: 20px; } .kart-grid .big { grid-column: 1; grid-row: span 2; } .kart-grid .big img { aspect-ratio: auto; height: 100%; } }

/* contact */
.contact-grid { display: grid; gap: 48px; }
@media (min-width: 1000px) { .contact-grid { grid-template-columns: 1fr 1.1fr; gap: 96px; } }
.tel-hero { white-space: nowrap; font-family: var(--display); font-weight: 500; font-size: clamp(34px, 3.8vw, 52px); line-height: 1; letter-spacing: -0.02em; text-decoration: none; display: inline-block; border-bottom: 2px solid var(--brass); padding-bottom: 6px; }
.tel-hero:hover { color: var(--brass); }
.dl { border-top: 1px solid var(--rule); margin-top: 32px; }
.dl div { display: grid; grid-template-columns: 8em 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.dl dt { color: var(--muted); font-size: 15px; }
.dl dd { margin: 0; }
.form { background: var(--cream-2); padding: clamp(24px, 4vw, 48px); box-shadow: inset 0 0 0 1px var(--rule); }
.form h2 { margin-bottom: 8px; }
.form .fnote { color: var(--muted); font-size: 15px; margin-bottom: 24px; }
.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field label { font-size: 15px; font-weight: 500; }
.field input, .field textarea { font: 400 16px/1.4 var(--text); color: var(--ink); background: #fff; border: 1px solid rgba(31,35,40,.34); border-radius: var(--radius); padding: 13px 14px; min-height: 50px; width: 100%; box-sizing: border-box; }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--brass); outline-offset: 0; border-color: var(--brass); }
.two { display: grid; gap: 0 16px; }
@media (min-width: 600px) { .two { grid-template-columns: 1fr 1fr; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0 0 18px; }
.chips legend { margin-bottom: 8px; font-size: 15px; font-weight: 500; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid rgba(31,35,40,.34); border-radius: 999px; font-size: 15px; background: #fff; cursor: pointer; }
.chip input:checked + span { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.chip input:focus-visible + span { outline: 2px solid var(--brass); outline-offset: 2px; }
.form-msg { margin-top: 18px; padding: 16px 18px; background: var(--cream); box-shadow: inset 0 0 0 1px var(--brass); }
.form-msg[hidden] { display: none; }

/* footer */
.site-footer { background: var(--ink); color: var(--on-dark-2); padding: clamp(56px, 7vw, 96px) 0 calc(96px + env(safe-area-inset-bottom)); font-size: 15px; }
@media (min-width: 1000px) { .site-footer { padding-bottom: 40px; } }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: var(--brass-on-dark); text-decoration: underline; text-underline-offset: 4px; }
.foot-grid { display: grid; gap: 40px; }
.foot-grid img { height: 56px; width: auto; }
.foot-grid h2 { font: 300 14px/1.4 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--on-dark-2); margin-bottom: 14px; }
.foot-grid ul { list-style: none; display: grid; gap: 4px; }
.foot-grid ul a { display: inline-block; padding: 8px 0; }
.foot-blurb { margin-top: 28px; max-width: 34ch; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; } }
.foot-base { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--rule-dark); display: grid; font-size: 14px; }
.foot-base a { display: inline-block; padding: 10px 0; text-decoration: underline; text-underline-offset: 3px; }

/* reveal: armed only after a real user gesture */
.js .rv.rv-wait { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .9s var(--ease); }
.js .rv.rv-wait.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rv.rv-wait { opacity: 1; transform: none; transition: none; }
  .kb *, .kb *::before, .kb *::after { transition-duration: .01ms !important; animation: none !important; }
}

.kit-svg .k-label { font: 500 17px var(--display); fill: var(--ink); }
.kit-svg .k-part.is-off .k-label { opacity: 0; }
.path { padding-left: 14px; }

/* ===== round 4 fixes ===== */
.rails { display: none; }
.hero .h1-main { font-weight: 300; font-size: clamp(42px, 5.6vw, 84px); line-height: 1.02; letter-spacing: -0.035em; }
.hero .h1-sub { margin-top: 22px; }
.hero .actions { margin-top: 28px; }
.hero .hero-lede { margin-top: 14px; }
.h2, .statement { font-weight: 300; letter-spacing: -0.03em; }
.h2 { font-size: clamp(34px, 3.8vw, 56px); }
.statement { font-size: clamp(30px, 3vw, 44px); line-height: 1.12; max-width: 18ch; }
.intro-grid { display: grid; gap: 40px; }
@media (min-width: 1000px) { .intro-grid { grid-template-columns: 1fr 1fr; gap: 96px; align-items: start; } }
.steps { list-style: none; border-top: 1px solid var(--rule); counter-reset: st; }
.steps li { counter-increment: st; display: grid; grid-template-columns: 2em 1fr; gap: 2px 12px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.steps li::before { content: counter(st); font: 500 15px/1.75 var(--display); color: var(--brass); grid-row: span 2; font-variant-numeric: tabular-nums; }
.steps h3 { font-family: var(--display); font-weight: 500; font-size: 19px; line-height: 1.35; }
.steps p { color: var(--ink-2); grid-column: 2; }
.styles-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 28px; }
.lead-fig, .trio-item { margin: 0; }
.lead-fig img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; object-position: 50% 70%; }
.lead-fig figcaption, .trio-item figcaption { padding-top: 14px; }
.lead-fig h3, .trio-item h3 { font-family: var(--display); font-weight: 500; font-size: 22px; }
.lead-fig p, .trio-item p { color: var(--ink-2); margin-top: 4px; max-width: 46ch; }
@media (min-width: 900px) { .lead-fig figcaption { display: grid; grid-template-columns: 1fr 2fr; gap: 24px; align-items: baseline; } }
.trio { display: grid; gap: 28px; margin-top: 40px; }
.trio-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (min-width: 900px) { .trio { grid-template-columns: 1.35fr 1fr 1fr; gap: 24px; align-items: start; } .trio-item:first-child img { aspect-ratio: 16 / 10; } .trio-item:not(:first-child) img { aspect-ratio: 1 / 1; } }
.pause { margin: 0; }
.pause img { width: 100%; height: min(78vh, 820px); min-height: 300px; object-fit: cover; object-position: 50% 38%; }
@media (max-width: 699px) { .pause img { height: auto; min-height: 0; aspect-ratio: 4 / 3; } }
.after-grid { align-items: start; }
.after .svc { margin: 0; }
/* kit on the slate (water) field */
.kit.dark .lede { color: var(--on-dark-2); }
.kit-btn { color: var(--on-dark); border-color: rgba(245,239,220,.6); gap: 12px; }
.kit-btn .kit-state { font: 500 12px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; padding: 4px 6px; border: 1px solid currentColor; border-radius: 2px; }
.kit-btn[aria-pressed="true"] { background: var(--brass-on-dark); color: var(--ink); border-color: var(--brass-on-dark); }
.kit-svg .k-roof, .kit-svg .k-thin, .kit-svg .k-pipe, .kit-svg .k-solar { stroke: var(--on-dark); }
.kit-svg .k-box { fill: #3a4a63; stroke: var(--on-dark); }
.kit-svg .k-label { fill: var(--on-dark); font-size: 19px; }
.kit-svg .k-bot rect { fill: #142028; }
.kit-svg .k-bot path { stroke: #142028; }
.kit-svg .k-edge, .kit-svg .k-rails { stroke: var(--brass-on-dark); }
.kit-svg .k-heat { stroke: #e08a5c; }
@media (max-width: 699px) { .kit-svg .k-label { font-size: 30px; } }
.kit-list { border-top-color: var(--on-dark); }
.kit-item { border-bottom-color: var(--rule-dark); }
.kit-item p, .kit-item .kit-fact { color: var(--on-dark-2); }
.kit-item h3 { color: var(--on-dark); }
.kit-item.is-off { opacity: 1; }
.kit-item.is-off h3::after { content: " (off)"; font-weight: 300; color: var(--on-dark-2); }
@media (min-width: 1000px) { .kit-grid { align-items: center; } }
.kb .dark .btn-brass, .kb .close .btn-brass { background: var(--brass-on-dark); color: var(--ink); }
.kb .dark .btn-brass:hover, .kb .close .btn-brass:hover { background: #e6d9aa; color: var(--ink); }
/* services comparison: cards on phones */
.cmp-cards { display: none; }
@media (max-width: 699px) {
  .cmp-wrap { display: none; }
  .cmp-cards { display: grid; gap: 12px; margin-bottom: 8px; }
  .cmp-card { padding: 16px; box-shadow: inset 0 0 0 1px var(--rule); background: var(--cream-2); }
  .cmp-card h4 { font: 500 18px/1.3 var(--display); margin: 0 0 8px; }
  .cmp-card dl { margin: 0; display: grid; grid-template-columns: 7.5em 1fr; gap: 6px 12px; font-size: 15px; }
  .cmp-card dt { color: var(--muted); }
  .cmp-card dd { margin: 0; color: var(--ink-2); }
}
