/* Kilpatrick's Renovations: paper and ink (their navy), with their logo yellow as the one accent.
   The motif is the roof gable from their logo: card tabs, the slider handle, list marks, step numbers. */
:root {
  --paper: #f3efe6;
  --card: #fbf9f4;
  --ink: #0d1b2a;
  --ink-2: #3a4655;
  --ink-3: #5d6773;
  --line: rgba(13, 27, 42, .14);
  --yellow: #f9bc00;
  --yellow-2: #ffd24d;
  --r: 22px;
  --hdr: 64px;
  --bar: 0px;
  --max: 1180px;
  --gut: clamp(16px, 4vw, 40px);
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: light;
}
@media (max-width: 899px) { :root { --bar: 68px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr) + 12px); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.0625rem/1.55 var(--sans); letter-spacing: -.005em;
  padding-bottom: var(--bar);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--yellow); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; box-shadow: 0 0 0 6px var(--yellow); }
h1, h2, h3 { font-weight: 800; letter-spacing: -.03em; line-height: 1.04; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(1.9rem, 6.4vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 5.6vw, 3.1rem); }
h3 { font-size: clamp(1.15rem, 3.4vw, 1.45rem); letter-spacing: -.02em; }
p { margin: 0 0 1em; text-wrap: pretty; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--yellow); color: var(--ink); padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.skip:focus { top: 12px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ------------------------------------------------ header (ink, holds their real logo) */
.hdr {
  position: sticky; top: 0; z-index: 40; background: var(--ink); color: #fff;
  transition: box-shadow .3s var(--ease);
}
.hdr__in { display: flex; align-items: center; gap: 20px; height: var(--hdr); transition: height .3s var(--ease); }
.hdr.is-small .hdr__in { height: 54px; }
.hdr.is-small { box-shadow: 0 8px 30px rgba(13, 27, 42, .25); }
.logo { display: block; flex: none; }
.logo img { height: 50px; width: auto; transition: height .3s var(--ease); }
.hdr.is-small .logo img { height: 40px; }
.nav { margin-left: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav a { display: block; padding: 8px 12px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .95rem; color: #dfe4ea; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, .09); }
.hdr__call { display: inline-flex; align-items: center; gap: 8px; background: var(--yellow); color: var(--ink); text-decoration: none; font-weight: 800; padding: 10px 16px; border-radius: 999px; white-space: nowrap; }
.hdr__call:hover { background: var(--yellow-2); }
.menu-btn { display: none; }
@media (max-width: 899px) {
  .hdr__call { display: none; }
  .menu-btn { display: inline-flex; margin-left: auto; align-items: center; gap: 8px; background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .3); border-radius: 999px; padding: 9px 14px; font: 600 .95rem var(--sans); cursor: pointer; }
  .nav { position: fixed; inset: var(--hdr) 0 auto 0; background: var(--ink); padding: 8px var(--gut) 24px; display: none; border-top: 1px solid rgba(255, 255, 255, .1); }
  .nav ul { flex-direction: column; }
  .nav a { font-size: 1.2rem; padding: 12px 6px; border-radius: 8px; }
  .hdr.nav-open .nav { display: block; }
  .no-js .nav { position: static; display: block; padding: 0 0 12px; }
  .no-js .menu-btn { display: none; }
  .no-js .hdr__in { flex-wrap: wrap; height: auto; padding-top: 10px; }
}

/* ------------------------------------------------ buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 999px; font: 800 1.02rem var(--sans); text-decoration: none; border: 2px solid var(--ink); cursor: pointer; transition: transform .2s var(--ease), background .2s; }
.btn--yellow { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.btn--yellow:hover { background: var(--yellow-2); border-color: var(--yellow-2); }
.btn--ink { background: var(--ink); color: #fff; }
.btn--line { background: transparent; color: var(--ink); }
.btn--line:hover { background: rgba(13, 27, 42, .06); }
.card--ink .btn--line, .btn--onink { color: #fff; border-color: rgba(255, 255, 255, .55); }
.card--ink .btn--line:hover, .btn--onink:hover { background: rgba(255, 255, 255, .08); }
.btn:active { transform: scale(.98); }
.btns { display: flex; flex-wrap: wrap; gap: 10px; }
.more { font-weight: 700; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.more::after { content: ""; width: 18px; height: 2px; background: currentColor; transition: width .25s var(--ease); }
.more:hover::after { width: 30px; }
.ico { width: 20px; height: 20px; flex: none; }

/* ------------------------------------------------ the deck: each section a card that slides up and settles */
.deck { padding: 14px var(--gut) 40px; max-width: calc(var(--max) + 2 * var(--gut)); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.card {
  position: relative; min-width: 0; background: var(--card); border-radius: var(--r);
  padding: clamp(26px, 5vw, 56px); overflow: clip;
  box-shadow: 0 1px 0 rgba(13, 27, 42, .06), 0 18px 40px -24px rgba(13, 27, 42, .28);
}
/* the gable tab cut into the top of a card: the roof line from their logo */
.card--tab::before {
  content: ""; position: absolute; top: 0; left: clamp(26px, 5vw, 56px); width: 54px; height: 14px; background: var(--yellow);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}
.card--ink { background: var(--ink); color: #fff; }
.card--ink .kicker, .card--ink .lede { color: #c8d0d9; }
.kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 14px; }
.kicker b { color: var(--ink); background: var(--yellow); border-radius: 4px; padding: 2px 6px; letter-spacing: .06em; }
.lede { font-size: clamp(1.05rem, 2.6vw, 1.25rem); color: var(--ink-2); max-width: 46ch; }
.wry { font-style: italic; color: var(--ink-3); }
.card--ink .wry { color: #aeb9c5; }

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .deck > .card { animation: settle linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
  }
  .js .deck > .card.pre { opacity: 0; transform: translateY(40px) scale(.97); }
  .js .deck > .card.in { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .8s var(--ease); }
}
@keyframes settle { from { opacity: .2; transform: translateY(60px) scale(.95) rotate(-.6deg); } to { opacity: 1; transform: none; } }

/* on a big screen the cards stack: each one slides over the last and the last one sinks back */
@media (min-width: 900px) and (min-height: 760px) {
  .deck--stack > .card { position: sticky; top: calc(var(--hdr) + 14px); }
  .deck--stack > .card:nth-child(2) { top: calc(var(--hdr) + 22px); }
  .deck--stack > .card:nth-child(3) { top: calc(var(--hdr) + 30px); }
  .deck--stack > .card.unstick { position: relative; top: auto; }
  @media (prefers-reduced-motion: no-preference) {
    @supports (animation-timeline: view()) {
      .deck--stack > .card { animation: settle linear both, sink linear both; animation-timeline: view(), view(); animation-range: entry 0% entry 70%, exit-crossing 0% exit-crossing 100%; }
    }
  }
}
@keyframes sink { to { transform: scale(.94); filter: brightness(.9); } }

/* ------------------------------------------------ home hero */
.hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; align-items: center; padding-bottom: clamp(20px, 3vw, 40px); }
.hero__num { font-size: clamp(8.5rem, 44vw, 21rem); font-weight: 900; line-height: .78; letter-spacing: -.07em; margin: 0 0 .06em -.04em; display: flex; align-items: flex-start; }
.hero__num sup { font-size: .42em; line-height: 1; margin-left: .02em; color: var(--ink); position: relative; top: .05em; }
.hero__num sup::after { content: ""; display: block; height: .09em; background: var(--yellow); margin-top: .06em; border-radius: 2px; }
.hero__unit { font-size: clamp(1rem, 3vw, 1.2rem); font-weight: 700; margin: 0 0 16px; max-width: 26ch; }
.hero h1 { font-size: clamp(1.7rem, 5.4vw, 3rem); max-width: 18ch; }
.hero .btns { margin: 18px 0 10px; }
.hero__art { position: relative; margin: 6px -12px 0; }
.hero__art img { width: 100%; }
.hero__art .light { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(100deg, rgba(255, 244, 214, 0) 30%, rgba(255, 244, 214, .5) 46%, rgba(255, 244, 214, .5) 52%, rgba(255, 244, 214, 0) 68%) no-repeat; background-size: 240% 100%; background-position: 120% 0; -webkit-mask-position: center; mask-position: center; -webkit-mask-size: 100% auto; mask-size: 100% auto; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
.light--full { -webkit-mask-image: url(/img/room-full-l.webp); mask-image: url(/img/room-full-l.webp); bottom: 1.6em; }
.hero__art figcaption, .render-note { font-size: .78rem; color: var(--ink-3); text-align: right; padding-right: 12px; }
@media (prefers-reduced-motion: no-preference) {
  .hero__art img { animation: drift 2.4s var(--ease) both; }
  .hero__art .light { animation: daylight 9s ease-in-out 1.2s infinite; }
}
@keyframes drift { from { opacity: 0; transform: translateY(24px) scale(1.04); } to { opacity: 1; transform: none; } }
@keyframes daylight { 0% { background-position: 120% 0; } 55%, 100% { background-position: -40% 0; } }
/* on a phone the room comes up under the number, so the first screen has something to look at; the bar holds the call */
@media (max-width: 899px) {
  .hero > div { display: contents; }
  .hero__art { order: 3; margin: -6px -14px 4px; }
  .hero .kicker { order: 1; } .hero__num { order: 2; } .hero__unit { order: 2; }
  .hero h1 { order: 4; } .hero .wry { order: 5; } .hero .btns { order: 6; margin-top: 4px; }
  .hero .btns .btn--yellow { display: none; }
  .hero__art figcaption { margin-top: 0; }
}
@media (min-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 30px; }
  .hero__art { margin: 0 -20px 0 0; }
  .hero__num { font-size: clamp(9rem, 17vw, 15rem); }
  .hero h1 { font-size: clamp(1.8rem, 2.6vw, 2.5rem); max-width: 21ch; }
}

/* ------------------------------------------------ before / after */
.ba { position: relative; border-radius: 14px; overflow: hidden; background: #ddd; aspect-ratio: 4 / 3; user-select: none; touch-action: pan-y; --pos: 50%; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba__after { clip-path: inset(0 0 0 var(--pos)); }
.ba__line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 0 1px rgba(13, 27, 42, .2); pointer-events: none; }
.ba__handle { position: absolute; top: 50%; left: var(--pos); width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%; background: var(--yellow); box-shadow: 0 8px 22px rgba(13, 27, 42, .35); pointer-events: none; display: grid; place-items: center; }
.ba__handle svg { width: 30px; height: 30px; }
.ba__tag { position: absolute; top: 12px; padding: 5px 10px; border-radius: 999px; font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: rgba(13, 27, 42, .78); color: #fff; pointer-events: none; }
.ba__tag--b { left: 12px; } .ba__tag--a { right: 12px; background: var(--yellow); color: var(--ink); }
.ba input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.ba input[type=range]:focus-visible + .ba__handle { outline: 3px solid var(--ink); outline-offset: 3px; }
/* without scripts: the two photos side by side */
.ba--static { aspect-ratio: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: none; }
.ba--static img { position: static; aspect-ratio: 4 / 3; }
.ba--static .ba__after { clip-path: none; }
.ba--static .ba__line, .ba--static .ba__handle, .ba--static input { display: none; }
@media (prefers-reduced-motion: no-preference) { .ba.hint { transition: --pos 1s; } }
.ba-cap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 12px; font-size: .92rem; color: var(--ink-3); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.chip { font: 700 .9rem var(--sans); padding: 9px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; min-height: 40px; }
.chip[aria-pressed="true"], .chip[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ------------------------------------------------ rows to swipe */
.row { display: grid; grid-auto-flow: column; grid-auto-columns: min(78%, 340px); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 14px; margin: 0 calc(-1 * clamp(26px, 5vw, 56px)); padding-left: clamp(26px, 5vw, 56px); padding-right: clamp(26px, 5vw, 56px); scroll-padding-left: clamp(26px, 5vw, 56px); scrollbar-width: thin; }
.row > * { scroll-snap-align: start; }
ol.row, ul.row { list-style: none; margin-top: 0; margin-bottom: 0; }
@media (min-width: 900px) { .svc img { aspect-ratio: 4 / 5; } .row--fit { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; margin: 0; padding: 4px 0 0; } }
.svc { position: relative; display: block; text-decoration: none; border-radius: 16px; overflow: hidden; background: var(--paper); }
.svc img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s var(--ease); }
.svc--render img { object-fit: contain; background: var(--paper); padding: 12px; }
.svc:hover img { transform: scale(1.04); }
.svc__t { padding: 14px 16px 16px; }
.svc__t h3 { margin: 0 0 4px; }
.svc__t p { margin: 0; font-size: .92rem; color: var(--ink-3); }

/* ------------------------------------------------ the cost card / tool panels */
.levels__tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.level { scroll-snap-align: start; background: var(--paper); border-radius: 16px; padding: 10px 16px 18px; }
.level img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; }
.level__price { font-size: clamp(1.6rem, 6vw, 2.2rem); font-weight: 900; letter-spacing: -.04em; margin: 4px 0 2px; }
.level__time { font-weight: 700; margin: 0 0 6px; }
.level p { font-size: .95rem; color: var(--ink-2); margin: 0; }
.source { font-size: .82rem; color: var(--ink-3); margin-top: 12px; }

/* steps */
.steps { counter-reset: s; }
.step { background: var(--paper); border-radius: 16px; padding: 18px; position: relative; }
.step__n { display: grid; place-items: center; width: 44px; height: 38px; background: var(--ink); color: #fff; font-weight: 900; clip-path: polygon(50% 0, 100% 42%, 100% 100%, 0 100%, 0 42%); padding-top: 8px; margin-bottom: 12px; font-size: .95rem; }
.step h3 { margin-bottom: 6px; }
.step p { font-size: .95rem; color: var(--ink-2); margin: 0; }
.step img { margin: -6px -8px 8px; width: calc(100% + 16px); max-width: none; aspect-ratio: 4 / 3; object-fit: contain; }

/* proof */
.quote { font-size: clamp(1.12rem, 3.6vw, 2rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.22; margin: 0 0 14px; max-width: 30ch; }
.quote::before { content: "\201C"; display: block; font-size: 3.4em; line-height: .6; color: var(--yellow); font-weight: 900; margin-bottom: 6px; }
.cite { font-weight: 700; color: #c8d0d9; font-style: normal; }
.facts { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 10px; }
.facts li { border-top: 1px solid rgba(255, 255, 255, .16); padding-top: 10px; display: grid; gap: 2px; }
.facts b { font-size: clamp(1.4rem, 5vw, 2rem); letter-spacing: -.03em; color: #fff; }
.facts span { color: #c8d0d9; font-size: .95rem; }
@media (min-width: 900px) { .facts { grid-template-columns: repeat(3, 1fr); gap: 24px; } }

/* contact card */
.bigtel { display: inline-block; font-size: clamp(2.2rem, 11vw, 5.4rem); font-weight: 900; letter-spacing: -.05em; line-height: 1; text-decoration: none; margin: 0 0 14px; }
.bigtel:hover { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 6px; }

/* ------------------------------------------------ inner pages */
.page-hero { padding: clamp(26px, 6vw, 70px) 0 clamp(18px, 3vw, 30px); }
.page-hero .lede { margin-bottom: 0; }
.crumbs { font-size: .85rem; color: var(--ink-3); margin-bottom: 14px; }
.crumbs a { color: var(--ink-3); }
.carry { border-radius: var(--r); overflow: hidden; margin: 0 0 14px; aspect-ratio: 16 / 9; background: var(--card); }
.carry img { width: 100%; height: 100%; object-fit: cover; }
.carry--render img { object-fit: contain; padding: 4%; }
@media (max-width: 600px) { .carry { aspect-ratio: 4 / 3; } }
.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } .split--wide { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); } }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
@media (min-width: 560px) { .ticks--2 { grid-template-columns: 1fr 1fr; } }
.ticks li { position: relative; padding-left: 26px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 9px; background: var(--yellow); clip-path: polygon(0 100%, 50% 0, 100% 100%, 82% 100%, 50% 36%, 18% 100%); }
.card--ink .ticks li::before { background: var(--yellow); }
.gallery { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.gallery figure { margin: 0; }
.gallery-one { margin: 18px 0 0; } .gallery-one img { border-radius: 12px; }
.gallery img { width: 100%; border-radius: 12px; aspect-ratio: 3 / 4; object-fit: cover; }
.gallery img.wide { aspect-ratio: 4 / 3; }
.gallery figcaption { font-size: .85rem; color: var(--ink-3); margin-top: 6px; }
.note { background: var(--paper); border-left: 4px solid var(--yellow); padding: 14px 16px; border-radius: 0 12px 12px 0; font-size: .95rem; color: var(--ink-2); }
.grid2 { display: grid; gap: 12px; }
@media (min-width: 700px) { .grid2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .grid3 { grid-template-columns: repeat(3, 1fr); } }
.tile { background: var(--paper); border-radius: 16px; padding: 20px; }
.tile h3 { margin-bottom: 6px; }
.tile p { margin: 0; color: var(--ink-2); font-size: .97rem; }
.card--ink .tile { background: rgba(255, 255, 255, .06); }
.card--ink .tile p { color: #c8d0d9; }

/* questions that open */
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 40px 18px 0; position: relative; font-weight: 800; font-size: 1.08rem; letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 16px; height: 10px; margin-top: -5px; background: var(--ink); clip-path: polygon(0 0, 50% 100%, 100% 0, 82% 0, 50% 64%, 18% 0); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(180deg); }
.faq details p { color: var(--ink-2); max-width: 66ch; }
.suburbs summary { font-weight: 800; cursor: pointer; padding: 10px 0; }
.suburbs ul { columns: 2 150px; padding: 0; list-style: none; color: var(--ink-2); margin: 8px 0 0; }
.suburbs li { padding: 3px 0; break-inside: avoid; }

/* timeline (about) */
.journey { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.journey li { background: var(--paper); border-radius: 16px; padding: 18px; }
.journey .when { font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
@media (min-width: 900px) { .journey { grid-template-columns: repeat(4, 1fr); } }

/* how it works: the job told in order, the room changing beside it */
.story { display: grid; gap: 14px; }
.story__fig { display: none; }
.story__step { background: var(--card); border-radius: var(--r); padding: clamp(22px, 4vw, 40px); }
.story__step img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; margin: 0 0 6px; }
@media (min-width: 900px) {
  .js .story { grid-template-columns: 1.1fr .9fr; align-items: start; gap: 28px; }
  .js .story__fig { display: block; position: sticky; top: calc(var(--hdr) + 20px); grid-column: 1; grid-row: 1 / span 20; background: var(--card); border-radius: var(--r); padding: 20px; }
  .js .story__fig .frame { position: relative; aspect-ratio: 4 / 3; }
  .js .story__fig img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .6s var(--ease), transform .8s var(--ease); transform: scale(.985); }
  .js .story__fig img.on { opacity: 1; transform: none; }
  .js .story__fig figcaption { font-weight: 800; margin-top: 8px; }
  .js .story__step { grid-column: 2; min-height: 64vh; display: flex; flex-direction: column; justify-content: center; opacity: .45; transition: opacity .4s; }
  .js .story__step.on { opacity: 1; }
  .js .story__step img { display: none; }
}

/* ------------------------------------------------ the cost guide tool */
.tool { display: grid; gap: 18px; }
@media (min-width: 960px) { .tool { grid-template-columns: 1fr 1fr; align-items: start; } .tool__out { position: sticky; top: calc(var(--hdr) + 18px); } }
.q { border: 0; margin: 0 0 18px; padding: 0; }
.q legend { font-weight: 800; font-size: 1.1rem; letter-spacing: -.01em; margin-bottom: 4px; padding: 0; }
.q .hint { font-size: .9rem; color: var(--ink-3); margin: 0 0 10px; }
.opts { display: grid; gap: 8px; }
@media (min-width: 560px) { .opts--3 { grid-template-columns: repeat(3, 1fr); } .opts--2 { grid-template-columns: 1fr 1fr; } }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.opt span { display: block; height: 100%; border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 14px; background: var(--card); font-weight: 700; line-height: 1.3; transition: border-color .2s, background .2s; }
.opt small { display: block; font-weight: 400; color: var(--ink-3); margin-top: 3px; font-size: .86rem; }
.opt input:checked + span { border-color: var(--ink); background: #fff; box-shadow: inset 0 0 0 1px var(--ink); }
.opt input:checked + span::before { content: ""; float: right; width: 14px; height: 9px; margin: 4px 0 0 8px; background: var(--yellow); clip-path: polygon(0 100%, 50% 0, 100% 100%); }
.opt input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
.out { background: var(--ink); color: #fff; border-radius: var(--r); padding: clamp(20px, 4vw, 32px); }
.out img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: var(--paper); border-radius: 14px; margin-bottom: 16px; transition: opacity .35s; }
.out img.swap { opacity: .2; }
.out__label { font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #aeb9c5; margin: 0; }
.out__price { font-size: clamp(2rem, 7vw, 3rem); font-weight: 900; letter-spacing: -.045em; line-height: 1.05; margin: 4px 0; }
.out__time { font-weight: 700; color: var(--yellow); margin: 0 0 12px; }
.out__why { color: #d6dde5; font-size: .97rem; margin: 0 0 14px; }
.out ul { margin: 0 0 18px; padding-left: 18px; color: #d6dde5; font-size: .93rem; }
/* the tape: Matt's three published ranges laid end to end, with a marker for where the answers sit */
.tape { position: relative; height: 46px; margin: 8px 0 26px; border-radius: 6px; background: var(--yellow); color: var(--ink); overflow: visible;
  background-image: repeating-linear-gradient(90deg, rgba(13,27,42,.55) 0 1px, transparent 1px 5%), repeating-linear-gradient(90deg, rgba(13,27,42,.3) 0 1px, transparent 1px 1%);
  background-size: 100% 60%, 100% 30%; background-repeat: no-repeat; background-position: top, top; }
.tape__b { position: absolute; bottom: -22px; font-size: .78rem; font-weight: 800; color: #c8d0d9; transform: translateX(-50%); white-space: nowrap; }
.tape__b--8 { left: 8.571%; } .tape__b--15 { left: 28.571%; } .tape__b--30 { left: 71.429%; }
.tape__band { position: absolute; top: 0; bottom: 0; background: rgba(13, 27, 42, .22); border-left: 2px solid var(--ink); border-right: 2px solid var(--ink); transition: left .5s var(--ease), width .5s var(--ease); }
.tape__mark { position: absolute; top: -10px; width: 0; height: 66px; transition: left .5s var(--ease); }
.tape__mark::before { content: ""; position: absolute; left: -9px; top: 0; width: 18px; height: 12px; background: #fff; clip-path: polygon(0 0, 100% 0, 50% 100%); }
.tape__mark::after { content: ""; position: absolute; left: -1px; top: 10px; width: 2px; height: 46px; background: #fff; }

/* ------------------------------------------------ quote drawer */
.drawer { border: 0; padding: 0; margin: auto auto 0; width: 100%; max-width: 560px; max-height: 92svh; border-radius: 24px 24px 0 0; background: var(--card); color: var(--ink); box-shadow: 0 -20px 60px rgba(13, 27, 42, .35); }
.drawer::backdrop { background: rgba(13, 27, 42, .55); backdrop-filter: blur(2px); }
@media (min-width: 700px) { .drawer { margin: auto; border-radius: 24px; } }
.drawer__in { padding: 26px clamp(20px, 5vw, 34px) 30px; }
.drawer__top { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.drawer__close { background: var(--paper); border: 0; width: 44px; height: 44px; border-radius: 50%; font-size: 1.4rem; cursor: pointer; color: var(--ink); flex: none; }
@media (prefers-reduced-motion: no-preference) {
  .drawer[open] { animation: rise .45s var(--ease); }
}
@keyframes rise { from { transform: translateY(60px); opacity: 0; } to { transform: none; opacity: 1; } }
.form { display: grid; gap: 12px; }
.form label { font-weight: 700; font-size: .95rem; display: grid; gap: 6px; }
.form input, .form textarea { font: 400 1.05rem var(--sans); color: var(--ink); background: #fff; border: 1.5px solid rgba(13, 27, 42, .3); border-radius: 12px; padding: 12px 14px; width: 100%; }
.form input:focus, .form textarea:focus { border-color: var(--ink); outline: 3px solid var(--yellow); outline-offset: 0; }
.form textarea { min-height: 110px; resize: vertical; }
.form .two { display: grid; gap: 12px; }
@media (min-width: 520px) { .form .two { grid-template-columns: 1fr 1fr; } }
.form small { color: var(--ink-3); font-weight: 400; }
.hp { position: absolute; left: -9999px; }
.carried { background: var(--paper); border-radius: 12px; padding: 10px 12px; font-size: .9rem; color: var(--ink-2); }

/* ------------------------------------------------ phone bar: the number never leaves the screen */
.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: none; gap: 8px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: rgba(13, 27, 42, .96); backdrop-filter: blur(8px); transition: transform .3s var(--ease); }
.bar a, .bar button { flex: 1; min-height: 52px; display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: 14px; font: 800 1rem var(--sans); text-decoration: none; border: 0; cursor: pointer; }
.bar__call { background: var(--yellow); color: var(--ink); flex: 1.5 !important; }
.bar__quote { background: rgba(255, 255, 255, .1); color: #fff; }
.bar.is-up .bar__call { box-shadow: 0 0 0 3px rgba(249, 188, 0, .35); }
@media (max-width: 899px) { .bar { display: flex; } }

/* ------------------------------------------------ footer */
.ftr { background: var(--ink); color: #c8d0d9; margin-top: 30px; padding: 46px 0 30px; font-size: .95rem; }
.ftr a { color: #fff; }
.ftr__grid { display: grid; gap: 22px 18px; grid-template-columns: 1fr 1fr; }
.ftr__grid > :first-child { grid-column: 1 / -1; }
.ftr__grid > :first-child img { width: 120px; height: auto; margin-bottom: 8px; }
.ftr { font-size: .9rem; }
@media (min-width: 800px) { .ftr__grid { grid-template-columns: 1.3fr 1fr 1fr; } .ftr__grid > :first-child { grid-column: auto; } .ftr { font-size: .95rem; } }
.ftr ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.ftr__fine { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 30px; padding-top: 18px; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .85rem; }
.ftr__credit { margin-left: auto; color: #8e9aa8; }
.ftr__credit a { color: #aeb9c5; }

/* photo carry: a job's picture grows into the top of its own page (browsers that can) */
@view-transition { navigation: auto; }
::view-transition-group(*) { animation-duration: .5s; animation-timing-function: var(--ease); }
@media (prefers-reduced-motion: reduce) { ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; } }
.vt-bathrooms { view-transition-name: photo-bathrooms; }
.vt-kitchens { view-transition-name: photo-kitchens; }
.vt-laundries { view-transition-name: photo-laundries; }
.vt-wardrobes { view-transition-name: photo-wardrobes; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; } }
@media print { .hdr, .bar, .drawer, .ftr { display: none; } .card { box-shadow: none; } }
