/* StoneBrook Carpentry — main stylesheet
   Layout & styling modeled on A Carpenter's Son (split rows, centered heads,
   tan story band with stacking cards, project gallery), set in EBCO's type (Barlow Condensed / Barlow),
   with graphite pencil marks drawn on like a contractor marked up the page. */

:root {
  --slate: #2F3740;       /* primary: nav, headings, buttons */
  --slate-dark: #232A31;
  --tan: #B8956A;         /* accent band & buttons */
  --tan-light: #D9C3A2;
  --tan-deep: #8B6A43;    /* story band: white text stays readable (4.7:1) */
  --white: #FFFFFF;
  --paper: #F6F4F0;
  --text: #3A3F44;
  --muted: #6C7177;
  --graphite: #4E5257;    /* pencil on light backgrounds */
  --chalk: rgba(255,255,255,.92); /* pencil on dark/tan backgrounds */
  --line: rgba(47,55,64,.16);

  --display: "Barlow Condensed", "Arial Narrow", sans-serif;   /* EBCO headings */
  --semi: "Barlow Semi Condensed", "Arial Narrow", sans-serif; /* EBCO sub-heads & buttons */
  --sans: "Barlow", "Helvetica Neue", Arial, sans-serif;       /* EBCO body */
  --hand: "Caveat", "Bradley Hand", cursive;

  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 56px);
  --section: clamp(80px, 10vw, 140px);
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body { margin: 0; background: var(--white); color: var(--text); font-family: var(--sans); font-size: 18px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1.1em; }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; text-transform: uppercase; line-height: 1.02; margin: 0 0 .55em; color: var(--slate); letter-spacing: .02em; }
h1 { font-size: clamp(3.1rem, 8.4vw, 7.2rem); letter-spacing: -.01em; line-height: .95; }
h2 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); }
h3 { font-family: var(--semi); font-weight: 600; font-size: 1.45rem; letter-spacing: .01em; }
h4 { font-family: var(--semi); font-weight: 600; font-size: 1.05rem; letter-spacing: .12em; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--slate); color: #fff; padding: 10px 16px; z-index: 200; }
.skip:focus { left: 8px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.hand { font-family: var(--hand); font-weight: 700; color: var(--graphite); line-height: 1.05; text-transform: none; letter-spacing: 0; }
:focus-visible { outline: 3px solid var(--tan); outline-offset: 3px; }

/* ---------- Tape-measure scroll progress ---------- */
/* Fixed across the very top of the screen; the blade pulls out as you scroll, silver hook on the end. */
.tape { position: fixed; top: 0; left: 0; right: 0; height: 18px; z-index: 120; pointer-events: none; --tape-h: 16px; }
/* The blade: printed inch numbers, 1/8" ticks and red 16" stud marks (tape-blade.svg) on
   yellow steel, measured from the hook so "1" rides along with it and higher numbers pull out behind, with a slight curve highlight. Width follows scroll progress (main.js / page.js). */
.tape-blade {
  position: absolute; left: 0; top: 0; height: var(--tape-h); width: 0;
  background:
    url("../img/tape-blade.svg") right top / auto 100% no-repeat,
    linear-gradient(rgba(255,255,255,.35), rgba(255,255,255,0) 35%, rgba(0,0,0,0) 70%, rgba(0,0,0,.12)),
    linear-gradient(#F4CF55, #E2B43C);
  border-bottom: 1px solid #B98E22;
  box-shadow: 0 2px 5px rgba(0,0,0,.32);
}
/* End hook: a bent steel tab, a little taller than the blade, held on by two rivets. */
.tape-hook { position: absolute; right: -6px; top: 0; width: 8px; height: calc(var(--tape-h) + 5px);
  background: radial-gradient(circle at 50% 30%, #6d7176 0 1.2px, transparent 1.6px), radial-gradient(circle at 50% 70%, #6d7176 0 1.2px, transparent 1.6px),
    linear-gradient(90deg, #7F848A, #DADDE0 55%, #8E9399);
  border-radius: 1px 3px 3px 1px; box-shadow: 0 1px 3px rgba(0,0,0,.45); }
@media (max-width: 860px) { .tape { --tape-h: 13px; height: 15px; } }

/* ---------- Graph paper ---------- */
.grid-paper {
  background-color: var(--paper);
  background-image:
    linear-gradient(rgba(47,55,64,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47,55,64,.07) 1px, transparent 1px);
  background-size: 28px 28px;
}

/* ---------- Pencil marks ---------- */
.pencil {
  fill: none; stroke: var(--graphite); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round;
  overflow: visible;
  stroke-dasharray: 1; stroke-dashoffset: 0;
}
/* Pencil texture: each mark is drawn twice — a second faint, slightly offset pass (added in JS)
   gives the doubled, uneven edge of a real carpenter's pencil line. */
.pencil { opacity: .9; }
.pencil .ghost { opacity: .4; transform: translate(1.2px, 1.4px); stroke-width: .8; }
/* dasharray/offset inherit into <use> content, so the draw-on animates on the svg itself */
.js .pencil { stroke-dashoffset: 1; transition: stroke-dashoffset 1.4s cubic-bezier(.55,.1,.3,1) .25s; }
.js .drawn .pencil, .js .pencil.drawn { stroke-dashoffset: 0; }

.pmark { position: relative; display: inline-block; white-space: nowrap; }
.p-circle { position: absolute; left: -10%; top: -18%; width: 120%; height: 136%; stroke-width: 2.6; pointer-events: none; }
.p-under { position: absolute; left: -3%; bottom: -.28em; width: 106%; height: .3em; pointer-events: none; }
.band-tan .pencil, .band-slate .pencil, .hero .pencil, .site-footer .pencil { stroke: var(--chalk); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--semi); font-weight: 600; font-size: 1.05rem; letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none; padding: 16px 30px; border: 2px solid transparent; border-radius: 0; cursor: pointer;
  transition: background .25s, color .25s, border-color .25s, transform .25s, box-shadow .25s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0,0,0,.14); }
.btn-slate { background: var(--slate); color: #fff; }
.btn-slate:hover { background: var(--tan); color: var(--slate-dark); }
.btn-tan { background: var(--tan); color: var(--slate-dark); }
.btn-tan:hover { background: #fff; color: var(--slate-dark); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.8); }
.btn-ghost:hover { background: #fff; color: var(--slate-dark); }
.btn-sm { padding: 10px 18px; font-size: .95rem; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--slate); color: #fff; transition: box-shadow .3s; }
.site-header.scrolled { box-shadow: 0 6px 20px rgba(0,0,0,.18); }
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { width: clamp(170px, 16vw, 220px); height: auto; }
.nav { display: flex; gap: clamp(18px, 2.3vw, 34px); }
.nav a { font-family: var(--semi); font-weight: 500; font-size: 1.08rem; letter-spacing: .03em; text-decoration: none; color: rgba(255,255,255,.9); position: relative; padding: 4px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--tan); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.nav a:hover::after { transform: scaleX(1); }
.header-cta { display: flex; align-items: center; gap: 18px; }
.header-phone { font-family: var(--display); font-weight: 700; font-size: 1.25rem; letter-spacing: .04em; text-decoration: none; }
.header-phone:hover { color: var(--tan-light); }
.menu-toggle { display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; position: relative; }
.menu-toggle span { position: absolute; left: 10px; right: 10px; height: 2px; background: #fff; transition: transform .3s, top .3s; }
.menu-toggle span:first-child { top: 17px; }
.menu-toggle span:last-child { top: 26px; }
.menu-toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }
.mobile-nav { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(calc(100vh - var(--header-h)), 1400px); display: grid; place-items: center; text-align: center; color: #fff; overflow: hidden; background: var(--slate-dark); }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 56% 50%; --shift: -1.5%; animation: kenburns 22s ease-out both; }
.hero::after { content: ""; position: absolute; inset: 0; background: rgba(28,33,38,.62); }
@keyframes kenburns { from { transform: translateX(var(--shift)) scale(1.12); } to { transform: translateX(var(--shift)) scale(1.04); } }
.hero-inner { position: relative; z-index: 1; padding: 100px var(--gutter) 120px; max-width: 1100px; }
.hero-welcome { font-family: var(--display); font-weight: 600; font-size: clamp(1.1rem, 1.8vw, 1.5rem); letter-spacing: .14em; text-transform: uppercase; color: var(--tan-light); margin-bottom: 1rem; }
.hero h1 { color: #fff; }
.hero h1 > span { display: block; }
.hero .p-under { stroke-width: 4.5; }
.hero-sub { font-size: clamp(1.1rem, 1.6vw, 1.35rem); max-width: 34em; margin: .7em auto 2em; color: rgba(255,255,255,.9); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 18px 28px; justify-content: center; }
.js .rise { opacity: 0; transform: translateY(28px); animation: rise .9s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: var(--d, 0s); }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- Split rows (ACS "We take pride") ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; min-height: 640px; max-width: 1920px; margin: 0 auto;
  /* lines the copy up with .wrap content; --page-w is set from JS (excludes the scrollbar on Windows) */
  --split-w: min(var(--page-w, 100vw), var(--split-max, 1920px)); --edge: max(var(--gutter), calc((var(--split-w) - var(--wrap)) / 2 + var(--gutter))); }
.split-copy { position: relative; padding: clamp(64px, 7vw, 100px) clamp(28px, 6vw, 110px); padding-left: var(--edge); }
.split-rev .split-copy { padding-left: clamp(28px, 6vw, 110px); padding-right: var(--edge); }
.split-copy p { max-width: 34em; }
.split-media { margin: 0; height: 100%; min-height: 520px; max-height: 820px; overflow: hidden; }
.split-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 1.8s cubic-bezier(.2,.7,.2,1); }
.split-media.in img { transform: none; }
.js .wipe { clip-path: inset(0 0 0 100%); transition: clip-path 1.2s cubic-bezier(.7,0,.2,1) .15s, opacity .1s !important; opacity: 1 !important; transform: none !important; }
.js .split-rev .wipe { clip-path: inset(0 100% 0 0); }
.js .wipe.in { clip-path: inset(0 0 0 0); }
.stats { list-style: none; padding: 0; margin: 2em 0 0; display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: clamp(20px, 3vw, 44px); }
.stats li { display: flex; flex-direction: column; }
.stats strong { font-family: var(--display); font-weight: 700; font-size: 2.8rem; line-height: 1; color: var(--tan-deep); }
.stats span { font-family: var(--semi); font-weight: 500; font-size: .95rem; color: var(--muted); max-width: 11em; line-height: 1.3; margin-top: 4px; }
.about-note { font-size: 1.9rem; transform: rotate(-2deg); margin-top: 1.2em; color: var(--graphite); }

/* ---------- Centered head ---------- */
.center-head { text-align: center; max-width: 860px; margin: 0 auto clamp(48px, 6vw, 80px); }
.center-head p { max-width: 44em; margin: 1.2em auto 0; }

/* ---------- Vision → built (pinned scrub) ---------- */
.vision { padding: var(--section) 0; }
.vision .center-head { margin-bottom: 0; }
.pin-track { position: relative; height: 320vh; }   /* extra height = scroll distance for the slider + pauses */
.pin-stage { position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); display: grid; place-items: center; padding: 20px var(--gutter); }
.reveal-wrap { position: relative; width: min(980px, calc((100vh - var(--header-h) - 150px) * 1.6), 100%); }
.before-after { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #fff; box-shadow: 0 18px 40px rgba(0,0,0,.14); --p: .97; cursor: ew-resize; touch-action: pan-y; }
.before-after > img, .ba-built img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 62%; }
.ba-built { position: absolute; inset: 0; clip-path: inset(0 0 0 calc(var(--p) * 100%)); }
.ba-line { position: absolute; top: 0; bottom: 0; left: calc(var(--p) * 100%); width: 3px; margin-left: -1.5px; background: var(--slate); box-shadow: 0 0 0 1px rgba(255,255,255,.6); }
.ba-handle { position: absolute; top: 50%; left: 50%; width: 38px; height: 38px; transform: translate(-50%, -50%); border-radius: 50%; background: var(--slate); border: 3px solid #fff; box-shadow: 0 4px 12px rgba(0,0,0,.3); }
.ba-handle::before, .ba-handle::after { content: ""; position: absolute; top: 50%; width: 0; height: 0; border: 6px solid transparent; transform: translateY(-50%); }
.ba-handle::before { left: 3px; border-right-color: #fff; }
.ba-handle::after { right: 3px; border-left-color: #fff; }
.ba-tag { position: absolute; top: 18px; font-size: 1.7rem; white-space: nowrap; padding: 2px 12px; background: rgba(255,255,255,.92); }
.ba-tag-l { right: 14px; transform: rotate(-3deg); }
.ba-tag-r { left: 14px; transform: rotate(2deg); color: var(--slate); }
.reveal-note { text-align: center; font-size: 1.6rem; margin: 16px 0 0; transition: opacity .4s; }
.reveal-note.done { opacity: 0; }

/* ---------- Services list with image swap ---------- */
.services { padding: var(--section) 0; overflow: hidden; overflow: clip; }
.services-grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.svc-list ul { list-style: none; margin: 1.2em 0 0; padding: 0; }
.svc { width: 100%; text-align: left; background: none; border: 0; border-bottom: 2px solid var(--tan); padding: 16px 0 14px; cursor: pointer; display: block; font: inherit; color: inherit; position: relative; }
.svc strong { display: block; font-family: var(--display); font-weight: 700; font-size: 1.7rem; text-transform: uppercase; letter-spacing: .02em; color: #767C83; transition: color .3s, transform .3s; }
.svc span { display: block; font-size: 1rem; color: var(--muted); max-height: 0; overflow: hidden; opacity: 0; transition: max-height .45s ease, opacity .35s ease; }
.svc.active strong, .svc:hover strong { color: var(--slate); }
.svc.active strong { transform: translateX(8px); }
.svc.active span { max-height: 4em; opacity: 1; padding-left: 8px; }
.svc-media { position: relative; margin: 0; aspect-ratio: 4 / 5; }
.svc-img { width: 100%; height: 100%; object-fit: cover; }
/* Stack of photo prints: each new one slides in from the right onto the pile */
.stack-photo {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  border: 10px solid #fff; box-shadow: 0 14px 30px rgba(0,0,0,.22);
  opacity: 0; transform: translateX(70%) rotate(calc(var(--tilt) + 8deg));
  transition: transform .65s cubic-bezier(.2,.75,.25,1), opacity .45s ease;
}
.stack-photo.in { opacity: 1; transform: rotate(var(--tilt)); }

/* ---------- Tan story band: stacking cards ---------- */
.band-tan { background: var(--tan-deep); color: #fff; }
.band-tan h2, .band-tan h3 { color: #fff; }
.behind { padding: var(--section) 0; }
.behind .center-head p { color: rgba(255,255,255,.95); }
.stack { list-style: none; margin: 0; padding: 0; }
/* Each card sticks at the same spot; the next one scrolls up and covers it. */
.stack-card {
  position: sticky; top: calc(var(--header-h) + 36px);
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 4vw, 60px); align-items: center;
  min-height: min(560px, calc(100vh - var(--header-h) - 90px));
  margin-bottom: 18vh; padding: clamp(24px, 3vw, 40px);
  color: var(--text);
  background-color: #FBFAF6;
  background-image:
    linear-gradient(rgba(47,90,140,.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47,90,140,.13) 1px, transparent 1px);
  background-size: 24px 24px;
  box-shadow: 0 -14px 36px rgba(0,0,0,.28);
}
.stack-card::before { content: ""; position: absolute; top: -12px; left: 50%; width: 110px; height: 26px; transform: translateX(-50%) rotate(-2deg); background: rgba(225,210,175,.85); box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.stack-card:last-child { margin-bottom: 0; }
.stack-card figure { margin: 0; height: 100%; min-height: 320px; overflow: hidden; box-shadow: 0 6px 16px rgba(0,0,0,.18); }
.stack-card img { width: 100%; height: 100%; object-fit: cover; }
.stack-text { position: relative; padding-left: 110px; }
.band-tan .stack-card h3 { color: var(--slate); }
.band-tan .stack-card .pencil { stroke: var(--graphite); }
.numeral { position: absolute; left: 0; top: -6px; width: 80px; height: 110px; stroke-width: 9; }
.stack-step { font-family: var(--semi); font-weight: 600; font-size: .9rem; letter-spacing: .16em; text-transform: uppercase; color: var(--tan-deep); margin-bottom: .6em; }
.stack-text p:last-child { color: var(--text); margin: 0; }

/* ---------- Process / punch list ---------- */
.process { padding: var(--section) 0; }
.process-grid { display: grid; grid-template-columns: 6fr 5fr; gap: clamp(40px, 7vw, 100px); align-items: start; }
.steps { list-style: none; padding: 0; margin: 1.6em 0 2em; }
.steps li { display: grid; grid-template-columns: 72px 1fr; gap: 12px; padding: 20px 0; border-top: 1px solid var(--line); }
.steps li > span { font-family: var(--display); font-weight: 700; font-size: 2.6rem; color: var(--tan-deep); line-height: 1; }
.steps h3 { margin-bottom: .25em; color: var(--slate); }
.steps p { margin: 0; }
.punch {
  /* Everything inside snaps to a 36px row so each line of text sits on a ruled line. */
  --row: 36px;
  position: relative; padding: var(--row) 36px var(--row) 44px; transform: rotate(1.2deg);
  box-shadow: 0 18px 38px rgba(0,0,0,.14);
  background-color: #FBF6DC;
  background-image: linear-gradient(90deg, transparent 26px, rgba(200,60,60,.35) 26px 27.5px, transparent 27.5px),
    repeating-linear-gradient(transparent 0 30px, rgba(47,90,140,.22) 30px 31px, transparent 31px var(--row));
  background-position: 0 0, 0 0;
}
.punch::before { content: ""; position: absolute; top: -14px; left: 50%; width: 120px; height: 30px; transform: translateX(-50%); background: #6B7178; border-radius: 4px 4px 0 0; box-shadow: inset 0 -4px 0 rgba(0,0,0,.2); }
.js .punch[data-reveal].in { transform: rotate(1.2deg); }
.punch-title { font-family: var(--display); font-weight: 700; font-size: 1.5rem; line-height: var(--row); text-transform: uppercase; letter-spacing: .06em; color: var(--slate); margin: 0 0 var(--row); }
.punch ul { list-style: none; margin: 0; padding: 0; }
.punch li { position: relative; padding: 0 0 0 22px; line-height: var(--row); }
.punch li::before { content: ""; position: absolute; left: 3px; top: 15px; width: 8px; height: 8px; background: var(--tan); }
.punch li strong { color: var(--slate); }
.punch-sign { text-align: right; font-size: 2rem; line-height: var(--row); margin: var(--row) 0 0; }

/* ---------- Project gallery ---------- */
.gallery-sec { padding: var(--section) 0; }
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: -24px 0 40px; }
.filter { font-family: var(--semi); font-weight: 600; font-size: 1rem; letter-spacing: .06em; text-transform: uppercase; padding: 10px 18px; background: transparent; color: var(--slate); border: 2px solid var(--slate); cursor: pointer; transition: background .2s, color .2s; }
.filter:hover { background: rgba(47,55,64,.08); }
.filter.active { background: var(--slate); color: #fff; }
.carousel { position: relative; }
.car-track { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 6px 4px 18px; scrollbar-width: thin; scrollbar-color: var(--tan) transparent; }
.car-track::-webkit-scrollbar { height: 6px; }
.car-track::-webkit-scrollbar-thumb { background: var(--tan); }
.g { flex: 0 0 clamp(240px, 26vw, 320px); scroll-snap-align: start; padding: 0; border: 0; background: none; text-align: center; cursor: zoom-in; font: inherit; color: inherit; }
.g.cover { cursor: pointer; }
.g img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .5s ease, box-shadow .5s ease; }
.g:hover img { transform: translateY(-6px); box-shadow: 0 16px 30px rgba(0,0,0,.18); }
.g strong { display: block; font-family: var(--semi); font-weight: 600; font-size: 1.2rem; color: var(--slate); margin-top: 14px; }
.g span { display: block; font-size: .92rem; color: var(--muted); }
.g.cover span { color: var(--tan-deep); font-weight: 600; }
.g.hide { display: none; }
.g.fade-in { animation: gIn .5s ease both; }
@keyframes gIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.car-nav { position: absolute; top: calc(50% - 40px); transform: translateY(-50%); z-index: 2; width: 50px; height: 50px; border-radius: 50%; border: 0; background: var(--slate); color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; box-shadow: 0 6px 16px rgba(0,0,0,.2); transition: background .2s, opacity .2s; }
.car-nav:hover { background: var(--tan); color: var(--slate-dark); }
.car-nav[disabled] { opacity: 0; pointer-events: none; }
.car-prev { left: -22px; }
.car-next { right: -22px; }
.gallery-cta { text-align: center; margin: 40px 0 0; }

/* ---------- Reviews ---------- */
.band-slate { background: var(--slate); color: rgba(255,255,255,.88); }
.band-slate h2 { color: #fff; }
.reviews { padding: var(--section) 0; }
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
.review { margin: 0; position: relative; padding-top: 40px; }
.quote-mark { position: absolute; top: -20px; left: -4px; font-family: var(--hand); font-size: 6rem; line-height: 1; color: var(--tan); }
.review blockquote { margin: 0 0 18px; font-size: 1.12rem; line-height: 1.6; }
.review figcaption { font-family: var(--semi); font-size: .98rem; color: var(--tan-light); }
.review figcaption strong { display: block; font-family: var(--display); font-size: 1.3rem; text-transform: uppercase; letter-spacing: .04em; color: #fff; }

/* ---------- Estimate ---------- */
.kicker { font-family: var(--display); font-weight: 600; font-size: .95rem; letter-spacing: .22em; text-transform: uppercase; color: var(--tan); margin-bottom: 1.1em; display: flex; align-items: center; gap: 12px; }
.kicker::before { content: ""; width: 28px; height: 3px; background: currentColor; }
.estimate { padding: var(--section) 0; background: var(--slate); color: rgba(255,255,255,.85); }
.estimate h2 { color: #fff; }
.estimate .pencil { stroke: var(--chalk); }
.estimate-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 7vw, 100px); align-items: start; }
.contact-lines { margin-top: 2em; border-top: 1px solid rgba(255,255,255,.16); }
.contact-lines p { margin: 0; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.16); display: flex; gap: 20px; align-items: baseline; }
.contact-lines .label { width: 84px; flex: none; font-family: var(--semi); font-weight: 600; font-size: .9rem; letter-spacing: .16em; text-transform: uppercase; color: var(--tan-light); }
.contact-lines a { font-family: var(--display); font-weight: 700; font-size: 1.5rem; letter-spacing: .04em; text-decoration: none; color: #fff; }
.estimate-note { margin-top: 28px; font-size: 1.8rem; transform: rotate(-2deg); color: var(--tan-light); }
.estimate-form { background: #fff; color: var(--text); padding: clamp(28px, 4vw, 48px); display: grid; gap: 20px; border-top: 6px solid var(--tan); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.estimate-form label { display: grid; gap: 6px; font-family: var(--semi); font-weight: 600; font-size: .95rem; letter-spacing: .08em; text-transform: uppercase; color: var(--slate); }
.estimate-form input, .estimate-form select, .estimate-form textarea {
  font: inherit; font-family: var(--sans); font-weight: 400; font-size: 1.05rem; letter-spacing: 0; text-transform: none; color: var(--text);
  background: var(--paper); border: 1.5px solid rgba(47,55,64,.25); border-radius: 0; padding: 12px 14px; width: 100%; transition: border-color .2s, box-shadow .2s;
}
.estimate-form textarea { resize: vertical; }
.estimate-form input:focus, .estimate-form select:focus, .estimate-form textarea:focus { outline: none; background: #fff; border-color: var(--tan); box-shadow: 0 0 0 3px rgba(184,149,106,.3); }
.estimate-form .btn { justify-self: start; }
.estimate-form .btn-tan:hover { background: var(--slate); color: #fff; }
.form-note { margin: 0; color: var(--slate); font-weight: 600; min-height: 1.4em; }

/* ---------- Project Planner (inside the estimate card) ---------- */
.planner { display: block; }
.planner fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.planner legend { font-family: var(--display); font-weight: 700; font-size: clamp(1.6rem, 2.6vw, 2.1rem); text-transform: uppercase; color: var(--slate); line-height: 1.05; margin-bottom: 14px; padding: 0; }
.q { display: none; }
.q.on { display: grid; gap: 16px; animation: qIn .4s ease both; }
@keyframes qIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: none; } }
.q-hint { margin: -10px 0 0; color: var(--muted); font-size: .95rem; }
.meter { position: relative; height: 10px; background: #E9E5DC; }
.meter-blade { position: absolute; inset: 0 auto 0 0; width: 0; transition: width .5s cubic-bezier(.2,.7,.2,1);
  background: repeating-linear-gradient(90deg, rgba(0,0,0,.7) 0 1px, transparent 1px 8px) 0 0 / 100% 4px no-repeat,
    repeating-linear-gradient(90deg, rgba(0,0,0,.85) 0 1.5px, transparent 1.5px 40px) 0 0 / 100% 7px no-repeat,
    linear-gradient(#F2CC5B, #DDB040); }
.meter-blade::after { content: ""; position: absolute; right: -5px; top: -3px; width: 6px; height: 16px; background: linear-gradient(90deg, #8B9096, #D6D9DC 60%, #9DA2A7); border-radius: 1px 2px 2px 1px; }
.meter-label { margin: 8px 0 18px; text-align: right; font-family: var(--semi); font-weight: 600; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.opts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.opts-photo { grid-template-columns: repeat(3, 1fr); }
.opt { position: relative; text-align: left; background: #fff; border: 2px solid rgba(47,55,64,.18); padding: 0; cursor: pointer; font: inherit; color: inherit; transition: border-color .2s, transform .2s, box-shadow .2s; }
.opt:hover { border-color: var(--slate); transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0,0,0,.1); }
.opt.sel { border-color: var(--tan); box-shadow: 0 0 0 3px var(--tan); }
.opt.sel::after { content: ""; position: absolute; top: 8px; right: 8px; width: 12px; height: 12px; background: var(--tan); border: 3px solid #fff; box-shadow: 0 0 0 1px var(--tan); }
.opt img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.opt strong { display: block; font-family: var(--display); font-weight: 700; font-size: 1.2rem; text-transform: uppercase; color: var(--slate); padding: 10px 12px 2px; }
.opt span { display: block; padding: 0 12px 12px; font-size: .9rem; color: var(--muted); line-height: 1.35; }
.opts-photo .opt strong { padding-bottom: 10px; font-size: 1.05rem; }
.plan { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; background: var(--paper); padding: 18px 20px; border-left: 4px solid var(--tan); }
.plan-list { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 0; font-size: .95rem; }
.plan-list dt { font-family: var(--semi); font-weight: 600; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--tan-deep); padding-top: 3px; }
.plan-list dd { margin: 0; }
.plan-head { font-family: var(--semi); font-weight: 600; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--tan-deep); margin: 0 0 6px; }
.plan-expect { margin: 0; padding-left: 18px; font-size: .95rem; }
.plan-expect li { margin-bottom: 6px; }
.planner-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; }
.planner-nav.hide { display: none; }
.link-btn { background: none; border: 0; font-family: var(--semi); font-weight: 600; font-size: 1rem; letter-spacing: .06em; text-transform: uppercase; color: var(--slate); cursor: pointer; padding: 10px 0; }
.link-btn:disabled { visibility: hidden; }
.planner .field-row + .field-row, .planner .field-row + label { margin-top: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--slate-dark); color: rgba(255,255,255,.78); padding: 72px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .8fr 1fr 1.3fr; gap: 40px; padding-bottom: 52px; }
.footer-brand img { width: 200px; height: auto; }
.footer-brand p { margin-top: 18px; max-width: 20em; }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col h4, .footer-col .footer-h { color: var(--tan); margin-bottom: 6px; }
.footer-col a, .footer-col span { text-decoration: none; color: rgba(255,255,255,.85); }
.footer-col a:hover { color: var(--tan-light); }
.footer-col p { font-size: .95rem; line-height: 1.6; margin: 0; }
.footer-base { border-top: 1px solid rgba(255,255,255,.12); padding-top: 22px; padding-bottom: 28px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-base p { margin: 0; font-size: .88rem; color: rgba(255,255,255,.5); }

/* ---------- Lightbox ---------- */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 92vw; max-height: 92vh; overflow: visible; }
.lightbox::backdrop { background: rgba(20,24,28,.94); }
.lightbox img { max-width: 92vw; max-height: 84vh; object-fit: contain; }
.lightbox-caption { color: #fff; text-align: center; margin: 14px 0 0; font-family: var(--semi); font-size: 1.05rem; letter-spacing: .08em; text-transform: uppercase; }
.lightbox figure { margin: 0; }
.lightbox-nav { position: fixed; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; font-size: 2.2rem; line-height: 1; cursor: pointer; }
.lightbox-nav:hover { background: var(--tan); color: var(--slate-dark); }
.lightbox-prev { left: 18px; }
.lightbox-next { right: 18px; }
.lightbox-close { position: fixed; top: 16px; right: 22px; background: none; border: 0; color: #fff; font-size: 2.6rem; line-height: 1; cursor: pointer; }

/* ---------- Reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1120px) {
  .nav { display: none; }
  .menu-toggle { display: block; }
  .mobile-nav { display: grid; overflow: hidden; max-height: 0; transition: max-height .4s ease; background: var(--slate); }
  .mobile-nav.open { max-height: 520px; border-bottom: 3px solid var(--tan); }
  .mobile-nav a { padding: 15px var(--gutter); border-top: 1px solid rgba(255,255,255,.12); text-decoration: none; font-family: var(--semi); font-weight: 600; font-size: 1.15rem; letter-spacing: .06em; text-transform: uppercase; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  :root { --header-h: 70px; }
  body { font-size: 17px; }
  .header-phone { display: none; }
  .hero { min-height: 620px; }
  .split, .split-rev { grid-template-columns: 1fr; min-height: 0; }
  .split-copy, .split-rev .split-copy { padding: 64px var(--gutter); }
  .split-media { min-height: 0; aspect-ratio: 4 / 3; }
  .split:not(.split-rev) .split-media { order: -1; }
    .services-grid, .process-grid, .estimate-grid { grid-template-columns: 1fr; }
  .stack-card { position: relative; top: auto; grid-template-columns: 1fr; min-height: 0; margin-bottom: 40px; }
  .stack-card figure { min-height: 0; aspect-ratio: 4 / 3; }
  .pin-track { height: 240vh; }
  .reveal-wrap { width: 100%; }
  .svc-media { order: -1; aspect-ratio: 4 / 3; }
  .review-grid { grid-template-columns: 1fr; gap: 48px; }
  .ba-tag { font-size: 1.25rem; top: 10px; }
}

@media (max-width: 560px) {
  .header-cta .btn { display: none; }
  .brand img { width: 168px; }
  .hero-actions .btn { width: 100%; }
  .stats strong { font-size: 2.1rem; }
  .stats { gap: 16px; }
  .stack-text { padding-left: 80px; }
  .numeral { width: 60px; height: 84px; }
  .g { flex-basis: 72vw; }
  .car-nav { display: none; }
  .filter { font-size: .85rem; padding: 8px 12px; }
  .field-row { grid-template-columns: 1fr; }
  .opts-photo { grid-template-columns: repeat(2, 1fr); }
  .opts { grid-template-columns: 1fr 1fr; }
  .plan { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .punch { padding: var(--row) 18px var(--row) 40px; }
  .punch li { line-height: var(--row); }
  .svc strong { font-size: 1.45rem; }
}

/* ---------- Large monitors: scale type & content width up a little ---------- */
@media (min-width: 1800px) {
  :root { --wrap: 1400px; }
  html { font-size: 17px; }
  body { font-size: 19px; }
  .split { --split-max: 2048px; max-width: 2048px; }
}
@media (min-width: 2400px) {
  :root { --wrap: 1560px; }
  html { font-size: 18.5px; }
  body { font-size: 20px; }
  .split { --split-max: 2200px; max-width: 2200px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .before-after { --p: .5 !important; }
}
.planner-done { font-size: 1.15rem; margin: 10px 0; }
.planner-done strong { display: block; font-family: var(--display); font-size: 2rem; text-transform: uppercase; color: var(--slate); margin-bottom: 6px; }

/* ---------- Quick form + optional planner ---------- */
.estimate-card { position: relative; }
.estimate-form[hidden] { display: none; }
.planner-cta { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 4px; padding: 16px 18px; background: var(--paper); border-left: 4px solid var(--tan); }
.planner-cta p { margin: 0; flex: 1 1 260px; font-size: .98rem; }
.planner-cta strong { color: var(--slate); }
.close-planner { margin: -8px 0 10px; font-size: .9rem; }
.estimate-card .estimate-form { animation: qIn .4s ease both; }

/* ---------- Yellow notepad sheets (planner prompt + reviews) ---------- */
.notepad {
  position: relative; color: var(--text);
  background-color: #FBF6DC;
  background-image:
    linear-gradient(90deg, transparent 26px, rgba(200,60,60,.35) 26px 27.5px, transparent 27.5px),
    repeating-linear-gradient(transparent 0 29px, rgba(47,90,140,.2) 29px 30px);
  box-shadow: 0 10px 24px rgba(0,0,0,.18), 0 1px 2px rgba(0,0,0,.1);
}
.notepad::before { content: ""; position: absolute; top: -11px; left: 50%; width: 96px; height: 24px; transform: translateX(-50%) rotate(-2deg); background: rgba(225,210,175,.85); box-shadow: 0 1px 2px rgba(0,0,0,.12); }

.planner-cta { background: none; border: 0; padding: 26px 22px 20px 42px; margin-top: 18px; transform: rotate(-.8deg); }
.planner-cta.notepad { background-color: #FBF6DC; }

.reviews .review-grid { gap: clamp(28px, 4vw, 48px); align-items: start; }
.review.notepad { padding: 46px 26px 26px 44px; background-position: 0 0, 0 14px; }
.review.notepad { --tilt: -1.5deg; --d: 0s; transform: rotate(var(--tilt)); transition: transform .35s ease, box-shadow .35s ease; }
.review.notepad:nth-child(2) { --tilt: 1deg; --d: .18s; margin-top: 22px; }
.review.notepad:nth-child(3) { --tilt: -.6deg; --d: .36s; }
.review.notepad:hover { transform: translateY(-8px) rotate(0deg); box-shadow: 0 22px 40px rgba(0,0,0,.28); }

/* Pinned-up entrance: sheet drops and settles, tape presses on, words get "written" */
.js .review.notepad[data-reveal] { opacity: 0; transform: translateY(-70px) rotate(calc(var(--tilt) - 9deg)) scale(1.04); transition: none; }
.js .review.notepad[data-reveal].in { opacity: 1; transform: rotate(var(--tilt)); transition: transform .9s cubic-bezier(.34,1.45,.64,1) var(--d), opacity .4s ease var(--d), box-shadow .35s ease; }
.js .review.notepad[data-reveal].in.settled { transition: transform .35s ease, box-shadow .35s ease; }
.js .review.notepad[data-reveal].in.settled:hover { transform: translateY(-8px) rotate(0deg); }
.js .review.notepad::before { transform: translateX(-50%) rotate(-2deg) scaleX(0); transform-origin: left center; transition: transform .35s ease calc(var(--d) + .75s); }
.js .review.notepad.in::before { transform: translateX(-50%) rotate(-2deg) scaleX(1); }
.js .review.notepad .w { opacity: 0; display: inline-block; transform: translateY(3px); transition: opacity .25s ease, transform .25s ease; }
.js .review.notepad .w.on { opacity: 1; transform: none; }
.js .review.notepad figcaption, .js .review.notepad .quote-mark { opacity: 0; transition: opacity .5s ease; }
.js .review.notepad.written figcaption, .js .review.notepad.in .quote-mark { opacity: 1; }
.js .review.notepad.in .quote-mark { transition-delay: calc(var(--d) + .9s); }

.review.notepad .quote-mark { top: 4px; left: 40px; font-size: 4.6rem; color: var(--tan-deep); }
.review.notepad blockquote { font-family: var(--hand); font-weight: 700; font-size: 1.5rem; line-height: 30px; color: #2B3A55; margin: 0 0 14px; }
.review.notepad figcaption { color: var(--muted); }
.review.notepad figcaption strong { color: var(--slate); }
@media (max-width: 860px) { .review.notepad:nth-child(2) { margin-top: 0; } }

/* ---------- Hand-drawn arrows (client artwork), tinted with site colors ---------- */
.arrow { position: absolute; display: block; pointer-events: none; z-index: 2; background-color: var(--tan);
  -webkit-mask: var(--src) center / contain no-repeat; mask: var(--src) center / contain no-repeat; }
.arrow-loop { --src: url(../img/arrow-loop.png); aspect-ratio: 265 / 411; }
.arrow-curve { --src: url(../img/arrow-curve.png); aspect-ratio: 432 / 261; }
.arrow-straight { --src: url(../img/arrow-straight.png); aspect-ratio: 432 / 130; }
/* draw-in: wipe along the direction of the stroke */
.js .arrow[data-reveal] { opacity: 1; transform: none; clip-path: inset(0 100% 0 0); transition: clip-path 1.2s cubic-bezier(.6,.1,.3,1) .35s; }
.js .arrow-loop[data-reveal] { clip-path: inset(0 0 100% 0); }
.js .arrow[data-reveal].in { clip-path: inset(0 0 0 0); }

.svc-list, .behind .center-head, .estimate-copy { position: relative; }
.arrow-vision { width: 118px; left: -150px; top: 10px; transform: rotate(-8deg); }
.js .arrow-vision[data-reveal], .js .arrow-vision[data-reveal].in { transform: rotate(-8deg); }
.arrow-svc { width: 150px; right: -40px; top: 6px; }
.arrow-behind { width: 88px; right: -130px; top: -6px; background-color: var(--tan-light); transform: scaleX(-1) rotate(-6deg); }
.js .arrow-behind[data-reveal], .js .arrow-behind[data-reveal].in { transform: scaleX(-1) rotate(-6deg); }
.arrow-est { width: 140px; right: -120px; top: 120px; }
@media (max-width: 1240px) { .arrow-vision { left: -118px; width: 96px; } .arrow-est { right: -70px; width: 100px; } .arrow-behind { right: -96px; width: 72px; } }
@media (max-width: 1120px) { .arrow-behind { display: none; } }

/* ---------- Built to last: single photo ---------- */
.vision-photo { position: relative; margin: clamp(36px, 5vw, 56px) auto 0; max-width: 1000px; aspect-ratio: 16 / 9; overflow: visible; }
.vision-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; box-shadow: 0 22px 46px rgba(0,0,0,.18); }
.vision-photo .arrow-vision { left: -150px; top: -30px; }

/* ---------- Our work: five-tile mosaic ---------- */
.work-sec { padding: var(--section) 0; }
.mosaic { display: grid; grid-template-columns: 1fr 1.65fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; height: clamp(560px, 58vw, 860px); }
.m-l1 { grid-area: 1 / 1; } .m-l2 { grid-area: 2 / 1; } .m-center { grid-area: 1 / 2 / 3 / 3; } .m-r1 { grid-area: 1 / 3; } .m-r2 { grid-area: 2 / 3; }
.mtile { position: relative; display: block; overflow: hidden; color: #fff; text-decoration: none; background: var(--slate); }
.mtile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2,.7,.2,1); }
.mtile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(22,26,30,.82) 0%, rgba(22,26,30,.35) 45%, rgba(22,26,30,.1) 100%); transition: background .4s; }
.mtile:hover img, .mtile:focus-visible img { transform: scale(1.05); }
.mtile:hover::after { background: linear-gradient(0deg, rgba(22,26,30,.88) 0%, rgba(22,26,30,.45) 55%, rgba(22,26,30,.15) 100%); }
.m-text { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: clamp(18px, 2.2vw, 30px); display: flex; flex-direction: column; gap: 4px; }
.m-eyebrow { font-family: var(--semi); font-weight: 600; font-size: .85rem; letter-spacing: .2em; text-transform: uppercase; color: var(--tan-light); }
.mtile strong { font-family: var(--display); font-weight: 700; font-size: clamp(1.5rem, 2.2vw, 2.1rem); text-transform: uppercase; line-height: 1.05; }
.m-center strong { font-size: clamp(2.2rem, 3.6vw, 3.4rem); }
.m-link { align-self: flex-start; margin-top: 8px; font-family: var(--semi); font-weight: 600; font-size: .9rem; letter-spacing: .14em; text-transform: uppercase; padding-bottom: 3px; border-bottom: 2px solid var(--tan); }
.work-ctas { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin: clamp(32px, 4vw, 48px) 0 0; }

/* ---------- Planner extras ---------- */
.q-note { margin: 4px 0 0; font-size: .98rem; color: var(--muted); }
.link-inline { background: none; border: 0; padding: 0; font: inherit; color: var(--slate); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link-inline:hover { color: var(--tan-deep); }
.other-art { display: grid; place-items: center; aspect-ratio: 4 / 3; font-family: var(--hand); font-size: 3.2rem; color: var(--graphite);
  background-color: var(--paper); background-image: linear-gradient(rgba(47,55,64,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(47,55,64,.08) 1px, transparent 1px); background-size: 16px 16px; }
.opt-other-text { border-style: dashed; }
.q-final.needs-note .final-note textarea { border-color: var(--tan); box-shadow: 0 0 0 3px rgba(184,149,106,.3); background: #fff; }
.q-final.needs-note .final-label { color: var(--tan-deep); }

/* =====================================================================
   Mobile refinements (phones / small tablets only — desktop unaffected)
   ===================================================================== */
@media (max-width: 860px) {
  /* Hero: smaller buttons so the headline leads */
  .hero-actions { flex-direction: column; align-items: center; gap: 12px; }
  .hero-actions .btn { width: auto; min-width: 230px; font-size: .9rem; padding: 12px 20px; letter-spacing: .07em; }

  /* "Hiring a contractor": photo wipes in when it's actually on screen */
  .js .split .wipe { clip-path: none !important; }
  .js .split .wipe img { clip-path: inset(0 0 0 100%); transform: scale(1.12); transition: clip-path 1.1s cubic-bezier(.7,0,.2,1), transform 1.6s cubic-bezier(.2,.7,.2,1); }
  .js .split-rev .wipe img { clip-path: inset(0 100% 0 0); }
  .js .split .wipe.m-in img { clip-path: inset(0 0 0 0); transform: none; }

  /* "Built to last": a single photo on phones too */
  .vision-photo { aspect-ratio: 4 / 3; }
  .hero-bg { --shift: 0%; }
  .mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: 300px 200px 200px; height: auto; gap: 10px; }
  .m-center { grid-area: 1 / 1 / 2 / 3; } .m-l1 { grid-area: 2 / 1; } .m-l2 { grid-area: 2 / 2; } .m-r1 { grid-area: 3 / 1; } .m-r2 { grid-area: 3 / 2; }
  .m-link { display: none; }
  .mtile strong { font-size: 1.25rem; }
  .m-center strong { font-size: 2rem; }
  .m-eyebrow { font-size: .72rem; }

  /* "What we build": tap tabs above the photo pile (list hidden on phones) */
  .services-grid { gap: 0; grid-template-columns: minmax(0, 1fr); }
  .services-grid > * { min-width: 0; }
  .svc-list ul { display: none; }
  .svc-list h2 { margin-bottom: 16px; }
  .svc-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1) 22px; padding: 2px var(--gutter) 4px; }
  .svc-tabs::-webkit-scrollbar { display: none; }
  .svc-tab { flex: none; font-family: var(--semi); font-weight: 600; font-size: .92rem; letter-spacing: .05em; text-transform: uppercase; padding: 9px 14px; border: 2px solid var(--slate); background: #fff; color: var(--slate); cursor: pointer; }
  .svc-tab.on { background: var(--slate); color: #fff; }
  .svc-media { order: 0; aspect-ratio: 4 / 3; width: 88%; margin: 0 auto 22px; }
  .stack-photo { border-width: 7px; }
  .svc-desc { display: block; text-align: center; min-height: 5.6em; }
  .svc-desc strong { display: block; font-family: var(--display); font-size: 1.5rem; text-transform: uppercase; color: var(--slate); }
  .svc-desc p { margin: 4px 0 0; color: var(--muted); font-size: 1rem; }
  .svc-desc .swap { animation: qIn .4s ease both; }

  /* "Behind the walls": compact cards that stack over each other like desktop */
  .stack-card { position: sticky; top: calc(var(--header-h) + 14px); grid-template-columns: 1fr; gap: 14px; min-height: 0; margin-bottom: 14vh; padding: 16px 16px 20px; box-shadow: 0 -12px 30px rgba(0,0,0,.28); }
  .stack-card figure { min-height: 0; aspect-ratio: 16 / 10; }
  .stack-text { padding-left: 62px; }
  .numeral { width: 50px; height: 70px; top: 0; stroke-width: 8; }
  .stack-card h3 { font-size: 1.25rem; }
  .stack-text p:last-child { font-size: .98rem; line-height: 1.5; }

  /* Reviews: swipe sideways through the notes */
  .reviews .review-grid { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 34px var(--gutter) 30px; margin: 0 calc(var(--gutter) * -1); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .reviews .review-grid::-webkit-scrollbar { display: none; }
  .review.notepad { flex: 0 0 82%; scroll-snap-align: center; margin-top: 0 !important; }
  .js .review.notepad[data-reveal] { transform: translateY(-26px) rotate(calc(var(--tilt) - 6deg)) scale(1.02); }
  .js .review.notepad[data-reveal].in, .js .review.notepad[data-reveal].in.settled { transform: rotate(var(--tilt)); }
  .review-dots { display: flex; justify-content: center; gap: 10px; margin-top: 6px; }
  .review-dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; padding: 0; background: rgba(255,255,255,.3); transition: background .25s, transform .25s; }
  .review-dots button.on { background: var(--tan); transform: scale(1.25); }
}
@media (min-width: 861px) { .review-dots, .svc-tabs, .svc-desc { display: none; } }
@media (max-width: 860px) { .arrow { display: none; } }

/* Estimate: contact details always on top, optional planner underneath */
.planner [hidden] { display: none !important; }
.contact-block { display: grid; gap: 16px; }
.planner-block { margin-top: 30px; padding-top: 26px; border-top: 1px dashed rgba(47,55,64,.25); }
.opt-send { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 16px; align-items: center; text-align: left; padding: 14px 18px; background: var(--slate); color: #fff; border: 2px solid var(--slate); cursor: pointer; font: inherit; transition: background .2s, transform .2s, box-shadow .2s; }
.opt-send:hover { background: var(--tan); border-color: var(--tan); transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0,0,0,.12); }
.send-art { grid-row: 1 / 3; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 2px solid rgba(255,255,255,.55); }
.send-art svg { width: 22px; height: 22px; fill: #fff; }
.opt-send strong { align-self: end; }
.opt-send .send-sub { align-self: start; }
.opt-send strong { font-family: var(--display); font-weight: 700; font-size: 1.15rem; text-transform: uppercase; letter-spacing: .02em; }
.opt-send .send-sub { font-size: .88rem; color: rgba(255,255,255,.8); line-height: 1.35; }
.planner-kicker { margin: 0 0 12px; font-family: var(--semi); font-weight: 600; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: var(--tan-deep); }
.planner-kicker span { color: var(--muted); letter-spacing: .08em; }
.planner .form-note:empty { display: none; }

/* Placeholder until Gary's photo arrives */
.photo-ph { display: grid; place-items: center; background-color: var(--paper); background-image: linear-gradient(rgba(47,55,64,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(47,55,64,.08) 1px, transparent 1px); background-size: 28px 28px; }
.ph-frame { display: grid; justify-items: center; gap: 4px; padding: 48px 56px; border: 2px dashed rgba(47,55,64,.35); text-align: center; color: var(--slate); }
.ph-icon { width: 96px; height: 96px; fill: none; stroke: var(--graphite); stroke-width: 2.2; stroke-linecap: round; margin-bottom: 12px; }
.ph-name { margin: 0; font-family: var(--display); font-weight: 700; font-size: 1.8rem; text-transform: uppercase; }
.ph-role { margin: 0; font-family: var(--semi); font-weight: 600; font-size: .9rem; letter-spacing: .12em; text-transform: uppercase; color: #5C6167; }
.ph-note { margin: 14px 0 0; font-family: var(--hand); font-size: 1.5rem; color: var(--tan-deep); }
@media (max-width: 860px) { .js .split .photo-ph.wipe { clip-path: none !important; } }

/* Phone-only sticky call / estimate bar */
.m-bar { display: none; }
@media (max-width: 860px) {
  .m-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: 1fr 1.4fr; background: var(--slate-dark); box-shadow: 0 -6px 18px rgba(0,0,0,.25); padding-bottom: env(safe-area-inset-bottom); transition: transform .35s cubic-bezier(.2,.7,.2,1); }
  .m-bar a { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 15px 8px; font-family: var(--display); font-weight: 700; font-size: 1.05rem; letter-spacing: .04em; text-transform: uppercase; color: #fff; text-decoration: none; }
  .m-bar a + a { background: var(--tan); color: var(--slate-dark); }
  .m-bar svg { width: 18px; height: 18px; fill: currentColor; }
  .m-bar.away { transform: translateY(110%); }
  body { padding-bottom: calc(54px + env(safe-area-inset-bottom)); }
}

/* Google rating strip under the review notes */
.g-rating { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 20px 36px; max-width: 980px; margin: clamp(48px, 6vw, 80px) auto 0; padding: 26px clamp(20px, 4vw, 40px); border-top: 1px solid rgba(255,255,255,.18); border-bottom: 1px solid rgba(255,255,255,.18); }
.g-logo { width: 56px; height: 56px; border-radius: 50%; background: #fff; display: grid; place-items: center; flex: none; }
.g-logo svg { width: 30px; height: 30px; }
.g-score { display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; column-gap: 14px; align-items: center; }
.g-num { grid-row: 1 / 3; font-family: var(--display); font-weight: 700; font-size: 3.4rem; line-height: 1; color: #fff; }
.g-stars { display: flex; gap: 4px; }
.g-stars i { width: 24px; height: 24px; background: #F4C150; clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); transform: scale(0); transition: transform .45s cubic-bezier(.3,1.6,.5,1); transition-delay: calc(.25s + var(--s) * .12s); }
.g-rating.in .g-stars i, .no-js .g-stars i { transform: scale(1); }
.g-count { font-family: var(--semi); font-weight: 600; font-size: .95rem; letter-spacing: .04em; color: rgba(255,255,255,.8); }
.g-actions { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 860px) {
  .g-rating { flex-direction: column; text-align: center; gap: 18px; margin-top: 36px; }
  .g-score { justify-items: start; }
  .g-actions { justify-content: center; }
}

/* ---------- Our Work dropdown (main nav) ---------- */
.nav { align-items: center; }
.nav-item { position: relative; display: flex; align-items: center; gap: 2px; }
.sub-toggle { width: 26px; height: 32px; display: grid; place-items: center; padding: 0; background: none; border: 0; border-radius: 3px; color: rgba(255,255,255,.7); cursor: pointer; }
.sub-toggle svg { width: 11px; height: 8px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s ease; }
.sub-toggle:hover, .has-menu.open .sub-toggle { color: var(--tan-light); }
.has-menu.open .sub-toggle svg { transform: rotate(180deg); }
/* The menu starts right under the link; its top padding is an invisible bridge so the
   cursor never falls into a gap between "Our Work" and the menu. */
.submenu { position: absolute; top: 100%; left: -20px; z-index: 10; min-width: 260px; margin: 0; padding: 14px 0 0; list-style: none;
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s; }
.submenu::before { content: ""; position: absolute; inset: 14px 0 0; z-index: -1; background: var(--slate-dark); border-top: 3px solid var(--tan); box-shadow: 0 16px 34px rgba(0,0,0,.3); }
.has-menu.open .submenu,
html:not(.nav-js) .has-menu:hover .submenu,
html:not(.nav-js) .has-menu:focus-within .submenu { opacity: 1; visibility: visible; transform: none; transition: opacity .2s ease, transform .2s ease, visibility 0s; }
.nav .submenu a { display: block; padding: 11px 22px; font-size: 1rem; white-space: nowrap; color: rgba(255,255,255,.88); }
.nav .submenu li:first-child a { padding-top: 16px; }
.nav .submenu li:last-child a { padding-bottom: 16px; }
.nav .submenu a::after { display: none; }
.nav .submenu a:hover, .nav .submenu a:focus-visible { background: rgba(255,255,255,.07); color: var(--tan-light); }
.nav .submenu a[aria-current="page"] { color: var(--tan-light); box-shadow: inset 3px 0 0 var(--tan); }
.nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a:focus-visible, .sub-toggle:focus-visible, .header-cta a:focus-visible, .brand:focus-visible { outline: 2px solid var(--tan-light); outline-offset: 4px; }
.nav .submenu a:focus-visible { outline-offset: -3px; }
@media (max-width: 1120px) {
  .mobile-nav.open { max-height: min(86vh, 1000px); overflow-y: auto; }
  .m-sub { display: grid; background: rgba(0,0,0,.16); }
  .mobile-nav .m-sub a { padding: 11px var(--gutter) 11px calc(var(--gutter) + 18px); border-top-color: rgba(255,255,255,.06); font-weight: 500; font-size: 1rem; letter-spacing: .03em; text-transform: none; color: rgba(255,255,255,.85); }
  .mobile-nav a:focus-visible { outline: 2px solid var(--tan-light); outline-offset: -3px; }
}

/* ---------- Footer legal links ---------- */
.footer-legal { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-legal a { color: rgba(255,255,255,.65); text-decoration: none; }
.footer-legal a:hover { color: var(--tan-light); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Standalone estimate page ---------- */
.estimate-page { padding-top: clamp(56px, 7vw, 96px); }
.estimate-page h1 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); color: #fff; }

/* ---------- Legal pages (draft placeholders) ---------- */
.legal { padding: clamp(56px, 7vw, 96px) 0 var(--section); }
.legal-wrap { max-width: 820px; }
.legal h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
.legal h2 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); margin: 1.6em 0 .4em; }
.legal-meta { color: var(--muted); }
.legal .todo { color: var(--muted); font-style: italic; }
.draft-flag { background: #FBF6DC; border-left: 4px solid var(--tan); padding: 16px 20px; margin-bottom: 36px; }


/* ---------- Masking tape (review notes, punch list, stacked cards) ----------
   One look everywhere: semi-transparent paper tape with a faint crepe texture,
   lighter edges and torn ends. */
.stack-card::before, .notepad::before, .punch::before {
  background:
    linear-gradient(rgba(255,255,255,.28), rgba(255,255,255,0) 30%, rgba(255,255,255,0) 75%, rgba(120,95,55,.10)),
    repeating-linear-gradient(90deg, rgba(120,95,55,.07) 0 1px, transparent 1px 4px),
    rgba(229,215,180,.74);
  clip-path: polygon(97% 0, 100% 14%, 97.5% 27%, 100% 41%, 97.5% 55%, 100% 68%, 97.5% 82%, 98% 100%, 2.5% 100%, 2.5% 82%, 0% 68%, 2.5% 55%, 0% 41%, 2.5% 27%, 0% 14%, 2% 0);
  box-shadow: none;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,.14));
}
.punch::before { top: -13px; width: 112px; height: 28px; border-radius: 0; transform: translateX(-50%) rotate(1.5deg); }

/* ---------- Form field errors ---------- */
.req { color: var(--tan-deep); }
.req-note { margin: -6px 0 2px; font-size: .85rem; color: var(--muted); }
.req-note span { color: var(--tan-deep); }
.field-err { display: block; min-height: 0; font-family: var(--body, inherit); font-size: .88rem; font-weight: 600; letter-spacing: 0; text-transform: none; color: #B42318; }
.field-err:empty { display: none; }
.estimate-form input[aria-invalid="true"] { border-color: #B42318; box-shadow: 0 0 0 3px rgba(180,35,24,.15); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer review links ---------- */
.footer-find { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 6px; }
.footer-find a { font-size: .92rem; }


/* ---------- Photo cards (404 + thank-you) ---------- */
.go-head { margin: 0 0 16px; font-family: var(--semi); font-weight: 600; font-size: .9rem; letter-spacing: .14em; text-transform: uppercase; color: var(--tan-deep); }
.go-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.go-card { position: relative; display: flex; align-items: flex-end; aspect-ratio: 4 / 3; overflow: hidden; background: var(--slate); color: #fff; text-decoration: none; }
.go-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.go-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(22,26,30,.85) 0%, rgba(22,26,30,.2) 60%, rgba(22,26,30,0) 100%); }
.go-card span { position: relative; z-index: 1; padding: 16px 18px; font-family: var(--display); font-weight: 700; font-size: 1.35rem; letter-spacing: .03em; text-transform: uppercase; }
.go-card:hover img { transform: scale(1.05); }
.go-card:focus-visible { outline: 3px solid var(--tan); outline-offset: 3px; }
.go-est { flex-direction: column; align-items: flex-start; justify-content: flex-end; background: var(--tan); color: var(--slate-dark); }
.go-est::after { display: none; }
.go-est .go-k { padding-bottom: 0; font-family: var(--hand); font-size: 1.6rem; text-transform: none; letter-spacing: 0; }
.go-est:hover { background: #c7a57a; }
@media (max-width: 860px) { .go-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .go-card span { font-size: 1.05rem; padding: 12px; } }

/* ---------- 404 ---------- */
.nf { padding: clamp(56px, 8vw, 110px) 0 clamp(56px, 7vw, 96px); }
.nf-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 6vw, 90px); align-items: center; margin-bottom: clamp(48px, 6vw, 80px); }
.nf-art { text-align: center; }
.nf-num { margin: 0; font-family: var(--hand); font-weight: 700; font-size: clamp(6rem, 15vw, 11rem); line-height: 1; color: var(--slate); }
.nf-num .pmark { padding: 0 .25em; }
.nf-tape { position: relative; height: 34px; width: min(100%, 440px); margin: 18px auto 0; transform: rotate(-3deg); --tape-h: 34px; }
.nf-tape .tape-blade { width: 72%; height: 34px; box-shadow: 0 6px 14px rgba(0,0,0,.25); border-radius: 2px; }
.nf-tape .tape-hook { width: 14px; right: -10px; height: 44px; top: -5px; }
.nf-note { margin: 22px 0 0; font-size: 1.9rem; color: var(--graphite); transform: rotate(-2deg); }
.nf-copy h1 { font-size: clamp(2.6rem, 5.6vw, 4.6rem); }
.nf-copy p { max-width: 34em; }
.nf-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
@media (max-width: 860px) { .nf-grid { grid-template-columns: 1fr; text-align: center; } .nf-copy p { margin-left: auto; margin-right: auto; } .nf-links { justify-content: center; } .nf-copy .kicker { justify-content: center; } }

/* ---------- Thank-you page ---------- */
.thanks { padding: clamp(56px, 8vw, 110px) 0; background: var(--slate); color: rgba(255,255,255,.88); }
.thanks-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 90px); align-items: center; }
.thanks .kicker { color: var(--tan-light); }
.thanks h1 { color: #fff; font-size: clamp(2.6rem, 5.4vw, 4.6rem); }
.thanks-copy > p { max-width: 32em; font-size: 1.15rem; }
.thanks-call { display: grid; gap: 2px; margin-top: 30px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.15); }
.thanks-call .label { font-family: var(--semi); font-weight: 600; font-size: .85rem; letter-spacing: .16em; text-transform: uppercase; color: var(--tan-light); }
.thanks-call a { font-family: var(--display); font-weight: 700; font-size: clamp(2rem, 4vw, 2.8rem); letter-spacing: .02em; color: #fff; text-decoration: none; }
.thanks-call a:hover { color: var(--tan-light); }
.thanks-hours { font-size: .95rem; color: rgba(255,255,255,.7); }
.thanks-note { color: var(--text); }
.thanks-more { padding: clamp(48px, 6vw, 80px) 0; }
.thanks-reviews { margin: 22px 0 0; text-align: center; }
.thanks-reviews a { font-family: var(--semi); font-weight: 600; color: var(--slate); text-underline-offset: 4px; text-decoration-color: var(--tan); }
@media (max-width: 860px) { .thanks-grid { grid-template-columns: 1fr; } }

/* Small tan labels on the dark estimate band use the lighter tan for readable contrast */
.estimate .kicker { color: var(--tan-light); }
.footer-h { font-family: var(--semi); font-weight: 600; font-size: 1.05rem; letter-spacing: .12em; }

/* Short laptop screens (e.g. 1366×768 with the browser toolbar): scale the hero headline to
   the screen height and trim its padding so the estimate button is visible without scrolling.
   Taller screens are unchanged. */
@media (min-width: 861px) and (max-height: 820px) {
  .hero-inner { padding-top: 48px; padding-bottom: 56px; }
  .hero h1 { font-size: min(clamp(3.1rem, 8.4vw, 7.2rem), 12.5vh); }
  .hero-sub { margin: .5em auto 1.4em; }
}
