/* Chilli Plumbing Co — styles. Mobile first. Fine line drawings, mostly white, their blue and red used sparingly. */

@font-face { font-family: "Literata"; src: url("/fonts/literata.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Literata"; src: url("/fonts/literata-italic.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Mulish"; src: url("/fonts/mulish.woff2") format("woff2"); font-weight: 400 800; font-style: normal; font-display: swap; }

:root {
  --ink: #181C1C;          /* their dark text colour */
  --muted: #4A4E57;        /* their grey */
  --blue: #27469C;         /* logo wordmark */
  --blue-deep: #1D3577;
  --red: #EC1C24;          /* logo "lli" and the 45° corner on their site; drawings and marks only */
  --red-text: #C3141B;     /* the same red, deep enough for small text on white */
  --paper: #FFFFFF;
  --mist: #F6F7F9;
  --rule: #E3E5EA;
  --serif: "Literata", Georgia, "Times New Roman", serif;
  --sans: "Mulish", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --gut: 20px;
  --max: 1160px;
  --head-h: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 80px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--sans); }
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
img { height: auto; }
a { color: var(--blue); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--blue-deep); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.12; letter-spacing: -.01em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 1.4rem + 3vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; text-wrap: pretty; }
em { font-family: var(--serif); font-style: italic; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--ink); color: #fff; font-weight: 700; }
.skip:focus { top: 12px; color: #fff; }

/* the small caps line over a heading */
.kick { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font: 800 .74rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--blue); }
.kick::before { content: ""; width: 12px; height: 12px; background: linear-gradient(135deg, var(--red) 50%, transparent 50%); flex: none; }

/* ---------- buttons: one corner cut at 45°, the angle from their site ---------- */
.btn { --cut: 12px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 22px; border: 0; border-radius: 0; font: 800 1rem/1 var(--sans); letter-spacing: .01em; text-decoration: none; cursor: pointer; clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%); transition: background-color .2s, color .2s, transform .2s var(--ease); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-call { background: var(--blue); color: #fff; }
.btn-call:hover { background: var(--blue-deep); color: #fff; }
.btn-line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); clip-path: none; }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn:active { transform: translateY(1px); }
.ico { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- header: shorter once you scroll, never loses the number ---------- */
.hd { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid transparent; transition: border-color .25s, box-shadow .25s; }
.hd-in { display: flex; align-items: center; gap: 12px; height: var(--head-h); transition: height .25s var(--ease); }
.hd-logo { flex: none; display: block; }
.hd-logo img { width: 104px; height: auto; transition: width .25s var(--ease); }
.hd-nav { display: none; }
.hd-tel { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font: 800 1rem/1 var(--sans); color: var(--ink); text-decoration: none; white-space: nowrap; }
.hd-tel svg { width: 18px; height: 18px; color: var(--red); }
.hd-tel span { display: none; }
.menu { position: relative; }
.menu > summary { list-style: none; display: grid; place-items: center; width: 44px; height: 44px; cursor: pointer; }
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary svg { width: 24px; height: 24px; }
.menu-list { position: absolute; right: -8px; top: 52px; width: min(300px, calc(100vw - 24px)); margin: 0; padding: 10px 0; list-style: none; background: #fff; border: 1px solid var(--rule); box-shadow: 0 18px 40px rgba(24, 28, 28, .12); }
.menu-list a { display: block; padding: 12px 20px; color: var(--ink); text-decoration: none; font-weight: 700; }
.menu-list a[aria-current="page"] { color: var(--blue); }
.menu-list a:hover { background: var(--mist); }
.menu-list .menu-sub a { padding-left: 34px; font-weight: 500; color: var(--muted); }
html.is-scrolled .hd { border-bottom-color: var(--rule); box-shadow: 0 6px 24px rgba(24, 28, 28, .06); }
html.is-scrolled .hd-in { height: 54px; }
html.is-scrolled .hd-logo img { width: 86px; }

/* ---------- phone bar: slims to Call while reading down, both buttons when you scroll back up ---------- */
.cb { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: flex; gap: 8px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); border-top: 1px solid var(--rule); backdrop-filter: blur(8px); transition: transform .3s var(--ease); }
.cb .btn { flex: 1 1 0; min-height: 48px; padding: 0 12px; font-size: .95rem; white-space: nowrap; transition: flex-grow .3s var(--ease), padding .3s, opacity .2s; }
.cb .btn-call { flex-grow: 1.55; }
.cb .btn-line { white-space: nowrap; overflow: hidden; }
html.is-down .cb .btn-line { flex-grow: 0; flex-basis: 0; padding: 0; opacity: 0; box-shadow: none; }
html.is-down .cb { gap: 0; }

/* ---------- hero: the question they typed, answered ---------- */
.hero { padding: 22px 0 8px; overflow: hidden; }
.q { display: flex; align-items: center; gap: 10px; max-width: 460px; height: 48px; padding: 0 16px; margin: 0 0 22px; border: 1.5px solid var(--ink); border-radius: 999px; background: #fff; font: 600 .98rem/1 var(--sans); color: var(--ink); }
.q svg { width: 18px; height: 18px; flex: none; }
.q-text { overflow: hidden; white-space: nowrap; text-overflow: clip; }
.q-caret { width: 1.5px; height: 1.2em; background: var(--red); flex: none; margin-left: -6px; }
html.js .q-caret { animation: blink 1.05s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero h1 { max-width: 13em; margin-bottom: 14px; }
.hero h1 em { color: var(--blue); }
.lede { max-width: 34em; font-size: 1.06rem; color: var(--muted); margin-bottom: 20px; }
.acts { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.acts .btn { flex: 1 1 200px; }
.facts { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0; list-style: none; font-size: .88rem; font-weight: 700; color: var(--muted); }
.facts li { display: flex; align-items: center; gap: 6px; }
.facts svg { width: 14px; height: 14px; color: var(--red); }
.ans { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; margin: 0 0 20px; padding: 12px 14px; max-width: 460px; background: var(--mist); color: var(--ink); text-decoration: none; position: relative; }
.ans::before { content: ""; position: absolute; left: 0; top: 0; width: 14px; height: 14px; background: linear-gradient(135deg, var(--red) 50%, transparent 50%); }
.ans small { display: block; font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); }
.ans b { display: block; font-weight: 700; font-size: .95rem; line-height: 1.35; }
.ans-ico { width: 34px; height: 34px; }
.ans-go { width: 18px; height: 18px; }
.ans:hover { background: #EEF1F6; color: var(--ink); }
html.js .ans.swap { animation: ans-in .45s var(--ease); }
@keyframes ans-in { from { opacity: 0; transform: translateY(6px); } }
.hero-map { margin: 6px -8px 0; }

/* ---------- line drawings ---------- */
.ln, .sp, .flow { fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.art .ln, .art .acc { stroke-width: 1.6; }
.ln-soft { stroke-opacity: .32; }
.ln-dots { stroke-width: 1.7; stroke-opacity: .42; }
.ln-grass { stroke-opacity: .55; }
.ln-hidden { stroke-dasharray: 4 5; stroke-opacity: .55; }
.acc { fill: none; stroke: var(--red); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.acc .drop { fill: var(--red); stroke: none; }
svg text { font-family: var(--sans); stroke: none; fill: var(--ink); }
.map text { font-size: 11.5px; font-weight: 600; paint-order: stroke; stroke: #fff; stroke-width: 4px; stroke-linejoin: round; }
.map .m-water { font-style: italic; font-weight: 500; fill: var(--muted); }
.map .m-sea { letter-spacing: .3em; font-size: 10px; fill: #8A8F98; }
.map .m-base { font-size: 14px; font-weight: 800; fill: var(--red-text); }
.m-dot { fill: #fff; stroke: var(--ink); stroke-width: 1.4; }
.m-lake { stroke-opacity: .75; }
.m-pole { stroke: var(--ink); stroke-width: 1.5; fill: none; }
.m-flag { fill: var(--red); }
.m-ring { fill: none; stroke: var(--red); stroke-width: 1.5; }
.m-pin circle:not(.m-ring) { fill: var(--ink); }
html.js .m-pin { animation: pin 1s .9s var(--ease) both; transform-box: fill-box; transform-origin: 50% 100%; }
@keyframes pin { from { opacity: 0; transform: translateY(-14px); } 60% { opacity: 1; } }
.ring-pulse { fill: none; stroke: var(--red); stroke-width: 1.2; transform-box: fill-box; transform-origin: center; }
html.js .ring-pulse { animation: pulse 2.6s 2s ease-out infinite; }
@keyframes pulse { from { transform: scale(1); opacity: .9; } to { transform: scale(3.2); opacity: 0; } }

/* lines draw themselves in once, when the drawing comes into view (only with scripts on and motion allowed) */
html.js .draw [pathLength] { stroke-dasharray: 1 1; stroke-dashoffset: 1; }
html.js .draw.in [pathLength] { animation-name: line-in; animation-duration: 1.8s; animation-timing-function: cubic-bezier(.3, .6, .2, 1); animation-fill-mode: forwards; }
@keyframes line-in { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

/* things that are alive in the drawings */
.flow { stroke: var(--red); stroke-dasharray: 6 8; stroke-width: 1.6; }
html.js .flow { animation: flow 1.6s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -28; } }
.drip, .drop { fill: var(--red); stroke: none; }
html.js .drip, html.js .acc .drop { animation: drip 2.8s ease-in infinite; }
@keyframes drip { 0%, 40% { transform: translateY(0); opacity: 0; } 45% { opacity: 1; } 80% { transform: translateY(26px); opacity: 1; } 81%, 100% { transform: translateY(26px); opacity: 0; } }
.flame { stroke: var(--red); transform-box: fill-box; transform-origin: 50% 100%; }
html.js .flame { animation: flick 1.4s ease-in-out infinite alternate; }
@keyframes flick { to { transform: scaleY(.82) scaleX(1.06); } }
html.js .steam { animation: steam 3s ease-in-out infinite; }
@keyframes steam { 0% { opacity: 0; transform: translateY(6px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(-10px); } }

/* ---------- sections ---------- */
.sec { padding: 56px 0; }
.sec-tint { background: var(--mist); }
.sh { max-width: 40em; margin-bottom: 26px; }
.sh p { color: var(--muted); margin: 0; }
.more { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-weight: 800; text-decoration: none; }
.more::after { content: ""; width: 18px; height: 1.5px; background: currentColor; transition: width .2s var(--ease); }
.more:hover::after { width: 28px; }

/* a row you swipe on a phone, with the next card showing at the edge */
.row { display: grid; grid-auto-flow: column; grid-auto-columns: 82%; gap: 14px; margin: 0 calc(var(--gut) * -1); padding: 4px var(--gut) 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gut); scrollbar-width: thin; overscroll-behavior-x: contain; list-style: none; }
.row > * { scroll-snap-align: start; }

/* the corner tag on a card: their red 45° corner */
.card { position: relative; background: #fff; border: 1px solid var(--rule); }
.card::before { content: ""; position: absolute; left: -1px; top: -1px; width: 18px; height: 18px; background: linear-gradient(135deg, var(--red) 50%, transparent 50%); z-index: 1; }

/* reviews */
.stars { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; font-weight: 700; }
.stars b { font: 500 2.6rem/1 var(--serif); }
.stars svg { width: 96px; height: 18px; color: var(--red); }
.stars span { color: var(--muted); font-size: .92rem; line-height: 1.3; }
.rv { padding: 22px 20px 20px; display: flex; flex-direction: column; }
.rv blockquote { margin: 0 0 16px; font: 500 1.06rem/1.5 var(--serif); }
.rv figcaption { margin-top: auto; font-size: .86rem; color: var(--muted); }
.rv figcaption b { color: var(--ink); }

/* services */
.sv { display: flex; flex-direction: column; color: var(--ink); text-decoration: none; transition: border-color .2s, transform .3s var(--ease); }
.sv .art { width: 100%; height: auto; aspect-ratio: 3 / 2; padding: 10px 10px 0; }
.sv-t { padding: 4px 18px 18px; }
.sv h2 { font-size: 1.25rem; }
.sv h3, .sv h2 { margin: 0 0 4px; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.sv h3::after, .sv h2::after { content: "→"; font-family: var(--sans); color: var(--blue); transition: transform .2s var(--ease); }
.sv p { margin: 0; font-size: .92rem; color: var(--muted); line-height: 1.45; }
.sv:hover { border-color: var(--ink); color: var(--ink); }
.sv:hover h3::after, .sv:hover h2::after { transform: translateX(4px); }

/* steps along a pipe */
.steps { counter-reset: s; }
.step { position: relative; padding: 0 0 0 0; }
.step-n { display: flex; align-items: center; gap: 0; margin-bottom: 14px; }
.step-n b { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border: 1.5px solid var(--ink); font: 500 1.1rem/1 var(--serif); background: #fff; }
.step-n i { flex: 1; height: 8px; border-top: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); opacity: .35; }
.step:last-child .step-n i { opacity: 0; }
.step h3 { font-size: 1.12rem; margin-bottom: 6px; }
.step p { margin: 0; font-size: .94rem; color: var(--muted); }

/* the closing call */
.closing { padding: 64px 0 72px; text-align: left; }
.closing h2 { max-width: 14em; }
.closing .tel-big { display: inline-block; margin: 4px 0 20px; font: 500 clamp(2.2rem, 1.6rem + 3vw, 3.6rem)/1 var(--serif); color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--red); }
.closing .tel-big:hover { color: var(--blue); }

/* footer */
.ft { padding: 44px 0 120px; background: var(--ink); color: #D9DCE1; font-size: .92rem; }
.ft a { color: #fff; }
.ft-grid { display: grid; gap: 28px; }
.ft-logo { width: 130px; }
.ft h2 { font: 800 .74rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: #fff; margin: 0 0 12px; }
.ft ul { margin: 0; padding: 0; list-style: none; }
.ft li { margin: 0 0 6px; }
.ft-legal { margin-top: 32px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .14); display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .82rem; color: #AEB3BB; }
.ft-legal a { color: #D9DCE1; }
.credit { margin-left: auto; }

/* ---------- the quote drawer: rises over the page, no page to go to ---------- */
.qd { position: fixed; inset: auto 0 0 0; width: 100%; max-width: 100%; max-height: 92dvh; margin: 0; padding: 0; border: 0; background: #fff; color: var(--ink); overflow: auto; box-shadow: 0 -20px 60px rgba(24, 28, 28, .25); }
.qd::backdrop { background: rgba(24, 28, 28, .45); }
.qd-in { padding: 22px var(--gut) calc(26px + env(safe-area-inset-bottom)); position: relative; }
.qd-in::before { content: ""; position: absolute; left: 0; top: 0; width: 22px; height: 22px; background: linear-gradient(135deg, var(--red) 50%, transparent 50%); }
.qd-close { position: absolute; right: 10px; top: 10px; width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: transparent; cursor: pointer; color: var(--ink); }
.qd-close svg { width: 22px; height: 22px; }
.qd h2 { font-size: 1.6rem; margin: 6px 0 4px; padding-right: 40px; }
.qd-sub { color: var(--muted); font-size: .95rem; margin-bottom: 16px; }
html.js .qd:popover-open { animation: rise .38s var(--ease); }
@keyframes rise { from { transform: translateY(40px); opacity: 0; } }
.qd-next { margin: 18px 0 0; padding: 0; list-style: none; font-size: .86rem; color: var(--muted); display: grid; gap: 6px; }
.qd-next li { display: flex; gap: 10px; }
.qd-next li::before { content: ""; flex: none; width: 10px; height: 10px; margin-top: .45em; background: linear-gradient(135deg, var(--red) 50%, transparent 50%); }

/* forms */
.f { display: grid; gap: 12px; }
.f-row { display: grid; gap: 12px; }
.f label { display: grid; gap: 5px; font-weight: 700; font-size: .9rem; }
.f input, .f textarea { width: 100%; min-height: 48px; padding: 11px 13px; font: 400 16px/1.4 var(--sans); color: var(--ink); background: #fff; border: 1.5px solid #9AA0AA; border-radius: 0; }
.f textarea { min-height: 96px; resize: vertical; }
.f input:focus, .f textarea:focus { outline: 2px solid var(--blue); outline-offset: 0; border-color: var(--blue); }
.f .btn { width: 100%; margin-top: 4px; }
.f .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.f-note { font-size: .8rem; color: var(--muted); margin: 0; }
.noted { display: none; margin: 0; padding: 12px 14px; background: var(--mist); font-size: .9rem; }
.noted.has { display: block; }
.noted b { display: block; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin-bottom: 6px; }
.noted ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.noted li { display: inline-flex; align-items: center; gap: 6px; padding: 4px 4px 4px 10px; background: #fff; border: 1px solid var(--rule); font-weight: 700; }
.noted button { width: 26px; height: 26px; border: 0; background: transparent; cursor: pointer; font-size: 1.1rem; line-height: 1; color: var(--muted); }

/* ---------- inner pages ---------- */
.ph { padding: 26px 0 8px; }
.crumbs { margin: 0 0 18px; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; font-size: .84rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: #A9AEB6; }
.crumbs a { color: var(--muted); }
.ph h1 { max-width: 15em; }
.ph-art { margin: 8px 0 0; border: 1px solid var(--rule); background: #fff; position: relative; }
.ph-art::before { content: ""; position: absolute; left: -1px; top: -1px; width: 22px; height: 22px; background: linear-gradient(135deg, var(--red) 50%, transparent 50%); z-index: 1; }
.ph-art .art { width: 100%; height: auto; }
.prose { max-width: 40em; }
.prose h2 { margin-top: 1.4em; font-size: clamp(1.4rem, 1.2rem + 1vw, 1.9rem); }
.prose ul { padding-left: 1.1em; }
.ticks { margin: 0; padding: 0; list-style: none; display: grid; gap: 0; border-top: 1px solid var(--rule); }
.ticks li { display: flex; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--rule); }
.ticks li::before { content: ""; flex: none; width: 12px; height: 12px; margin-top: .45em; background: linear-gradient(135deg, var(--red) 50%, transparent 50%); }
.faq { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; cursor: pointer; list-style: none; font: 500 1.08rem/1.35 var(--serif); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.4rem/1 var(--sans); color: var(--blue); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 6px; }
.band { padding: 26px 22px; background: var(--mist); position: relative; }
.band::before { content: ""; position: absolute; left: 0; top: 0; width: 18px; height: 18px; background: linear-gradient(135deg, var(--red) 50%, transparent 50%); }
.band h2 { font-size: 1.5rem; }
.two { display: grid; gap: 40px; }
.side-list { margin: 0; padding: 0; list-style: none; }
.side-list li { border-bottom: 1px solid var(--rule); }
.side-list a { display: flex; justify-content: space-between; padding: 14px 0; color: var(--ink); text-decoration: none; font-weight: 700; }
.side-list a::after { content: "→"; color: var(--blue); }
.side-list a:hover { color: var(--blue); }
.area-list { columns: 2; gap: 24px; margin: 0; padding: 0; list-style: none; }
.area-list li { padding: 6px 0; break-inside: avoid; border-bottom: 1px solid var(--rule); }
.plain-page { padding: 34px 0 60px; }
.faq-h, .side-h { font-size: 1.35rem; margin-top: 1.6em; }
.side-h { margin-top: 32px; }
.band .btn { margin-top: 4px; }
.tel-mid { font: 500 1.9rem/1 var(--serif); color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--red); }
.side-plain { margin: 0; padding: 0; list-style: none; font-size: .95rem; }
.side-plain li { margin: 0 0 6px; }
.nf-art { max-width: 420px; margin: 0 0 10px; }
.nf-list { max-width: 420px; margin-top: 10px; }
.pipe-wrap { position: relative; margin-bottom: 20px; }
.plain-page .prose h2 { font-size: 1.35rem; }

/* the step-by-step page: one pipe runs down it, with a 45° bend at every step */
.pipe { list-style: none; margin: 0; padding: 0; position: relative; }
.pipe > li { position: relative; padding: 0 0 40px 64px; }
.pipe > li::before { content: ""; position: absolute; left: 17px; top: 44px; bottom: 0; width: 8px; border-left: 1.5px solid var(--ink); border-right: 1.5px solid var(--ink); opacity: .3; }
.pipe > li:last-child::before { display: none; }
.pipe-n { position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 42px; height: 42px; border: 1.5px solid var(--ink); background: #fff; font: 500 1.15rem/1 var(--serif); }
.pipe-n::after { content: ""; position: absolute; right: -1.5px; top: -1.5px; width: 12px; height: 12px; background: linear-gradient(225deg, var(--red) 50%, transparent 50%); }
.pipe h2 { font-size: 1.35rem; margin: 6px 0 8px; }
.pipe p { color: var(--muted); max-width: 36em; }
.pipe .ico-step { width: 64px; height: 44px; margin-bottom: 8px; }
.water { position: absolute; left: 20px; top: 44px; width: 2px; bottom: 40px; background: var(--red); transform-origin: top; transform: scaleY(1); }
html.js .water { transform: scaleY(var(--fill, 0)); }

/* ---------- arrive as you scroll (scripts on, motion allowed) ---------- */
html.js .rise { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
html.js .rise.in { opacity: 1; transform: none; }

/* a service's drawing carries across from its card to the top of its page */
@view-transition { navigation: auto; }
.vt-plumbing { view-transition-name: art-plumbing; }
.vt-drainage { view-transition-name: art-drainage; }
.vt-gas { view-transition-name: art-gas; }
.vt-hot-water { view-transition-name: art-hot-water; }
.vt-backflow { view-transition-name: art-backflow; }
::view-transition-group(*) { animation-duration: .45s; animation-timing-function: cubic-bezier(.2, .7, .2, 1); }

/* ---------- wider screens ---------- */
@media (min-width: 640px) {
  :root { --gut: 32px; }
  .row { grid-auto-columns: 46%; }
  .f-row { grid-template-columns: 1fr 1fr; }
  .qd { inset: auto 24px 24px auto; width: 440px; max-height: calc(100dvh - 48px); border: 1px solid var(--rule); }
  .hd-tel span { display: inline; }
  .ft-grid { grid-template-columns: 1.3fr 1fr 1fr; }
}
@media (min-width: 960px) {
  :root { --head-h: 80px; }
  body { font-size: 18px; }
  .hd-logo img { width: 124px; }
  html.is-scrolled .hd-logo img { width: 96px; }
  html.is-scrolled .hd-in { height: 62px; }
  .hd-nav { display: flex; gap: 26px; margin-left: 40px; }
  .hd-nav a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: .95rem; padding: 6px 0; border-bottom: 1.5px solid transparent; }
  .hd-nav a:hover, .hd-nav a[aria-current="page"] { border-bottom-color: var(--red); }
  .hd .menu { display: none; }
  .hd-quote { margin-left: 14px; min-height: 44px; }
  .cb { display: none; }
  .ft { padding-bottom: 44px; }
  .hero { padding: 48px 0 24px; }
  .hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: 40px; align-items: center; }
  .hero-map { margin: 0; }
  .sec { padding: 88px 0; }
  .row { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(var(--cols, 3), 1fr); overflow: visible; margin: 0; padding: 0; }
  .row-5 { --cols: 5; }
  .row-4 { --cols: 4; }
  .two { grid-template-columns: 1.4fr 1fr; gap: 64px; }
  .ph { padding: 44px 0 10px; }
  .ph-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; }
  .ft-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}
@media (max-width: 639px) {
  /* the phone bar under the thumb carries Call and Free quote, so the opening screen doesn't repeat them */
  .hero .acts { display: none; }
  .hero h1 { font-size: 2.05rem; }
  .lede { font-size: 1rem; }
  .hero-map { margin-top: 0; }
}
@media (max-width: 959px) {
  .hd-quote { display: none; }
  body { padding-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  html.js .rise { opacity: 1; transform: none; }
  html.js .draw [pathLength] { stroke-dashoffset: 0; }
  html.js .water { transform: scaleY(1); }
  .drip, .acc .drop { opacity: 1; }
  @view-transition { navigation: none; }
}
