/* North Natomas Tile Installation — one stylesheet.
   Every colour and font is a custom property on :root. See DESIGN-PLAN.md. */

@font-face {
  font-family: "Krona One";
  src: url("/assets/fonts/krona-one-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("/assets/fonts/atkinson-next-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* palette */
  --sky: #E4ECEF;
  --overcast: #F6F8F9;
  --river: #1E3342;
  --river-2: #29455A;
  --gravel: #55636D;
  --gravel-line: #9AA6AE;
  --straw: #8A7A3F;
  --straw-pale: #C9B97E;
  --flag: #B0245C;
  --flag-deep: #8E1C4A;
  --white: #FFFFFF;
  --ok: #1F6B4A;
  --error: #A3261F;
  --sky-on-dark: #E4ECEF;
  --muted-on-dark: #B9C6CE;
  --scrim: rgba(30, 51, 66, 0.62);

  /* type */
  --font-display: "Krona One", "Arial Black", system-ui, sans-serif;
  --font-text: "Atkinson Hyperlegible Next", system-ui, -apple-system, "Segoe UI", sans-serif;
  --step-5: clamp(2.05rem, 1.1rem + 4.2vw, 4.25rem);
  --step-4: clamp(1.6rem, 1.15rem + 2vw, 2.6rem);
  --step-3: clamp(1.2rem, 1.05rem + 0.6vw, 1.5rem);
  --step-2: 1.3333rem;
  --step-1: 1.125rem;
  --step-0: 1rem;
  --step--1: 0.875rem;

  /* space */
  --u: 8px;
  --gutter: 24px;
  --max: 1360px;
  --measure: 64ch;
  --band: 96px;

  /* shape */
  --r-cut: 0;
  --r-edge: 3px;
  --r-stake: 999px;
  --r-sheet: 6px;

  --focus: 0 0 0 3px var(--overcast), 0 0 0 5px var(--flag);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

@media (max-width: 900px) { :root { --band: 64px; } }
@media (max-width: 520px) { :root { --band: 48px; --gutter: 16px; } }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  overflow-x: clip;
  background: var(--sky);
  color: var(--river);
  font-family: var(--font-text);
  font-size: var(--step-1);
  line-height: 1.6;
  font-feature-settings: "kern";
  text-rendering: optimizeLegibility;
}
img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--r-edge); }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: var(--step-5); line-height: 1.06; letter-spacing: -0.012em; }
h2 { font-size: var(--step-4); line-height: 1.14; letter-spacing: -0.006em; }
h3 { font-size: var(--step-3); line-height: 1.25; letter-spacing: 0.01em; }
h4 { font-size: var(--step-2); line-height: 1.3; margin: 0; font-weight: 650; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
.tabular { font-variant-numeric: tabular-nums; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: var(--gutter); top: -100px; z-index: 100;
  background: var(--river); color: var(--white); padding: 10px 16px; border-radius: var(--r-edge);
}
.skip:focus { top: 8px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.measure { max-width: var(--measure); }
.band { padding-block: var(--band); }
.band--tight { padding-block: calc(var(--band) * .66); }
.band--overcast { background: var(--overcast); }
.band--ground { background: var(--river); color: var(--sky-on-dark); }
.band--ground a { color: var(--sky-on-dark); }
.band-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 32px; margin-bottom: 40px; }
.band-head p { margin: 0; max-width: 52ch; color: var(--gravel); }
.band--ground .band-head p { color: var(--muted-on-dark); }
.lead { font-size: var(--step-2); line-height: 1.45; max-width: 46ch; }
.note { font-size: var(--step--1); color: var(--gravel); }

/* ---------- buttons, chips, links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  font: 650 var(--step-0)/1.2 var(--font-text);
  border-radius: var(--r-edge); border: 2px solid var(--flag);
  background: var(--flag); color: var(--white); text-decoration: none; cursor: pointer;
  transition: background-color .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease), transform .1s var(--ease);
}
.btn:hover { background: var(--flag-deep); border-color: var(--flag-deep); }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; }
.btn[aria-busy="true"] { cursor: progress; background: var(--flag-deep); }
.btn[aria-busy="true"]::before {
  content: ""; width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.btn--line { background: transparent; color: var(--river); border-color: var(--river); }
.btn--line:hover { background: var(--river); color: var(--white); border-color: var(--river); }
.band--ground .btn--line { color: var(--sky-on-dark); border-color: var(--sky-on-dark); }
.band--ground .btn--line:hover { background: var(--sky-on-dark); color: var(--river); }
.tel { color: var(--flag); font-weight: 650; text-decoration: none; white-space: nowrap; }
.tel:hover { text-decoration: underline; }
.band--ground .tel, .site-foot .tel { color: var(--white); text-decoration: underline; text-decoration-color: var(--flag); text-decoration-thickness: 2px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; border: 0; }
.chip {
  min-height: 40px; padding: 8px 16px; border-radius: var(--r-stake);
  border: 1.5px solid var(--gravel); background: var(--white); color: var(--river);
  font: 600 var(--step-0)/1.2 var(--font-text); cursor: pointer;
  transition: background-color .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease);
}
.chip:hover { border-color: var(--river); }
.chip[aria-pressed="true"] { background: var(--river); border-color: var(--river); color: var(--white); }
.chip:disabled { opacity: .5; cursor: not-allowed; }
.text-link { font-weight: 650; }

/* ---------- header / nav ---------- */
.site-head { position: sticky; top: 0; z-index: 40; background: var(--sky); border-bottom: 1px solid transparent; }
.site-head.is-scrolled { border-bottom-color: var(--gravel-line); }
.head-row { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.brand { display: flex; flex-direction: column; text-decoration: none; line-height: 1.1; margin-right: auto; }
.brand b { font: 400 1rem/1.15 var(--font-display); letter-spacing: .01em; }
.brand span { font-size: var(--step--1); color: var(--gravel); letter-spacing: .02em; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav > ul { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav li { position: relative; }
.nav a, .nav .nav-btn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 12px;
  font: 600 var(--step-0)/1.2 var(--font-text); color: var(--river); text-decoration: none;
  background: none; border: 0; border-radius: var(--r-edge); cursor: pointer;
}
.nav a:hover, .nav .nav-btn:hover { text-decoration: underline; text-underline-offset: 6px; }
.nav a[aria-current="page"], .nav .is-current > .nav-btn { text-decoration: underline; text-decoration-color: var(--straw); text-decoration-thickness: 3px; text-underline-offset: 8px; }
.nav-btn svg { width: 10px; height: 10px; transition: transform .15s var(--ease); }
.nav-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.drop {
  position: absolute; left: 0; top: calc(100% + 4px); min-width: 260px; z-index: 50;
  list-style: none; margin: 0; padding: 8px; background: var(--overcast);
  border: 1px solid var(--gravel-line); border-radius: var(--r-sheet);
  box-shadow: 0 12px 24px -12px rgba(30, 51, 66, .35);
  display: none;
}
.drop a { display: flex; width: 100%; padding: 10px 12px; }
.drop a:hover { background: var(--sky); text-decoration: none; }
.has-drop:hover > .drop, .has-drop:focus-within > .drop, .nav-btn[aria-expanded="true"] + .drop { display: block; }
.js .has-drop:hover > .drop { display: none; }
.js .has-drop:focus-within > .drop { display: none; }
.js .nav-btn[aria-expanded="true"] + .drop { display: block; }
@media (hover: hover) { .js .has-drop:hover > .drop { display: block; } }
.head-cta { display: flex; align-items: center; gap: 16px; }
.menu-btn { display: none; }

@media (max-width: 1080px) {
  .head-cta .tel { display: none; }
}
@media (max-width: 920px) {
  .head-row { min-height: 64px; gap: 12px; }
  .menu-btn {
    display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px;
    border: 1.5px solid var(--river); border-radius: var(--r-edge); background: transparent; color: var(--river); cursor: pointer;
  }
  .menu-btn svg { width: 22px; height: 22px; }
  .head-cta .btn { min-height: 44px; padding: 8px 14px; }
  .js .nav {
    position: fixed; inset: 64px 0 0 0; z-index: 45; display: none; flex-direction: column; align-items: stretch;
    padding: 16px var(--gutter) 120px; background: var(--sky); overflow-y: auto; border-top: 1px solid var(--gravel-line);
  }
  .js .nav.is-open { display: flex; }
  .nav > ul { flex-direction: column; align-items: stretch; }
  .nav a, .nav .nav-btn { width: 100%; justify-content: space-between; font-size: var(--step-1); min-height: 52px; padding: 12px 4px; border-bottom: 1px solid var(--gravel-line); border-radius: 0; }
  .drop { position: static; box-shadow: none; border: 0; background: transparent; padding: 0 0 8px 16px; min-width: 0; }
  .js .has-drop:hover > .drop { display: none; }
  .js .nav-btn[aria-expanded="true"] + .drop { display: block; }
  .drop a { border-bottom: 0; min-height: 44px; }
  .nav-tel { display: flex !important; margin-top: 16px; }
  .no-js .nav { width: 100%; order: 3; }
  .no-js .head-row { flex-wrap: wrap; }
}
@media (min-width: 921px) { .nav-tel { display: none !important; } }
@media (max-width: 560px) {
  .head-cta .btn { display: none; }
  .brand b { font-size: .95rem; }
}

/* ---------- the horizon ---------- */
.sky { padding-top: clamp(64px, 14vh, 168px); }
.sky--short { padding-top: clamp(40px, 8vh, 96px); }
.sky-row { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 32px 64px; align-items: end; padding-bottom: 32px; }
.sky-row .lead { margin: 0 0 20px; }
.horizon { position: relative; height: 3px; background: var(--straw); margin: 0; border: 0; }
.horizon::before, .horizon::after { content: ""; position: absolute; top: -6px; width: 3px; height: 15px; background: var(--straw); }
.horizon::before { left: 0; }
.horizon::after { right: 0; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.hero-photo { margin: 0; background: var(--river); }
.hero-photo img { width: 100%; aspect-ratio: 3 / 1; object-fit: cover; object-position: 50% 50%; }
.hero-photo figcaption { padding: 10px 0 0; font-size: var(--step--1); color: var(--gravel); background: var(--sky); }
.crumbs { font-size: var(--step--1); color: var(--gravel); margin-bottom: 24px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; padding: 0; margin: 0; }
.crumbs li + li::before { content: "/"; margin: 0 10px; color: var(--gravel-line); }
.crumbs a { color: var(--gravel); }
.crumbs [aria-current] { color: var(--river); }
@media (max-width: 860px) {
  .sky-row { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .hero-photo img { aspect-ratio: 1.8 / 1; }
}

/* ---------- photo strip (recent work) ---------- */
.strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 320px); gap: 20px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  padding-bottom: 16px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
  scrollbar-color: var(--gravel) transparent;
}
.strip > * { scroll-snap-align: start; }
.frame { display: block; text-decoration: none; color: inherit; }
.frame img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-cut); background: var(--gravel-line); }
.frame .cap { display: block; padding-top: 12px; border-top: 3px solid transparent; }
.frame b { display: block; font-weight: 650; line-height: 1.3; }
.frame span { display: block; font-size: var(--step--1); color: var(--gravel); }
.frame:hover b { text-decoration: underline; text-underline-offset: 3px; }
.frame:focus-visible { box-shadow: none; }
.frame:focus-visible img { box-shadow: var(--focus); }
.frame--tall img { aspect-ratio: 3 / 4; }

/* ---------- planner ---------- */
.planner { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr); gap: 32px 48px; align-items: start; }
.plan-sheet { background: var(--overcast); color: var(--river); border-radius: var(--r-cut); padding: 12px; }
.plan-sheet svg { width: 100%; height: auto; max-height: min(66vh, 600px); touch-action: none; user-select: none; -webkit-user-select: none; }
.plan-svg .room-floor { fill: var(--white); }
.plan-svg .tile { fill: var(--white); stroke: var(--gravel); }
.plan-svg .tile-cut { fill: #EEF2F4; }
.plan-svg .walls { fill: none; stroke: var(--river); }
.plan-svg .centre { stroke: var(--straw); stroke-dasharray: 6 4; fill: none; }
.plan-svg .dim { stroke: var(--straw); fill: none; }
.plan-svg .dim-text { fill: var(--river); font-family: var(--font-text); font-weight: 650; font-variant-numeric: tabular-nums; }
.plan-svg .dim-text--room { fill: var(--gravel); font-weight: 500; }
.plan-svg .sliver { fill: url(#hatch); stroke: var(--flag); }
.plan-svg .sliver-text { fill: var(--flag); font-family: var(--font-text); font-weight: 700; }
.plan-svg .door { stroke: var(--white); }
.plan-svg .door-swing { fill: none; stroke: var(--gravel); stroke-dasharray: 3 3; }
.plan-svg .handle { fill: var(--flag); stroke: var(--white); cursor: nwse-resize; }
.plan-svg .handle:focus { outline: none; }
.plan-svg .handle:focus-visible, .plan-svg .handle.is-drag { stroke: var(--river); }
.plan-svg .handle-ring { fill: none; stroke: var(--flag); opacity: 0; }
.plan-svg .handle:focus-visible + .handle-ring { opacity: 1; }
.plan-svg .tiles { transition: transform .28s var(--ease); }
.plan-svg .tiles.no-anim { transition: none; }
.plan-modes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.mode-btn {
  flex: 1 1 200px; min-height: 52px; padding: 10px 16px; text-align: left;
  border-radius: var(--r-edge); border: 2px solid var(--muted-on-dark); background: transparent; color: var(--sky-on-dark);
  font: 650 var(--step-0)/1.25 var(--font-text); cursor: pointer;
  transition: background-color .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease);
}
.mode-btn small { display: block; font-weight: 400; color: inherit; opacity: .85; font-size: var(--step--1); }
.mode-btn:hover { border-color: var(--sky-on-dark); }
.mode-btn[aria-pressed="true"] { background: var(--sky-on-dark); color: var(--river); border-color: var(--sky-on-dark); }
.readout { margin-top: 24px; padding-top: 20px; border-top: 3px solid var(--straw-pale); }
.readout p { font-size: var(--step-2); line-height: 1.45; max-width: 60ch; margin-bottom: 16px; }
.readout .sliver-note { font-size: var(--step-0); color: var(--sky-on-dark); background: rgba(176, 36, 92, .22); border-left: 4px solid var(--flag); padding: 10px 14px; margin-bottom: 16px; }
.readout .sliver-note:empty { display: none; }
.controls { display: grid; gap: 22px; }
.controls fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.controls legend, .controls .lbl { font-weight: 650; margin-bottom: 8px; padding: 0; color: var(--sky-on-dark); }
.dim-inputs { display: grid; grid-template-columns: auto 1fr 1fr; gap: 8px 10px; align-items: center; }
.dim-inputs > span { font-weight: 600; min-width: 4.5em; color: var(--muted-on-dark); }
.unit { position: relative; }
.unit input { width: 100%; padding-right: 30px; }
.unit::after { content: attr(data-unit); position: absolute; right: 10px; top: 50%; transform: translateY(-50%); color: var(--gravel); font-size: var(--step--1); pointer-events: none; }
.controls .chip { background: transparent; color: var(--sky-on-dark); border-color: var(--muted-on-dark); }
.controls .chip:hover { border-color: var(--sky-on-dark); }
.controls .chip[aria-pressed="true"] { background: var(--sky-on-dark); color: var(--river); border-color: var(--sky-on-dark); }
.controls .note { color: var(--muted-on-dark); }
.planner-static { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.planner-static figure { margin: 0; }
.planner-static figcaption { margin-top: 10px; color: var(--muted-on-dark); font-size: var(--step-0); }
.js .planner-static { display: none; }
.no-js .planner { display: none; }
@media (max-width: 960px) {
  .planner { grid-template-columns: minmax(0, 1fr); }
  .planner-static { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- inputs ---------- */
input[type="text"], input[type="tel"], input[type="email"], input[type="number"], textarea, select {
  width: 100%; min-height: 48px; padding: 11px 13px;
  font: 400 var(--step-0)/1.4 var(--font-text); color: var(--river);
  background: var(--white); border: 1.5px solid var(--gravel); border-radius: var(--r-edge);
  transition: border-color .15s var(--ease);
}
input:hover, textarea:hover { border-color: var(--river); }
input:focus-visible, textarea:focus-visible { border-color: var(--river); }
input[type="number"] { -moz-appearance: textfield; font-variant-numeric: tabular-nums; }
input[type="number"]::-webkit-inner-spin-button, input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
textarea { min-height: 120px; resize: vertical; }
input:disabled, textarea:disabled { background: var(--sky); cursor: not-allowed; }
[aria-invalid="true"] { border-color: var(--error) !important; border-width: 2px !important; }

/* ---------- lead form ---------- */
.estimate { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 48px 72px; }
.lead-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px 20px; }
.lead-form .full { grid-column: 1 / -1; }
.field label, .field .lbl { display: block; font-weight: 650; margin-bottom: 6px; }
.field .opt { font-weight: 400; color: var(--gravel); }
.field .hint { display: block; font-size: var(--step--1); color: var(--gravel); margin-top: 6px; }
.field .err { display: block; font-size: var(--step--1); color: var(--error); font-weight: 650; margin-top: 6px; }
.field .err:empty { display: none; }
.no-js .js-only { display: none; }
.form-foot { display: grid; gap: 12px; justify-items: start; }
.form-foot .consent { font-size: var(--step--1); color: var(--gravel); max-width: 60ch; margin: 0; }
.form-status { font-weight: 650; padding: 12px 14px; border-left: 4px solid; margin: 0; }
.form-status:empty { display: none; }
.form-status.is-ok { color: var(--ok); border-color: var(--ok); background: #E6F1EC; }
.form-status.is-error { color: var(--error); border-color: var(--error); background: #F8E9E8; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.contact-list b { display: block; font-size: var(--step--1); color: var(--gravel); font-weight: 600; }
.contact-list a { font-weight: 650; }
@media (max-width: 900px) { .estimate { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) { .lead-form { grid-template-columns: minmax(0, 1fr); } }

/* ---------- builder-grade ---------- */
.sequence { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0 0 48px; }
.sequence figure { margin: 0; }
.sequence img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.sequence figcaption { padding-top: 10px; font-size: var(--step-0); }
.sequence figcaption b { display: block; }
.ledger { width: 100%; border-collapse: collapse; font-size: var(--step-0); }
.ledger caption { text-align: left; font-weight: 650; padding-bottom: 12px; }
.ledger th, .ledger td { text-align: left; vertical-align: top; padding: 16px 20px 16px 0; }
.ledger thead th { font-size: var(--step--1); color: var(--gravel); font-weight: 600; padding-bottom: 8px; }
.ledger tbody tr { border-top: 1px solid var(--gravel-line); }
.ledger tbody th { font-weight: 650; width: 22%; }
.ledger td { width: 39%; }
.examples { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 40px; }
.examples figure { margin: 0; }
.examples img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.examples figcaption { font-size: var(--step--1); color: var(--gravel); padding-top: 8px; }
@media (max-width: 760px) {
  .sequence { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .sequence figcaption { font-size: var(--step--1); }
  .examples { grid-template-columns: minmax(0, 1fr); }
  .ledger thead { display: none; }
  .ledger tbody tr { display: grid; padding: 12px 0; }
  .ledger th, .ledger td { width: auto; padding: 4px 0; }
  .ledger td::before { content: attr(data-h) ": "; font-weight: 600; color: var(--gravel); }
}

/* ---------- services ledger rows ---------- */
.svc { list-style: none; margin: 0; padding: 0; }
.svc li { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.6fr) 180px; gap: 16px 40px; align-items: center; padding: 24px 0; border-top: 1px solid var(--gravel-line); }
.svc li:last-child { border-bottom: 1px solid var(--gravel-line); }
.svc h3 a { text-decoration: none; }
.svc h3 a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.svc p { margin: 0; color: var(--gravel); }
.svc img { width: 180px; aspect-ratio: 3 / 2; object-fit: cover; }
@media (max-width: 760px) {
  .svc li { grid-template-columns: minmax(0, 1fr) 112px; }
  .svc li p { grid-column: 1 / -1; grid-row: 2; }
  .svc img { width: 112px; }
}

/* ---------- miles line + map ---------- */
.miles { margin: 0 0 40px; }
.miles svg { width: 100%; height: auto; overflow: visible; }
.miles .axis { stroke: var(--straw); stroke-width: 3; }
.miles .tick { stroke: var(--straw); stroke-width: 2; }
.miles .shop { fill: var(--flag); }
.miles text { font-family: var(--font-text); fill: var(--river); font-size: 15px; }
.miles .mi { fill: var(--gravel); font-size: 13px; font-variant-numeric: tabular-nums; }
.miles a:hover text { text-decoration: underline; }
.miles a:focus-visible { outline: none; }
.miles a:focus-visible text { fill: var(--flag); text-decoration: underline; }
.miles-list { display: none; }
.where { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); gap: 32px 48px; align-items: start; }
.map { width: 100%; height: 380px; border: 0; background: var(--gravel-line); }
.nap { font-style: normal; }
.area-links { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.area-links a { font-weight: 650; }
@media (max-width: 760px) {
  .miles svg { display: none; }
  .miles-list { display: block; list-style: none; padding: 0; margin: 0; }
  .miles-list li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--gravel-line); }
  .miles-list span { color: var(--gravel); font-variant-numeric: tabular-nums; }
  .where { grid-template-columns: minmax(0, 1fr); }
  .map { height: 300px; }
}

/* ---------- reviews + faq ---------- */
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: 40px 72px; }
.reviews-panel { align-self: start; background: var(--overcast); border-top: 3px solid var(--straw); padding: 28px; }
.reviews-panel h2 { margin-bottom: 16px; }
.reviews-slot:empty { display: none; }
.reviews-fallback p { margin: 0 0 20px; color: var(--river); max-width: 40ch; }
.reviews-fallback[hidden] { display: none; }
.faq details { border-top: 1px solid var(--gravel-line); }
.faq details:last-child { border-bottom: 1px solid var(--gravel-line); }
.faq summary {
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
  padding: 18px 0; cursor: pointer; list-style: none; font-weight: 650; font-size: var(--step-1);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 14px; height: 14px;
  background: linear-gradient(var(--river), var(--river)) center / 14px 2px no-repeat, linear-gradient(var(--river), var(--river)) center / 2px 14px no-repeat;
  transition: transform .2s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { text-decoration: underline; text-underline-offset: 4px; }
.faq .answer { padding: 0 0 20px; max-width: var(--measure); color: var(--river); }
.faq .answer p { margin: 0; }
@media (max-width: 860px) { .two-col { grid-template-columns: minmax(0, 1fr); } }

/* ---------- prose (inner pages) ---------- */
.article-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 48px 72px; align-items: start; }
.prose { max-width: var(--measure); }
.prose h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.85rem); margin: 2em 0 .7em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: var(--step-2); font-family: var(--font-text); font-weight: 650; letter-spacing: 0; margin: 1.6em 0 .5em; }
.prose li { margin-bottom: .4em; }
.prose a { font-weight: 600; }
.includes { background: var(--overcast); padding: 28px; border-radius: var(--r-cut); border-top: 3px solid var(--straw); }
.includes h2 { font-size: var(--step-3); margin-bottom: 16px; }
.includes ol { margin: 0; padding-left: 1.4em; font-size: var(--step-0); }
.includes li { margin-bottom: 10px; padding-left: 4px; }
.includes li::marker { font-weight: 700; color: var(--straw); font-variant-numeric: tabular-nums; }
.includes .actions { margin-top: 20px; }
@media (min-width: 961px) { .article-grid .includes { position: sticky; top: 100px; } }
@media (max-width: 960px) { .article-grid { grid-template-columns: minmax(0, 1fr); } }
.photo-pair { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 12px; margin: 0; }
.photo-pair img { width: 100%; height: 100%; max-height: 440px; aspect-ratio: 4 / 3; object-fit: cover; }
.photo-pair figcaption { grid-column: 1 / -1; font-size: var(--step--1); color: var(--gravel); }
@media (max-width: 640px) { .photo-pair { grid-template-columns: minmax(0, 1fr); } .photo-pair img:nth-child(2) { display: none; } }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 860px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .grid-3 { grid-template-columns: minmax(0, 1fr); } }
.facts { display: flex; flex-wrap: wrap; gap: 12px 40px; margin: 0; }
.facts div { min-width: 0; }
.facts dt { font-size: var(--step--1); color: var(--gravel); }
.facts dd { margin: 0; font-weight: 650; }
.link-line { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.link-line a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border-radius: var(--r-stake);
  border: 1.5px solid var(--gravel); text-decoration: none; font-weight: 600; background: var(--white);
}
.link-line a:hover { border-color: var(--river); text-decoration: underline; }
.stages { list-style: none; padding: 0; margin: 0; counter-reset: stage; }
.stages li { counter-increment: stage; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 4px 24px; padding: 24px 0; border-top: 1px solid var(--gravel-line); }
.stages li::before { content: counter(stage); grid-row: span 2; font: 400 var(--step-3)/1 var(--font-display); color: var(--straw); }
.stages h3 { font-size: var(--step-2); font-family: var(--font-text); font-weight: 650; }
.stages p { margin: 0; max-width: var(--measure); }

/* ---------- projects ---------- */
.filters { margin-bottom: 32px; }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 24px; }
.project-grid [hidden] { display: none; }
@media (max-width: 900px) { .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .project-grid { grid-template-columns: minmax(0, 1fr); } }
.filter-status { font-size: var(--step--1); color: var(--gravel); margin: -16px 0 24px; }

.gallery { display: grid; gap: 12px; }
.gallery-stage { position: relative; background: var(--river); }
.gallery-stage img { width: 100%; height: min(72vh, 760px); object-fit: contain; }
.gallery-nav { position: absolute; inset: auto 12px 12px auto; display: flex; gap: 8px; }
.gallery-nav button {
  width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--r-edge); border: 0; background: var(--overcast); color: var(--river); cursor: pointer;
  transition: background-color .15s var(--ease);
}
.gallery-nav button:hover { background: var(--white); }
.gallery-nav button:disabled { opacity: .45; cursor: not-allowed; }
.gallery-nav svg { width: 18px; height: 18px; }
.gallery-count { position: absolute; left: 12px; bottom: 12px; padding: 6px 10px; background: var(--overcast); font-size: var(--step--1); font-weight: 650; font-variant-numeric: tabular-nums; }
.thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 8px; list-style: none; margin: 0; }
.thumbs button { flex: none; padding: 0; border: 3px solid transparent; background: none; cursor: pointer; border-radius: var(--r-cut); }
.thumbs img { width: 96px; height: 72px; object-fit: cover; }
.thumbs button[aria-current="true"] { border-color: var(--straw); }
.no-js .gallery-nav, .no-js .gallery-count { display: none; }
.no-js .thumbs { display: none; }
.no-js .gallery-stage img { height: auto; }
.gallery-all { display: none; }
.no-js .gallery-all { display: grid; gap: 12px; }
.project-head { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 24px 48px; align-items: end; }
@media (max-width: 860px) { .project-head { grid-template-columns: minmax(0, 1fr); } .gallery-stage img { height: auto; aspect-ratio: 4 / 3; max-height: 70vh; } }

/* ---------- modal ---------- */
.modal {
  width: min(760px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: var(--r-sheet);
  background: var(--overcast); color: var(--river);
}
.modal::backdrop { background: var(--scrim); }
.modal-inner { padding: 32px; }
.modal-head { display: flex; justify-content: space-between; align-items: start; gap: 16px; margin-bottom: 20px; }
.modal-close {
  flex: none; width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--river); border-radius: var(--r-edge); background: transparent; color: var(--river); cursor: pointer;
}
.modal-close:hover { background: var(--river); color: var(--white); }
.modal-close svg { width: 18px; height: 18px; }
@media (max-width: 520px) { .modal-inner { padding: 20px 16px; } }

/* ---------- call bar ---------- */
.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; display: none;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; padding: 8px var(--gutter) calc(8px + env(safe-area-inset-bottom));
  background: var(--river); transform: translateY(110%); transition: transform .2s var(--ease);
}
.callbar .btn { width: 100%; min-height: 48px; padding: 8px; }
.callbar .btn--line { color: var(--white); border-color: var(--white); }
.callbar.is-visible { transform: translateY(0); }
@media (max-width: 760px) { .js .callbar { display: grid; } body.has-callbar { padding-bottom: 72px; } }
@media (prefers-reduced-motion: reduce) { .callbar { transition: none; } }

/* ---------- footer ---------- */
.site-foot { background: var(--river); color: var(--sky-on-dark); padding: 72px 0 40px; }
.site-foot a { color: var(--sky-on-dark); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px 40px; }
.foot-grid h2 { font: 650 var(--step-0)/1.3 var(--font-text); color: var(--muted-on-dark); margin-bottom: 12px; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.foot-grid ul a { display: inline-block; padding: 4px 0; }
.foot-brand { font: 400 1.05rem/1.3 var(--font-display); margin-bottom: 12px; }
.foot-horizon { height: 3px; background: var(--straw-pale); margin: 48px 0 20px; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: var(--step--1); color: var(--muted-on-dark); }
@media (max-width: 860px) { .foot-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- privacy ---------- */
.toc { background: var(--overcast); padding: 24px 28px; border-top: 3px solid var(--straw); margin-bottom: 48px; max-width: var(--measure); }
.toc ol { margin: 0; columns: 2; column-gap: 32px; font-size: var(--step-0); }
.toc li { margin-bottom: 6px; break-inside: avoid; }
@media (max-width: 600px) { .toc ol { columns: 1; } }

/* ---------- motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .btn[aria-busy="true"]::before { animation: none; border-right-color: currentColor; opacity: .6; }
}
@media print {
  .site-head, .callbar, .site-foot, .lead-form, .planner, .modal { display: none !important; }
  body { background: #fff; }
}
