/* Jimmy Construction Inc — one-page site
   Palette pulled from the job: Atlantic slate, salt fog, cedar gold (logo), weathered shingle. */

:root {
  --slate: #1e2b33;
  --slate-deep: #152027;
  --slate-line: #34444e;
  --fog: #f5f1ea;
  --cream: #f5f1ea;
  --sand: #ebe4d8;
  --line-light: #ddd4c6;
  --paper: #ffffff;
  --cedar: #c9a363;
  --cedar-deep: #7a5a2a;
  --shingle: #5f5d57;
  --on-slate: #e6e9e7;
  --on-slate-muted: #aab4b7;
  --error: #a3261b;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 9vw, 128px);
  --radius: 3px;
  /* paper grain shared by the estimate sheet and the FAQ clipboard */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .42 0 0 0 0 .34 0 0 0 0 .22 0 0 0 .11 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m12 2.5 2.9 6 6.6.9-4.8 4.6 1.2 6.5L12 17.4l-5.9 3.1 1.2-6.5L2.5 9.4l6.6-.9z'/%3E%3C/svg%3E");
  --pen-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 28'%3E%3Cpath d='M4 15c2.5 1.6 4.4 4 5.8 7.4C13 14 19.5 6.4 27 2' fill='none' stroke='%231f3d6b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");

  --display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--fog);
  color: var(--slate);
  font-family: var(--display);
  font-variation-settings: 'wdth' 100;
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

:focus-visible { outline: 3px solid var(--cedar); outline-offset: 3px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--cedar); color: var(--slate); padding: 12px 16px; font-weight: 700; }
.skip:focus { left: 16px; top: 16px; }

/* ---------- Type scale (classic: 14 · 17 · 21 · 28 · 36 · 48 · 60) ---------- */
h1, h2, h3 { margin: 0; font-family: var(--display); color: inherit; text-wrap: balance; }
h1 {
  font-size: clamp(2.125rem, 4.6vw, 3.75rem);
  font-weight: 750;
  font-variation-settings: 'wdth' 118;
  line-height: 1.04;
  letter-spacing: -0.012em;
}
h2 {
  font-size: clamp(1.875rem, 3.4vw, 2.875rem);
  font-weight: 720;
  font-variation-settings: 'wdth' 114;
  line-height: 1.08;
  letter-spacing: -0.01em;
}
/* the accent half of every section title: same move as the hero's "homes" */
h2 em { font-style: italic; font-weight: 400; font-variation-settings: 'wdth' 108; color: var(--cedar-deep); }
h3 {
  font-size: 1.3125rem;
  font-weight: 680;
  font-variation-settings: 'wdth' 108;
  line-height: 1.25;
}
.lede { font-size: 1.1875rem; line-height: 1.55; max-width: 60ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 26px;
  border: 2px solid transparent; border-radius: var(--radius);
  font: inherit; font-weight: 700; font-size: 1rem; font-variation-settings: 'wdth' 108;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn--gold { background: var(--cedar); color: var(--slate); }
.btn--gold:hover { background: #d8b679; }
.btn--slate { background: var(--slate); color: var(--paper); }
.btn--slate:hover { background: #2b3b45; }
.btn--line { border-color: currentColor; color: inherit; background: transparent; }
.btn--line:hover { background: rgba(201, 163, 99, .14); }

.tel { font-weight: 700; text-decoration: none; white-space: nowrap; font-variation-settings: 'wdth' 108; }
.tel:hover { text-decoration: underline; text-underline-offset: 4px; }
.tel--light { color: var(--on-slate); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-variation-settings: 'wdth' 108; text-decoration: none;
  color: var(--cedar-deep); border-bottom: 2px solid currentColor; padding-bottom: 3px;
}
.link-arrow span { transition: transform .2s ease; }
.link-arrow:hover span { transform: translateX(4px); }
.link-arrow--light { color: var(--cedar); }
/* phones: text links get a finger-sized hit area without changing how they look */
@media (max-width: 760px) {
  .link-arrow { min-height: 44px; padding-top: 10px; }
  .tel { display: inline-flex; align-items: center; min-height: 44px; }
}

/* ---------- Header: a job-site sign hanging from the bar, ruler-tick nav, a tear-off estimate stub ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: var(--slate); color: var(--paper);
  border-bottom: 1px solid var(--slate-line);
  transition: box-shadow .25s ease;
}
.site-header.is-stuck { box-shadow: 0 10px 30px rgba(0, 0, 0, .28); }
.site-header .wrap { display: flex; align-items: center; gap: 32px; min-height: 76px; transition: min-height .25s ease; }
.site-header.is-stuck .wrap { min-height: 64px; }

/* the logo sits on a plate that hangs past the bar, edged in cedar */
.brand {
  flex: none; position: relative; align-self: flex-start; display: block;
  margin-bottom: -18px; padding: 16px 18px 14px; background: var(--slate-deep);
  border-bottom: 3px solid var(--cedar); box-shadow: 0 12px 24px rgba(0, 0, 0, .25);
  transition: padding .25s ease;
}
.brand::before, .brand::after { content: ''; position: absolute; top: 9px; width: 4px; height: 4px; border-radius: 50%; background: #5c6b74; }
.brand::before { left: 7px; }
.brand::after { right: 7px; }
.brand img { display: block; width: 112px; height: auto; transition: width .25s ease; }
.site-header.is-stuck .brand { padding: 12px 15px 10px; margin-bottom: -12px; }
.site-header.is-stuck .brand img { width: 94px; }

.nav { display: flex; align-items: center; margin-left: auto; }
.nav a {
  position: relative; padding: 14px clamp(12px, 1.5vw, 20px); text-decoration: none;
  font-weight: 700; font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; font-variation-settings: 'wdth' 116;
  color: var(--on-slate-muted); transition: color .2s ease;
}
/* ruler ticks between the links */
.nav a + a::before { content: ''; position: absolute; left: 0; top: 50%; width: 1px; height: 9px; margin-top: -4.5px; background: var(--slate-line); }
/* active link: the logo's roof peak under it */
.nav a::after {
  content: ''; position: absolute; left: 50%; bottom: 3px; width: 18px; height: 8px; margin-left: -9px; opacity: 0; transform: translateY(3px);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 16'%3E%3Cpolyline points='1,14 10,3 19,12 35,12' fill='none' stroke='%23c9a363' stroke-width='3'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: opacity .2s ease, transform .2s ease;
}
.nav a:hover { color: var(--paper); }
.nav a.is-active { color: var(--cedar); }
.nav a.is-active::after { opacity: 1; transform: none; }

.header-actions { display: flex; align-items: center; gap: 22px; }
.header-call { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--paper); font-weight: 700; font-size: 1rem; font-variation-settings: 'wdth' 108; font-variant-numeric: tabular-nums; white-space: nowrap; }
.header-call svg { width: 16px; height: 16px; fill: none; stroke: var(--cedar); stroke-width: 1.8; stroke-linejoin: round; }
.header-call:hover { color: var(--cedar); }

.header-actions .btn { min-height: 46px; padding: 10px 22px; font-size: .9375rem; }

.btn--arrow span { transition: transform .2s ease; }
.btn--arrow:hover span { transform: translateX(3px); }

@media (max-width: 1120px) { .header-call { font-size: 0; gap: 0; } .header-call svg { width: 20px; height: 20px; } }
@media (max-width: 960px) {
  .nav { display: none; }
  .header-actions { margin-left: auto; gap: 18px; }
  .header-call { font-size: 1rem; gap: 9px; }
}
@media (max-width: 560px) {
  .site-header .wrap, .site-header.is-stuck .wrap { min-height: 60px; gap: 12px; }
  .brand, .site-header.is-stuck .brand { padding: 10px 12px 8px; margin-bottom: -10px; }
  .brand::before, .brand::after { display: none; }
  .brand img, .site-header.is-stuck .brand img { width: 82px; }
  .header-call { display: none; }
  .header-actions .btn { min-height: 42px; padding: 8px 16px; }
}

/* ---------- Hero: the photo lives inside the logo's roofline ---------- */
.hero {
  color: var(--paper); padding-top: clamp(36px, 6vw, 72px); overflow-x: clip;
  /* faint shingle texture behind the slate */
  background:
    linear-gradient(rgba(30, 43, 51, .92), rgba(30, 43, 51, .95)),
    url('/img/tex-valley.jpg') center / cover no-repeat,
    var(--slate);
  background:
    linear-gradient(rgba(30, 43, 51, .92), rgba(30, 43, 51, .95)),
    image-set(url('/img/tex-valley.webp') type('image/webp'), url('/img/tex-valley.jpg') type('image/jpeg')) center / cover no-repeat,
    var(--slate);
}
.hero-top { display: grid; gap: 20px; }
.hero h1 em { font-style: italic; font-weight: 420; font-variation-settings: 'wdth' 112; }
.hero-pitch .lede { color: var(--on-slate); margin-bottom: 22px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.hero-trust { margin-top: 14px; font-size: .875rem; font-weight: 600; font-variation-settings: 'wdth' 108; color: var(--cedar); letter-spacing: .01em; }

.hero-house { position: relative; margin-top: clamp(28px, 4vw, 40px); aspect-ratio: 1240 / 680; container-type: inline-size; }
/* photo runs edge to edge; the gable stays on the content column (cqw = 1% of .hero-house) */
.hero-photo { position: absolute; top: 0; bottom: 0; left: calc(50% - 50vw); right: calc(50% - 50vw); }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-photo img {
  object-fit: cover; object-position: 50% 45%;
  /* gable rising left, then the long flat eave — same geometry as the Jimmy mark */
  clip-path: polygon(0 27.65%, calc(50% - 50cqw) 27.65%, calc(50% - 33.06cqw) 10%, calc(50% - 18.39cqw) 25.44%, 100% 25.44%, 100% 100%, 0 100%);
}
.roofline { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.roofline polyline { fill: none; stroke: var(--cedar); stroke-linejoin: miter; stroke-miterlimit: 8; }
.roofline--wide polyline { stroke-width: 14; }
.roofline--tall { display: none; }
.roofline--tall polyline { stroke-width: 8; }

@media (min-width: 1000px) {
  .hero-top { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: clamp(32px, 4vw, 56px); align-items: end; }
  .hero h1 { font-size: clamp(2.5rem, 3.7vw, 3.375rem); }
  .hero h1 .ln { display: block; white-space: nowrap; }
  .hero-pitch .lede { font-size: 1.0625rem; margin-bottom: 18px; }
}
/* one-column hero (phones and tablets): the copy block is centered */
@media (max-width: 999px) {
  .hero-top { text-align: center; justify-items: center; }
  .hero-pitch .lede { margin-inline: auto; }
  .hero-actions { justify-content: center; }
}
@media (max-width: 699px) {
  .hero-house { aspect-ratio: 400 / 420; margin-inline: calc(-1 * var(--gutter)); }
  .hero-photo { left: 0; right: 0; }
  .hero-photo img { object-position: 50% 50%; clip-path: polygon(0 26.19%, 32.5% 8.33%, 65% 26.19%, 100% 26.19%, 100% 100%, 0 100%); }
  .roofline--wide { display: none; }
  .roofline--tall { display: block; }
}

.proof {
  list-style: none; margin: 0; padding: 20px 0 22px;
  display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between;
}
.proof li { display: flex; align-items: center; gap: 14px; padding: 4px clamp(14px, 2vw, 28px); border-left: 1px solid var(--slate-line); }
.proof li:first-child { padding-left: 0; border-left: 0; }
.proof strong { flex: none; font-size: 1.375rem; line-height: 1; font-weight: 750; font-variation-settings: 'wdth' 116; color: var(--cedar); white-space: nowrap; }
.proof span { color: var(--on-slate-muted); font-size: .8125rem; line-height: 1.4; max-width: 19ch; }
@media (max-width: 1100px) { .proof span { font-size: .75rem; } }
/* the copies main.js adds for the ticker only exist on small screens */
.proof li.proof-dup { display: none; }
/* phones and tablets: the four facts become one line that keeps rolling, full width */
@media (max-width: 960px) {
  .proof-marquee {
    margin-inline: calc(50% - 50vw); overflow: hidden; border-top: 1px solid var(--slate-line);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
            mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  }
  .proof-marquee .proof {
    display: flex; width: max-content; padding: 16px 0 18px;
    animation: proof-roll 28s linear infinite;
  }
  .proof-marquee .proof li.proof-dup { display: flex; }
  .proof-marquee .proof li, .proof-marquee .proof li:first-child {
    flex: none; gap: 10px; padding: 0 22px 0 24px; border: 0; position: relative;
  }
  /* cedar diamond between facts */
  .proof-marquee .proof li::before {
    content: ''; position: absolute; left: -3px; top: 50%; width: 6px; height: 6px; margin-top: -3px; background: var(--cedar); transform: rotate(45deg);
  }
  .proof-marquee .proof strong { font-size: 1.125rem; }
  .proof-marquee .proof span { max-width: none; white-space: nowrap; font-size: .8125rem; }
  @keyframes proof-roll { to { transform: translateX(-50%); } }
}
@media (max-width: 960px) and (prefers-reduced-motion: reduce) {
  .proof-marquee { overflow-x: auto; }
  .proof-marquee .proof { animation: none; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section--paper { background: var(--paper); }
.section--cream { background: var(--cream); }
.section--sand { background: var(--sand); }
.section--slate { background: var(--slate); color: var(--paper); }
.section--deep { background: var(--slate-deep); color: var(--paper); }
.section--slate h2 em, .section--deep h2 em { color: var(--cedar); }
/* same faint-photo treatment as the hero, on the other dark bands */
.section--tex-ridge {
  background:
    linear-gradient(rgba(30, 43, 51, .93), rgba(30, 43, 51, .96)),
    url('/img/tex-ridge.jpg') center 30% / cover no-repeat,
    var(--slate);
  background:
    linear-gradient(rgba(30, 43, 51, .93), rgba(30, 43, 51, .96)),
    image-set(url('/img/tex-ridge.webp') type('image/webp'), url('/img/tex-ridge.jpg') type('image/jpeg')) center 30% / cover no-repeat,
    var(--slate);
}
.section--tex-valley {
  background:
    linear-gradient(rgba(30, 43, 51, .92), rgba(30, 43, 51, .95)),
    url('/img/tex-valley.jpg') center / cover no-repeat,
    var(--slate);
}

/* Section heads */
.orn {
  display: block; width: 148px; height: 16px; padding: 0 56px; color: var(--cedar);
  background:
    linear-gradient(currentColor, currentColor) left 60% / 44px 1px no-repeat,
    linear-gradient(currentColor, currentColor) right 60% / 44px 1px no-repeat;
}

.head { margin-bottom: clamp(40px, 5vw, 64px); }
.head--center { display: grid; justify-items: center; gap: 18px; max-width: 780px; margin-inline: auto; text-align: center; }
.head--center p { color: var(--shingle); max-width: 56ch; }
.section--slate .head--center p, .section--deep .head--center p { color: var(--on-slate-muted); }
.head-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px 28px; margin-top: 10px; }
.head--split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 20px clamp(32px, 5vw, 72px); align-items: end; }
.head--split > p { color: var(--shingle); max-width: 46ch; }
@media (max-width: 860px) { .head--split { grid-template-columns: 1fr; } }

.section-cta { margin-top: clamp(36px, 5vw, 56px); display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.section-cta--center { justify-content: center; }

/* Reviews + Instagram: real Google reviews in a carousel, the latest posts underneath.
   The cards ship in the HTML (crawlable, work without the APIs); main.js swaps in live data when /api answers. */
#reviews { overflow-x: clip; }
.reviews-board { background: var(--sand); }
.rv-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 48px; margin-bottom: 32px; }
.rv-head h2 { max-width: 20ch; }
.rv-summary { display: flex; align-items: center; gap: 10px; margin-top: 16px; color: var(--shingle); font-size: .9375rem; }
.rv-summary .g-logo { width: 20px; height: 20px; flex: none; }
.rv-summary b { color: var(--slate); font-size: 1.125rem; }
.rv-summary .rv-rating { margin-inline: 2px 4px; }
/* review button: five empty stars that fill in on hover, an invitation, not a score */
.rv-google {
  display: inline-flex; align-items: center; gap: 14px; padding: 12px 22px 12px 16px; text-decoration: none; text-align: left;
  background: var(--slate); color: var(--paper); border-radius: var(--radius); box-shadow: 0 10px 22px rgba(21, 32, 39, .2);
  transition: transform .2s ease, box-shadow .2s ease;
}
.rv-google strong { display: block; font-size: 1rem; font-variation-settings: 'wdth' 108; }
.rv-google small { display: block; color: var(--on-slate-muted); font-size: .75rem; }
.rv-stars { display: flex; gap: 2px; }
.rv-stars i {
  width: 18px; height: 18px; background-color: rgba(201, 163, 99, .35); transition: background-color .15s ease;
  -webkit-mask: var(--star) center / contain no-repeat; mask: var(--star) center / contain no-repeat;
}
.rv-google:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(21, 32, 39, .26); }
.rv-google:hover .rv-stars i { background-color: var(--cedar); }
.rv-google:hover .rv-stars i:nth-child(2) { transition-delay: .05s; }
.rv-google:hover .rv-stars i:nth-child(3) { transition-delay: .1s; }
.rv-google:hover .rv-stars i:nth-child(4) { transition-delay: .15s; }
.rv-google:hover .rv-stars i:nth-child(5) { transition-delay: .2s; }
.rv-google:focus-visible { outline: 2px solid var(--slate); outline-offset: 3px; }

/* carousel: native scroll-snap, arrows above the right edge */
/* the track starts on the content column and runs off the right edge of the screen */
.rv-carousel { --col: min(100vw - 2 * var(--gutter), var(--wrap)); display: flex; flex-direction: column; }
.rv-nav { order: 2; display: flex; gap: 10px; }
.rv-nav .hs-arrow[disabled] { opacity: .35; cursor: default; transform: none; }
.rv-track {
  list-style: none; margin: 0 calc(50% - 50vw) 0 0; padding: 8px var(--gutter) 26px 0;
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((var(--col) - 2 * 20px) / 3); gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none;
}
.rv-track::-webkit-scrollbar { display: none; }
.rv-card {
  scroll-snap-align: start; display: flex; flex-direction: column; padding: 24px 24px 20px;
  background: var(--paper); border-radius: 4px; border-top: 3px solid var(--cedar); box-shadow: 0 14px 30px rgba(21, 32, 39, .09);
}
.rv-card-top { display: flex; align-items: center; gap: 12px; }
.rv-avatar {
  flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; overflow: hidden;
  background: var(--slate); color: var(--cedar); font-weight: 750; font-size: .875rem; letter-spacing: .04em;
}
.rv-avatar img { width: 100%; height: 100%; object-fit: cover; }
.rv-who { flex: 1; min-width: 0; display: grid; line-height: 1.3; }
.rv-who strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-variation-settings: 'wdth' 106; }
.rv-who time { color: var(--shingle); font-size: .8125rem; }
.g-logo { width: 22px; height: 22px; flex: none; }
.rv-rating { display: inline-flex; gap: 2px; margin: 14px 0 10px; }
.rv-summary .rv-rating { margin-block: 0; }
.rv-rating i { width: 17px; height: 17px; background: #f4b400; -webkit-mask: var(--star) center / contain no-repeat; mask: var(--star) center / contain no-repeat; }
.rv-text { color: #3b4247; font-size: .9375rem; line-height: 1.6; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 6; overflow: hidden; }
.rv-text p + p { margin-top: 8px; }
.rv-card.is-open .rv-text { display: block; -webkit-line-clamp: unset; }
.rv-more { align-self: flex-start; margin-top: 10px; padding: 6px 0; border: 0; background: none; cursor: pointer; color: var(--cedar-deep); font: 700 .875rem/1 var(--display); text-decoration: underline; text-underline-offset: 3px; }

/* Instagram strip */
.ig { margin-top: clamp(36px, 5vw, 56px); padding-top: clamp(32px, 4vw, 44px); border-top: 1px solid var(--line-light); }
.ig-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; margin-bottom: 24px; }
.ig-profile { display: flex; align-items: center; gap: 14px; color: var(--slate); text-decoration: none; }
.ig-profile strong { display: block; font-size: 1.125rem; font-variation-settings: 'wdth' 108; }
.ig-profile small { display: block; color: var(--shingle); font-size: .875rem; }
.ig-profile:hover strong { color: var(--cedar-deep); }
.ig-avatar { flex: none; width: 64px; height: 64px; padding: 3px; border-radius: 50%; background: linear-gradient(135deg, #f9ce34, #ee2a7b 55%, #6228d7); }
.ig-avatar img { width: 100%; height: 100%; border-radius: 50%; border: 3px solid var(--sand); object-fit: cover; background: var(--slate); }
.ig-follow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.ig-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.ig-post { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 4px; background: var(--slate); }
.ig-post picture, .ig-post img { display: block; width: 100%; height: 100%; }
.ig-post img { object-fit: cover; transition: transform .6s ease; }
.ig-post::after { content: ''; position: absolute; inset: 0; background: rgba(21, 32, 39, .25); opacity: 0; transition: opacity .3s ease; }
.ig-post:hover img { transform: scale(1.05); }
.ig-post:hover::after { opacity: 1; }
.ig-play {
  position: absolute; z-index: 1; top: 10px; right: 10px; width: 30px; height: 30px; border-radius: 50%; background: rgba(21, 32, 39, .55);
}
.ig-play::before { content: ''; position: absolute; left: 12px; top: 9px; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent #fff; }

@media (max-width: 1000px) {
  .rv-track { grid-auto-columns: calc((var(--col) - 20px) / 2); }
}
@media (max-width: 700px) {
  .rv-head { margin-bottom: 20px; }
  .rv-track { grid-auto-columns: calc(var(--col) * .88); gap: 14px; }
  .ig-grid {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
  }
  .ig-grid::-webkit-scrollbar { display: none; }
  .ig-grid li { flex: 0 0 44%; scroll-snap-align: start; }
  .ig-follow { width: 100%; }
}
@media (max-width: 480px) {
  .rv-google { flex-direction: column; gap: 8px; width: 100%; padding: 16px; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { .ig-post img { transition: none; } }
/* About: framed drone shot with an offset cedar frame, a detail photo overlapping its corner */
.about { display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 13fr); gap: 56px clamp(48px, 7vw, 104px); align-items: center; }
.about-media { position: relative; isolation: isolate; padding: 0 0 80px; margin: 0 0 0 26px; }
.about-media::before {
  content: ''; position: absolute; z-index: -1; top: -26px; left: -26px; width: 84%; aspect-ratio: 4 / 5;
  border: 2px solid var(--cedar);
}
.about-main { display: block; width: 84%; }
.about-main img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 56% 50%; border-radius: var(--radius); box-shadow: 0 24px 50px rgba(21, 32, 39, .18); }
.about-sub {
  position: absolute; right: 0; bottom: 0; width: 52%;
  border: 8px solid var(--paper); border-radius: var(--radius); box-shadow: 0 22px 46px rgba(21, 32, 39, .24);
}
.about-sub img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.about-badge {
  position: absolute; top: 24px; left: 24px; display: flex; align-items: center; gap: 14px;
  background: var(--slate); color: var(--paper); padding: 16px 20px; border-radius: var(--radius);
  box-shadow: 0 18px 40px rgba(21, 32, 39, .28);
}
.about-badge strong { font-size: 2.75rem; line-height: 1; font-weight: 750; font-variation-settings: 'wdth' 118; color: var(--cedar); }
.about-badge span { max-width: 14ch; font-size: .75rem; line-height: 1.35; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; }
.about-text { position: relative; isolation: isolate; }
/* faint gable outline behind the copy, same roofline language as the hero */
.about-roof {
  position: absolute; z-index: -1; top: -36px; right: 0; width: min(46%, 300px); height: auto;
  fill: none; stroke: var(--cedar); stroke-width: 2.5; stroke-linejoin: miter; opacity: .38;
}
.about-text h2 { margin-bottom: 28px; }
.about-copy p { color: #3b4247; }
.about-copy strong { color: var(--slate); font-weight: 650; }
.about-lede { font-size: 1.1875rem; line-height: 1.6; color: var(--slate) !important; }
.about-quote {
  margin-block: 26px; padding: 4px 0 4px 22px; border-left: 3px solid var(--cedar);
  font-size: 1rem; font-style: italic; font-variation-settings: 'wdth' 100;
}
.about-quote strong { display: block; margin-top: 8px; font-style: normal; font-size: 1.125rem; color: var(--cedar-deep); font-weight: 700; }
.tel--icon { display: inline-flex; align-items: center; gap: 10px; color: var(--slate); }
.tel--icon svg { width: 36px; height: 36px; padding: 9px; border-radius: 50%; border: 1px solid var(--cedar); fill: none; stroke: var(--cedar-deep); stroke-width: 1.8; stroke-linejoin: round; }
@media (max-width: 960px) {
  .about { grid-template-columns: 1fr; }
  .about-media { max-width: 560px; margin-top: 26px; }
}
@media (max-width: 480px) {
  .about-media { margin-left: 14px; padding-bottom: 56px; }
  .about-media::before { top: -14px; left: -14px; }
  .about-badge { top: 14px; left: 14px; padding: 12px 14px; }
  .about-badge strong { font-size: 2.125rem; }
  .about-badge span { font-size: .6875rem; }
}

/* Services: an illustrated house. Each numbered spot lights up the part of the house that service covers
   and opens its card. Without JS every card simply shows as a list under the drawing. */
.head--split > div p { color: var(--shingle); max-width: 46ch; }
.hs-hint { display: flex; align-items: center; gap: 10px; margin-top: 14px; color: var(--cedar-deep) !important; font-weight: 650; font-size: .9375rem; }
.hs-hint svg { flex: none; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
/* full-bleed scene: the house sits in the left of the scene, the card rides on the right of the wrap */
/* the scene runs to the bottom edge of the section */
#services { overflow-x: clip; padding-bottom: 0; }
.hs {
  --wl: max(var(--gutter), (100vw - var(--wrap)) / 2);
  position: relative; width: 100vw; margin-left: calc(50% - 50vw); min-height: clamp(600px, 84vh, 800px);
  background:
    radial-gradient(55% 65% at 34% 52%, rgba(255, 255, 255, .62), rgba(255, 255, 255, 0) 72%),
    linear-gradient(var(--sand), #e3dacb);
}
.hs-stage { position: absolute; z-index: 1; left: var(--wl); top: 50%; transform: translateY(-50%); width: min(54%, 700px); }
.hs.is-3d .hs-stage { inset: 0; width: auto; transform: none; }
.hs-ui {
  position: relative; z-index: 3; width: min(100% - 2 * var(--gutter), var(--wrap)); min-height: inherit; margin-inline: auto;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 400px); grid-template-rows: 1fr auto; gap: 24px 48px;
  padding-block: 40px; pointer-events: none;
}
.hs-side { grid-column: 2; grid-row: 1 / span 2; align-self: center; pointer-events: auto; }
.hs-tabs { grid-column: 1; grid-row: 2; align-self: end; max-width: 660px; pointer-events: auto; }

/* arrows, counter and progress above the card */
.hs-nav { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.hs-arrow {
  display: grid; place-items: center; width: 46px; height: 46px; padding: 0; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--slate); background: var(--paper); color: var(--slate); transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.hs-arrow:last-child { background: var(--slate); color: var(--cedar); }
.hs-arrow:hover { background: var(--cedar); color: var(--slate); border-color: var(--cedar); transform: scale(1.06); }
.hs-arrow:focus-visible { outline: 2px solid var(--cedar-deep); outline-offset: 3px; }
.hs-arrow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hs-count { font-size: .8125rem; font-weight: 700; letter-spacing: .08em; color: var(--shingle); font-variation-settings: 'wdth' 110; white-space: nowrap; }
.hs-count b { color: var(--slate); font-size: 1.125rem; }
.hs-bar { flex: 1; height: 3px; background: rgba(30, 43, 51, .14); border-radius: 2px; overflow: hidden; }
.hs-bar i { display: block; height: 100%; width: 11%; background: var(--cedar); transition: width .45s ease; }
.house { display: block; width: 100%; height: auto; }
.house [data-part] { transition: opacity .35s ease, filter .35s ease; }
.hs.has-focus .house [data-part] { opacity: .32; filter: grayscale(1); }
.hs.has-focus .house [data-part].is-lit { opacity: 1; filter: drop-shadow(0 0 5px rgba(201, 163, 99, .95)) drop-shadow(0 0 14px rgba(201, 163, 99, .55)); }
.house .bath-callout:not(.is-lit) { opacity: 0 !important; }
.house .bath-callout { transform-origin: 232px 190px; }
.house .bath-callout.is-lit { animation: hs-pop .5s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes hs-pop { from { transform: scale(.4); } to { transform: none; } }

/* 3D mode: the canvas replaces the drawing */
.hs.is-3d .house { display: none; }
.house3d { display: block; width: 100%; cursor: grab; touch-action: pan-y; animation: hs-in .6s ease; }
.hs-stage.is-dragging .house3d { cursor: grabbing; }
.hs.is-3d .hs-stage::after {
  content: 'Drag to turn the house'; position: absolute; left: var(--wl); top: 28px; pointer-events: none;
  padding: 7px 12px 7px 32px; border-radius: 999px; background: rgba(30, 43, 51, .82) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c9a363' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a9 9 0 1 1-3-6.7L21 8'/%3E%3Cpath d='M21 3v5h-5'/%3E%3C/svg%3E") 10px center / 15px no-repeat;
  color: var(--paper); font-size: .75rem; font-weight: 650; letter-spacing: .02em;
}
.hs.is-3d .hs-pin { transition: background-color .2s ease, color .2s ease, opacity .2s ease; }

/* numbered spots over the drawing */
.hs-pin {
  position: absolute; z-index: 2; transform: translate(-50%, -50%); display: grid; place-items: center;
  width: 34px; height: 34px; padding: 0; border-radius: 50%; border: 2px solid var(--cedar); cursor: pointer;
  background: var(--slate); color: var(--cedar); font: 750 .75rem/1 var(--display); font-variation-settings: 'wdth' 112;
  box-shadow: 0 6px 14px rgba(21, 32, 39, .3); transition: transform .25s cubic-bezier(.34, 1.56, .64, 1), background-color .2s ease, color .2s ease;
}
.hs-pin::after { content: ''; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--cedar); opacity: 0; }
.hs-pin:hover { transform: translate(-50%, -50%) scale(1.15); }
.hs-pin.is-active { background: var(--cedar); color: var(--slate); transform: translate(-50%, -50%) scale(1.22); }
.hs-pin.is-active::after { animation: hs-ring 1.6s ease-out infinite; }
@keyframes hs-ring { from { opacity: .9; transform: scale(1); } to { opacity: 0; transform: scale(2.1); } }

/* service buttons under the house */
.hs-tabs { position: relative; display: flex; flex-wrap: wrap; gap: 8px; }
.hs-tab {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 8px; cursor: pointer;
  border: 1px solid var(--line-light); border-radius: 999px; background: var(--paper); color: var(--slate);
  font: 650 .875rem/1.2 var(--display); font-variation-settings: 'wdth' 106; transition: border-color .2s ease, background-color .2s ease;
}
.hs-tab span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--sand); color: var(--cedar-deep); font-size: .6875rem; font-weight: 800; }
.hs-tab:hover { border-color: var(--cedar); }
.hs-tab[aria-selected="true"] { background: var(--slate); border-color: var(--slate); color: var(--paper); }
.hs-tab[aria-selected="true"] span { background: var(--cedar); color: var(--slate); }
.hs-tab:focus-visible, .hs-pin:focus-visible { outline: 2px solid var(--cedar-deep); outline-offset: 3px; }

/* the service card */
.hs-panels { display: grid; gap: 18px; }
.hs-panel { display: flex; flex-direction: column; background: var(--paper); border-radius: 4px; overflow: hidden; box-shadow: 0 30px 60px rgba(21, 32, 39, .2); border-top: 4px solid var(--cedar); }
/* every card is the same size: they all share one grid cell, so the stack takes the tallest card's height
   and the inactive ones are only made invisible; the link always sits at the foot of the card */
.hs.is-ready .hs-panel { grid-area: 1 / 1; }
.hs.is-ready .hs-panel[hidden] { display: flex; visibility: hidden; }
.hs-body { display: flex; flex-direction: column; flex: 1; }
.hs-body .hs-num { align-self: flex-start; }
.hs-body .link-arrow { margin-top: auto; align-self: flex-start; }
/* same 16:10 frame for every photo, each one aimed at the work it illustrates */
.hs-media img[src*="copper-bay-detail"] { object-position: 50% 78%; }
.hs-media img[src*="bay-roof-water"] { object-position: 50% 0%; }
.hs-media img[src*="copper-gutter-detail"] { object-position: 50% 42%; }
/* the card slides in from the side the visitor is heading to */
.hs.is-ready .hs-panel { animation: hs-slide-next .5s cubic-bezier(.22, .8, .3, 1); }
.hs.is-ready[data-dir="-1"] .hs-panel { animation-name: hs-slide-prev; }
@keyframes hs-slide-next { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
@keyframes hs-slide-prev { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: none; } }
@keyframes hs-in { from { opacity: 0; } to { opacity: 1; } }
.hs-media { display: block; flex: none; aspect-ratio: 16 / 10; min-height: 0; overflow: hidden; background: var(--slate); }
.hs-media img { width: 100%; height: 100%; object-fit: cover; }
.hs-media--plain { display: grid; place-items: center; background: linear-gradient(150deg, #24343d, var(--slate-deep)); }
.hs-media--plain svg { width: 88px; height: 88px; fill: none; stroke: var(--cedar); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.hs-body { padding: clamp(22px, 2.6vw, 32px); }
.hs-num { display: inline-block; margin-bottom: 12px; padding: 4px 9px; background: var(--cedar); color: var(--slate); font-size: .75rem; font-weight: 800; letter-spacing: .1em; }
.hs-num i { font-style: normal; opacity: .6; }
.hs-body h3 { font-size: 1.5rem; margin-bottom: 10px; }
.hs-body p { color: var(--shingle); margin-bottom: 18px; }
/* phones and tablets: no house, just the cards as a swipe carousel with the arrows and counter above */
@media (max-width: 960px) {
  #services { padding-bottom: var(--section); }
  .hs-hint { display: none !important; }
  .hs { width: auto; margin-left: 0; min-height: 0; background: none; }
  .hs-stage, .hs-tabs { display: none; }
  .hs-ui { display: block; width: auto; min-height: 0; padding: 0; pointer-events: auto; }
  .hs-panels {
    display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin-inline: calc(-1 * var(--gutter)); padding: 6px var(--gutter) 28px; scroll-padding-inline: var(--gutter); scrollbar-width: none;
  }
  .hs-panels::-webkit-scrollbar { display: none; }
  .hs-panel, .hs.is-ready .hs-panel, .hs.is-ready .hs-panel[hidden] {
    display: flex; flex-direction: column; flex: 0 0 min(84%, 420px); scroll-snap-align: start; animation: none;
    box-shadow: 0 16px 34px rgba(21, 32, 39, .14);
  }
}
@media (prefers-reduced-motion: reduce) {
  .house [data-part], .hs-pin { transition: none; }
  .hs-pin.is-active::after, .house .bath-callout.is-lit, .hs.is-ready .hs-panel, .hs.is-ready[data-dir="-1"] .hs-panel { animation: none; }
  .hs-bar i { transition: none; }
}

/* Why choose us: light card on the slate band, the cut-out house rising beside it and running off the right edge */
.why-sec { position: relative; overflow-x: clip; }
.why-sec .wrap { position: relative; z-index: 2; }
.why-house { position: absolute; right: 0; bottom: 0; z-index: 1; width: min(58vw, 1100px); pointer-events: none; }
.why-house img {
  display: block; width: 100%; height: auto; filter: drop-shadow(-18px 10px 30px rgba(10, 16, 20, .45));
  /* the photo's bottom and left cuts dissolve into the slate instead of ending on a hard edge */
  -webkit-mask-image: linear-gradient(to top, transparent 0, rgba(0, 0, 0, .25) 12%, rgba(0, 0, 0, .8) 30%, #000 42%);
          mask-image: linear-gradient(to top, transparent 0, rgba(0, 0, 0, .25) 12%, rgba(0, 0, 0, .8) 30%, #000 42%);
}

/* The card is an estimate sheet: grainy stock, a red margin rule, blue pen on ruled lines */
.why-paper { --rule: 34px; --ink: #172f57; position: relative; width: min(100%, 62%); }
.why-paper::before {
  content: ''; position: absolute; inset: 10px -8px -10px 8px; transform: rotate(1.6deg);
  background: #efe8da; border-radius: 2px; box-shadow: 0 20px 50px rgba(10, 16, 20, .4);
}
.why-sheet {
  position: relative; color: var(--slate);
  padding: 30px clamp(24px, 3.4vw, 48px) clamp(32px, 3.4vw, 44px) clamp(56px, 6vw, 84px);
  background:
    var(--grain),
    radial-gradient(120% 90% at 50% 35%, rgba(255, 255, 255, 0) 55%, rgba(150, 118, 62, .12) 100%),
    #fbf7ee;
  border-radius: 2px; box-shadow: 0 1px 2px rgba(10, 16, 20, .2), 0 30px 70px rgba(10, 16, 20, .38);
}
/* margin rule */
.why-sheet::before {
  content: ''; position: absolute; top: 0; bottom: 0; left: clamp(36px, 4vw, 56px); width: 3px;
  border-left: 1px solid rgba(196, 72, 60, .45); border-right: 1px solid rgba(196, 72, 60, .45);
}
.sheet-tape {
  position: absolute; top: -14px; left: 50%; width: 120px; height: 30px; transform: translateX(-50%) rotate(-2.5deg);
  background: rgba(232, 220, 190, .78); box-shadow: 0 1px 2px rgba(10, 16, 20, .15);
  -webkit-mask: linear-gradient(90deg, transparent 0 2px, #000 2px calc(100% - 2px), transparent calc(100% - 2px));
}
.sheet-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 30px; padding-bottom: 10px;
  border-bottom: 3px double rgba(30, 43, 51, .55);
  font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; color: var(--shingle); font-variation-settings: 'wdth' 112;
}
.sheet-head strong { color: var(--slate); margin-right: 8px; letter-spacing: .1em; }
.sheet-head b { color: #b8402f; font-weight: 700; letter-spacing: .06em; }
.sheet-stamp {
  position: absolute; top: 46px; right: clamp(20px, 3vw, 44px); width: 112px; height: 112px; transform: rotate(-14deg);
  fill: none; stroke: #b8402f; stroke-width: 2; opacity: .62; mix-blend-mode: multiply;
}
.sheet-stamp text { fill: #b8402f; stroke: none; font-family: var(--display); font-size: 10.5px; font-weight: 800; letter-spacing: 1.6px; }
.sheet-stamp .stamp-mid { font-size: 15px; letter-spacing: 2px; }
.why-sheet h2 { max-width: calc(100% - 120px); }
.section--slate .why-sheet h2 em { color: var(--cedar-deep); }
.why-lede { margin: 16px 0 30px; color: var(--shingle); max-width: 54ch; }

/* the handwritten list sits on ruled lines; every vertical step is a multiple of --rule */
.why-list {
  list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--rule) 32px;
  background: repeating-linear-gradient(to bottom, transparent 0 calc(var(--rule) - 1px), rgba(64, 110, 160, .26) calc(var(--rule) - 1px) var(--rule));
  background-position: 0 2px; padding-bottom: 3px;
  font-family: 'Caveat', 'Segoe Print', cursive; color: var(--ink);
}
.why-list li { position: relative; padding-left: 34px; }
.why-list li::before {
  content: ''; position: absolute; left: 0; top: 9px; width: 18px; height: 18px; border: 1.5px solid rgba(30, 43, 51, .7); border-radius: 2px;
}
.why-list li::after {
  content: ''; position: absolute; left: -2px; top: -2px; width: 30px; height: 28px;
  background: var(--pen-check) center / contain no-repeat;
}
.why-list h3 { font-family: inherit; font-size: 1.875rem; font-weight: 700; line-height: var(--rule); letter-spacing: 0; color: var(--ink); text-wrap: pretty; }
.why-list p { font-family: 'Patrick Hand', 'Segoe Print', cursive; font-size: 1.25rem; line-height: var(--rule); letter-spacing: .01em; color: var(--ink); }
.why-sheet .section-cta { margin-top: calc(var(--rule) + 6px); }
@media (max-width: 960px) {
  .why-sec { display: flex; flex-direction: column; padding-bottom: 0; }
  .why-house { position: relative; order: 2; width: 100%; margin-top: 28px; }
  .why-paper { width: 100%; }
}
@media (max-width: 600px) {
  .why-list { grid-template-columns: 1fr; }
  .why-sheet h2 { max-width: none; }
  .sheet-stamp { display: none; }
  .sheet-head span:first-child { display: none; }
}

/* Process: a drafting sheet. Graph paper, a dimension line, the drawing's title block, and a tape measure for the timeline */
.process-sec { position: relative; isolation: isolate; }
.process-sec::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(rgba(30, 43, 51, .075) 1px, transparent 1px) center top / 120px 120px,
    linear-gradient(90deg, rgba(30, 43, 51, .075) 1px, transparent 1px) center top / 120px 120px,
    linear-gradient(rgba(30, 43, 51, .04) 1px, transparent 1px) center top / 24px 24px,
    linear-gradient(90deg, rgba(30, 43, 51, .04) 1px, transparent 1px) center top / 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 45%, #000 35%, transparent 100%);
          mask-image: radial-gradient(ellipse 75% 70% at 50% 45%, #000 35%, transparent 100%);
}
.process-head {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px clamp(32px, 5vw, 72px);
  align-items: center; margin-bottom: clamp(56px, 7vw, 88px);
}
/* dimension line: extension ticks at both ends, label breaking the line */
.dim {
  display: flex; align-items: center; gap: 14px; max-width: 560px; height: 16px; margin-top: 22px;
  border-inline: 1px solid var(--cedar-deep); color: var(--cedar-deep);
  font-size: .6875rem; font-weight: 650; letter-spacing: .14em; text-transform: uppercase; font-variation-settings: 'wdth' 112;
}
.dim::before, .dim::after { content: ''; flex: 1; height: 1px; background: currentColor; }
.dim span { white-space: nowrap; }
/* the drawing's title block */
.title-block { background: var(--paper); border: 2px solid var(--slate); box-shadow: 6px 6px 0 rgba(30, 43, 51, .08); }
.tb-cells { display: grid; grid-template-columns: 1.4fr 1fr 1fr; border-bottom: 1px solid var(--slate); }
.tb-cells span { padding: 8px 14px 9px; border-left: 1px solid var(--slate); font-size: .8125rem; font-weight: 700; font-variation-settings: 'wdth' 110; }
.tb-cells span:first-child { border-left: 0; }
.tb-cells small { display: block; font-size: .5625rem; font-weight: 650; letter-spacing: .16em; text-transform: uppercase; color: var(--shingle); }
.tb-body { padding: 20px 22px 22px; }
.tb-body p { color: var(--shingle); margin-bottom: 14px; }

/* tape measure: case on the left, yellow blade with ticks on both edges, steel hook at the end */
.tape-run { --blade: 46px; position: relative; }
.tape-case {
  position: absolute; z-index: 2; top: calc(var(--blade) / 2 - 40px); left: -38px; width: 80px; height: 80px;
  display: grid; place-items: center; border-radius: 18px;
  background: linear-gradient(145deg, #34444e, #152027); box-shadow: 0 10px 22px rgba(21, 32, 39, .35), inset 0 1px 0 rgba(255, 255, 255, .12);
}
.tape-case::before { content: ''; position: absolute; inset: 13px; border-radius: 50%; border: 2px solid var(--cedar); box-shadow: inset 0 0 0 4px #1e2b33, inset 0 0 0 5px rgba(201, 163, 99, .4); }
.tape-case svg { position: relative; width: 30px; height: 14px; color: var(--cedar); }
.steps {
  list-style: none; margin: 0; padding: calc(var(--blade) + 44px) 0 0; position: relative;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px clamp(20px, 3vw, 40px);
}
.steps::before {
  content: ''; position: absolute; top: 0; left: 0; right: 10px; height: var(--blade); border-radius: 2px 0 0 2px;
  background:
    linear-gradient(90deg, rgba(25, 25, 25, .85) 1.5px, transparent 1.5px) 0 0 / 48px 42% repeat-x,
    linear-gradient(90deg, rgba(25, 25, 25, .7) 1px, transparent 1px) 24px 0 / 48px 30% repeat-x,
    linear-gradient(90deg, rgba(25, 25, 25, .5) 1px, transparent 1px) 0 0 / 6px 18% repeat-x,
    linear-gradient(90deg, rgba(25, 25, 25, .85) 1.5px, transparent 1.5px) 0 100% / 48px 30% repeat-x,
    linear-gradient(90deg, rgba(25, 25, 25, .5) 1px, transparent 1px) 0 100% / 12px 14% repeat-x,
    linear-gradient(#f3cd55, #e6b83c 55%, #d6a72e);
  box-shadow: 0 6px 14px rgba(21, 32, 39, .18), inset 0 -1px 0 rgba(0, 0, 0, .18), inset 0 1px 0 rgba(255, 255, 255, .5);
}
.steps::after {
  content: ''; position: absolute; top: -6px; right: 0; width: 12px; height: calc(var(--blade) + 12px); border-radius: 2px;
  background: linear-gradient(90deg, #8d969b, #d7dcdf 45%, #7b8489); box-shadow: 0 4px 8px rgba(21, 32, 39, .25);
}
.steps li { position: relative; padding-top: 22px; border-top: 1px dashed rgba(30, 43, 51, .3); }
/* pencil tick from the tape down to each stage */
.steps li::before { content: ''; position: absolute; top: -44px; left: 17px; width: 2px; height: 44px; background: repeating-linear-gradient(transparent 0 4px, rgba(30, 43, 51, .45) 4px 8px); }
/* the red stud-spacing boxes a real tape prints every 16 inches */
.step-num {
  position: absolute; z-index: 1; top: calc(-44px - var(--blade) + 9px); left: 0; display: grid; place-items: center;
  min-width: 36px; height: 28px; padding: 0 6px; background: #b8402f; color: #fff;
  font-size: 1rem; font-weight: 800; font-variation-settings: 'wdth' 112; box-shadow: 0 1px 0 rgba(0, 0, 0, .25);
}
.steps li:first-child .step-num { left: 52px; }
.steps li:first-child::before { left: 69px; }
.steps h3 { font-size: 1.1875rem; margin-bottom: 10px; }
.steps p { color: var(--shingle); font-size: .9375rem; }
@media (max-width: 1000px) {
  /* the tape turns vertical and runs down the left of the stacked stages */
  .tape-run { padding-left: 76px; }
  .tape-case { top: -40px; left: -8px; }
  .steps { grid-template-columns: 1fr; padding-top: 56px; gap: 44px; }
  .steps::before {
    top: 0; bottom: 10px; right: auto; left: -76px; width: var(--blade); height: auto; border-radius: 0;
    background:
      linear-gradient(rgba(25, 25, 25, .85) 1.5px, transparent 1.5px) 0 0 / 42% 48px repeat-y,
      linear-gradient(rgba(25, 25, 25, .7) 1px, transparent 1px) 0 24px / 30% 48px repeat-y,
      linear-gradient(rgba(25, 25, 25, .5) 1px, transparent 1px) 0 0 / 18% 6px repeat-y,
      linear-gradient(rgba(25, 25, 25, .85) 1.5px, transparent 1.5px) 100% 0 / 30% 48px repeat-y,
      linear-gradient(rgba(25, 25, 25, .5) 1px, transparent 1px) 100% 0 / 14% 12px repeat-y,
      linear-gradient(90deg, #f3cd55, #e6b83c 55%, #d6a72e);
  }
  .steps::after { top: auto; bottom: 0; right: auto; left: -82px; width: calc(var(--blade) + 12px); height: 12px; }
  .steps li { padding-top: 0; border-top: 0; }
  .steps li::before, .steps li:first-child::before { top: 13px; left: -30px; width: 22px; height: 2px; background: repeating-linear-gradient(90deg, transparent 0 4px, rgba(30, 43, 51, .45) 4px 8px); }
  .step-num, .steps li:first-child .step-num { top: 0; left: -71px; }
}
@media (max-width: 860px) { .process-head { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .tb-cells span { padding-inline: 10px; } .dim { letter-spacing: .08em; } }

/* Portfolio wall: two full-bleed rows drifting in opposite directions.
   Each row holds its photos twice; the track slides by one copy and loops. Hover pauses, click opens the lightbox. */
#projects { overflow-x: clip; }
.wall {
  --row-h: clamp(12rem, 22vw, 20rem); --wall-gap: clamp(10px, 1.2vw, 16px); --wall-speed: 70s;
  display: grid; gap: var(--wall-gap);
  width: 100vw; margin-left: calc(50% - 50vw); overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.wall__row { display: flex; gap: var(--wall-gap); width: max-content; }
.wall__track { display: flex; gap: var(--wall-gap); flex: none; }
.wall__row--left .wall__track { animation: wall-left var(--wall-speed) linear infinite; }
.wall__row--right .wall__track { animation: wall-right var(--wall-speed) linear infinite; }
@keyframes wall-left { to { transform: translateX(calc(-100% - var(--wall-gap))); } }
@keyframes wall-right { from { transform: translateX(calc(-100% - var(--wall-gap))); } to { transform: none; } }
.wall:hover .wall__track, .wall.is-paused .wall__track { animation-play-state: paused; }

/* fixed row height, width from the photo's ratio (--ar inline) = horizontal masonry */
.wall__item { margin: 0; flex: none; height: var(--row-h); width: calc(var(--row-h) * var(--ar, 1)); border-radius: 4px; overflow: hidden; background: var(--slate); }
.wall__item a { position: relative; display: block; height: 100%; cursor: zoom-in; }
.wall__item img { display: block; width: 100%; height: 100%; object-fit: cover; }
.wall__item a::before {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to top, rgba(21, 32, 39, .65), rgba(21, 32, 39, .12));
  opacity: 0; transition: opacity .3s ease;
}
/* "View" tag with a magnifier, springing up from the bottom */
.wall__item a::after {
  content: 'View'; position: absolute; left: 50%; bottom: 18px; z-index: 2; pointer-events: none;
  padding: 9px 16px 9px 36px; border-radius: 3px; white-space: nowrap;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e2b33' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m21 21-4.3-4.3M11 8v6M8 11h6'/%3E%3C/svg%3E") 12px center / 16px no-repeat, var(--cedar);
  color: var(--slate); box-shadow: 0 10px 24px rgba(10, 16, 20, .35);
  font-size: .75rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase;
  opacity: 0; transform: translate(-50%, 12px) scale(.85);
  transition: opacity .3s ease, transform .5s cubic-bezier(.34, 1.56, .64, 1);
}
.wall__item a:hover::before, .wall__item a:focus-visible::before { opacity: 1; }
.wall__item a:hover::after, .wall__item a:focus-visible::after { opacity: 1; transform: translate(-50%, 0) scale(1); }
.wall__item img { transition: transform .7s ease; }
.wall__item:hover img { transform: scale(1.04); }
@media (max-width: 767px) { .wall { --wall-speed: 55s; } }
@media (prefers-reduced-motion: reduce) {
  .wall__track { animation: none; }
  .wall__row { overflow-x: auto; }
  .wall__item img { transition: none; }
}

/* Lightbox */
.lb {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 24px;
  background: rgba(21, 32, 39, .88); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .25s ease;
}
.lb[hidden] { display: none; }
.lb.is-open { opacity: 1; }
.lb__figure { margin: 0; max-width: min(92vw, 1200px); max-height: 88vh; }
.lb__img {
  display: block; max-width: 100%; max-height: 88vh; width: auto; height: auto; object-fit: contain;
  border-radius: 4px; box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .7); background: var(--slate);
  transform: scale(.6); opacity: 0;
}
.lb.is-open .lb__img { animation: lb-pop .65s cubic-bezier(.34, 1.56, .64, 1) forwards; }
@keyframes lb-pop {
  0%   { transform: scale(.6); opacity: 0; }
  60%  { transform: scale(1.04, .97); opacity: 1; }
  80%  { transform: scale(.985, 1.02); }
  100% { transform: none; opacity: 1; }
}
.lb__close {
  position: absolute; top: 18px; right: 18px; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; background: var(--paper); color: var(--slate); border: 0; cursor: pointer;
}
.lb__close svg { width: 20px; height: 20px; }
.lb__close:hover { background: var(--cedar); }
@media (prefers-reduced-motion: reduce) { .lb.is-open .lb__img { animation: none; transform: none; opacity: 1; } }

/* FAQ */
.faq { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 36px clamp(40px, 6vw, 96px); align-items: start; }
.faq-head { position: sticky; top: 112px; }
/* title in two tiers: the short "FAQ" line carries the weight, the local keywords sit underneath at a calmer size */
.faq-head h2 { margin-bottom: 30px; }
.faq-main { display: block; }
.faq-sub {
  display: block; margin-top: 14px; padding-top: 14px; border-top: 2px solid var(--cedar); max-width: 22ch;
  font-size: clamp(1.25rem, 1.7vw, 1.5rem); font-weight: 600; font-variation-settings: 'wdth' 106; line-height: 1.3; color: var(--shingle);
}
.faq-sub em { font-weight: 500; }
/* the "ask us" block: a compact slate card instead of loose text and a button */
.faq-ask { padding: 24px 26px; background: var(--slate); color: var(--on-slate-muted); border-radius: 4px; box-shadow: 0 20px 40px rgba(21, 32, 39, .18); }
.faq-ask p { font-size: .9375rem; line-height: 1.55; }
.faq-ask strong { display: block; margin-bottom: 4px; color: var(--paper); font-size: 1.125rem; font-variation-settings: 'wdth' 108; }
.faq-ask-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 18px; }
/* The questions sit on a clipboard: hardboard back, steel clip, a sheet with a second one under it */
.faq-board {
  position: relative; isolation: isolate; margin-top: 22px;
  padding: 58px clamp(12px, 2vw, 22px) clamp(14px, 2vw, 22px);
  background:
    var(--grain),
    repeating-linear-gradient(92deg, rgba(255, 255, 255, .025) 0 2px, transparent 2px 7px),
    linear-gradient(150deg, #a0703f, #845730 55%, #6f4726);
  border-radius: 16px;
  box-shadow: 0 34px 60px rgba(21, 32, 39, .28), inset 0 1px 0 rgba(255, 255, 255, .18), inset 0 -3px 0 rgba(0, 0, 0, .22);
}
/* hanging hole above the clip */
.faq-board::before {
  content: ''; position: absolute; top: 12px; left: 50%; width: 46px; height: 14px; transform: translateX(-50%);
  border-radius: 999px; background: var(--paper); box-shadow: inset 0 2px 3px rgba(0, 0, 0, .45);
}
.board-clip {
  position: absolute; z-index: 3; top: 30px; left: 50%; width: min(220px, 52%); height: 58px; transform: translateX(-50%);
  border-radius: 10px 10px 16px 16px;
  background:
    radial-gradient(circle at 14% 62%, #5d666b 0 4px, #e9edef 4.5px 6px, transparent 6.5px),
    radial-gradient(circle at 86% 62%, #5d666b 0 4px, #e9edef 4.5px 6px, transparent 6.5px),
    linear-gradient(180deg, #f4f6f7, #c3cacf 40%, #8f989e 62%, #d8dde0);
  box-shadow: 0 10px 16px rgba(10, 16, 20, .38), inset 0 1px 0 #fff, inset 0 -2px 0 rgba(0, 0, 0, .18);
}
/* the wire lever */
.board-clip::before {
  content: ''; position: absolute; top: -20px; left: 50%; width: 46%; height: 30px; transform: translateX(-50%);
  border: 5px solid #a9b2b7; border-bottom: 0; border-radius: 14px 14px 0 0;
  box-shadow: 0 -1px 0 rgba(255, 255, 255, .6) inset;
}
.faq-paper {
  position: relative; padding: 46px clamp(18px, 3vw, 36px) 14px;
  background: var(--grain), #fbf7ee; border-radius: 2px;
  box-shadow: 0 2px 5px rgba(10, 16, 20, .28);
}
.faq-paper::before {
  content: ''; position: absolute; z-index: -1; inset: 8px -5px -7px 5px; transform: rotate(1.1deg);
  background: #efe8da; border-radius: 2px; box-shadow: 0 2px 5px rgba(10, 16, 20, .25);
}
.faq-paper .sheet-head { margin-bottom: 6px; }
.faq-list { counter-reset: q; }
.faq-list details { position: relative; counter-increment: q; border-bottom: 1px solid rgba(64, 110, 160, .26); }
.faq-list details:last-child { border-bottom: 0; }
.faq-list summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center;
  padding: 20px 0; font-size: 1.0625rem; font-weight: 650; font-variation-settings: 'wdth' 106; line-height: 1.35;
}
.faq-list summary::-webkit-details-marker { display: none; }
/* printed red item number */
.faq-list summary::before {
  content: counter(q, decimal-leading-zero); align-self: start; margin-top: 1px;
  padding: 2px 6px; border: 1.5px solid rgba(184, 64, 47, .7); color: #b8402f;
  font-size: .75rem; font-weight: 800; letter-spacing: .04em; line-height: 1.3;
}
/* tick box; the pen check lands in it when the answer is open */
.faq-list summary::after { content: ''; align-self: start; width: 22px; height: 22px; border: 1.5px solid rgba(30, 43, 51, .7); border-radius: 2px; }
.faq-list details::after {
  content: ''; position: absolute; top: 9px; right: -5px; width: 32px; height: 30px;
  background: var(--pen-check) center / contain no-repeat; opacity: 0; transform: scale(.6); transform-origin: 30% 80%;
  transition: opacity .2s ease, transform .3s cubic-bezier(.34, 1.56, .64, 1); pointer-events: none;
}
.faq-list details[open]::after { opacity: 1; transform: none; }
.faq-list summary:hover { color: var(--cedar-deep); }
.faq-list details p { padding: 0 46px 22px 50px; color: #3b4247; max-width: 70ch; }
@media (prefers-reduced-motion: reduce) { .faq-list details::after { transition: none; } }
@media (max-width: 860px) { .faq { grid-template-columns: 1fr; } .faq-head { position: static; } }
@media (max-width: 560px) {
  .faq-board { padding-top: 50px; border-radius: 12px; }
  .board-clip { height: 48px; top: 26px; }
  .faq-paper { padding-top: 38px; }
  .faq-paper .sheet-head span:first-child { display: none; }
  .faq-list details p { padding: 0 0 20px; }
}

/* Estimate + service area */
#estimate { overflow-x: clip; }
.estimate { isolation: isolate; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 44px clamp(36px, 6vw, 96px); align-items: start; }
.estimate-info h2 { margin-bottom: 20px; }
.estimate-info > p { color: var(--on-slate-muted); max-width: 44ch; }

/* what happens after the form: four stops on a dashed line */
.next-steps { list-style: none; margin: 28px 0 0; padding: 0; counter-reset: ns; display: grid; gap: 14px; }
.next-steps li { position: relative; counter-increment: ns; display: flex; align-items: center; gap: 14px; color: var(--paper); font-weight: 600; font-variation-settings: 'wdth' 106; }
.next-steps li::before {
  content: counter(ns); flex: none; display: grid; place-items: center; width: 30px; height: 30px;
  border-radius: 50%; border: 1.5px solid var(--cedar); color: var(--cedar); font-weight: 800; font-size: .8125rem;
}
.next-steps li:not(:last-child)::after { content: ''; position: absolute; left: 14px; top: 32px; height: 12px; border-left: 2px dashed rgba(201, 163, 99, .45); }
.areas-line { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--slate-line); color: var(--on-slate-muted); font-size: .9375rem; max-width: 46ch; }

.contact-line { display: flex; align-items: center; gap: 14px; margin-top: 22px; color: var(--paper); text-decoration: none; font-weight: 650; }
.contact-line small { display: block; font-size: .6875rem; font-weight: 650; letter-spacing: .14em; text-transform: uppercase; color: var(--on-slate-muted); }
.contact-line--tel { font-size: 1.5rem; color: var(--cedar); font-variation-settings: 'wdth' 108; }
.contact-line:hover > span:last-child { text-decoration: underline; text-underline-offset: 4px; }
.contact-ico { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--cedar); }
.contact-line--tel .contact-ico { background: var(--cedar); }
.contact-ico svg { width: 20px; height: 20px; fill: none; stroke: var(--cedar); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.contact-line--tel .contact-ico svg { stroke: var(--slate); }
@media (max-width: 960px) { .estimate { grid-template-columns: 1fr; } }

/* the form is the estimate request sheet: grainy paper, a second sheet under it, tape and a rubber stamp */
.form {
  position: relative; color: var(--slate); border-radius: 2px; padding: clamp(26px, 4vw, 44px);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px;
  background: var(--grain), radial-gradient(120% 90% at 50% 30%, rgba(255, 255, 255, 0) 55%, rgba(150, 118, 62, .1) 100%), #fbf7ee;
  box-shadow: 0 1px 2px rgba(10, 16, 20, .25), 0 30px 70px rgba(0, 0, 0, .4);
}
.form::after {
  content: ''; position: absolute; z-index: -1; inset: 12px -10px -12px 10px; transform: rotate(1.4deg);
  background: #e9e1d1; border-radius: 2px; box-shadow: 0 20px 50px rgba(0, 0, 0, .35);
}
.form .sheet-head { margin-bottom: 0; }
.form-stamp {
  position: absolute; top: 82px; right: clamp(20px, 3vw, 40px); transform: rotate(-9deg);
  display: grid; justify-items: center; padding: 6px 14px 7px; border: 3px double #b8402f; border-radius: 4px;
  color: #b8402f; opacity: .7; mix-blend-mode: multiply;
  font-size: 1.375rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; line-height: 1; font-variation-settings: 'wdth' 118;
}
.form-stamp small { margin-top: 4px; font-size: .5625rem; letter-spacing: .2em; font-weight: 750; }
.form-title { margin-bottom: 4px; padding-right: 130px; }
.form-title h3 { font-size: 1.5rem; margin-bottom: 4px; }
.form-title p { color: var(--shingle); font-size: .9375rem; }
.field { display: grid; gap: 6px; align-content: start; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: #3b4247; }
.field .opt { font-weight: 500; letter-spacing: .04em; text-transform: none; color: var(--shingle); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--slate);
  background: #fffdf8; border: 1.5px solid #d4cab8; border-radius: var(--radius);
  padding: 12px 14px; min-height: 50px; transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { min-height: 128px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--slate); box-shadow: 0 0 0 3px rgba(201, 163, 99, .45); background: #fff; }
.field [aria-invalid="true"] { border-color: var(--error); }
.field-error { color: var(--error); font-size: .875rem; min-height: 0; }
.field-error:empty { display: none; }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 6px; }
.form-foot small { color: var(--shingle); font-size: .8125rem; max-width: 40ch; }
.form-status { grid-column: 1 / -1; color: var(--error); font-weight: 600; }
.form-status:empty { display: none; }
.hp { position: absolute; left: -9999px; }
@media (max-width: 560px) {
  .form { grid-template-columns: 1fr; }
  .form .btn { width: 100%; }
  .form .sheet-head span:first-child { display: none; }
  .form-stamp { top: 54px; font-size: 1rem; padding: 5px 10px 6px; }
  .form-title { padding-right: 96px; }
}

/* ---------- Scroll reveal (only when JS is running) ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .steps .reveal:nth-child(2) { transition-delay: .08s; }
.js .steps .reveal:nth-child(3) { transition-delay: .16s; }
.js .steps .reveal:nth-child(4) { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Footer ---------- */
.site-footer {
  color: var(--on-slate-muted); padding: 0 0 28px; font-size: .9375rem;
  background:
    linear-gradient(rgba(21, 32, 39, .95), rgba(21, 32, 39, .97)),
    url('/img/tex-valley.jpg') center / cover no-repeat,
    var(--slate-deep);
}
.site-footer a { color: var(--on-slate); text-decoration: none; transition: color .2s ease; }
.site-footer a:hover { color: var(--cedar); }

/* CTA band that opens the footer */
.footer-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px;
  padding: clamp(36px, 5vw, 56px) 0; border-bottom: 1px solid var(--slate-line);
}
.footer-cta h2 { font-size: clamp(1.5rem, 2.6vw, 2.125rem); color: var(--paper); margin-bottom: 8px; max-width: 24ch; }
.footer-cta h2 em { color: var(--cedar); }
.footer-cta p { color: var(--on-slate-muted); }
.footer-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.footer-cta-actions .btn--line { color: var(--paper); border-color: rgba(255, 255, 255, .35); }
.footer-cta-actions .btn--line:hover { border-color: var(--cedar); color: var(--cedar); background: transparent; }

.footer-grid {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 2.4fr) minmax(0, 2fr) minmax(0, 3.6fr);
  gap: 40px clamp(28px, 4vw, 64px); padding-top: clamp(44px, 5vw, 64px);
}
.footer-brand img { width: 138px; margin-bottom: 20px; }
.footer-brand p { max-width: 36ch; }
/* mini credential seals: a double cedar ring, icon, one word */
.seals { list-style: none; display: flex !important; flex-wrap: nowrap; gap: 10px !important; margin: 22px 0 0 !important; padding: 0; }
.seal {
  display: grid; place-items: center; align-content: center; gap: 3px; flex: none;
  width: 62px; height: 62px; border-radius: 50%;
  border: 1.5px solid var(--cedar);
  box-shadow: inset 0 0 0 3px var(--slate-deep), inset 0 0 0 4px rgba(201, 163, 99, .45);
  background: radial-gradient(circle, rgba(201, 163, 99, .1), rgba(201, 163, 99, 0) 70%);
  color: var(--cedar);
}
.seal svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.seal span { font-size: .4375rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; font-variation-settings: 'wdth' 112; line-height: 1; }
.footer-title {
  position: relative; padding-bottom: 12px; margin-bottom: 18px;
  font-size: 1rem; font-weight: 700; font-variation-settings: 'wdth' 112; letter-spacing: .02em; color: var(--paper);
}
.footer-title::after { content: ''; position: absolute; left: 0; bottom: 0; width: 28px; height: 2px; background: var(--cedar); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.footer-contact li { display: grid; grid-template-columns: 18px 1fr; gap: 12px; align-items: start; line-height: 1.45; }
.footer-contact svg { width: 18px; height: 18px; margin-top: 2px; fill: none; stroke: var(--cedar); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.footer-phone { font-size: 1.125rem; font-weight: 700; font-variation-settings: 'wdth' 108; color: var(--paper) !important; }
.footer-social {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; padding: 9px 14px;
  border: 1px solid var(--slate-line); border-radius: 2px; font-size: .875rem; font-weight: 600;
}
.footer-social svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.footer-social:hover { border-color: var(--cedar); }

.footer-base { margin-top: clamp(40px, 5vw, 56px); padding-top: 22px; border-top: 1px solid var(--slate-line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; font-size: .8125rem; }
.footer-base a { color: var(--on-slate); }
@media (max-width: 1000px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  /* brand and contact full width; the two link lists side by side */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .footer-brand, .footer-grid > div:last-child { grid-column: 1 / -1; }
  .footer-cta-actions, .footer-cta-actions .btn { width: 100%; }
  .site-footer ul:not(.seals):not(.footer-contact) { gap: 2px; }
  .site-footer ul:not(.seals):not(.footer-contact) a { display: inline-block; padding-block: 9px; }
  .footer-base a, .footer-contact a { display: inline-block; padding-block: 10px; }
  .footer-contact li { align-items: center; }
  .seal span { font-size: .5rem; }
}
/* phones: the form sits right above the footer and the call bar is always on screen, so the footer CTA band is redundant */
@media (max-width: 700px) {
  .footer-cta { display: none; }
}

/* ---------- Mobile call bar ---------- */
.callbar { display: none; }
@media (max-width: 700px) {
  body.has-callbar { padding-bottom: 72px; }
  .callbar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    position: fixed; z-index: 60; left: 0; right: 0; bottom: 0;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    background: var(--slate); border-top: 1px solid var(--slate-line);
  }
  .callbar .btn { min-height: 48px; padding: 8px 10px; font-size: .9375rem; }
}

/* ---------- Phone polish: tighter rhythm, smaller titles, layouts reworked for one column ---------- */
@media (max-width: 600px) {
  :root { --section: 60px; }
  h2 { font-size: 1.75rem; }
  .lede { font-size: 1.0625rem; }
  .head { margin-bottom: 32px; }

  /* hero: room under the hanging logo plate; photo framed away from the scaffolding on its left edge */
  .hero { padding-top: 44px; }
  .hero-photo img { object-position: 100% 50%; }

  /* estimate sheet: narrower margin so the handwriting gets the width */
  .why-paper { --rule: 30px; }
  .why-sheet { padding: 26px 16px 28px 38px; }
  .why-sheet::before { left: 20px; }
  .why-list li { padding-left: 30px; }
  .why-list li::before { top: 7px; width: 16px; height: 16px; }
  .why-list li::after { width: 26px; height: 24px; top: -1px; }
  .why-list h3 { font-size: 1.5rem; }
  .why-list p { font-size: 1.125rem; }

  /* FAQ: title, then the clipboard, then "ask us" once the visitor has read the answers */
  .faq-head { display: contents; }
  .faq-head h2 { order: 1; margin-bottom: 0; }
  .faq-board { order: 2; margin-top: 8px; }
  .faq-ask { order: 3; margin-top: 8px; }
  .faq-ask-actions .btn { width: 100%; }
  .faq-ask-actions { justify-content: center; }
}

/* ---------- Simple pages (thanks, legal, 404) ---------- */
.page { padding-block: clamp(56px, 8vw, 112px); }
.page .wrap { max-width: 760px; }
.page h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 24px; }
.page h2 { font-size: 1.5rem; margin: 40px 0 12px; }
.page p, .page li { color: #3b4247; }
.page .btn { margin-top: 20px; }
