/* Cost & Quote: the one stylesheet for every page. */

/* ------------------------------------------------------------------ tokens */
:root {
  --paper: #f6f2eb;
  --sand: #ece5d8;
  --card: #ffffff;
  --ink: #17231e;
  --muted: #55605a;
  --line: #ded6c8;
  --line-strong: #c9bfae;

  --forest: #143229;
  --forest-2: #1d4136;
  --cream: #f4efe5;
  --muted-dark: #b3c1b8;
  --line-dark: rgba(244, 239, 229, .14);

  --copper: #b44d26;
  --copper-dark: #983f1c;
  --copper-soft: #f7e4d8;
  --copper-light: #f2a47e;
  --bar-other: #8a968f;

  --font-display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --font-text: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r: 16px;
  --r-sm: 10px;
  --r-xs: 6px;
  --shadow: 0 1px 2px rgba(20, 35, 30, .06), 0 6px 20px -6px rgba(20, 35, 30, .12);
  --shadow-lg: 0 2px 6px rgba(10, 25, 20, .12), 0 30px 60px -20px rgba(10, 25, 20, .45);

  --wrap: 1200px;
  --gut: clamp(16px, 4vw, 40px);
  --section-y: clamp(56px, 7vw, 96px);
  --header-h: 68px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 16px/1.6 var(--font-text);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
[hidden] { display: none !important; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
fieldset { border: 0; padding: 0; min-width: 0; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 650; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(36px, 4.6vw, 60px); line-height: 1.02; letter-spacing: -0.03em; }
h2 { font-size: clamp(28px, 3.2vw, 42px); line-height: 1.08; }
h3 { font-size: 20px; line-height: 1.25; letter-spacing: -0.01em; }
p { text-wrap: pretty; }
strong { font-weight: 600; }
:focus-visible { outline: 3px solid var(--copper); outline-offset: 2px; border-radius: 4px; }
.num { font-variant-numeric: tabular-nums; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gut)); margin-inline: auto; padding-inline: var(--gut); }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: var(--r-xs); }
.skip-link:focus { left: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ------------------------------------------------------------------ type helpers */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--copper-dark);
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.lead { font-size: clamp(17px, 1.5vw, 19px); line-height: 1.55; }
.muted { color: var(--muted); }
.small { font-size: 14px; line-height: 1.5; }

/* ------------------------------------------------------------------ buttons and links */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 600; font-size: 15px; line-height: 1; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease);
}
.btn svg { width: 16px; height: 16px; flex: none; transition: transform .18s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--copper); color: #fff; }
.btn-primary:hover { background: var(--copper-dark); }
.btn-outline { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn-outline:hover { border-color: var(--ink); }
.btn-light { background: var(--cream); color: var(--forest); }
.btn-light:hover { background: #fff; }
.btn-ghost-light { border-color: rgba(244, 239, 229, .35); color: var(--cream); }
.btn-ghost-light:hover { border-color: var(--cream); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn-block { width: 100%; }
.btn[aria-busy="true"] { opacity: .7; cursor: progress; }

.link {
  display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 15px;
  color: var(--copper-dark); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px;
  text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
}
.link:hover { text-decoration-color: currentColor; }
.on-dark .link { color: var(--copper-light); }

/* ------------------------------------------------------------------ header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-bar { display: flex; align-items: center; gap: 32px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -0.02em; white-space: nowrap; }
.brand svg { width: 32px; height: 32px; flex: none; }
.main-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.main-nav a { padding: 8px 12px; border-radius: 999px; text-decoration: none; font-size: 15px; font-weight: 500; color: var(--muted); transition: color .15s, background-color .15s; }
.main-nav a:hover { color: var(--ink); background: var(--sand); }
.main-nav a[aria-current="page"] { color: var(--ink); background: var(--sand); }
.menu-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 999px; background: transparent; cursor: pointer; align-items: center; justify-content: center; }
.menu-toggle svg { width: 20px; height: 20px; }

@media (max-width: 899px) {
  .header-bar { gap: 12px; }
  .menu-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .main-nav {
    position: absolute; left: 0; right: 0; top: var(--header-h);
    flex-direction: column; align-items: stretch; gap: 0; margin: 0;
    padding: 8px var(--gut) 20px; background: var(--paper); border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 30px -20px rgba(20, 35, 30, .25);
    display: none;
  }
  .site-header.is-open .main-nav { display: flex; }
  .main-nav a { padding: 14px 4px; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 17px; color: var(--ink); }
  .main-nav a:hover, .main-nav a[aria-current="page"] { background: transparent; color: var(--copper-dark); }
  .main-nav .nav-cta { margin-top: 16px; border: 0; padding: 0; }
  .main-nav .nav-cta .btn { width: 100%; color: #fff; }
}
@media (min-width: 900px) { .main-nav .nav-cta { display: none; } }

/* ------------------------------------------------------------------ hero */
.hero { position: relative; isolation: isolate; background: var(--forest); color: var(--cream); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 70% 55%); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(16, 41, 33, .95) 0%, rgba(16, 41, 33, .86) 36%, rgba(16, 41, 33, .38) 64%, rgba(16, 41, 33, .18) 100%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding-block: clamp(40px, 6vw, 80px); }
.hero-copy { display: grid; gap: 22px; max-width: 560px; }
.hero .eyebrow { color: var(--copper-light); }
.hero h1 { color: #fff; }
.hero .lead { color: rgba(244, 239, 229, .86); }
.hero-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 10px; border-top: 1px solid var(--line-dark); }
.hero-facts li { padding: 18px 16px 0 0; display: grid; gap: 4px; align-content: start; }
.hero-facts li + li { padding-left: 16px; border-left: 1px solid var(--line-dark); }
.hero-facts strong { font-family: var(--font-display); font-size: clamp(24px, 2.4vw, 30px); font-weight: 650; letter-spacing: -0.02em; color: #fff; line-height: 1.1; }
.hero-facts span { font-size: 13px; line-height: 1.4; color: var(--muted-dark); }

@media (max-width: 899px) {
  .hero::before { background: linear-gradient(180deg, rgba(16, 41, 33, .72) 0%, rgba(16, 41, 33, .93) 320px, rgba(16, 41, 33, .98) 100%); }
  .hero-grid { grid-template-columns: minmax(0, 1fr); padding-top: 40px; padding-bottom: 24px; }
  .hero-copy { max-width: none; }
}
@media (max-width: 479px) {
  .hero-facts li { padding-right: 10px; }
  .hero-facts li + li { padding-left: 10px; }
  .hero-facts span { font-size: 12px; }
}

/* ------------------------------------------------------------------ calculator card */
.calc { background: var(--card); color: var(--ink); border-radius: var(--r); box-shadow: var(--shadow-lg); overflow: hidden; scroll-margin-top: calc(var(--header-h) + 16px); }
.calc-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 28px 0; }
.calc-head h2 { font-size: 20px; letter-spacing: -0.01em; }
.calc-head .badge { font-size: 12px; font-weight: 600; color: var(--forest-2); background: #e3ebe5; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.calc form { display: grid; gap: 20px; padding: 20px 28px 24px; }
.calc-result { background: var(--sand); padding: 22px 28px 26px; display: grid; gap: 6px; border-top: 1px solid var(--line); }
.result-label { font-size: 13px; font-weight: 600; color: var(--muted); }
.result-total { font-size: clamp(40px, 4.4vw, 54px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.05; }
.result-total--range { font-size: clamp(32px, 3.4vw, 42px); }
.result-range { font-size: 15px; color: var(--muted); }
.result-range strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.result-tax { font-size: 14px; line-height: 1.5; color: var(--muted); }
.result-tax strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.result-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 14px; }
@media (max-width: 479px) {
  .calc-head { padding: 18px 18px 0; }
  .calc form { padding: 18px 18px 20px; }
  .calc-result { padding: 20px 18px 22px; }
  .result-actions .btn { width: 100%; }
}

/* ------------------------------------------------------------------ fields */
.field { display: grid; gap: 8px; }
.field-label, .field > label, .field-head label, .field legend { font-size: 14px; font-weight: 600; color: var(--ink); padding: 0; }
.field legend { margin-bottom: 8px; }
.field-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.hint { font-size: 13px; line-height: 1.45; color: var(--muted); }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], select {
  width: 100%; min-height: 48px; padding: 10px 14px; border: 1.5px solid var(--line-strong); border-radius: var(--r-sm);
  background: #fff; font-size: 16px; line-height: 1.3; transition: border-color .15s, box-shadow .15s;
}
input:not([type="checkbox"]):not([type="radio"]):hover, select:hover { border-color: var(--muted); }
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):focus, select:focus { outline: none; border-color: var(--copper); box-shadow: 0 0 0 3px rgba(180, 77, 38, .18); }
input[readonly] { background: var(--paper); color: var(--muted); }
input[aria-invalid="true"] { border-color: #b3261e; box-shadow: 0 0 0 3px rgba(179, 38, 30, .12); }
select {
  appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%2317231e' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 16px;
}
.field-error { font-size: 13px; font-weight: 500; color: #b3261e; }

/* number with a unit and a slider */
.size-row { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; align-items: center; }
.with-unit { position: relative; }
.with-unit input { padding-right: 52px; font-weight: 600; font-variant-numeric: tabular-nums; }
.with-unit span { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: 14px; color: var(--muted); pointer-events: none; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer; --fill: 20%; }
input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 999px; background: linear-gradient(90deg, var(--copper) var(--fill), var(--line) var(--fill)); }
input[type="range"]::-moz-range-track { height: 6px; border-radius: 999px; background: var(--line); }
input[type="range"]::-moz-range-progress { height: 6px; border-radius: 999px; background: var(--copper); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -8px; border-radius: 50%; background: #fff; border: 2px solid var(--copper); box-shadow: 0 1px 4px rgba(0, 0, 0, .2); }
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid var(--copper); box-shadow: 0 1px 4px rgba(0, 0, 0, .2); }
input[type="range"]:focus { box-shadow: none; }
input[type="range"]:focus-visible { outline: none; }
input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(180, 77, 38, .3); }
input[type="range"]:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 4px rgba(180, 77, 38, .3); }

/* segmented choice: real radios, drawn as one bar */
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; padding: 4px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; }
.seg label { position: relative; display: block; cursor: pointer; }
.seg input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.seg span {
  display: flex; align-items: center; justify-content: center; text-align: center; min-height: 40px; padding: 6px 8px; border-radius: 9px;
  font-size: 14px; font-weight: 600; color: var(--muted); line-height: 1.2; transition: background-color .15s, color .15s, box-shadow .15s;
}
.seg label:hover span { color: var(--ink); }
.seg input:checked + span { background: var(--forest); color: #fff; box-shadow: 0 1px 3px rgba(20, 50, 41, .3); }
.seg input:focus-visible + span { outline: 3px solid var(--copper); outline-offset: 1px; }

/* kitchen size: a measured area, or "Not sure" and a rough size */
.field-head .unsure { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; color: var(--muted); cursor: pointer; white-space: nowrap; }
.field-head .unsure:hover { color: var(--ink); }
.unsure input { width: 16px; height: 16px; margin: 0; accent-color: var(--copper); cursor: pointer; }
.size-exact, .size-preset { display: grid; gap: 8px; }
.size-exact[hidden], .size-preset[hidden] { display: none; }

.runs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.runs .field { gap: 6px; }
.runs .field > label { font-size: 13px; }
.runs input { min-height: 44px; }

/* checkbox */
.field > .check { font-weight: 400; }
.check { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 12px; align-items: start; font-size: 13px; line-height: 1.5; color: var(--muted); font-weight: 400; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--copper); cursor: pointer; }

/* ------------------------------------------------------------------ sections */
.section { padding-block: var(--section-y); }
.section--sand { background: var(--sand); }
.section--dark { background: var(--forest); color: var(--cream); }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark .eyebrow { color: var(--copper-light); }
.section--dark .muted { color: var(--muted-dark); }
.section-head { display: grid; gap: 14px; max-width: 720px; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head p { color: var(--muted); font-size: 17px; }
.section--dark .section-head p { color: var(--muted-dark); }
.section-head--split { max-width: none; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; gap: 16px 64px; }
.section-head--split > div { display: grid; gap: 14px; }
@media (max-width: 899px) { .section-head--split { grid-template-columns: minmax(0, 1fr); } }

.card { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); }

/* ------------------------------------------------------------------ bar chart (budget lines) */
.budget-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 899px) { .budget-grid { grid-template-columns: minmax(0, 1fr); } }
.chart-card { padding: 28px; }
@media (max-width: 479px) { .chart-card { padding: 20px 18px; } }
.chart-card-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 16px; padding-bottom: 16px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.chart-card-head h3 { font-family: var(--font-text); font-size: 15px; font-weight: 600; letter-spacing: 0; }
.chart-card-head p { font-size: 13px; color: var(--muted); }

.bars { display: grid; }
.bar-row {
  display: grid; grid-template-columns: minmax(150px, 1.1fr) minmax(0, 1.6fr) 84px; align-items: center; gap: 16px;
  padding: 10px 8px; margin-inline: -8px; border-radius: 8px; transition: background-color .15s;
}
.bar-row + .bar-row { border-top: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.bar-row:hover, .bar-row:focus-visible { background: var(--paper); }
.bar-name { font-size: 14px; line-height: 1.35; }
.bar-name small { display: block; font-size: 12px; color: var(--muted); }
.bar-track { position: relative; height: 16px; border-left: 1px solid var(--line-strong); }
.bar-fill {
  position: absolute; left: 0; top: 2px; bottom: 2px; width: calc(var(--v, 0) * 100%);
  background: var(--forest-2); border-radius: 0 4px 4px 0; transition: width .4s var(--ease);
}
.bar-row:hover .bar-fill, .bar-row:focus-visible .bar-fill { background: var(--forest); }
.bar-value { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; font-size: 15px; }
@media (max-width: 559px) {
  .bar-row { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; }
  .bar-track { grid-column: 1 / -1; grid-row: 2; }
  .bar-value { grid-row: 1; grid-column: 2; }
}

.chart-total { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0 0; margin-top: 6px; border-top: 1.5px solid var(--ink); font-weight: 700; }
.chart-total span:last-child { font-variant-numeric: tabular-nums; }

/* tooltip shared by both charts */
.tip {
  position: fixed; z-index: 80; pointer-events: none; padding: 8px 12px; border-radius: 8px;
  background: var(--ink); color: #fff; box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
  display: grid; gap: 2px; min-width: 120px; opacity: 0; transform: translateY(4px); transition: opacity .12s, transform .12s;
}
.tip.is-on { opacity: 1; transform: none; }
.tip strong { font-size: 15px; font-variant-numeric: tabular-nums; }
.tip span { font-size: 12px; color: #c9d2cd; }

/* side panel: what moves the number */
.factors { padding: 28px; display: grid; gap: 18px; background: var(--forest); color: var(--cream); }
.factors h3 { color: #fff; }
.factors ul { display: grid; gap: 16px; }
.factors li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 14px; align-items: start; }
.factors li svg { width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: var(--forest-2); color: var(--copper-light); }
.factors li strong { display: block; color: #fff; font-size: 15px; }
.factors li p { font-size: 14px; line-height: 1.5; color: var(--muted-dark); }
@media (max-width: 479px) { .factors { padding: 22px 18px; } }

/* ------------------------------------------------------------------ scope cards */
.cards-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 999px) { .cards-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 679px) { .cards-3 { grid-template-columns: minmax(0, 1fr); } }
.scope-card { display: flex; flex-direction: column; overflow: hidden; border: 2px solid transparent; transition: border-color .2s, transform .2s var(--ease), box-shadow .2s; }
.scope-card.is-current { border-color: var(--copper); }
.scope-card figure { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--line); }
.scope-card figure img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); }
@media (max-width: 679px) { .scope-card figure { aspect-ratio: 2 / 1; } }
.scope-tag { position: absolute; left: 14px; top: 14px; background: var(--card); color: var(--ink); font-size: 13px; font-weight: 600; padding: 5px 12px; border-radius: 999px; box-shadow: 0 2px 8px rgba(0, 0, 0, .15); }
.scope-current { position: absolute; right: 14px; top: 14px; background: var(--copper); color: #fff; font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px; display: none; }
.scope-card.is-current .scope-current { display: block; }
.scope-body { display: flex; flex-direction: column; gap: 12px; padding: 22px 24px 24px; flex: 1; }
.scope-price { font-size: 32px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.scope-price small { display: block; margin-top: 6px; font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.scope-desc { font-size: 15px; color: var(--muted); }
.scope-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 14px 0; border-block: 1px solid var(--line); margin-top: auto; }
/* label on top, number at the bottom, so numbers line up even when a label wraps */
.scope-stats div { display: grid; gap: 2px; grid-template-rows: 1fr auto; }
.scope-stats dt { font-size: 12px; color: var(--muted); }
.scope-stats dd { margin: 0; font-weight: 700; font-size: 18px; font-variant-numeric: tabular-nums; }
.scope-body .btn { align-self: flex-start; }

/* ------------------------------------------------------------------ cost tables (cost by size) */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
.cost-table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 600px; }
.cost-table.compact { min-width: 420px; font-size: 14px; }
.cost-table th, .cost-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cost-table.compact th, .cost-table.compact td { padding: 10px 12px; }
.cost-table thead th { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: var(--paper); white-space: nowrap; }
.cost-table tbody tr:last-child > * { border-bottom: 0; }
.cost-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cost-table tbody th { font-weight: 600; white-space: nowrap; }
.cost-table tbody th small { display: block; font-weight: 400; color: var(--muted); font-size: 13px; }
.cost-table td.muted { color: var(--muted); }
/* the size table keeps its first column in view when it scrolls sideways */
.cost-table:not(.compact) tbody th, .cost-table:not(.compact) thead th:first-child { position: sticky; left: 0; z-index: 1; }
.cost-table:not(.compact) tbody th { background: var(--card); }
@media (max-width: 559px) {
  .cost-table.compact { min-width: 0; }
  .cost-table.compact .range { display: none; }
}
.table-note { font-size: 14px; color: var(--muted); margin-top: 12px; }
.size-cards { display: grid; gap: 20px; }
.size-card { padding: clamp(20px, 3vw, 30px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 24px 40px; align-items: start; scroll-margin-top: calc(var(--header-h) + 16px); }
@media (max-width: 899px) { .size-card { grid-template-columns: minmax(0, 1fr); } }
.size-card h2 { font-size: clamp(24px, 2.6vw, 32px); }
.size-copy { display: grid; gap: 12px; justify-items: start; }
.size-copy p { color: var(--muted); }
.size-copy p strong { color: var(--ink); }

/* ------------------------------------------------------------------ stages */
.steps { counter-reset: step; }
.step { overflow: hidden; display: flex; flex-direction: column; }
.step figure { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--line); }
.step figure img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); }
@media (max-width: 679px) {
  .step { display: grid; grid-template-columns: 112px minmax(0, 1fr); }
  .step figure { aspect-ratio: auto; min-height: 100%; }
  .step-body { padding: 16px 16px 18px; gap: 6px; }
  .step-body h3 { font-size: 17px; }
  .step-body p { font-size: 14px; }
}
.step-body { padding: 20px 24px 24px; display: grid; gap: 8px; }
.step-num { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; color: var(--copper-dark); }
.step-num b { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--copper-soft); color: var(--copper-dark); font-size: 13px; }
.step-body p { font-size: 15px; color: var(--muted); }
.step-body p strong { color: var(--ink); }

/* ------------------------------------------------------------------ countertop teaser (dark band) */
.teaser { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
@media (max-width: 899px) { .teaser { grid-template-columns: minmax(0, 1fr); } }
.teaser-copy { display: grid; gap: 20px; }
.teaser-copy > p { color: var(--muted-dark); font-size: 17px; }
.price-chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.price-chips li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 10px; background: var(--forest-2); font-size: 14px; }
.price-chips li span:last-child { font-weight: 600; color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 419px) { .price-chips { grid-template-columns: minmax(0, 1fr); } }
.teaser-media { position: relative; padding: 0 0 48px 0; }
.teaser-media .main { border-radius: var(--r); aspect-ratio: 4 / 3; object-fit: cover; width: 88%; margin-left: auto; }
.teaser-media .inset { position: absolute; left: 0; bottom: 0; width: 44%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-sm); border: 6px solid var(--forest); }

/* ------------------------------------------------------------------ faq */
.faq-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
@media (max-width: 899px) { .faq-layout { grid-template-columns: minmax(0, 1fr); } }
.faq-layout .section-head { margin-bottom: 0; }
.faq-intro { display: grid; gap: 20px; }
@media (min-width: 900px) { .faq-intro { position: sticky; top: calc(var(--header-h) + 32px); } }
.faq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
@media (max-width: 679px) { .faq-grid { grid-template-columns: minmax(0, 1fr); } }
.faq-item { padding: 22px 0; border-top: 1px solid var(--line-strong); display: grid; gap: 8px; }
.faq-item h3 { font-family: var(--font-text); font-size: 16px; font-weight: 600; letter-spacing: 0; line-height: 1.4; }
.faq-item p { font-size: 15px; color: var(--muted); }
.faq-photo { border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 3; }
.faq-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ------------------------------------------------------------------ quotes */
.quote-layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 72px); align-items: start; }
@media (max-width: 899px) { .quote-layout { grid-template-columns: minmax(0, 1fr); } }
.quote-copy { display: grid; gap: 20px; }
.quote-copy .section-head { margin-bottom: 0; }
.how { display: grid; gap: 0; counter-reset: how; }
.how li { counter-increment: how; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-top: 1px solid var(--line-strong); }
.how li::before { content: counter(how); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--forest); color: #fff; font-weight: 700; font-size: 15px; }
.how strong { display: block; font-size: 16px; }
.how p { font-size: 14px; color: var(--muted); }
.quote-form { padding: 28px; }
@media (max-width: 479px) { .quote-form { padding: 22px 18px; } }
.quote-form h3 { margin-bottom: 4px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 559px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }
/* the quote form's budget: the estimate, or the visitor's own amount */
.budget-field { gap: 10px; }
.budget-field legend { margin-bottom: 2px; }
.budget-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 559px) { .budget-options { grid-template-columns: minmax(0, 1fr); } }
.budget-option {
  display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; align-items: start; padding: 12px 14px;
  border: 1.5px solid var(--line-strong); border-radius: var(--r-sm); background: #fff; cursor: pointer;
  transition: border-color .15s, background-color .15s;
}
.budget-option:hover { border-color: var(--muted); }
.budget-option:has(input:checked) { border-color: var(--copper); background: #fbefe7; }
.budget-option input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--copper); cursor: pointer; }
.budget-option strong { display: block; font-size: 14px; }
.budget-option small { display: block; margin-top: 2px; font-size: 13px; line-height: 1.4; color: var(--muted); }
.custom-budget { gap: 6px; }
.custom-budget .with-unit { max-width: 260px; }
.with-unit--prefix input { padding-left: 30px; padding-right: 14px; }
.with-unit--prefix span { left: 14px; right: auto; font-weight: 600; color: var(--ink); }
.budget-field > .small .link { font-size: 14px; }
.form-status { font-size: 14px; font-weight: 500; color: var(--forest-2); min-height: 1.5em; }
.form-status.is-success { padding: 12px 16px; border-radius: var(--r-sm); background: #e3ebe5; color: var(--forest); font-weight: 600; }
.form-status.is-error { color: #b3261e; }
.form-status:empty { display: none; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.form-foot .small { color: var(--muted); }

/* ------------------------------------------------------------------ countertop page: material range chart */
.mat-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 999px) { .mat-layout { grid-template-columns: minmax(0, 1fr); } }
.ranges { display: grid; }
.range-row {
  display: grid; grid-template-columns: minmax(150px, 1fr) minmax(0, 1.7fr) 132px; align-items: center; gap: 16px;
  width: calc(100% + 16px); margin-inline: -8px; padding: 12px 8px; border: 0; border-radius: 8px; background: transparent; text-align: left; cursor: pointer;
  transition: background-color .15s;
}
.ranges li + li .range-row { border-top: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.range-row:hover, .range-row:focus-visible { background: var(--paper); }
.range-name { font-size: 14px; font-weight: 600; line-height: 1.3; }
.range-name small { display: block; font-size: 12px; font-weight: 400; color: var(--muted); }
.range-track { position: relative; height: 16px; }
.range-track::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--line); }
.range-fill {
  position: absolute; top: 2px; bottom: 2px; left: calc(var(--lo, 0) * 100%); width: calc((var(--hi, 0) - var(--lo, 0)) * 100%);
  min-width: 4px; background: var(--bar-other); border-radius: 4px; transition: left .4s var(--ease), width .4s var(--ease), background-color .15s;
}
.range-value { text-align: right; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.range-row[aria-pressed="true"] .range-fill { background: var(--copper); }
.range-row[aria-pressed="true"], .range-row[aria-pressed="true"]:hover { background: #fbefe7; }
.range-row[aria-pressed="true"] .range-name { color: var(--copper-dark); }
.range-row:hover .range-fill { filter: brightness(.9); }
.axis { position: relative; height: 22px; margin: 8px 0 0; display: grid; grid-template-columns: minmax(150px, 1fr) minmax(0, 1.7fr) 132px; gap: 16px; }
.axis-scale { position: relative; grid-column: 2; border-top: 1px solid var(--line-strong); }
.axis-scale span { position: absolute; top: 4px; transform: translateX(-50%); font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.axis-scale span:first-child { transform: none; }
.axis-scale span:last-child { transform: translateX(-100%); }
@media (max-width: 559px) {
  .range-row, .axis { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; }
  .range-track { grid-column: 1 / -1; grid-row: 2; }
  .axis-scale { grid-column: 1 / -1; }
}

.sqft-cells { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin-top: 12px; border-radius: 10px; overflow: hidden; background: var(--line-strong); }
.sqft-cells div { background: var(--paper); padding: 10px 12px; display: grid; gap: 2px; }
.sqft-cells dt { font-size: 12px; color: var(--muted); }
.sqft-cells dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.sqft-cells div:last-child { background: var(--forest); color: #fff; }
.sqft-cells div:last-child dt { color: var(--muted-dark); }
@media (max-width: 419px) { .sqft-cells { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* side notes */
.note-card { padding: 26px; display: grid; gap: 14px; }
.note-card > img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-sm); }
.note-card ul { display: grid; gap: 12px; }
.note-card li { position: relative; padding-left: 22px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.note-card li::before { content: ""; position: absolute; left: 2px; top: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--copper); }
.note-card li strong { color: var(--ink); }

/* measuring diagram */
.measure-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (max-width: 899px) { .measure-layout { grid-template-columns: minmax(0, 1fr); } }
.diagram { padding: clamp(16px, 3vw, 28px); }
.diagram svg { width: 100%; height: auto; }
.diagram figcaption { font-size: 13px; color: var(--muted); margin-top: 12px; text-align: center; }
.tips { display: grid; gap: 0; }
.tips li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; padding: 18px 0; border-top: 1px solid var(--line-strong); }
.tips li:last-child { border-bottom: 1px solid var(--line-strong); }
.tips svg { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--copper-soft); color: var(--copper-dark); }
.tips strong { display: block; font-size: 16px; margin-bottom: 2px; }
.tips p { font-size: 15px; color: var(--muted); }

/* ------------------------------------------------------------------ CTA band */
.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap; padding: clamp(28px, 4vw, 44px); border-radius: var(--r); background: var(--forest); color: var(--cream); }
.cta-band h2 { color: #fff; font-size: clamp(24px, 2.6vw, 34px); }
.cta-band p { color: var(--muted-dark); margin-top: 8px; }
.cta-band .btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ------------------------------------------------------------------ footer */
.site-footer { background: var(--forest); color: var(--muted-dark); padding: 56px 0 28px; font-size: 14px; }
.section--sand + .site-footer, .section + .site-footer { margin-top: 0; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; padding-bottom: 36px; border-bottom: 1px solid var(--line-dark); }
@media (max-width: 799px) { .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-top > :first-child { grid-column: 1 / -1; } }
.site-footer .brand { color: #fff; }
.footer-blurb { margin-top: 14px; max-width: 34ch; line-height: 1.6; }
.footer-col h3 { font-family: var(--font-text); font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.footer-col ul { display: grid; gap: 10px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-top: 24px; font-size: 13px; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }

/* ------------------------------------------------------------------ plain text pages */
.doc { padding-block: clamp(40px, 6vw, 72px) var(--section-y); }
.doc .wrap { max-width: calc(760px + 2 * var(--gut)); }
.doc-head { display: grid; gap: 12px; padding-bottom: 28px; margin-bottom: 8px; border-bottom: 1px solid var(--line-strong); }
.doc-head p { color: var(--muted); }
.doc h2 { font-size: 22px; margin: 32px 0 10px; }
.doc p, .doc li { line-height: 1.7; margin-bottom: 12px; }
.doc ul { list-style: disc; padding-left: 1.2em; }
.doc a { color: var(--copper-dark); text-underline-offset: 3px; }
.doc .back { margin-top: 32px; }

/* ------------------------------------------------------------------ entrance motion */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
  .js .reveal.is-in { opacity: 1; transform: none; }
}
