@font-face {
  font-family: Montserrat;
  src: url("assets/montserrat.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("assets/source-sans-3.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #2b2f33;
  --paper: #f7f5ef;
  --stone: #a5a9ad;
  --blue: #2f6f93;
  --warm: #c6c0b8;
  --line: #d5d0c7;
  --heading: Montserrat, Arial, sans-serif;
  --body: "Source Sans 3", "Segoe UI", sans-serif;
  --gutter: clamp(1.25rem, 4vw, 4rem);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding: 1.25rem 0 6.5rem; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 400 1.125rem/1.55 var(--body); }
img { display: block; max-width: 100%; }
figure { margin: 0; }
button, input, textarea { font: inherit; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 5px; }
h1, h2, h3, h4 { font-family: var(--heading); line-height: 1.12; margin: 0; font-weight: 750; }
h2 { font-size: clamp(1.85rem, 3.45vw, 3rem); letter-spacing: -.052em; text-wrap: balance; }
h3 { font-size: clamp(1.06rem, 1.55vw, 1.32rem); letter-spacing: -.025em; }
p { margin: 0 0 .85em; }
p:last-child { margin-bottom: 0; }

.wrap { width: min(100% - 2 * var(--gutter), 1320px); margin-inline: auto; }
.section-space { padding-block: clamp(2.4rem, 4.65vw, 4.25rem); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.split h2 { max-inline-size: 17ch; }
.reading { max-inline-size: 56ch; }
.reading h2 { margin-bottom: .55em; }
.lead { font-size: 1.16em; font-weight: 600; line-height: 1.4; }
.skip-link { position: absolute; z-index: 5; left: 1rem; top: .75rem; background: white; padding: .65rem 1rem; transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }

.site-header { border-bottom: 1px solid var(--line); }
.header-inner { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; min-height: 83px; }
.wordmark { display: inline-grid; width: max-content; font: 800 1.73rem/.95 var(--heading); letter-spacing: -.065em; text-transform: uppercase; text-decoration: none; }
.wordmark span { color: var(--blue); font-size: .459em; letter-spacing: .31em; margin-top: .42em; }
nav { display: flex; gap: clamp(1rem, 3.2vw, 3.1rem); }
nav a { display: grid; align-items: center; min-height: 44px; font-size: 1rem; font-weight: 600; text-decoration: none; }
nav a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: .32em; }
.button {
  display: inline-flex; gap: 1.1rem; justify-content: space-between; align-items: center;
  min-height: 51px; padding: .8rem 1.1rem; border: 1px solid transparent; border-radius: 3px;
  color: white; background: var(--blue); font: 700 .77rem/1.25 var(--heading);
  letter-spacing: .012em; text-decoration: none; cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
.button:hover { background: #245875; }
.button span, .text-link span { font: 600 1.16rem/1 var(--body); }
.button-outline { border-color: var(--blue); background: transparent; color: var(--blue); min-height: 44px; }
.button-outline:hover { color: white; border-color: #245875; }
.text-link {
  display: inline-flex; gap: .65rem; align-items: center; min-height: 44px; padding: 0;
  border: 0; background: none; color: #245875;
  font: 700 .78rem/1.4 var(--heading); text-underline-offset: .3em; text-decoration: underline;
  text-decoration-thickness: 1px; cursor: pointer;
}
.text-link:hover { text-decoration-thickness: 2px; }

.hero {
  display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.65fr);
  grid-template-rows: 1fr 1.04fr; gap: 1.3rem clamp(2rem, 4vw, 4.5rem);
  padding-block: clamp(1.9rem, 3.55vw, 3.6rem) clamp(1.95rem, 3.3vw, 3.25rem);
}
.hero-heading { grid-column: 1; align-self: end; }
.hero-copy { grid-column: 1; align-self: start; }
.eyebrow {
  color: #245875; font: 750 .68rem/1.55 var(--heading); letter-spacing: .105em;
  text-transform: uppercase; margin-bottom: 1.4rem;
}
.eyebrow-divider { margin-inline: .18em; }
h1 { font-size: clamp(2.65rem, 4.65vw, 4.6rem); line-height: .99; letter-spacing: -.066em; }
h1 span { display: block; color: var(--blue); }
.hero-copy > p:not(.eyebrow, .hero-note) { max-width: 40ch; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem 1.15rem; margin-top: 1.4rem; }
.hero-note { color: #55595b; font-size: .88rem; margin-top: 1rem; }
.comparison { grid-area: 1 / 2 / 3; min-width: 0; align-self: center; }
.comparison-stage {
  --reveal: 38%;
  position: relative; aspect-ratio: 1.49; overflow: hidden; isolation: isolate;
  border-radius: 4px; background: var(--warm);
}
.comparison-stage:focus-within { outline: 3px solid var(--blue); outline-offset: 5px; }
.comparison-stage img { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: 50% 72%; }
/* Correct the small horizontal offset between the two approved crops. */
.comparison-stage .garage-after { object-position: calc(50% + clamp(2px, .29vw, 4px)) 72%; }
.garage-before { clip-path: inset(0 calc(100% - var(--reveal)) 0 0); }
.divider {
  position: absolute; inset: 0 auto 0 var(--reveal); width: 2px; transform: translateX(-50%);
  display: grid; place-content: center; color: var(--ink); background: white; pointer-events: none;
}
.divider span {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  font: 700 1.4rem/1 var(--body); background: white; box-shadow: 0 1px 9px #0003;
}
.comparison-range {
  position: absolute; inset: 0 -1.38rem; width: calc(100% + 2.76rem); height: 100%;
  appearance: none; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y;
}
.comparison-range::-webkit-slider-thumb { appearance: none; width: 44px; height: 44px; }
.comparison-range::-moz-range-thumb { width: 44px; height: 44px; }
.photo-label {
  position: absolute; top: clamp(.75rem, 2vw, 1.2rem); padding: .45rem .75rem; border-radius: 2px;
  font: 700 .64rem/1.2 var(--heading); letter-spacing: .11em; text-transform: uppercase;
  color: white; background: #252b30;
}
.before-label { left: clamp(.75rem, 2vw, 1.2rem); }
.after-label { right: clamp(.75rem, 2vw, 1.2rem); background: #245875; }
.comparison-stage[data-side="after"] .before-label,
.comparison-stage[data-side="before"] .after-label { visibility: hidden; }
figcaption { color: #505457; font-size: .86rem; padding-top: .6rem; }
.comparison figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: .4rem 1.2rem; flex-wrap: wrap; }
.comparison-hint { color: #245875; font-weight: 700; white-space: nowrap; }

.intro { border-block: 1px solid var(--line); }
.callout { border-left: 3px solid var(--blue); padding: .15rem 0 .15rem 1.15rem; margin-block: 1.45rem; font-weight: 650; }
.callout p { margin: 0; }
.callout p:last-child { color: #245875; }
.process { background: var(--ink); color: var(--paper); }
.section-heading { align-items: end; margin-bottom: 1.55rem; }
.prep-list { margin: 0; border-top: 1px solid #6e7f89; }
.prep-list > div {
  display: grid; grid-template-columns: minmax(7.5rem, .62fr) minmax(0, 1.5fr);
  gap: .6rem 1.15rem; padding-block: .85rem; border-bottom: 1px solid #6e7f89;
}
.prep-list dt { font: 750 .99rem/1.4 var(--heading); color: #b5dbef; }
.prep-list dd { margin: 0; }
.process-note { margin-top: 1.5rem; }
.process-note p { margin-bottom: .2rem; }
.process .process-note { border-left: 2px solid #91c8e5; padding-left: .9rem; }
.diy { align-items: center; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); }
.detail-photo img { width: 100%; height: auto; aspect-ratio: 2.25; object-fit: cover; border-radius: 3px; }
.cost { background: #eae6df; }
.cost .button { margin-top: .5rem; }
.cost-factors { border-top: 2px solid var(--blue); padding: 1rem clamp(.9rem, 2.4vw, 1.75rem) .45rem; background: var(--paper); }
.cost-factors ul { margin: 0; padding: 0; list-style: none; }
.cost-factors li { position: relative; padding: .45rem 0 .45rem 1.15rem; border-top: 1px solid var(--line); }
.cost-factors li::before { content: ""; position: absolute; left: .1rem; top: 1em; width: .39rem; height: .39rem; background: var(--blue); }
.timeline {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0;
  margin: 0; padding: .35rem 0 0; list-style: none;
}
.timeline li { position: relative; border-top: 1px solid var(--blue); padding: 1.15rem clamp(.75rem, 3vw, 2.5rem) 0 0; }
.timeline li::before {
  content: ""; position: absolute; inset: -.38rem auto auto 0; width: .75rem; height: .75rem;
  background: var(--blue); border: 2px solid var(--paper); outline: 1px solid var(--blue); border-radius: 50%;
}
.timeline h3 { margin-bottom: .42rem; }
.window { background: #e7edf0; }
.window h2 { color: #245875; }
.window-grid { align-items: center; }
.window-photo img { width: 100%; height: auto; aspect-ratio: 1.82; object-fit: cover; object-position: center bottom; border-radius: 3px; }
.questions { border-top: 1px solid var(--line); }
.questions details { border-bottom: 1px solid var(--line); }
.questions p { margin: 0 2rem 1.1rem 0; }
.questions summary {
  position: relative; display: block; list-style: none; padding: 1rem 2.1rem 1rem 0;
  font: 700 .92rem/1.45 var(--heading); cursor: pointer;
}
.questions summary::-webkit-details-marker { display: none; }
.questions summary::after { content: "+" / ""; position: absolute; right: .3rem; top: .85rem; color: #245875; font: 600 1.3rem/1.25 var(--body); }
.questions details[open] summary::after { content: "−" / ""; }
.questions summary:hover { color: #245875; }

.estimate { background: var(--ink); color: var(--paper); scroll-margin-top: -1.25rem; }
.estimate .split { align-items: center; }
.estimate-copy h2 { font-size: clamp(2.45rem, 4.6vw, 4.25rem); margin-bottom: .52em; }
.estimate-copy p { margin-bottom: .28rem; }
.estimate-copy .closing-line { margin-top: 1.25rem; font: 700 1rem/1.4 var(--heading); }
.form-panel { background: var(--paper); color: var(--ink); padding: clamp(1.3rem, 3.5vw, 2.8rem); border-radius: 4px; }
.form-panel h3 { font-size: clamp(1.3rem, 2vw, 1.8rem); margin-bottom: .5rem; }
.form-note { border-left: 3px solid var(--blue); background: #e7edf0; padding: .65rem .8rem; font-size: .92rem; line-height: 1.38; }
fieldset { margin: 0; border: 0; padding: 0; min-width: 0; }
.field { margin-bottom: 1rem; }
.field label { display: block; margin-bottom: .2rem; font-weight: 700; font-size: 1rem; }
.field input, .field textarea { display: block; width: 100%; min-height: 45px; padding: .42rem .65rem; border: 1px solid #8b8d8f; border-radius: 2px; background: #fff; color: var(--ink); font-size: 1rem; }
.field textarea { resize: vertical; }
.field :is(input, textarea):focus-visible { outline-offset: 2px; }
.field [aria-invalid="true"] { border-color: #a02b25; }
.field-error { color: #932822; font-weight: 600; font-size: .92rem; }
.form-panel .button { width: 100%; }
.form-panel button:disabled { opacity: .58; cursor: default; }
.confirmation { border-top: 1px solid var(--line); padding-top: 1rem; margin-top: 1.25rem; }
.confirmation h4 { margin-bottom: .5rem; }
.site-footer { background: #22262a; color: var(--paper); }
.footer-inner { display: flex; align-items: end; justify-content: space-between; gap: 1.6rem; padding-block: 2rem; font-size: .93rem; }
.footer-inner .wordmark { margin-bottom: .65rem; }
.footer-inner .wordmark span { color: #91c8e5; }
.footer-inner > p { max-width: 53ch; color: #e2ddd6; }
.site-footer :focus-visible, .estimate-copy :focus-visible { outline-color: #91c8e5; }
.mobile-cta { display: none; }

@media (max-width: 1080px) {
  .hero-actions { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 760px) {
  body { display: grid; grid-template-rows: minmax(0, 1fr) auto; height: 100vh; height: 100dvh; overflow: hidden; }
  .page-shell { position: relative; min-height: 0; overflow: auto; scroll-behavior: smooth; scroll-padding: 1rem 0; }
  .header-inner { min-height: 67px; gap: .8rem; }
  .wordmark { font-size: 1.48rem; }
  nav { gap: .83rem; }
  nav a { font-size: .875rem; }
  .header-cta { display: none; }
  .hero, .split { grid-template-columns: minmax(0, 1fr); gap: 1.4rem; }
  .hero { grid-template-rows: auto; padding-top: 1.65rem; }
  .comparison { grid-area: auto; }
  .hero-actions { flex-direction: row; }
  .hero-heading h1 { font-size: clamp(2.35rem, 8.6vw, 4rem); }
  .hero-heading .eyebrow { margin-bottom: .85rem; }
  .hero-copy > p:not(.eyebrow, .hero-note) { margin-bottom: .58rem; }
  .hero-note { margin-top: .45rem; }
  .hero-actions { margin-top: .85rem; }
  .comparison-stage { aspect-ratio: 1.17; }
  .section-heading { margin-bottom: 1.05rem; }
  .timeline { grid-template-columns: minmax(0, 1fr); padding: 0 0 0 .4rem; }
  .timeline li { border-top: 0; border-left: 1px solid var(--blue); padding: 0 0 1rem 1.1rem; }
  .timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
  .timeline li::before { inset: .18rem auto auto -.41rem; }
  .diy > .detail-photo { order: 2; }
  .footer-inner { flex-direction: column; align-items: start; }
  .mobile-cta {
    display: block;
    background: var(--paper); border-top: 1px solid var(--line);
    padding: .6rem var(--gutter) calc(.6rem + env(safe-area-inset-bottom));
  }
  .mobile-cta .button { width: 100%; }
}
@media (max-width: 370px) {
  nav { gap: .55rem; }
  nav a { font-size: .79rem; }
  .wordmark { font-size: 1.22rem; }
  .hero-actions { flex-direction: column; }
  .prep-list > div { grid-template-columns: minmax(0, 1fr); gap: .25rem; }
}
@media (prefers-reduced-motion: reduce) {
  html, .page-shell { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
