/* WJC Construction: site styles
   Layout: dark bluestone hero with a brick wall that lays itself course by course;
   light paper and mortar sections below, content left-aligned on a 72rem measure;
   services sit in a grid whose gaps read as mortar joints. */
:root {
  --bluestone: #26333B;
  --bluestone-deep: #1C262C;
  --bluestone-raised: #33434C;
  --brick: #9B3422;
  --brick-deep: #7C2817;
  --buff: #D9A877;
  --limestone: #DCD4C5;
  --mortar: #E5E3DD;
  --joint: #CDC8BD;
  --paper: #F8F7F4;
  --ink: #1E262B;
  --ink-soft: #4B565D;
  --line: #CFCAC0;
  --on-dark: #F3F1EC;
  --on-dark-soft: #BAC4C9;
  --on-brick-soft: #F2D6CC;

  --font-display: "Big Shoulders Display", "Oswald", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  --font-body: "Atkinson Hyperlegible", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --step--1: 1rem;
  --step-0: 1.125rem;
  --step-1: 1.3rem;
  --step-2: clamp(1.55rem, 1.25rem + 1.1vw, 1.95rem);
  --step-3: clamp(2.2rem, 1.55rem + 2.6vw, 3.3rem);
  --step-4: clamp(3rem, 1.6rem + 5.6vw, 6.2rem);

  --gutter: clamp(16px, 4vw, 40px);
  --measure: 72rem;
  --radius: 4px;
  --header-h: 76px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
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-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brick); text-underline-offset: 0.18em; }
a:hover { color: var(--brick-deep); }
:focus-visible { outline: 3px solid var(--brick); outline-offset: 3px; }
.dark :focus-visible, .hero :focus-visible, .estimate :focus-visible, .aside-card :focus-visible, .site-footer :focus-visible, .action-bar :focus-visible { outline-color: var(--buff); }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: 0.005em;
  text-wrap: balance;
  margin: 0;
}
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); font-weight: 700; line-height: 1.05; }
p { margin: 0; }
ul, ol { margin: 0; }
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 0.6rem 1rem; border-radius: var(--radius);
}
.skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: var(--measure); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section--mortar { background: var(--mortar); }
.dark { background: var(--bluestone); color: var(--on-dark); }
.section-head { display: grid; gap: 1rem; max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.lede { font-size: var(--step-1); color: var(--ink-soft); max-width: 40rem; line-height: 1.55; }
.dark .lede { color: var(--on-dark-soft); }
.muted { color: var(--ink-soft); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 52px; padding: 0.75rem 1.35rem;
  border-radius: var(--radius); border: 2px solid transparent;
  font-family: var(--font-body); font-weight: 700; font-size: 1.06rem; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.btn svg { width: 1.25em; height: 1.25em; flex: none; }
.btn--brick { background: var(--brick); color: var(--on-dark); }
.btn--brick:hover { background: var(--brick-deep); color: var(--on-dark); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--mortar); color: var(--ink); }
.dark .btn--ghost, .hero .btn--ghost, .estimate .btn--ghost, .aside-card .btn--ghost { color: var(--on-dark); border-color: var(--on-dark-soft); }
.dark .btn--ghost:hover, .hero .btn--ghost:hover, .estimate .btn--ghost:hover, .aside-card .btn--ghost:hover { background: var(--bluestone-raised); color: var(--on-dark); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--paper); border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--ink); min-width: 0; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 44px; height: 44px; flex: none; }
.brand-text { display: grid; min-width: 0; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.62rem; line-height: 0.95; letter-spacing: 0.01em; white-space: nowrap; }
.brand-sub { font-size: 0.86rem; color: var(--ink-soft); line-height: 1.3; margin-top: 0.15rem; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 0.15rem; }
.nav a {
  color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.02rem;
  padding: 0.55rem 0.75rem; border-radius: var(--radius);
}
.nav a:hover { background: var(--mortar); color: var(--ink); }
.nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--brick); }
.header-actions { display: flex; align-items: center; gap: 0.5rem; }
.header-call { min-height: 46px; padding: 0.55rem 1rem; }
.menu-toggle {
  display: none; align-items: center; justify-content: center; gap: 0.4rem;
  min-height: 46px; min-width: 46px; padding: 0.5rem 0.75rem;
  background: transparent; color: var(--ink); border: 2px solid var(--line); border-radius: var(--radius);
  font: 700 1rem var(--font-body); cursor: pointer;
}
.menu-toggle svg { width: 22px; height: 22px; }
@media (max-width: 1040px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--gutter) 1rem;
    box-shadow: 0 18px 30px -18px rgba(28, 38, 44, 0.45);
  }
  .site-header[data-open] .nav { display: flex; }
  .nav a { padding: 0.95rem 0.25rem; border-bottom: 1px solid var(--mortar); border-radius: 0; font-size: 1.15rem; }
  .nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--brick); padding-left: 0.9rem; }
}
@media (max-width: 560px) {
  .brand-sub { display: none; }
  .brand-name { font-size: 1.45rem; }
  .brand-mark { width: 38px; height: 38px; }
  .header-call .call-label { display: none; }
  .header-call { padding: 0.55rem 0.8rem; }
  .menu-toggle .menu-label { display: none; }
}

/* Home hero: copy on the left, the wall on the right running to the window edge */
.hero { position: relative; background: var(--bluestone); color: var(--on-dark); overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  padding-left: max(var(--gutter), calc((100% - var(--measure)) / 2 + var(--gutter)));
}
.hero-copy { display: flex; flex-direction: column; gap: 1.5rem; padding-block: clamp(3rem, 7vw, 6rem); padding-right: clamp(1.5rem, 4vw, 3.5rem); }
.hero h1 { font-size: var(--step-4); line-height: 0.9; }
.hero .h1-sub { display: block; font-size: 0.4em; line-height: 1.12; font-weight: 600; color: var(--limestone); margin-top: 0.55em; letter-spacing: 0.01em; }
.hero .lede { color: var(--on-dark-soft); }
.hero-wall { position: relative; min-height: 440px; }
.hero-wall canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.trust {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 0.6rem 1.6rem;
  color: var(--on-dark); font-weight: 700; font-size: 1rem;
}
.trust li { display: flex; align-items: center; gap: 0.5rem; }
.trust svg { width: 20px; height: 20px; color: var(--buff); flex: none; }
.phone-line { font-size: 1rem; color: var(--on-dark-soft); }
.phone-line a { color: var(--on-dark); font-weight: 700; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); padding-left: 0; }
  .hero-copy { padding-inline: var(--gutter); padding-bottom: 2rem; }
  .hero-wall { min-height: 0; height: 190px; }
}

/* Brick band: a single course used as a divider */
.brick-band {
  height: 26px;
  background-color: var(--joint);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='26' viewBox='0 0 120 26'%3E%3Crect width='120' height='26' fill='%23C9C3B7'/%3E%3Crect x='0' y='2' width='37' height='10' fill='%239B3422'/%3E%3Crect x='40' y='2' width='37' height='10' fill='%23873020'/%3E%3Crect x='80' y='2' width='37' height='10' fill='%23A6452E'/%3E%3Crect x='-20' y='14' width='37' height='10' fill='%238E3A27'/%3E%3Crect x='20' y='14' width='37' height='10' fill='%23A13F2A'/%3E%3Crect x='60' y='14' width='37' height='10' fill='%23813020'/%3E%3Crect x='100' y='14' width='37' height='10' fill='%238E3A27'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
}

/* Symptom finder */
.finder { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.finder-options { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.chip {
  font: 700 1.02rem var(--font-body); line-height: 1.25;
  min-height: 48px; padding: 0.65rem 1.05rem;
  background: var(--paper); color: var(--ink);
  border: 2px solid var(--line); border-radius: 999px; cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.chip:hover { border-color: var(--ink-soft); }
.chip[aria-pressed="true"] { background: var(--bluestone); border-color: var(--bluestone); color: var(--on-dark); }
.finder-panel {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.4rem, 3vw, 2.2rem); display: grid; gap: 1.15rem;
}
.finder-panel h3 { font-size: var(--step-2); }
.finder-panel dl { margin: 0; display: grid; gap: 1rem; }
.finder-panel dt { font-weight: 700; font-size: 0.98rem; color: var(--brick); }
.finder-panel dd { margin: 0.2rem 0 0; }
.finder-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; padding-top: 0.25rem; }
@media (max-width: 860px) {
  .finder { grid-template-columns: minmax(0, 1fr); }
  .finder-options { gap: 0.5rem; }
  .chip { font-size: 0.98rem; padding: 0.55rem 0.9rem; min-height: 44px; }
}

/* Services laid like a wall: gaps are the mortar joints */
.svc-wall {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px;
  background: var(--joint); border: 6px solid var(--joint); border-radius: 3px;
}
.svc {
  background: var(--paper); color: var(--ink); text-decoration: none;
  padding: clamp(1.3rem, 2.6vw, 2rem);
  display: flex; flex-direction: column; gap: 0.7rem; min-height: 14rem;
  transition: background-color 0.15s;
}
.svc:hover { background: var(--mortar); color: var(--ink); }
.svc-icon { width: 42px; height: 42px; color: var(--brick); }
.svc h3 { font-size: var(--step-2); }
.svc p { color: var(--ink-soft); font-size: 1.04rem; }
.svc-more { margin-top: auto; font-weight: 700; color: var(--brick); text-decoration: underline; text-underline-offset: 0.18em; }
.svc--wide { grid-column: span 2; }
.svc--wide h3 { font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.6rem); }
.svc--cta { background: var(--brick); color: var(--on-dark); }
.svc--cta:hover { background: var(--brick-deep); color: var(--on-dark); }
.svc--cta .svc-icon { color: var(--on-dark); }
.svc--cta p { color: var(--on-brick-soft); }
.svc--cta .svc-more { color: var(--on-dark); }
@media (max-width: 960px) {
  .svc-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc--cta { grid-column: span 2; min-height: 0; }
}
@media (max-width: 620px) {
  .svc-wall { grid-template-columns: minmax(0, 1fr); }
  .svc--wide, .svc--cta { grid-column: auto; }
  .svc { min-height: 0; }
}

/* Steps: a real sequence, so they're numbered */
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.75rem; }
.step { display: grid; gap: 0.55rem; align-content: start; border-top: 3px solid var(--ink); padding-top: 1rem; }
.step-num { font-family: var(--font-display); font-weight: 800; font-size: 3.2rem; line-height: 0.9; color: var(--brick); }
.step h3 { font-size: 1.6rem; }
.step p { color: var(--ink-soft); font-size: 1.04rem; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .steps { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
  .step { grid-template-columns: 3rem minmax(0, 1fr); column-gap: 1rem; }
  .step-num { grid-row: span 2; }
}

/* Two-column split */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.split > * { min-width: 0; }
.points { display: grid; gap: 1.6rem; }
.point { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 0.25rem 1rem; }
.point::before { content: ""; width: 26px; height: 11px; margin-top: 0.55rem; background: var(--brick); border-radius: 1px; grid-row: span 2; }
.point h3 { font-size: 1.7rem; }
.point p { color: var(--ink-soft); }
.photo { margin: 0; display: grid; gap: 0.6rem; }
.photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); background: var(--mortar); }
.photo figcaption { font-size: 0.9rem; color: var(--ink-soft); }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } }

/* Service area */
.area-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.area-grid > * { min-width: 0; }
.map { margin: 0; background: var(--bluestone); border-radius: var(--radius); overflow: hidden; display: grid; }
.map svg { width: 100%; height: auto; display: block; }
.map figcaption { color: var(--on-dark-soft); font-size: 0.92rem; padding: 0.75rem 1.1rem 1rem; }
.town-groups { display: grid; gap: 1.6rem; }
.town-group h3 { font-size: 1.55rem; }
.town-list { list-style: none; padding: 0; margin-top: 0.6rem; display: flex; flex-wrap: wrap; gap: 0.45rem; }
.town-list li { background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 0.3rem 0.8rem; font-size: 1rem; line-height: 1.35; }
.section--mortar .town-list li { background: var(--paper); }
.town-list a { font-weight: 700; }
@media (max-width: 900px) { .area-grid { grid-template-columns: minmax(0, 1fr); } }

/* FAQ */
.faq { border-top: 1px solid var(--line); max-width: 52rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 1.15rem 3rem 1.15rem 0; font-weight: 700; font-size: 1.18rem; line-height: 1.4;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0.4rem; top: 50%; transform: translateY(-50%);
  font-family: var(--font-display); font-weight: 700; font-size: 2.1rem; line-height: 1; color: var(--brick);
}
.faq details[open] summary::after { content: "\2212"; }
.faq summary:hover { color: var(--brick-deep); }
.faq-a { padding: 0 0 1.35rem; color: var(--ink-soft); max-width: 46rem; }

/* Estimate band + form */
.estimate { background: var(--bluestone); color: var(--on-dark); }
.estimate-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.estimate-grid > * { min-width: 0; }
.estimate .lede { color: var(--on-dark-soft); }
.contact-lines { list-style: none; padding: 0; display: grid; gap: 1.1rem; margin-top: 1.75rem; }
.contact-lines li { display: grid; gap: 0.1rem; }
.contact-lines .label { font-size: 0.95rem; color: var(--on-dark-soft); }
.big-phone { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.5rem, 1.8rem + 3vw, 3.8rem); line-height: 1; color: var(--on-dark); text-decoration: none; letter-spacing: 0.01em; }
.big-phone:hover { color: var(--buff); }
.contact-lines a { color: var(--on-dark); font-weight: 700; overflow-wrap: anywhere; }
.contact-lines a:hover { color: var(--buff); }
.form { display: grid; gap: 1rem; background: var(--bluestone-raised); padding: clamp(1.25rem, 3vw, 2rem); border-radius: var(--radius); }
.form h3 { font-size: var(--step-2); }
.field { display: grid; gap: 0.35rem; min-width: 0; }
.field label { font-weight: 700; font-size: 1rem; }
.field .opt { font-weight: 400; color: var(--on-dark-soft); }
.field input, .field select, .field textarea {
  width: 100%; font: 1.06rem var(--font-body); color: var(--ink);
  background: var(--paper); border: 2px solid var(--paper); border-radius: var(--radius);
  padding: 0.75rem 0.85rem; min-height: 52px;
}
.field textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--buff); outline-offset: 1px; }
.field [aria-invalid="true"] { border-color: var(--buff); }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; }
.form-note { font-size: 0.95rem; color: var(--on-dark-soft); }
.form-status { font-weight: 700; font-size: 1.02rem; }
.form-status:empty { display: none; }
.form-status[data-state="ok"] { color: var(--on-dark); background: #2F5D45; padding: 0.85rem 1rem; border-radius: var(--radius); }
.form-status[data-state="error"] { color: var(--ink); background: var(--buff); padding: 0.85rem 1rem; border-radius: var(--radius); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 860px) { .estimate-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .field-row { grid-template-columns: minmax(0, 1fr); } }

/* Inner pages */
.page-hero { background: var(--bluestone); color: var(--on-dark); }
.page-hero-inner { padding-block: clamp(2.25rem, 5.5vw, 4.25rem); display: grid; gap: 1.2rem; }
.page-hero h1 { font-size: clamp(2.7rem, 1.6rem + 4.4vw, 4.9rem); line-height: 0.92; max-width: 18ch; }
.page-hero .lede { color: var(--on-dark-soft); max-width: 44rem; }
.crumbs { font-size: 0.95rem; color: var(--on-dark-soft); }
.crumbs ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.35rem; }
.crumbs li + li::before { content: "/"; margin-right: 0.35rem; color: var(--on-dark-soft); }
.crumbs a { color: var(--on-dark-soft); }
.crumbs a:hover { color: var(--on-dark); }

.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 21rem; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.article-grid > * { min-width: 0; }
.prose { display: grid; gap: clamp(2.5rem, 5vw, 3.5rem); }
.prose > section { display: grid; gap: 1.1rem; }
.prose h2 { font-size: clamp(2rem, 1.5rem + 2vw, 2.7rem); }
.prose p { max-width: 42rem; }
.signs { list-style: none; padding: 0; display: grid; gap: 0.75rem; }
.signs li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 0.85rem; align-items: start; }
.signs li::before { content: ""; width: 24px; height: 10px; margin-top: 0.62em; background: var(--brick); border-radius: 1px; }
.does { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem 1.5rem; }
.does li { padding: 0.75rem 0; border-bottom: 1px solid var(--line); font-weight: 700; }
@media (max-width: 560px) { .does { grid-template-columns: minmax(0, 1fr); } }
.proc { list-style: none; padding: 0; display: grid; gap: 1.25rem; counter-reset: proc; }
.proc li { counter-increment: proc; display: grid; grid-template-columns: 2.8rem minmax(0, 1fr); gap: 0.1rem 1rem; }
.proc li::before { content: counter(proc); grid-row: span 2; font-family: var(--font-display); font-weight: 800; font-size: 2.4rem; line-height: 0.95; color: var(--brick); }
.proc strong { font-size: 1.15rem; }
.proc span { color: var(--ink-soft); }
.note { border-left: 4px solid var(--brick); padding: 0.4rem 0 0.4rem 1rem; color: var(--ink-soft); max-width: 42rem; }

.diagram { margin: 0; background: var(--mortar); border-radius: var(--radius); padding: clamp(1rem, 3vw, 1.75rem); display: grid; gap: 1rem; }
.diagram > svg { width: 100%; height: auto; display: block; }
.diagram figcaption { font-size: 0.98rem; color: var(--ink-soft); max-width: 44rem; }
.diagram-scroll { overflow-x: auto; }
.diagram-scroll svg { min-width: 520px; width: 100%; height: auto; display: block; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); gap: 1rem; }
.tile { display: grid; gap: 0.45rem; align-content: start; }
.tile svg { width: 100%; height: auto; display: block; background: var(--paper); border-radius: var(--radius); }
.tile strong { font-size: 1.05rem; }
.tile span { font-size: 0.95rem; color: var(--ink-soft); line-height: 1.45; }
@media (min-width: 761px) {
  .tiles--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .tiles--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .tiles { grid-template-columns: minmax(0, 1fr); gap: 1.1rem; }
  .tile { grid-template-columns: 7.5rem minmax(0, 1fr); column-gap: 1rem; align-items: start; }
  .tile svg { grid-row: span 2; }
}

.aside { position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--header-h) + 20px); display: grid; gap: 1.25rem; }
.aside-card { background: var(--bluestone); color: var(--on-dark); padding: 1.6rem; border-radius: var(--radius); display: grid; gap: 1rem; }
.aside-card h2 { font-size: 2rem; }
.aside-card p { color: var(--on-dark-soft); font-size: 1.02rem; }
.aside-card .big-phone { font-size: 2.35rem; }
.aside-card .btn { width: 100%; }
.aside-links { background: var(--mortar); padding: 1.35rem 1.5rem; border-radius: var(--radius); display: grid; gap: 0.6rem; }
.aside-links h2 { font-size: 1.5rem; }
.aside-links ul { list-style: none; padding: 0; display: grid; gap: 0.15rem; }
.aside-links a { display: block; padding: 0.4rem 0; font-weight: 700; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--joint); }
.aside-links a:hover { color: var(--brick); }
.aside-links a[aria-current="page"] { color: var(--brick); }
@media (max-width: 960px) {
  .article-grid { grid-template-columns: minmax(0, 1fr); }
  .aside { display: none; }
}

.jobs { list-style: none; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.jobs li { border-bottom: 1px solid var(--line); }
.jobs a { display: grid; grid-template-columns: minmax(0, 14rem) minmax(0, 1fr); gap: 0.3rem 1.5rem; padding: 1rem 0; text-decoration: none; color: var(--ink); }
.jobs a:hover strong { color: var(--brick); }
.jobs strong { font-family: var(--font-display); font-size: 1.6rem; line-height: 1.05; }
.jobs span { color: var(--ink-soft); }
@media (max-width: 620px) { .jobs a { grid-template-columns: minmax(0, 1fr); } }

.empty { border: 2px dashed var(--line); border-radius: var(--radius); padding: clamp(1.75rem, 5vw, 3.25rem); display: grid; gap: 1rem; justify-items: start; background: var(--paper); }
.empty h2 { font-size: var(--step-3); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 1.25rem; }
.gallery figure { margin: 0; display: grid; gap: 0.5rem; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.gallery figcaption strong { display: block; }

/* Footer */
.site-footer { background: var(--bluestone-deep); color: var(--on-dark-soft); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 2rem; padding-block: 3.5rem 2.5rem; }
.footer-grid > * { min-width: 0; }
.footer-h { font-family: var(--font-display); font-weight: 700; font-size: 1.45rem; color: var(--on-dark); margin-bottom: 0.75rem; }
.site-footer ul { list-style: none; padding: 0; display: grid; gap: 0.35rem; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: var(--buff); text-decoration: underline; }
.footer-brand { display: grid; gap: 0.9rem; }
.footer-brand .brand-name { color: var(--on-dark); font-size: 2rem; }
.footer-phone { font-family: var(--font-display); font-weight: 800; font-size: 2.2rem; line-height: 1; }
.legal { border-top: 1px solid var(--bluestone-raised); padding-block: 1.25rem; font-size: 0.95rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .footer-brand { grid-column: span 2; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } .footer-brand { grid-column: auto; } }

/* Phone action bar */
.action-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: none; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px;
  background: var(--bluestone-deep); border-top: 1px solid var(--bluestone-raised);
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom, 0px));
}
.action-bar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: 56px; border-radius: var(--radius);
  background: var(--bluestone-raised); color: var(--on-dark);
  font-weight: 700; font-size: 0.95rem; text-decoration: none; line-height: 1.15;
}
.action-bar a:first-child { background: var(--brick); }
.action-bar svg { width: 22px; height: 22px; }
@media (max-width: 760px) {
  .action-bar { display: grid; }
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
}

/* Guides */
.guide-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.guide-card {
  display: grid; gap: 0.6rem; align-content: start;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.3rem, 2.6vw, 1.9rem); color: var(--ink); text-decoration: none;
  transition: border-color 0.15s, background-color 0.15s;
}
.section--mortar .guide-card { background: var(--paper); }
.guide-card:hover { border-color: var(--brick); color: var(--ink); }
.guide-card h3 { font-size: var(--step-2); }
.guide-card p { color: var(--ink-soft); font-size: 1.04rem; }
.guide-card .svc-more { margin-top: 0.4rem; }
.guide-meta { font-size: 0.92rem; color: var(--ink-soft); }
@media (max-width: 760px) { .guide-cards { grid-template-columns: minmax(0, 1fr); } }
.guide-link {
  display: grid; gap: 0.35rem; text-decoration: none; color: var(--ink);
  background: var(--mortar); border-radius: var(--radius); padding: 1.35rem 1.5rem;
  border-left: 5px solid var(--brick);
}
.guide-link:hover { background: var(--joint); color: var(--ink); }
.guide-link-label { font-size: 0.92rem; font-weight: 700; color: var(--brick); }
.guide-link strong { font-family: var(--font-display); font-size: 1.75rem; line-height: 1.05; }
.guide-link span:last-child { color: var(--ink-soft); }
.hero-meta { color: var(--on-dark-soft); font-size: 0.98rem; }
.prose--article p, .prose--article li { font-size: 1.15rem; }
.more-guides { list-style: none; padding: 0; display: grid; gap: 0.5rem; }
.more-guides a { font-weight: 700; }
.tips { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.tips li { background: var(--mortar); border-radius: var(--radius); padding: 1.1rem 1.25rem; display: grid; gap: 0.3rem; }
.tips strong { font-family: var(--font-display); font-size: 1.5rem; line-height: 1.05; }
.tips span { color: var(--ink-soft); }
@media (max-width: 520px) { .tips { grid-template-columns: minmax(0, 1fr); } }

/* Reading progress: a course of brick that fills as you read */
.read-bar { position: absolute; left: 0; right: 0; bottom: -7px; height: 7px; pointer-events: none; }
.read-bar-fill {
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='7' viewBox='0 0 30 7'%3E%3Crect width='30' height='7' fill='%23C9C3B7'/%3E%3Crect x='0' y='1' width='13' height='5' fill='%239B3422'/%3E%3Crect x='15' y='1' width='13' height='5' fill='%23A6452E'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  clip-path: inset(0 100% 0 0);
}

/* Before / after slider for real job photos */
.ba { position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 3; background: var(--mortar); }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 0; aspect-ratio: auto; }
.ba-after { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos)); }
.ba::after { content: ""; position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: var(--paper); box-shadow: 0 0 0 1px rgba(30, 38, 43, 0.25); pointer-events: none; }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.ba-range:focus-visible + .ba-tag, .ba:focus-within { outline: 3px solid var(--brick); outline-offset: 3px; }
.ba-tag { position: absolute; top: 0.6rem; padding: 0.2rem 0.55rem; border-radius: var(--radius); background: rgba(28, 38, 44, 0.8); color: var(--on-dark); font-size: 0.85rem; font-weight: 700; pointer-events: none; }
.ba-tag--before { left: 0.6rem; }
.ba-tag--after { right: 0.6rem; }

/* Motion: courses get laid, bricks drop into place */
@keyframes lay-course { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes brick-drop {
  0% { opacity: 0; transform: translateY(-22px); }
  70% { opacity: 1; transform: translateY(2px); }
  100% { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .brick-band--lay { animation: lay-course 1.15s steps(22, end) 0.15s both; }
  .brick-band.pre-lay { clip-path: inset(0 100% 0 0); }
  .brick-band.pre-lay.laid { animation: lay-course 1.15s steps(22, end) both; }
  .will-lay { opacity: 0; transform: translateY(-22px); }
  .will-lay.laid { animation: brick-drop 0.55s cubic-bezier(0.25, 0.8, 0.35, 1) var(--d, 0ms) both; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

.steps--stack { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
.steps--stack .step { grid-template-columns: 3rem minmax(0, 1fr); column-gap: 1rem; }
.steps--stack .step-num { grid-row: span 2; }

/* Real job photos */
.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.work-tile { position: relative; display: block; border-radius: var(--radius); overflow: hidden; background: var(--mortar); color: var(--on-dark); text-decoration: none; aspect-ratio: 4 / 3; }
.work-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.work-tile:hover img { transform: scale(1.04); }
.work-tile span {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 2.2rem 0.9rem 0.75rem;
  background: linear-gradient(to top, rgba(28, 38, 44, 0.88), rgba(28, 38, 44, 0));
  font-family: var(--font-display); font-weight: 700; font-size: 1.45rem; line-height: 1.05; color: var(--on-dark);
}
@media (max-width: 760px) { .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; } .work-tile span { font-size: 1.15rem; padding: 1.6rem 0.6rem 0.5rem; } }
.proj-groups { display: grid; gap: clamp(2.5rem, 6vw, 4rem); }
.proj-group { display: grid; gap: 1.25rem; }
.proj-group h2 { font-size: clamp(2rem, 1.5rem + 2vw, 2.8rem); }
.gallery--real img { aspect-ratio: 4 / 3; }
.gallery figcaption { font-size: 1rem; color: var(--ink-soft); }
.gallery figcaption strong { color: var(--ink); font-size: 1.05rem; }
.gallery picture, .work-tile picture { display: block; }
.work-tile picture { height: 100%; }
.gallery--real img { width: 100%; height: auto; object-fit: cover; object-position: 50% 30%; display: block; }
.work-tile img { object-position: 50% 30%; }
.gallery figure { align-content: start; }
