/* Abco Renovations — an editorial site cut like an engraving.
   Their charcoal (#262626) and stone (#e1ded9), on a bright page. */

:root {
  --paper: #fbfaf7;
  --white: #ffffff;
  --stone: #e1ded9;
  --stone-soft: #efede9;
  --ink: #262626;
  --ink-2: #545452;
  --ink-3: #6b6a67;
  --rule: rgba(38, 38, 38, 0.16);
  --serif: "Didot", "Bodoni 72", "Bodoni MT", "Playfair Display", "Playfair", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(20px, 5vw, 72px);
  --measure: 34rem;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --bar: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  padding-bottom: var(--bar);
}
@media (min-width: 900px) { body { padding-bottom: 0; } }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
button { font: inherit; color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.02; letter-spacing: -0.01em; margin: 0; text-wrap: balance; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--white); padding: 10px 16px; text-decoration: none; }
.skip:focus { top: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* tiny labels against enormous headings */
.label {
  font: 600 .6875rem/1.3 var(--sans);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-2);
  display: flex; gap: .9em; align-items: baseline; flex-wrap: wrap;
}
.label b { font-weight: 600; color: var(--ink); }
.giant { font-size: clamp(3rem, 11vw, 9.5rem); line-height: .92; }
.big { font-size: clamp(2.25rem, 7vw, 5.25rem); line-height: .98; }
.mid { font-size: clamp(1.6rem, 4vw, 2.6rem); line-height: 1.08; }
.lede { font-size: clamp(1.1rem, 2.2vw, 1.3rem); line-height: 1.5; color: var(--ink-2); max-width: var(--measure); }
.wrap { padding-inline: var(--gutter); max-width: 1320px; margin-inline: auto; }
.col { max-width: var(--measure); }
.muted { color: var(--ink-2); }

/* the motif: their strip drain, a slotted hairline */
.drain {
  height: 9px; border: 1px solid var(--ink); border-radius: 1px;
  background: repeating-linear-gradient(90deg, transparent 0 4px, var(--ink) 4px 5px);
  background-clip: content-box; padding: 2px;
  transform-origin: left center;
}
.drain.thin { height: 7px; padding: 1.5px; }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid transparent;
  transition: transform .45s var(--ease), border-color .3s, padding .3s;
}
.top .wrap { display: flex; align-items: center; gap: 24px; height: 76px; transition: height .3s var(--ease); }
.top.is-scrolled { border-bottom-color: var(--rule); }
.top.is-scrolled .wrap { height: 60px; }
.top.is-hidden { transform: translateY(-100%); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand img { width: 74px; height: auto; transition: width .3s var(--ease); }
.top.is-scrolled .brand img { width: 60px; }
.brand span { font: 600 .625rem/1.2 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2); display: none; }
@media (min-width: 600px) { .brand span { display: block; } }

.nav { display: none; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(14px, 1.8vw, 28px); }
.nav a { font: 500 .8125rem/1 var(--sans); letter-spacing: .04em; text-decoration: none; padding: 8px 0; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--ink); }
.top .top-call { display: none; }
@media (min-width: 1080px) {
  .nav { display: block; }
  .top .top-call { display: inline-flex; }
  .menu { display: none; }
}

.menu > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; font: 600 .6875rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; padding: 12px 0; }
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary i { width: 22px; height: 9px; border-block: 1px solid var(--ink); display: block; }
.menu[open] > summary i { border-bottom-color: transparent; transform: translateY(4px); }
.menu .sheet {
  position: fixed; inset: 0 0 auto 0; top: 0; z-index: 60;
  background: var(--paper); padding: 88px var(--gutter) 40px; border-bottom: 1px solid var(--rule);
  max-height: 100dvh; overflow: auto;
}
.menu[open] > summary { position: relative; z-index: 61; }
.menu .sheet ul { list-style: none; margin: 0 0 28px; padding: 0; }
.menu .sheet li a { display: block; font: 400 2rem/1.25 var(--serif); text-decoration: none; padding: 6px 0; border-bottom: 1px solid var(--rule); }
.menu .sheet p { font-size: .9375rem; color: var(--ink-2); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border: 1px solid var(--ink); border-radius: 0;
  font: 600 .75rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
  background: transparent; cursor: pointer; transition: background .25s, color .25s;
}
.btn:hover { background: var(--ink); color: var(--white); text-decoration: none; }
.btn.solid { background: var(--ink); color: var(--white); }
.btn.solid:hover { background: #000; }
.btn.light { border-color: var(--stone); color: var(--stone); }
.btn.light:hover { background: var(--stone); color: var(--ink); }
.btn svg { width: 16px; height: 16px; flex: none; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.textlink { font: 600 .75rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; display: inline-flex; gap: 10px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--ink); }
.textlink::after { content: "→"; font-family: var(--sans); letter-spacing: 0; transition: transform .3s var(--ease); }
.textlink:hover::after { transform: translateX(4px); }

/* ---------- phone bar (the number never leaves the screen on a phone) ---------- */
.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  height: var(--bar); display: grid; grid-template-columns: 1.35fr 1fr;
  background: var(--ink); color: var(--white);
  border-top: 1px solid #000;
  padding-bottom: env(safe-area-inset-bottom);
  transition: transform .4s var(--ease);
}
.callbar a, .callbar button { display: flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; background: none; border: 0; cursor: pointer; font: 600 .75rem/1.1 var(--sans); letter-spacing: .1em; text-transform: uppercase; }
.callbar a strong { font: 400 1.15rem/1 var(--serif); letter-spacing: .02em; text-transform: none; }
.callbar svg { width: 18px; height: 18px; flex: none; }
.callbar button { border-left: 1px solid rgba(225, 222, 217, .25); color: var(--stone); }
.callbar.is-lifted { box-shadow: 0 -10px 30px rgba(0, 0, 0, .18); }
@media (min-width: 900px) { .callbar { display: none; } }

/* ---------- opening ---------- */
.opening { position: relative; padding-top: clamp(14px, 3vw, 40px); overflow: clip; }
.opening .grid { display: grid; }
.opening .label { margin-bottom: 6px; }
.numeral { position: relative; width: min(64vw, 560px); margin-left: -1.2vw; z-index: 2; pointer-events: none; }
.numeral svg { width: 100%; height: auto; overflow: visible; }
.numeral text { font-family: var(--serif); }
.n-cap { position: absolute; left: 1.2vw; bottom: -6px; font: 600 .6875rem/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink); background: var(--paper); padding: 4px 6px; }
.opening .photo { position: relative; margin: -30vw calc(var(--gutter) * -1) 0 40vw; z-index: 1; overflow: hidden; }
.opening .photo img { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; animation: drift 16s var(--ease) both; }
.opening .photo figcaption { position: absolute; left: 0; bottom: 0; font: 500 .6875rem/1.4 var(--sans); letter-spacing: .06em; color: var(--ink); background: var(--paper); padding: 6px 10px 0 0; }
.opening h1 { font-size: clamp(2rem, 6.6vw, 3.9rem); line-height: 1.02; max-width: 16ch; margin: 22px 0 16px; }
.opening .lede { margin-bottom: 22px; }
.trust { list-style: none; margin: 22px 0 0; padding: 14px 0 0; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; gap: 8px 20px; font: 500 .8125rem/1.4 var(--sans); color: var(--ink-2); }
.trust li { display: flex; gap: 8px; align-items: center; }
.trust li::before { content: ""; width: 5px; height: 5px; background: var(--ink); transform: rotate(45deg); }
.opening .drain { margin-top: 28px; }
@media (min-width: 900px) {
  .opening .grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .opening .head { grid-column: 1; grid-row: 1; position: relative; z-index: 2; }
  .opening .head .label { max-width: 36vw; }
  .opening .text { grid-column: 1; grid-row: 2; padding: 0 2vw 40px 0; }
  .opening .photo { grid-column: 2; grid-row: 1 / span 2; margin: 0 calc(var(--gutter) * -1) 0 -12vw; }
  .opening .photo img { aspect-ratio: auto; height: min(88vh, 860px); min-height: 560px; }
  .numeral { width: 44vw; max-width: 640px; }
  .opening h1 { margin-top: 8px; }
}
@keyframes drift { from { transform: scale(1.07); } to { transform: scale(1); } }

/* engraved numeral: outline cut first, then the lines */
.n-outline { fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-dasharray: 2400; stroke-dashoffset: 0; animation: outline 1.6s var(--ease) both; }
.numeral .cut1, .numeral .cut2 { transform-box: view-box; transform-origin: 0 0; }
.numeral .cut1 { animation: cutdown 1.6s .55s var(--ease) both; }
.numeral .cut2 { animation: cutdown 1.3s 1.25s var(--ease) both; }
@keyframes outline { from { stroke-dashoffset: 2400; } }
@keyframes cutdown { from { transform: scaleY(0); } }
.opening .drain { animation: rule 1.4s 1.1s var(--ease) both; }
@keyframes rule { from { transform: scaleX(0); } }

/* ---------- sections ---------- */
section { position: relative; }
.sec { padding-block: clamp(64px, 11vw, 140px); }
.sec-head { display: grid; gap: 14px; margin-bottom: clamp(28px, 4vw, 48px); }
.label[data-no]::before { content: attr(data-no); color: var(--ink); }
.split { display: grid; gap: 28px; }
@media (min-width: 900px) { .split { grid-template-columns: 5fr 7fr; gap: 64px; align-items: end; } }

/* drawn / built slider */
.seam { position: relative; overflow: hidden; background: var(--stone-soft); user-select: none; -webkit-user-select: none; touch-action: pan-y; }
.seam img { width: 100%; height: 100%; object-fit: cover; }
.seam .built { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--cut, 50%)); }
.seam .handle {
  position: absolute; top: 0; bottom: 0; left: var(--cut, 50%); width: 44px; margin-left: -22px;
  display: grid; place-items: center; cursor: ew-resize; background: none; border: 0; padding: 0;
}
.seam .handle::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 9px; margin-left: -4.5px; border: 1px solid var(--white); background: repeating-linear-gradient(180deg, transparent 0 4px, var(--white) 4px 5px); background-clip: content-box; padding: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.18); }
.seam .handle span { position: relative; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--white); display: grid; place-items: center; font: 600 .875rem/1 var(--sans); box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.seam .tag { position: absolute; top: 14px; font: 600 .625rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; padding: 7px 9px; background: var(--paper); color: var(--ink); pointer-events: none; }
.seam .tag.l { left: 14px; }
.seam .tag.r { right: 14px; background: var(--ink); color: var(--white); }
.seam input[type="range"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: ew-resize; }
.seam.is-nudging .built, .seam.is-nudging .handle { transition: clip-path 1.1s var(--ease), left 1.1s var(--ease); }
.seam-cap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font: 500 .8125rem/1.4 var(--sans); color: var(--ink-2); padding-top: 12px; }
.bleed { margin-inline: calc(var(--gutter) * -1); }
@media (min-width: 900px) { .bleed { margin-inline: 0 calc(var(--gutter) * -1); } }

/* swipe rows */
.row {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(78%, 340px); gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  margin-inline: calc(var(--gutter) * -1); padding: 0 var(--gutter) 18px; scroll-padding-inline: var(--gutter);
  scrollbar-width: thin; scrollbar-color: var(--ink) transparent;
}
.row > * { scroll-snap-align: start; }
@media (min-width: 900px) {
  .row.r3 { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; margin: 0; padding: 0; }
  .row.r6 { grid-auto-columns: calc((100% - 80px) / 4.4); }
}

.card { display: grid; gap: 14px; text-decoration: none; align-content: start; }
.card .pic { overflow: hidden; background: var(--stone-soft); }
.card .pic img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .9s var(--ease); }
.card:hover .pic img { transform: scale(1.04); }
.card h3 { font-size: 1.85rem; }
.card p { font-size: .9375rem; color: var(--ink-2); margin: 0; }
.card .more { font: 600 .6875rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; }
.card.plain { border-top: 1px solid var(--ink); padding-top: 18px; }
.card.plain ul { list-style: none; margin: 0; padding: 0; font-size: .9375rem; }
.card.plain li { padding: 9px 0; border-bottom: 1px solid var(--rule); }

/* the question that sets the budget */
.question { background: var(--white); border-block: 1px solid var(--rule); }

/* quotes: pull-quote breaks the column */
.pull { font: 400 clamp(1.7rem, 4.6vw, 3.3rem)/1.12 var(--serif); margin: 0; max-width: 22ch; text-indent: -.42em; }
.pull-by { font: 500 .8125rem/1.4 var(--sans); color: var(--ink-2); margin-top: 18px; display: block; }
.quotes { margin-top: 44px; }
.quote { border-top: 1px solid var(--ink); padding-top: 18px; font-size: 1rem; }
.quote blockquote { margin: 0 0 12px; font: 400 1.25rem/1.35 var(--serif); }
.quote figcaption { font: 500 .8125rem/1.4 var(--sans); color: var(--ink-2); }
.google { margin-top: 36px; display: grid; gap: 6px; padding: 20px; background: var(--stone-soft); max-width: 40rem; font-size: .9375rem; }
.google strong { font: 400 2rem/1 var(--serif); }

/* steps: engraved vignettes */
.step { display: grid; gap: 12px; align-content: start; border-top: 1px solid var(--ink); padding-top: 14px; }
.step .no { font: 400 2.4rem/1 var(--serif); }
.step svg { width: 100%; height: auto; background: var(--white); border: 1px solid var(--rule); }
.step h3 { font-size: 1.45rem; }
.step p { font-size: .9375rem; color: var(--ink-2); margin: 0; }

/* close */
.close { background: var(--ink); color: var(--stone); }
.close .label { color: rgba(225, 222, 217, .72); }
.close .label b { color: var(--stone); }
.close a.phone { display: block; font: 400 clamp(2.9rem, 13vw, 9rem)/.95 var(--serif); text-decoration: none; color: var(--white); margin: 18px 0 22px; letter-spacing: -.01em; }
.close a.phone:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.close .lede { color: rgba(225, 222, 217, .85); }
.close .drain { border-color: var(--stone); background-image: repeating-linear-gradient(90deg, transparent 0 4px, var(--stone) 4px 5px); margin-bottom: 30px; opacity: .7; }
.hours { display: grid; gap: 4px; font-size: .9375rem; margin-top: 26px; color: rgba(225, 222, 217, .85); }

/* ---------- inner pages ---------- */
.page-head { padding-top: clamp(28px, 6vw, 72px); padding-bottom: clamp(28px, 5vw, 56px); }
.page-head h1 { margin: 14px 0 18px; }
.hero-pic { overflow: hidden; }
.hero-pic img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
@media (max-width: 700px) { .hero-pic img { aspect-ratio: 4 / 3; } }
.prose { max-width: var(--measure); }
.prose h2 { font-size: clamp(1.8rem, 4.5vw, 2.6rem); margin: 1.6em 0 .5em; }
.prose h3 { font-size: 1.5rem; margin: 1.4em 0 .4em; }
.prose ul { padding-left: 1.1em; }
.prose li { margin-bottom: .4em; }
.two { display: grid; gap: 40px; }
@media (min-width: 900px) { .two { grid-template-columns: 1fr 1fr; gap: 72px; } }
.ruled { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.ruled li { padding: 14px 0; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: 2.2rem 1fr; gap: 10px; }
.ruled li b { font: 400 1.2rem/1.2 var(--serif); }
.figure-break { margin-block: 40px; }
@media (min-width: 1100px) { .figure-break { margin-right: -18vw; } }
.figure-break figcaption { font: 500 .75rem/1.4 var(--sans); color: var(--ink-2); padding-top: 8px; }
.gallery { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
.gallery img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
@media (min-width: 900px) { .gallery { grid-template-columns: repeat(3, 1fr); } }

/* faq */
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 36px 18px 0; position: relative; font: 400 1.3rem/1.3 var(--serif); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font: 300 1.6rem/1 var(--sans); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--ink-2); max-width: var(--measure); }

/* jobs */
.job { padding-block: clamp(48px, 8vw, 96px); border-top: 1px solid var(--rule); }
.job:first-of-type { border-top: 0; }
.job-head { display: grid; gap: 10px; margin-bottom: 22px; }
.job-head h2 { font-size: clamp(2rem, 5vw, 3.4rem); }
.job .extra { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 12px; }
.job .extra img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }

/* timeline (what happens when) */
.timeline { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.timeline > li { display: grid; gap: 18px; padding: clamp(36px, 6vw, 64px) 0; border-top: 1px solid var(--ink); }
@media (min-width: 900px) { .timeline > li { grid-template-columns: 7rem 1fr 1.1fr; gap: 48px; align-items: start; } }
.timeline .no { font: 400 clamp(3.5rem, 9vw, 6rem)/.9 var(--serif); }
.timeline h2 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 12px; }
.timeline svg { width: 100%; height: auto; background: var(--white); border: 1px solid var(--rule); }
.timeline .you { margin-top: 14px; padding: 14px 16px; background: var(--stone-soft); font-size: .9375rem; }
.timeline .you b { display: block; font: 600 .6875rem/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 4px; }

/* contact + forms */
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font: 600 .6875rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.form input, .form textarea {
  font: 400 1rem/1.4 var(--sans); color: var(--ink); background: var(--white);
  border: 1px solid var(--ink-3); border-radius: 0; padding: 13px 14px; width: 100%;
}
.form input:focus, .form textarea:focus { outline: 2px solid var(--ink); outline-offset: 0; border-color: var(--ink); }
.form textarea { min-height: 120px; resize: vertical; }
.form .note { font-size: .8125rem; color: var(--ink-2); margin: 0; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* quote drawer: rises over the page */
dialog.drawer {
  margin: auto auto 0; width: min(100%, 640px); max-width: 100%; max-height: 92dvh;
  border: 0; padding: 0; background: var(--paper); color: var(--ink);
  box-shadow: 0 -20px 60px rgba(0, 0, 0, .25);
}
dialog.drawer[open] { animation: rise .5s var(--ease) both; }
dialog.drawer::backdrop { background: rgba(20, 20, 20, .5); }
@keyframes rise { from { transform: translateY(100%); } }
.drawer .in { padding: 26px clamp(20px, 5vw, 40px) calc(28px + env(safe-area-inset-bottom)); overflow: auto; max-height: 92dvh; }
.drawer .bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.drawer h2 { font-size: 2.2rem; margin-bottom: 8px; }
.drawer .x { width: 44px; height: 44px; border: 1px solid var(--ink); background: none; cursor: pointer; font-size: 1.3rem; line-height: 1; }
.drawer .carried { font-size: .875rem; padding: 10px 12px; border-left: 3px solid var(--ink); background: var(--stone-soft); margin-bottom: 4px; display: none; }
.drawer .carried.on { display: block; }
@media (min-width: 900px) { dialog.drawer { margin: auto 0 auto auto; height: 100dvh; max-height: 100dvh; width: 520px; } dialog.drawer[open] { animation-name: slide; } .drawer .in { max-height: 100dvh; } }
@keyframes slide { from { transform: translateX(100%); } }

/* ---------- footer ---------- */
.foot { background: var(--ink); color: var(--stone); padding: 56px 0 28px; font-size: .9375rem; }
.foot .drain { border-color: rgba(225, 222, 217, .45); background-image: repeating-linear-gradient(90deg, transparent 0 4px, rgba(225, 222, 217, .45) 4px 5px); margin-bottom: 40px; }
.foot-grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.foot img { width: 110px; }
.foot h2 { font: 600 .6875rem/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: rgba(225, 222, 217, .7); margin-bottom: 12px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot a { color: var(--white); text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot .small { margin-top: 44px; padding-top: 18px; border-top: 1px solid rgba(225, 222, 217, .2); display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: .8125rem; color: rgba(225, 222, 217, .72); }
.foot .small a { color: rgba(225, 222, 217, .9); }

/* ---------- arrival as you scroll (only when scripts run and motion is welcome) ---------- */
.js .rise { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .rise.in { opacity: 1; transform: none; }
.js .rise.d1 { transition-delay: .08s; }
.js .rise.d2 { transition-delay: .16s; }

/* a job's picture grows into the top of its own page */
@view-transition { navigation: auto; }
.vt-bath { view-transition-name: pic-bath; }
.vt-kitchen { view-transition-name: pic-kitchen; }
.vt-guide { view-transition-name: pic-guide; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; }
::view-transition-group(*) { animation-duration: .6s; animation-timing-function: var(--ease); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .rise { opacity: 1; transform: none; }
  @view-transition { navigation: none; }
}

/* ---------- the cost guide ---------- */
.guide { display: grid; gap: 18px; }
.guide-fallback { border-top: 1px solid var(--ink); padding-top: 16px; }
.guide-on + .guide-fallback { display: none; }
.g-floor { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.g-floor legend { font: 600 .6875rem/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 10px; padding: 0; }
.g-floor label { position: relative; }
.g-floor input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.g-floor span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--ink-3); font: 500 .875rem/1 var(--sans); background: var(--white); }
.g-floor input:checked + span { background: var(--ink); color: var(--white); border-color: var(--ink); }
.g-floor input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.g-stage { background: var(--white); border: 1px solid var(--rule); padding: clamp(6px, 2vw, 18px); }
.g-plan { width: 100%; height: auto; touch-action: none; }
.g-fix { cursor: grab; outline: none; }
.g-fix:focus-visible > g > rect:first-child, .g-fix:focus-visible > g > path:first-of-type { stroke-width: 18; }
.g-fix:focus-visible { filter: drop-shadow(0 0 0 #262626); }
.g-fix.dragging { cursor: grabbing; opacity: .88; }
.g-fix .g-name { pointer-events: none; paint-order: stroke; stroke: #fff; stroke-width: 22px; }
.g-anim .g-fix.pop { animation: pop .5s var(--ease); }
@keyframes pop { from { opacity: .15; } }
.g-section { margin: 0; background: var(--white); border: 1px solid var(--rule); padding: clamp(6px, 2vw, 18px); }
.g-section svg { width: 100%; height: auto; }
.g-section figcaption { font: 500 .75rem/1.4 var(--sans); color: var(--ink-2); padding-top: 8px; }
.g-meter { display: grid; gap: 10px; }
.g-track { position: relative; padding: 10px 0; }
.g-dot { position: absolute; top: 50%; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; background: var(--ink); border: 4px solid var(--paper); box-shadow: 0 0 0 1px var(--ink); transition: left .6s var(--ease); }
.g-track .drain { height: 12px; }
.g-marks { list-style: none; margin: 0; padding: 0; display: flex; justify-content: space-between; font: 600 .6875rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.g-marks li.on { color: var(--ink); }
.g-verdict { font: 400 1.35rem/1.3 var(--serif); margin: 4px 0 0; min-height: 3.6em; }
.g-under { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); font-size: .9375rem; color: var(--ink-2); }
.g-under li { padding: 12px 0; border-bottom: 1px solid var(--rule); }
.g-under b { color: var(--ink); font-weight: 600; margin-right: .3em; }
.g-foot { display: flex; flex-wrap: wrap; gap: 10px; }
.g-hint { font-size: .8125rem; color: var(--ink-2); margin: 0; }
.guide[data-compact] .g-under { display: none; }
.guide[data-compact] .g-verdict { font-size: 1.15rem; min-height: 0; }
@media (min-width: 1000px) {
  .guide:not([data-compact]) { grid-template-columns: 1.25fr 1fr; column-gap: 48px; align-items: start; }
  .guide:not([data-compact]) .g-top, .guide:not([data-compact]) .g-stage, .guide:not([data-compact]) .g-section, .guide:not([data-compact]) .g-hint { grid-column: 1; }
  .guide:not([data-compact]) .g-meter, .guide:not([data-compact]) .g-under, .guide:not([data-compact]) .g-foot { grid-column: 2; }
  .guide:not([data-compact]) .g-meter { grid-row: 1; align-self: end; }
  .guide:not([data-compact]) .g-foot { grid-row: 2; align-self: start; }
  .guide:not([data-compact]) .g-under { grid-row: 3 / span 2; align-self: start; }
}
.q-grid { display: grid; gap: 32px; }
@media (min-width: 1000px) { .q-grid { grid-template-columns: 1fr 1.25fr; gap: 64px; align-items: center; } }

/* spacing helpers (no inline styles: the security policy allows only this file) */
.pullfig { margin: 18px 0 0; }
.mt0 { margin-top: 0; } .mt12 { margin-top: 12px; } .mt20 { margin-top: 20px; } .mt22 { margin-top: 22px; } .mt28 { margin-top: 28px; } .mt56 { margin-top: 56px; }
.mid-h { margin: 12px 0 18px; } .m26 { margin: 26px 0 4px; } .my28 { margin-block: 28px; } .pb96 { padding-bottom: 96px; }
.bigtel { text-decoration: none; font-family: var(--serif); }

/* phones: the home page stays about seven screens */
@media (max-width: 899px) {
  .sec { padding-block: 44px; }
  .sec-head { margin-bottom: 22px; }
  .card .pic img { aspect-ratio: 1 / 1; }
  .card h3 { font-size: 1.6rem; }
  .foot { padding-top: 40px; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 26px 20px; }
  .foot-grid > div:first-child { grid-column: 1 / -1; display: flex; gap: 18px; align-items: center; }
  .foot-grid > div:first-child p { margin: 0; font-size: .875rem; }
  .foot img { width: 76px; flex: none; }
  .foot-grid > div:last-child { grid-column: 1 / -1; }
  .foot-grid > div:last-child ul { grid-template-columns: 1fr 1fr; }
  .foot .small { margin-top: 28px; }
  .quotes { margin-top: 30px; }
  .step svg { max-height: 170px; }
}
.guide[data-compact] .g-hint, .guide[data-compact] .g-foot .btn:not(.solid) { display: none; }
.google-line { margin-top: 22px; font-size: .9375rem; color: var(--ink-2); max-width: 40rem; }
.google-line strong { font: 400 1.6rem/1 var(--serif); color: var(--ink); margin-right: 6px; }
.close .label[data-no]::before { color: var(--stone); }
