/* Michael L. Wales Painting: sample site (Tenczar Technologies, Nov 2026).
   Their logo: a serif "Michael L. Wales / PAINTING" in charcoal on a warm greige band.
   Ours: flat surfaces, hairline rules, 6px corners, monospace spec lines.
   No style="" anywhere (the CSP blocks it); JS sets custom properties through CSSOM. */

@font-face { font-family: "Cormorant Garamond"; src: url(../fonts/cormorant-garamond.woff2) format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url(../fonts/cormorant-garamond-italic.woff2) format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Archivo"; src: url(../fonts/archivo.woff2) format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url(../fonts/geist-mono.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  color-scheme: light;
  --paper: #f7f4ef;
  --paper-2: #efe9e0;
  --white: #fffdf9;
  --greige: #d9cfc3;
  --greige-2: #cbbfb1;
  --ink: #2a2724;
  --ink-2: #45403b;
  --muted: #6b635b;
  --rule: #d9d1c6;
  --rule-2: #c7bcae;
  --red: #8f2a26;
  --red-2: #74211e;
  --red-tint: #f4e5e2;
  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --r: 6px;
  --wrap: 1180px;
  --pad: clamp(20px, 4vw, 40px);
  --head-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink-2); font: 400 17px/1.6 var(--sans); }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--red); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--red-2); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
h1, h2, h3, h4 { color: var(--ink); margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.6rem, 5.6vw, 4.7rem); line-height: 1; }
h2 { font-size: clamp(2.1rem, 3.8vw, 3.1rem); line-height: 1.05; }
h3 { font-family: var(--serif); font-weight: 600; font-size: 1.75rem; line-height: 1.1; }
p { margin: 0 0 1em; }
.mono { font-family: var(--mono); font-size: .78rem; letter-spacing: .04em; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: var(--r); }
.skip-link:focus { top: 12px; color: var(--paper); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
[hidden] { display: none !important; }

/* ---------- sample bar ---------- */
.samplebar { background: var(--ink); color: #ece6dc; font-size: .82rem; }
.samplebar .wrap { display: flex; align-items: center; gap: 10px 18px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.samplebar strong { color: #fff; font-weight: 600; }
.samplebar .sb-tag { font-family: var(--mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; background: var(--greige); color: var(--ink); padding: 2px 7px; border-radius: 3px; }
.samplebar .sb-text { flex: 1 1 260px; }
.samplebar .sb-links { display: flex; gap: 8px; flex-wrap: wrap; }
.sb-btn { display: inline-flex; align-items: center; gap: 6px; background: transparent; border: 1px solid #5b544d; color: #f3eee6; border-radius: var(--r); padding: 5px 10px; font-size: .8rem; text-decoration: none; cursor: pointer; }
.sb-btn:hover { border-color: var(--greige); color: #fff; }
.sb-btn[aria-pressed="true"] { background: var(--greige); color: var(--ink); border-color: var(--greige); }
.sb-btn svg { width: 14px; height: 14px; }

/* ---------- header ---------- */
.site-head { position: sticky; top: 0; z-index: 40; background: rgba(247, 244, 239, .94); backdrop-filter: saturate(1.2) blur(10px); -webkit-backdrop-filter: saturate(1.2) blur(10px); border-bottom: 1px solid var(--rule); }
.site-head .wrap { display: flex; align-items: center; gap: 20px; min-height: var(--head-h); }
.brand { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; background: var(--greige); color: #57514b; padding: 5px 14px 6px; border-radius: 3px; text-decoration: none; line-height: 1; }
.brand:hover { color: var(--ink); }
.brand .b1 { font: italic 600 1.2rem/1 var(--serif); letter-spacing: .005em; }
.brand .b2 { font: 600 .82rem/1 var(--serif); letter-spacing: .34em; margin-top: 3px; padding-left: .34em; }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: .93rem; padding: 8px 11px; border-radius: 8px; }
.nav a:hover { background: var(--paper-2); color: var(--ink); }
.head-call { display: inline-flex; align-items: center; gap: 8px; background: var(--red); color: #fff; text-decoration: none; font-weight: 600; font-size: .93rem; padding: 10px 14px; border-radius: var(--r); white-space: nowrap; }
.head-call:hover { background: var(--red-2); color: #fff; }
.head-call svg { width: 16px; height: 16px; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--rule-2); border-radius: var(--r); padding: 8px 10px; cursor: pointer; }
.menu-btn svg { width: 20px; height: 20px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: var(--r); padding: 13px 20px; font-weight: 600; font-size: 1rem; text-decoration: none; border: 1px solid transparent; cursor: pointer; line-height: 1.2; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-2); color: #fff; }
.btn-line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.btn-quiet { background: var(--white); color: var(--ink); border-color: var(--rule-2); }
.btn-quiet:hover { border-color: var(--ink); color: var(--ink); }
.btn-sm { padding: 9px 14px; font-size: .92rem; }
.text-link { font-weight: 600; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.text-link::after { content: "\2192"; transition: transform .2s; }
.text-link:hover::after { transform: translateX(3px); }

/* ---------- sections ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; border-top: 1px solid var(--rule); position: relative; }
.section.alt { background: var(--paper-2); }
.eyebrow { display: flex; gap: 10px; align-items: baseline; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; font-family: var(--mono); font-size: .74rem; margin: 0 0 14px; }
.eyebrow .n { color: var(--red); }
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 48px; align-items: end; margin-bottom: clamp(32px, 4vw, 48px); }
.sec-head p { margin: 0; color: var(--ink-2); max-width: 560px; }
.sec-head.single { grid-template-columns: minmax(0, 1fr); }

/* ---------- hero ---------- */
.hero { padding: clamp(28px, 5vw, 64px) 0 clamp(40px, 6vw, 72px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.hero-text .eyebrow { margin-bottom: 18px; }
.hero h1 { margin-bottom: 22px; }
.hero h1 em { font-style: italic; color: var(--red); }
.hero .lead { font-size: 1.12rem; color: var(--ink-2); max-width: 520px; margin-bottom: 28px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.hero .spec { color: var(--muted); border-top: 1px solid var(--rule); padding-top: 14px; margin: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.hero-photo { margin: 0; }
.hero-frame { position: relative; overflow: hidden; border-radius: var(--r); background: var(--greige); aspect-ratio: 4 / 3; }
.hero-frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo figcaption { color: var(--muted); margin-top: 12px; display: flex; gap: 6px 14px; align-items: baseline; justify-content: space-between; flex-wrap: wrap; }
.replay { background: none; border: 0; padding: 0; color: var(--red); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }

/* the painting intro: the frame starts primed, gets cut in, then rolled in four passes */
.primer, .cutin, .roller, .intro-skip { display: none; }
.intro .primer { display: grid; grid-template-columns: repeat(4, 1fr); position: absolute; inset: 0; }
.intro .primer span { background: #ece6dd; transform-origin: 50% 100%; }
.intro .primer span:nth-child(even) { transform-origin: 50% 0%; }
.intro .primer span + span { box-shadow: -1px 0 0 rgba(42, 39, 36, .04); }
.intro .cutin { display: block; position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.cutin rect { fill: none; stroke: var(--ink); stroke-width: 1.6px; vector-effect: non-scaling-stroke; stroke-dasharray: 100; stroke-dashoffset: 100; }
.intro .roller { display: block; position: absolute; left: 0; top: 0; width: 25%; pointer-events: none; will-change: transform; }
.intro .intro-skip { display: inline-flex; position: absolute; right: 12px; bottom: 12px; background: rgba(42, 39, 36, .78); color: #fff; border: 0; border-radius: var(--r); padding: 7px 12px; font-size: .82rem; cursor: pointer; }
.intro-text .hero-text > * { opacity: 0; }

/* the logo, painted on like a sign, then lifted into the header (js/hero.js) */
.site-head .brand { transition: opacity .2s ease; }
.logo-painting .site-head .brand { opacity: 0; }
.logo-paint { position: fixed; z-index: 60; pointer-events: none; transform-origin: 50% 50%; will-change: transform; }
.logo-paint svg { display: block; width: 100%; height: 100%; overflow: visible; }
.logo-paint .lp-band rect { fill: #d9cfc3; transform-box: fill-box; transform-origin: 0 50%; transform: scaleX(0); }
.logo-paint text { font-family: var(--serif); fill: #57514b; stroke: #57514b; stroke-width: .9px; stroke-linejoin: round; }
.logo-paint tspan { fill-opacity: 0; stroke-opacity: 0; stroke-dasharray: 600; stroke-dashoffset: 600; }
.logo-paint .lp-1 { font-style: italic; font-weight: 600; font-size: 46px; }
.logo-paint .lp-2 { font-weight: 600; font-size: 30px; letter-spacing: .34em; }

/* ---------- credentials strip ---------- */
.creds { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: var(--white); }
.creds ul { list-style: none; margin: 0 auto; padding: 0 var(--pad); max-width: var(--wrap); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.creds li { padding: 22px 18px; border-left: 1px solid var(--rule); }
.creds li:first-child { border-left: 0; padding-left: 0; }
.creds b { display: block; font: 600 1.5rem/1.1 var(--serif); color: var(--ink); }
.creds span { display: block; color: var(--muted); font-family: var(--mono); font-size: .72rem; letter-spacing: .05em; text-transform: uppercase; margin-top: 4px; }

/* ---------- services ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.5vw, 28px); }
.svc { background: var(--white); border: 1px solid var(--rule); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; }
.svc figure { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: var(--greige); }
.svc figure img { width: 100%; height: 100%; object-fit: cover; }
.svc-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.svc-body .tag { color: var(--muted); margin-bottom: 8px; text-transform: uppercase; letter-spacing: .08em; }
.svc h3 { margin-bottom: 8px; }
.svc .sub { color: var(--ink-2); margin-bottom: 14px; }
.sq { list-style: none; padding: 0; margin: 0 0 18px; }
.sq li { position: relative; padding-left: 18px; margin: 6px 0; font-size: .95rem; }
.sq li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; background: var(--red); }
.svc .text-link { margin-top: auto; }
.also { margin-top: 28px; display: flex; gap: 10px 20px; flex-wrap: wrap; align-items: baseline; border-top: 1px solid var(--rule); padding-top: 18px; color: var(--ink-2); font-size: .95rem; }
.also .mono { color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }

/* ---------- before & after sliders ---------- */
.ba-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(18px, 2.5vw, 28px); align-items: start; }
.ba-left { display: grid; gap: 28px; }
.ba-card { margin: 0; }
.ba { --pos: 50%; position: relative; overflow: hidden; border-radius: var(--r); background: var(--greige); touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: ew-resize; }
.ba img { width: 100%; height: auto; pointer-events: none; }
.ba .ba-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba .ba-before img { height: 100%; object-fit: cover; }
.ba-line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); pointer-events: none; }
.ba-knob { position: absolute; top: 50%; left: var(--pos); width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); pointer-events: none; }
.ba-knob svg { width: 22px; height: 22px; }
.ba-tag { position: absolute; top: 12px; background: rgba(42, 39, 36, .78); color: #fff; padding: 4px 8px; border-radius: 3px; text-transform: uppercase; letter-spacing: .08em; pointer-events: none; }
.ba-tag.b { left: 12px; }
.ba-tag.a { right: 12px; }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: ew-resize; }
.ba:focus-within { outline: 2px solid var(--red); outline-offset: 3px; }
.ba-card figcaption { margin-top: 12px; }
.ba-card figcaption b { display: block; font: 600 1.35rem/1.2 var(--serif); color: var(--ink); }
.ba-card figcaption span { color: var(--ink-2); font-size: .95rem; }
.ba-side { display: grid; gap: clamp(18px, 2.5vw, 28px); }
.ba-more { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 4px; }
.ba-more a { display: block; background: var(--greige); border-radius: var(--r); overflow: hidden; aspect-ratio: 3 / 4; }
.ba-more img { width: 100%; height: 100%; object-fit: cover; transition: opacity .25s; }
.ba-more a:hover img { opacity: .88; }
.ba-more-note { margin: 10px 0 0; color: var(--muted); }

/* ---------- process ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.steps li { padding: 22px 20px 6px 0; border-right: 1px solid var(--rule); margin-right: 20px; }
.steps li:last-child { border-right: 0; margin-right: 0; }
.steps .num { color: var(--red); font-family: var(--mono); font-size: .8rem; letter-spacing: .06em; }
.steps h3 { margin: 8px 0 10px; font-size: 1.6rem; }
.steps p { font-size: .95rem; margin: 0 0 1em; }
.steps q { font-family: var(--serif); font-style: italic; font-size: 1.12rem; color: var(--ink); quotes: "\201C" "\201D"; }
.process-note { margin-top: 28px; color: var(--muted); }

/* ---------- gallery ---------- */
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.chip { background: var(--white); border: 1px solid var(--rule-2); color: var(--ink); border-radius: 8px; padding: 8px 13px; cursor: pointer; font-size: .92rem; display: inline-flex; gap: 8px; align-items: baseline; }
.chip span { font-family: var(--mono); font-size: .72rem; color: var(--muted); }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip[aria-pressed="true"] span { color: var(--greige); }
.gallery { --row-h: 210px; list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px 12px; align-items: flex-start; }
.gallery::after { content: ""; flex: 1000 1 0; }
/* Justified rows: each tile grows in proportion to its own aspect ratio (--ar, from
   css/gallery.css), so every photo in a row ends up the same height and is shown whole. */
.g-item { --ar: 1.3333; flex: var(--ar) 1 calc(var(--ar) * var(--row-h)); min-width: 0; }
.g-item a { display: block; position: relative; overflow: hidden; border-radius: var(--r); background: var(--greige); aspect-ratio: var(--ar); }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: opacity .25s ease; }
.g-item a:hover img { opacity: .88; }
.g-item .cap { display: block; padding: 7px 2px 0; color: var(--muted); font-family: var(--mono); font-size: .72rem; letter-spacing: .03em; line-height: 1.4; }
.g-item .cap b { color: var(--ink-2); font-weight: 500; }
.gallery-more { display: flex; justify-content: center; margin-top: 28px; }

/* ---------- lightbox ---------- */
.lb { border: 0; padding: 0; margin: 0; width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; background: rgba(24, 22, 20, .96); color: #f1ece4; }
.lb::backdrop { background: rgba(24, 22, 20, .6); }
.lb[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; gap: 12px; }
.lb-count { color: #b9b0a5; }
.lb-stage { position: relative; display: grid; place-items: center; padding: 0 64px; min-height: 0; }
.lb-stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 3px; }
.lb-cap { text-align: center; padding: 12px 16px 18px; color: #e8e1d6; font-size: .95rem; }
.lb-btn { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); color: #fff; border-radius: 50%; width: 44px; height: 44px; display: grid; place-items: center; cursor: pointer; }
.lb-btn:hover { background: rgba(255, 255, 255, .16); }
.lb-btn svg { width: 20px; height: 20px; }
.lb-prev, .lb-next { position: absolute; top: 50%; margin-top: -22px; }
.lb-prev { left: 12px; }
.lb-next { right: 12px; }

/* ---------- tools ---------- */
.tabs { display: none; gap: 0; border-bottom: 1px solid var(--rule-2); margin-bottom: 28px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.js .tabs { display: flex; }
.tab { background: none; border: 0; border-bottom: 2px solid transparent; padding: 12px 16px; margin-bottom: -1px; cursor: pointer; color: var(--muted); font-weight: 600; font-size: .98rem; white-space: nowrap; display: inline-flex; gap: 10px; align-items: baseline; }
.tab .mono { color: var(--muted); font-weight: 400; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--red); }
.tab[aria-selected="true"] .mono { color: var(--red); }
.panel + .panel { margin-top: 56px; }
.js .panel + .panel { margin-top: 0; }
.panel-head { margin-bottom: 22px; max-width: 760px; }
.panel-head h3 { font-size: 2rem; margin-bottom: 6px; }
.panel-head p { margin: 0; }
.tool { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(20px, 3vw, 36px); align-items: start; background: var(--white); border: 1px solid var(--rule); border-radius: var(--r); padding: clamp(18px, 3vw, 32px); }
.tool-note { color: var(--muted); font-size: .88rem; margin: 14px 0 0; }
.noscript-note { background: var(--white); border: 1px solid var(--rule); border-radius: var(--r); padding: 16px; }

/* paint calculator */
.calc-controls { display: grid; gap: 16px; }
.field-row { display: grid; gap: 6px; }
.field-row .lbl { display: flex; justify-content: space-between; font-weight: 600; font-size: .94rem; color: var(--ink); }
.field-row output { font-family: var(--mono); font-weight: 400; font-size: .86rem; color: var(--ink-2); }
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 3px; background: linear-gradient(to right, var(--ink) var(--p, 50%), var(--rule) var(--p, 50%)); margin: 8px 0; }
.range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--white); border: 2px solid var(--ink); cursor: pointer; }
.range::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--white); border: 2px solid var(--ink); cursor: pointer; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stepper { display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--rule-2); border-radius: var(--r); padding: 4px; background: var(--paper); }
.stepper input { width: 3ch; border: 0; background: none; text-align: center; font-family: var(--mono); font-size: 1rem; -moz-appearance: textfield; appearance: textfield; }
.stepper input::-webkit-inner-spin-button, .stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.step { width: 36px; height: 36px; border-radius: 4px; border: 0; background: var(--white); cursor: pointer; font-size: 1.2rem; line-height: 1; color: var(--ink); }
.step:disabled { opacity: .35; cursor: default; }
.seg { display: flex; border: 1px solid var(--rule-2); border-radius: var(--r); overflow: hidden; }
.seg label { flex: 1; text-align: center; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; padding: 9px 8px; font-size: .92rem; }
.seg input:checked + span { background: var(--ink); color: var(--paper); }
.seg input:focus-visible + span { outline: 2px solid var(--red); outline-offset: -2px; }
.check { display: flex; gap: 10px; align-items: center; font-size: .95rem; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--ink); }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.sw { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .18); cursor: pointer; padding: 0; background: var(--c, #ccc); position: relative; }
.sw[aria-pressed="true"]::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--ink); }
.calc-out { display: grid; gap: 14px; }
.calc-art { background: var(--paper); border-radius: var(--r); border: 1px solid var(--rule); }
.calc-art svg { width: 100%; height: auto; }
.calc-num { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.calc-num b { font: 600 3.6rem/1 var(--serif); color: var(--ink); }
.calc-num span { font-weight: 600; color: var(--ink); }
.calc-meta { color: var(--ink-2); font-size: .95rem; margin: 0; }
.cans { display: flex; flex-wrap: wrap; gap: 6px; align-items: flex-end; min-height: 44px; }
.cans svg { animation: canIn .35s ease both; }
@keyframes canIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .cans svg { animation: none; } }

/* exterior colors */
.house { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r); padding: 10px; }
.house svg { width: 100%; height: auto; }
.house .c-siding { fill: var(--siding, #e6cf7a); transition: fill .45s ease; }
.house .c-trim { fill: var(--trim, #f6f5f0); transition: fill .45s ease; }
.house .c-accent { fill: var(--accent, #1f1f1f); transition: fill .45s ease; }
.house .c-line { stroke: var(--trim, #f6f5f0); transition: stroke .45s ease; }
.house text { font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; fill: var(--muted); }
.house .lead-line { stroke: var(--muted); stroke-width: .8; fill: none; }
.color-groups { display: grid; gap: 16px; }
.cg h4 { font-family: var(--sans); font-size: .94rem; display: flex; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.cg h4 output { font-family: var(--mono); font-weight: 400; font-size: .84rem; color: var(--ink-2); }
.presets { display: grid; gap: 8px; margin-top: 4px; }
.presets .lbl { font-weight: 600; font-size: .94rem; color: var(--ink); }
.preset-list { display: flex; flex-wrap: wrap; gap: 8px; }
.preset { display: inline-flex; align-items: center; gap: 8px; background: var(--paper); border: 1px solid var(--rule-2); border-radius: 8px; padding: 6px 10px 6px 6px; cursor: pointer; font-size: .88rem; }
.preset:hover, .preset[aria-pressed="true"] { border-color: var(--ink); }
.preset .dots { display: inline-flex; }
.preset .dots i { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .2); margin-right: -4px; background: var(--c, #ccc); }
.preset-seen { font-size: .9rem; color: var(--ink-2); margin: 0; min-height: 1.5em; }

/* lead check */
.lead-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; }
.lead-form label { display: grid; gap: 6px; font-weight: 600; font-size: .94rem; color: var(--ink); }
.lead-form input { width: 9ch; }
.result { border-left: 3px solid var(--ink); background: var(--paper); padding: 14px 16px; border-radius: 0 var(--r) var(--r) 0; margin-top: 18px; }
.result.warn { border-left-color: var(--red); background: var(--red-tint); }
.result h4 { font-family: var(--serif); font-size: 1.45rem; margin-bottom: 6px; }
.result p:last-child { margin-bottom: 0; }
.lead-facts { margin: 0; display: grid; gap: 12px; }
.lead-facts div { border-top: 1px solid var(--rule); padding-top: 12px; }
.lead-facts dt { font-weight: 600; color: var(--ink); }
.lead-facts dd { margin: 2px 0 0; font-size: .95rem; }

/* ---------- testimonial ---------- */
.quote-wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.quote { margin: 0; }
.quote p { font: italic 500 clamp(1.6rem, 3vw, 2.35rem)/1.25 var(--serif); color: var(--ink); margin-bottom: 18px; }
.quote footer { color: var(--muted); }
.reviews-card { background: var(--white); border: 1px solid var(--rule); border-radius: var(--r); padding: 22px; }
.reviews-card h3 { font-size: 1.45rem; margin-bottom: 8px; }
.reviews-card p { font-size: .95rem; }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.about-grid h2 { margin-bottom: 18px; }
.about-photo { margin: 0; }
.about-photo img { border-radius: var(--r); width: 100%; }
.about-photo figcaption { margin-top: 10px; color: var(--muted); }
.spec-list { margin: 26px 0 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); border-top: 1px solid var(--rule); }
.spec-list dt, .spec-list dd { padding: 10px 0; border-bottom: 1px solid var(--rule); margin: 0; }
.spec-list dt { font-family: var(--mono); font-size: .74rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); padding-right: 24px; padding-top: 13px; }
.spec-list dd { color: var(--ink); overflow-wrap: anywhere; min-width: 0; }

/* ---------- service area ---------- */
.area-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 4vw, 56px); }
.town-check { background: var(--white); border: 1px solid var(--rule); border-radius: var(--r); padding: 20px; align-self: start; }
.town-check label { display: block; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.town-row { display: flex; gap: 8px; }
.town-row input { flex: 1; min-width: 0; }
.town-result { margin: 12px 0 0; min-height: 1.6em; font-size: .95rem; }
.town-result.yes b { color: #2f5d3a; }
.towns { columns: 4 160px; column-gap: 28px; margin: 0; padding: 0; list-style: none; }
.towns li { break-inside: avoid; padding: 4px 0; border-bottom: 1px solid var(--rule); font-size: .95rem; }
.towns li.grp { border-bottom: 0; padding-top: 14px; color: var(--muted); font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }
.towns li.grp:first-child { padding-top: 0; }
.towns li.hit { background: var(--red-tint); }

/* ---------- forms ---------- */
input[type="text"], input[type="tel"], input[type="email"], input[type="number"], select, textarea { width: 100%; border: 1px solid var(--rule-2); background: var(--white); border-radius: var(--r); padding: 11px 12px; font-size: 1rem; color: var(--ink); }
input:focus, select:focus, textarea:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px rgba(42, 39, 36, .12); }
textarea { min-height: 120px; resize: vertical; }
.est-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.est-form { background: var(--white); border: 1px solid var(--rule); border-radius: var(--r); padding: clamp(20px, 3vw, 32px); display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.est-form .full { grid-column: 1 / -1; }
.est-form label > span { display: block; font-weight: 600; font-size: .93rem; color: var(--ink); margin-bottom: 6px; }
.est-form label > span em { font-style: normal; font-weight: 400; color: var(--muted); }
.file-pick { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; border: 1px dashed var(--rule-2); border-radius: var(--r); padding: 12px; background: var(--paper); }
.file-pick input { font-size: .9rem; max-width: 100%; }
.file-list { font-size: .88rem; color: var(--muted); margin: 0; flex-basis: 100%; }
.form-foot { grid-column: 1 / -1; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.form-foot small { color: var(--muted); }
.est-form [aria-invalid="true"] { border-color: var(--red); box-shadow: 0 0 0 3px rgba(143, 42, 38, .14); }
.form-msg { grid-column: 1 / -1; background: var(--paper-2); border-left: 3px solid var(--ink); padding: 14px 16px; border-radius: 0 var(--r) var(--r) 0; }
.form-msg p:last-child { margin: 0; }
.contact-card { display: grid; gap: 18px; }
.cc-block { border-top: 1px solid var(--ink); padding-top: 14px; }
.cc-block .mono { color: var(--muted); text-transform: uppercase; letter-spacing: .08em; display: block; margin-bottom: 6px; }
.cc-phone { font: 600 2.1rem/1.1 var(--serif); color: var(--ink); text-decoration: none; }
.cc-phone:hover { color: var(--red); }
.next-steps { margin: 0; padding-left: 1.3em; }
.next-steps li { margin: 6px 0; font-size: .95rem; }

/* ---------- guide mode (explains each section to the owner) ---------- */
.guide { display: none; }
.guide-on .guide { display: block; }
.guide { position: relative; margin: 0 0 28px; background: #fff8e6; border: 1px dashed #b38a2e; border-radius: var(--r); padding: 14px 16px 14px 56px; color: #3d3220; font-size: .94rem; max-width: 900px; }
.guide::before { content: attr(data-n); position: absolute; left: 14px; top: 13px; width: 28px; height: 28px; border-radius: 50%; background: #b38a2e; color: #fff; font: 600 .8rem/28px var(--mono); text-align: center; }
.guide .gk { font-family: var(--mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: #8a6a22; margin: 0 0 4px; }
.guide p { margin: 0 0 .5em; }
.guide p:last-child { margin: 0; }
.guide ul { margin: 0 0 .5em; padding-left: 1.2em; }
.guide-on .guided { outline: 1px dashed rgba(179, 138, 46, .55); outline-offset: -1px; }
.hero .guide { grid-column: 1 / -1; margin-bottom: 4px; }
.guide-intro { margin: 20px auto 0; }
.chips { display: none; }
.js .chips { display: flex; }
.creds-guide-wrap { padding: 16px var(--pad) 0; max-width: var(--wrap); margin: 0 auto; }

/* ---------- footer & call bar ---------- */
.site-foot { background: var(--ink); color: #d9d2c8; padding: 56px 0 28px; font-size: .93rem; }
.site-foot a { color: #f1ece4; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(0, 1fr)); gap: 28px; }
.foot-grid h4 { font-family: var(--mono); font-size: .72rem; font-weight: 400; text-transform: uppercase; letter-spacing: .1em; color: #a99f93; margin-bottom: 12px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li { margin: 6px 0; }
.site-foot .foot-brand { color: #57514b; }
.site-foot .foot-brand:hover { color: var(--ink); }
.foot-brand { display: inline-flex; flex-direction: column; align-items: center; background: var(--greige); color: #57514b; padding: 7px 16px 8px; border-radius: 3px; margin-bottom: 14px; text-decoration: none; }
.foot-brand .b1 { font: italic 600 1.3rem/1 var(--serif); }
.foot-brand .b2 { font: 600 .86rem/1 var(--serif); letter-spacing: .34em; margin-top: 4px; padding-left: .34em; }
.legal { border-top: 1px solid #45403b; margin-top: 40px; padding-top: 18px; display: flex; justify-content: space-between; gap: 10px 24px; flex-wrap: wrap; color: #a99f93; font-size: .84rem; }
.legal a { color: #d9d2c8; }
.callbar { display: none; }

/* ---------- reveal on scroll (only below the fold, only with JS and motion) ---------- */
.rv-on .rv { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.rv-on .rv.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav a.opt { display: none; }
  .creds ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .creds li:nth-child(4) { border-left: 0; padding-left: 0; }
  .creds li:nth-child(n+4) { border-top: 1px solid var(--rule); }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps li:nth-child(3) { border-right: 0; margin-right: 0; }
  .steps li:nth-child(n+4) { border-top: 1px solid var(--rule); }
  .gallery { --row-h: 180px; }
}
@media (max-width: 900px) {
  :root { --head-h: 60px; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; background: var(--paper); border-bottom: 1px solid var(--rule); padding: 8px var(--pad) 16px; gap: 0; }
  .nav.open { display: flex; }
  .nav a, .nav a.opt { display: block; padding: 13px 4px; border-bottom: 1px solid var(--rule); border-radius: 0; font-size: 1.02rem; }
  .menu-btn { display: inline-flex; }
  .head-call .long { display: none; }
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .hero { padding-top: 0; }
  .hero-photo { order: -1; margin: 0 calc(var(--pad) * -1); }
  .hero-frame { border-radius: 0; }
  .hero-photo figcaption { padding: 0 var(--pad); }
  .sec-head { grid-template-columns: minmax(0, 1fr); }
  .svc-grid { grid-template-columns: minmax(0, 1fr); }
  .svc { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); align-items: start; }
  .svc figure { aspect-ratio: 4 / 3; }
  .ba-grid { grid-template-columns: minmax(0, 1fr); }
  .tool { grid-template-columns: minmax(0, 1fr); }
  .quote-wrap, .about-grid, .area-grid, .est-grid { grid-template-columns: minmax(0, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; padding-bottom: 68px; }
  .samplebar .sb-text { flex-basis: 100%; font-size: .78rem; }
  .samplebar .sb-more { display: none; }
  .sb-btn { padding: 5px 8px; font-size: .76rem; }
  .brand .b1 { font-size: 1.02rem; }
  .brand .b2 { font-size: .72rem; }
  .brand { padding: 5px 10px 6px; }
  .head-call { padding: 9px 11px; }
  .creds ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .creds li { padding: 16px 12px; }
  .creds li:nth-child(odd) { border-left: 0; padding-left: 0; }
  .creds li:nth-child(4) { border-left: 1px solid var(--rule); padding-left: 12px; }
  .creds li:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .creds li:last-child { grid-column: 1 / -1; }
  .svc { display: flex; }
  .svc figure { aspect-ratio: 4 / 3; }
  .js .tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; }
  .tab { white-space: normal; text-align: left; padding: 10px 6px 12px; font-size: .88rem; line-height: 1.25; flex-direction: column; gap: 4px; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .steps li { border-right: 0; margin-right: 0; border-top: 1px solid var(--rule); padding-right: 0; }
  .steps li:first-child { border-top: 0; }
  .gallery { --row-h: 118px; gap: 12px 8px; }
  .g-item .cap { font-size: .66rem; }
  .lb-stage { padding: 0 8px; }
  .lb-prev, .lb-next { top: auto; bottom: -56px; margin: 0; }
  .lb-cap { padding-bottom: 70px; }
  .pair { grid-template-columns: 1fr 1fr; }
  .est-form { grid-template-columns: minmax(0, 1fr); }
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .guide { padding-left: 48px; }
  .guide::before { left: 10px; }
  .callbar { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: rgba(247, 244, 239, .97); border-top: 1px solid var(--rule-2); padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); }
  .callbar .btn { padding: 12px 10px; font-size: .95rem; }
}
@media (prefers-reduced-motion: reduce) {
  .g-item img, .ba-more img { transition: none; }
}
@media print {
  .samplebar, .site-head, .callbar, .tabs, .lb { display: none !important; }
}
