/* ==========================================================================
   Harbor Stone Construction — shared stylesheet
   Design system: "Planed" — fresh-cut cedar and pine as pace and weight.
   Rules of the house: no shadows (hairline rules + tone steps instead),
   square-cornered photographs, numbered ledger tags, one accent.
   ========================================================================== */

/* ---------- 0. Metric-matched fallbacks (fonts load without blocking first paint) ---------- */
@font-face { font-family: "Inter Fallback"; src: local("Arial"); size-adjust: 107.6%; ascent-override: 90.2%; descent-override: 22.5%; line-gap-override: 0%; }
@font-face { font-family: "Fraunces Fallback"; src: local("Georgia"); size-adjust: 101%; ascent-override: 92%; descent-override: 24%; line-gap-override: 0%; }

/* ---------- 1. Tokens ---------- */
:root {
  /* Palette (owner-locked): charcoal / warm off-white / one rust accent */
  --ink: #1a1a1a;
  --paper: #faf8f5;
  --plank: #f0ebe3;          /* one tone step down from paper */
  --muted: #5a554d;          /* 6.8:1 on paper */
  --rule: rgba(26, 26, 26, 0.18);
  --rust: #a8421f;           /* 5.7:1 on paper; button fill with paper text */
  --rust-hover: #8c3517;
  --rust-text: #a8421f;      /* accent used as text on paper/plank */
  --rust-on-dark: #e58a62;   /* accent used as text on charcoal (6.7:1) */
  --charcoal: #1a1a1a;       /* fixed dark surface (hero) */
  --band: #1a1a1a;           /* CTA band */
  --footer-bg: #121212;
  --on-charcoal: #faf8f5;
  --on-charcoal-muted: #c9c3b9;
  --focus: #a8421f;

  /* Type */
  --font-display: "Fraunces", "Fraunces Fallback", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Inter", "Inter Fallback", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Spacing scale — 8px base */
  --s1: 0.5rem;   /* 8  */
  --s2: 1rem;     /* 16 */
  --s3: 1.5rem;   /* 24 */
  --s4: 2rem;     /* 32 */
  --s5: 3rem;     /* 48 */
  --s6: 4rem;     /* 64 */
  --s8: 6rem;     /* 96 */
  --s10: 8rem;    /* 128 */
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --max: 1200px;
  --measure: 66ch;
  --ease: cubic-bezier(0.5, 1, 0.89, 1); /* the level bubble settling (same curve as GSAP power2.out) */
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f1ede6;
    --paper: #151412;
    --plank: #24211d;
    --muted: #b9b3a8;
    --rule: rgba(250, 248, 245, 0.2);
    --rust-text: #e58a62;
    --focus: #e58a62;
    --band: #2d2823;         /* tone steps stay distinct in dark: paper < plank < band; footer sits below paper */
    --footer-bg: #0b0a09;
  }
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;       /* 17px */
  line-height: 1.7;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, picture, svg { display: block; max-width: 100%; }
img { height: auto; border-radius: 0; }
.hero__media picture, .plate__img picture, .feature__img picture, .service__img picture, .portrait picture { width: 100%; height: 100%; }
a { color: inherit; }
p { margin: 0 0 var(--s2); max-width: var(--measure); }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 400; font-variation-settings: "SOFT" 50; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(3.25rem, 10vw, 8.5rem); line-height: 0.96; letter-spacing: -0.035em; }
h2 { font-size: clamp(2.125rem, 5vw, 3.75rem); line-height: 1.04; }
h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.12; font-weight: 500; }
h4 { font-size: 1.25rem; font-weight: 500; line-height: 1.25; }
strong { font-weight: 600; }
::selection { background: var(--rust); color: var(--paper); }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.on-dark :focus-visible, .site-footer :focus-visible, .cta-band :focus-visible, .hero :focus-visible { outline-color: var(--rust-on-dark); }

.skip-link {
  position: absolute; left: var(--s2); top: -4rem; z-index: 200;
  background: var(--ink); color: var(--paper); padding: var(--s1) var(--s2);
  text-decoration: none; font-weight: 600; transition: top 0.2s var(--ease);
}
.skip-link:focus { top: var(--s2); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- 3. Layout primitives ---------- */
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.section { padding-block: clamp(4.5rem, 9vw, 7rem); }
.section--plank { background: var(--plank); }
.section--tight { padding-block: clamp(3rem, 6vw, 4.5rem); }
.on-dark { background: var(--charcoal); color: var(--on-charcoal); }

/* Numbered ledger tag: "01 — Kitchens" */
.tag {
  display: flex; align-items: baseline; gap: var(--s2);
  margin: 0 0 var(--s3);
  font-family: var(--font-body); font-size: 0.8125rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--rust-text); font-variant-numeric: tabular-nums;
}
.tag::after { content: ""; flex: 1; height: 1px; background: var(--rule); transform: translateY(-0.2em); }
.on-dark .tag, .cta-band .tag { color: var(--rust-on-dark); }
.on-dark .tag::after, .cta-band .tag::after { background: rgba(250, 248, 245, 0.25); }

.lede { font-size: clamp(1.125rem, 1.6vw, 1.3125rem); line-height: 1.6; color: var(--muted); max-width: 58ch; }
.on-dark .lede { color: var(--on-charcoal-muted); }

.split { display: grid; gap: var(--s5); }
@media (min-width: 900px) {
  .split { grid-template-columns: repeat(12, 1fr); column-gap: var(--s4); align-items: start; }
  .split > :first-child { grid-column: 1 / span 7; }
  .split > :last-child { grid-column: 9 / span 4; }
  .split--flip > :first-child { grid-column: 6 / span 7; grid-row: 1; }
  .split--flip > :last-child { grid-column: 1 / span 4; grid-row: 1; }
  .split--wide > :first-child { grid-column: 1 / span 8; }
  .split--wide > :last-child { grid-column: 10 / span 3; }
}

/* ---------- 4. Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3.25rem; padding: 0.75rem 1.75rem;
  background: var(--rust); color: #faf8f5;
  border: 2px solid var(--rust); border-radius: 0;
  font: 600 1rem/1.2 var(--font-body); letter-spacing: 0.01em;
  text-decoration: none; cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn:hover { background: var(--rust-hover); border-color: var(--rust-hover); }
.btn--ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn--ghost:hover { background: var(--on-charcoal); color: var(--ink); border-color: var(--on-charcoal); }
.btn--dark-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--dark-ghost:hover { background: var(--ink); color: var(--paper); }
.btn--sm { min-height: 2.75rem; padding: 0.5rem 1.25rem; font-size: 0.9375rem; }
.btn[disabled] { opacity: 0.6; cursor: progress; }

.link {
  font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px;
  text-underline-offset: 0.3em; text-decoration-color: var(--rust-text);
  transition: text-decoration-color 0.2s var(--ease);
}
.link:hover { text-decoration-color: currentColor; }
.on-dark .link { text-decoration-color: var(--rust-on-dark); }

/* ---------- 5. Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  color: var(--on-charcoal);
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}
.site-header.is-solid { background: var(--paper); color: var(--ink); border-bottom: 1px solid var(--rule); }
.site-header--solid-always { background: var(--paper); color: var(--ink); border-bottom: 1px solid var(--rule); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); min-height: 4.5rem; }
.brand { margin-right: auto; display: inline-flex; flex-direction: column; text-decoration: none; line-height: 1; }
.brand__name { white-space: nowrap; font-family: var(--font-display); font-variation-settings: "SOFT" 50; font-size: 1.5rem; font-weight: 500; letter-spacing: -0.02em; }
.brand__sub { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; margin-top: 0.3rem; opacity: 0.85; }

.nav { display: none; }
.nav-toggle {
  display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 1rem;
  background: transparent; color: inherit; border: 2px solid currentColor; border-radius: 0;
  font: 600 0.9375rem/1 var(--font-body); cursor: pointer;
}
.header-phone { font-weight: 600; text-decoration: none; font-variant-numeric: tabular-nums; white-space: nowrap; font-size: 0.9375rem; }
.header-cta { display: none; }
@media (max-width: 420px) { .brand__sub { display: none; } .brand__name { font-size: 1.3125rem; } .header-phone { font-size: 0.875rem; } .nav-toggle { padding: 0 0.75rem; } .site-header .wrap { gap: 0.75rem; } }
@media (max-width: 359px) { .header-phone { display: none; } }

.site-header.nav-open { background: var(--paper); color: var(--ink); }
.site-header.nav-open .nav {
  display: block; position: absolute; inset: 100% 0 auto 0; background: var(--paper);
  border-bottom: 1px solid var(--rule); padding: var(--s2) var(--gutter) var(--s4);
}
.nav ul { display: grid; }
.nav a { display: block; padding: 0.9rem 0; font-family: var(--font-display); font-size: 1.75rem; text-decoration: none; border-bottom: 1px solid var(--rule); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--rust-text); }

@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .nav { display: block; }
  .nav ul { display: flex; gap: var(--s4); }
  .nav a { padding: 0.25rem 0; border: 0; font-family: var(--font-body); font-size: 0.9375rem; font-weight: 500; color: inherit; position: relative; }
  .nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease); }
  .nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
  .nav a[aria-current="page"] { color: inherit; }
  .header-phone { margin-left: var(--s4); }
  .header-cta { display: inline-flex; }
}

/* Persistent mobile call/quote bar */
.mobile-bar { position: fixed; inset: auto 0 0 0; z-index: 90; display: grid; grid-template-columns: 1fr 1fr; background: var(--paper); border-top: 1px solid var(--rule); }
.mobile-bar a { display: flex; align-items: center; justify-content: center; min-height: 3.5rem; font-weight: 600; text-decoration: none; }
.mobile-bar a:first-child { color: var(--ink); border-right: 1px solid var(--rule); }
.mobile-bar a:last-child { background: var(--rust); color: #faf8f5; }
@media (min-width: 960px) { .mobile-bar { display: none; } }
@media (max-width: 959px) { body { padding-bottom: 3.5rem; } }

/* ---------- 6. Hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; align-items: end; overflow: hidden; background: var(--charcoal); color: var(--on-charcoal); isolation: isolate; }
.hero__media { position: absolute; inset: -8% 0 -8% 0; z-index: -2; will-change: transform; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 35%; filter: sepia(0.12) saturate(1.08) contrast(1.04) brightness(1.14); }
.hero__scrim { position: absolute; inset: 0; z-index: -1; background: linear-gradient(to bottom, rgba(34,22,13,0.62) 0%, rgba(34,22,13,0) 24%), linear-gradient(to top, rgba(30,19,11,0.88) 0%, rgba(30,19,11,0.46) 48%, rgba(30,19,11,0.04) 100%); }
.hero__inner { padding-block: calc(4.5rem + var(--s6)) var(--s6); }
.hero h1 { max-width: 9.5ch; text-wrap: wrap; }
.hero__sub { max-width: 46ch; margin-top: var(--s4); font-size: clamp(1.125rem, 1.8vw, 1.375rem); line-height: 1.55; color: var(--on-charcoal); }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s4); }
.hero__meta { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s4); margin-top: var(--s6); padding-top: var(--s2); border-top: 1px solid rgba(250, 248, 245, 0.35); font-size: 0.875rem; color: var(--on-charcoal-muted); font-variant-numeric: tabular-nums; }
.hero__meta span strong { color: var(--on-charcoal); font-weight: 600; }

/* Page-header for inner pages */
.page-head { padding-top: calc(4.5rem + var(--s8)); padding-bottom: var(--s6); }
.page-head h1 { font-size: clamp(2.75rem, 8vw, 6.5rem); max-width: 14ch; }
.page-head .lede { margin-top: var(--s4); }

/* ---------- 7. Ledger (stats, process, included lists) ---------- */
.ledger { border-top: 2px solid var(--ink); }
.ledger__row { display: grid; grid-template-columns: 1fr; gap: 0.25rem var(--s3); align-items: baseline; padding-block: var(--s3); border-bottom: 1px solid var(--rule); }
.ledger__fig { font-family: var(--font-display); font-variation-settings: "SOFT" 50; font-size: clamp(3rem, 8vw, 5.5rem); line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums lining-nums; }
.ledger__label { font-weight: 600; }
.ledger__note { color: var(--muted); font-size: 0.9375rem; max-width: 44ch; margin: 0; }
@media (min-width: 760px) {
  .ledger--stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--ink); }
  .ledger--stats .ledger__row { display: block; padding: var(--s4) var(--s3) var(--s4) 0; border-bottom: 0; border-right: 1px solid var(--rule); margin-right: var(--s3); }
  .ledger--stats .ledger__row:last-child { border-right: 0; margin-right: 0; }
  .ledger--stats .ledger__fig { display: block; font-size: clamp(2.75rem, 5vw, 4.25rem); }
}

.steps { counter-reset: step; border-top: 2px solid var(--ink); }
.steps li { display: grid; gap: var(--s1) var(--s4); padding-block: var(--s4); border-bottom: 1px solid var(--rule); }
.steps__n { font-family: var(--font-display); font-variation-settings: "SOFT" 50; font-size: 1.125rem; color: var(--rust-text); font-variant-numeric: tabular-nums; }
.steps h3 { margin-bottom: var(--s1); }
.steps p { margin: 0; color: var(--muted); }
@media (min-width: 800px) { .steps li { grid-template-columns: 5rem 1fr 1.4fr; align-items: baseline; } .steps h3 { margin: 0; } }

.included { border-top: 2px solid var(--ink); }
.included li { display: grid; grid-template-columns: 2.5rem 1fr; gap: var(--s1); padding-block: 0.85rem; border-bottom: 1px solid var(--rule); font-size: 1rem; line-height: 1.5; }
.included li span:first-child { font-variant-numeric: tabular-nums; color: var(--rust-text); font-weight: 600; font-size: 0.875rem; padding-top: 0.15rem; }

/* ---------- 8. Plates (service cards, project figures) ---------- */
.plate { margin: 0; }
.plate a { text-decoration: none; display: block; }
.plate__img { overflow: hidden; background: var(--plank); }
.plate__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.plate a:hover .plate__img img { transform: scale(1.025); }
.plate figcaption, .plate__body { padding-top: var(--s2); }
.plate__no { display: block; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--rust-text); margin-bottom: 0.35rem; font-variant-numeric: tabular-nums; }
.plate__title { font-family: var(--font-display); font-variation-settings: "SOFT" 50; font-size: 1.75rem; font-weight: 500; line-height: 1.1; letter-spacing: -0.02em; }
.plate__cap { margin: 0.4rem 0 0; color: var(--muted); font-size: 0.9375rem; line-height: 1.55; }
.plate a:hover .plate__title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.2em; text-decoration-color: var(--rust-text); }

.plates { display: grid; gap: var(--s5) var(--s4); }
.plates .plate__img { aspect-ratio: 4 / 3; }
@media (min-width: 640px) { .plates { grid-template-columns: repeat(2, 1fr); } .plates .plate__img { aspect-ratio: 4 / 5; } }
@media (min-width: 1000px) {
  .plates { column-gap: var(--s8); row-gap: var(--s6); }
  .plates .plate:nth-child(even) { margin-top: var(--s8); }
  .plates .plate:nth-child(4) { margin-bottom: 0; }
}

/* ---------- 9. Featured project ---------- */
.feature { display: grid; gap: var(--s5); }
.feature__img { aspect-ratio: 3 / 2; overflow: hidden; background: var(--plank); }
.feature__img img { width: 100%; height: 100%; object-fit: cover; }
.spec { border-top: 2px solid var(--ink); margin: var(--s4) 0; }
.spec div { display: grid; grid-template-columns: 7.5rem 1fr; gap: var(--s2); padding-block: 0.7rem; border-bottom: 1px solid var(--rule); font-size: 0.9375rem; }
.spec dt { font-weight: 600; color: var(--muted); }
.spec dd { margin: 0; font-variant-numeric: tabular-nums; }
@media (min-width: 960px) {
  .feature { grid-template-columns: repeat(12, 1fr); column-gap: var(--s4); align-items: start; }
  .feature__img { grid-column: 1 / span 8; aspect-ratio: 4 / 3; }
  .feature__body { grid-column: 9 / span 4; }
}

/* ---------- 10. Neighbor recommendations ---------- */
.recs { position: relative; }
.recs__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(86%, 26rem); gap: var(--s4);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding-bottom: var(--s2); scrollbar-width: thin; scrollbar-color: var(--rust) transparent;
}
.rec { scroll-snap-align: start; border-top: 2px solid var(--ink); padding-top: var(--s3); display: flex; flex-direction: column; }
.rec blockquote { margin: 0; font-family: var(--font-display); font-variation-settings: "SOFT" 50; font-size: 1.375rem; line-height: 1.38; letter-spacing: -0.01em; font-weight: 400; }
.rec__who { margin-top: auto; padding-top: var(--s3); font-size: 0.9375rem; }
.rec__who strong { display: block; }
.rec__who span { color: var(--muted); }
.recs__ctrl { display: flex; align-items: center; gap: var(--s2); margin-top: var(--s4); }
.recs__ctrl button {
  min-width: 3rem; min-height: 3rem; padding: 0 1rem; background: transparent; color: var(--ink);
  border: 2px solid var(--ink); border-radius: 0; font: 600 0.9375rem/1 var(--font-body); cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.recs__ctrl button:hover:not([disabled]) { background: var(--ink); color: var(--paper); }
.recs__ctrl button[disabled] { opacity: 0.35; cursor: default; }
.recs__count { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--muted); font-size: 0.9375rem; }
@media (min-width: 900px) { .recs__track { grid-auto-columns: calc((100% - 2 * var(--s4)) / 3); } }

/* ---------- 11. CTA band & footer ---------- */
.cta-band { background: var(--band); color: var(--on-charcoal); padding-block: clamp(var(--s8), 12vw, var(--s10)); }
.cta-band h2 { max-width: 15ch; font-size: clamp(2.5rem, 7vw, 5.5rem); }
.cta-band p { color: var(--on-charcoal-muted); margin-top: var(--s3); }
.cta-band__row { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); align-items: center; margin-top: var(--s4); }
.cta-band__tel { font-family: var(--font-display); font-variation-settings: "SOFT" 50; font-size: clamp(1.75rem, 4vw, 2.5rem); text-decoration: none; font-variant-numeric: lining-nums tabular-nums; border-bottom: 2px solid var(--rust-on-dark); }

.site-footer { background: var(--footer-bg); color: var(--on-charcoal); padding-block: var(--s8) var(--s5); font-size: 0.9375rem; }
.site-footer a { text-decoration-color: rgba(250, 248, 245, 0.4); text-underline-offset: 0.25em; }
.site-footer a:hover { text-decoration-color: var(--rust-on-dark); }
.footer-grid { display: grid; gap: var(--s5); }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-footer h2 { font-family: var(--font-display); font-variation-settings: "SOFT" 50; font-size: 1.25rem; font-weight: 500; color: var(--on-charcoal); margin-bottom: var(--s2); }
.site-footer address { font-style: normal; line-height: 1.7; }
.site-footer p { color: var(--on-charcoal-muted); max-width: 34ch; }
.hours { display: grid; grid-template-columns: auto 1fr; gap: 0.35rem var(--s2); margin: 0; font-variant-numeric: tabular-nums; }
.hours dt { color: var(--on-charcoal-muted); }
.hours dd { margin: 0; }
.footer-list li + li { margin-top: 0.4rem; }
.footer-base { margin-top: var(--s6); padding-top: var(--s3); border-top: 1px solid rgba(250,248,245,0.2); display: flex; flex-wrap: wrap; gap: var(--s1) var(--s4); color: var(--on-charcoal-muted); font-size: 0.8125rem; }
.footer-base p { margin: 0; max-width: none; }

/* ---------- 12. Founder / about bits ---------- */
.portrait { aspect-ratio: 4 / 5; overflow: hidden; background: var(--plank); }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; }
.dropcap::first-letter { font-family: var(--font-display); font-variation-settings: "SOFT" 50; float: left; font-size: 5.25rem; line-height: 0.82; padding: 0.4rem 0.7rem 0 0; color: var(--rust-text); font-weight: 500; }
.values { display: grid; border-top: 2px solid var(--ink); }
.values li { padding-block: var(--s4); border-bottom: 1px solid var(--rule); display: grid; gap: var(--s1) var(--s4); }
.values h3 { margin: 0; }
.values p { margin: 0; color: var(--muted); }
@media (min-width: 800px) { .values li { grid-template-columns: 5rem 1fr 1.6fr; align-items: baseline; } }
.roster { border-top: 2px solid var(--ink); }
.roster li { display: grid; gap: 0.15rem var(--s3); padding-block: var(--s2); border-bottom: 1px solid var(--rule); }
.roster strong { font-family: var(--font-display); font-variation-settings: "SOFT" 50; font-weight: 500; font-size: 1.375rem; }
.roster span { color: var(--muted); font-size: 0.9375rem; }
@media (min-width: 700px) { .roster li { grid-template-columns: 1.1fr 1.3fr 3fr; align-items: baseline; } }
.credentials { display: grid; gap: var(--s4); }
@media (min-width: 800px) { .credentials { grid-template-columns: repeat(3, 1fr); } }
.credentials > div { border-top: 2px solid var(--ink); padding-top: var(--s2); }
.credentials h3 { font-size: 1.375rem; margin-bottom: var(--s1); }
.credentials p { color: var(--muted); font-size: 0.9375rem; margin: 0; }
.stamp { display: inline-block; border: 2px solid var(--rust-text); color: var(--rust-text); padding: 0.2rem 0.6rem; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: var(--s2); }

/* ---------- 13. Services page ---------- */
.service { display: grid; gap: var(--s5); padding-block: clamp(var(--s6), 9vw, var(--s8)); border-top: 1px solid var(--rule); }
.service__img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--plank); }
.service__img img { width: 100%; height: 100%; object-fit: cover; }
.service h2 { margin-bottom: var(--s3); }
@media (min-width: 960px) {
  .service { grid-template-columns: repeat(12, 1fr); column-gap: var(--s4); align-items: start; }
  .service__media { grid-column: 1 / span 6; position: sticky; top: 6rem; }
  .service__body { grid-column: 8 / span 5; }
  .service:nth-of-type(even) .service__media { grid-column: 7 / span 6; grid-row: 1; }
  .service:nth-of-type(even) .service__body { grid-column: 1 / span 5; grid-row: 1; }
}

/* ---------- 14. Gallery ---------- */
.filter { display: flex; flex-wrap: wrap; gap: var(--s1); margin-bottom: var(--s5); }
.filter input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.filter label {
  display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 1.1rem;
  border: 2px solid var(--ink); font-weight: 600; font-size: 0.9375rem; cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.filter label:hover { background: var(--plank); }
.filter input:checked + label { background: var(--ink); color: var(--paper); }
.filter input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 3px; }
.grid { display: grid; gap: var(--s4) var(--s3); grid-template-columns: 1fr; }
@media (min-width: 600px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid { grid-template-columns: repeat(3, 1fr); } }
.grid .plate__img { aspect-ratio: 4 / 3; }
.grid { align-items: start; }
.grid .plate.tall .plate__img { aspect-ratio: 4 / 5; }
.gallery:has(#f-kitchens:checked) .plate:not([data-cat~="kitchens"]),
.gallery:has(#f-baths:checked) .plate:not([data-cat~="baths"]),
.gallery:has(#f-outdoors:checked) .plate:not([data-cat~="outdoors"]),
.gallery:has(#f-workshop:checked) .plate:not([data-cat~="workshop"]) { display: none; }
.plate a.plate__open { cursor: zoom-in; }
.plate a.plate__open:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.credits { margin-top: var(--s8); border-top: 2px solid var(--ink); padding-top: var(--s3); }
.credits ul { display: grid; gap: 0.35rem; font-size: 0.875rem; color: var(--muted); }
.credits p { font-size: 0.9375rem; color: var(--muted); }

/* ---------- 15. Contact ---------- */
.contact-grid { display: grid; gap: var(--s6); }
@media (min-width: 960px) { .contact-grid { grid-template-columns: repeat(12, 1fr); column-gap: var(--s4); } .contact-grid > form { grid-column: 1 / span 7; } .contact-grid > aside { grid-column: 9 / span 4; } }
.field { display: grid; gap: 0.4rem; margin-bottom: var(--s3); }
.field-row { display: grid; gap: 0 var(--s3); }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
label, .label { font-weight: 600; font-size: 0.9375rem; }
.req { color: var(--rust-text); }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; min-height: 3.25rem; padding: 0.75rem 0.9rem; background: var(--paper); color: var(--ink);
  border: 2px solid var(--ink); border-radius: 0; font: 400 1rem/1.4 var(--font-body);
}
textarea { min-height: 9rem; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--rust-text); }
.error-msg { color: var(--rust-text); font-size: 0.875rem; font-weight: 600; margin: 0; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: var(--s3); padding: var(--s3); border: 2px solid var(--ink); background: var(--plank); }
.form-status[hidden] { display: none; }
.form-status h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.form-status p { margin: 0; }
.form-status--ok { border-color: var(--ink); }
.form-status--err { border-color: var(--rust-text); }
.map { aspect-ratio: 4 / 3; width: 100%; border: 2px solid var(--ink); background: var(--plank); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.contact-tel { font-family: var(--font-display); font-variation-settings: "SOFT" 50; font-size: clamp(2rem, 5vw, 3rem); text-decoration: none; border-bottom: 2px solid var(--rust-text); font-variant-numeric: lining-nums tabular-nums; }
.hours--light { display: grid; grid-template-columns: auto 1fr; gap: 0.5rem var(--s3); margin: 0; font-variant-numeric: tabular-nums; }
.hours--light dt { font-weight: 600; }
.hours--light dd { margin: 0; color: var(--muted); }

/* ---------- 16. 404 ---------- */
.notfound { min-height: 100svh; display: grid; align-items: center; padding-top: 5rem; }
.notfound__code { font-family: var(--font-display); font-variation-settings: "SOFT" 50; font-size: clamp(7rem, 26vw, 20rem); line-height: 0.85; letter-spacing: -0.05em; color: var(--rust-text); font-variant-numeric: lining-nums; }
.notfound ul { margin-top: var(--s4); display: grid; gap: 0.25rem; border-top: 2px solid var(--ink); max-width: 28rem; }
.notfound li a { display: block; padding: 0.8rem 0; border-bottom: 1px solid var(--rule); font-family: var(--font-display); font-size: 1.5rem; text-decoration: none; }
.notfound li a:hover { color: var(--rust-text); }

/* ---------- 17. Shaving-curl divider ---------- */
.curl { width: 100%; max-width: 15rem; height: auto; color: var(--rust-text); }
.curl path { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- 18. Motion (opt-in; content is visible by default) ---------- */
.anim-on [data-reveal], .anim-on [data-stagger] > * { opacity: 0; transform: translate3d(0, 24px, 0); }
.anim-on .hero h1 { visibility: hidden; }
.anim-on .hero h1.is-split { visibility: visible; }
.anim-on .hero__sub, .anim-on .hero__cta, .anim-on .hero__meta { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .anim-on [data-reveal], .anim-on [data-stagger] > * { opacity: 1 !important; transform: none !important; }
  .anim-on .hero h1 { visibility: visible !important; }
  .anim-on .hero__sub, .anim-on .hero__cta, .anim-on .hero__meta { opacity: 1 !important; }
}

/* No-JS: show the nav inline-friendly */
.no-js .nav { display: block; position: static; }
.no-js .nav ul { display: flex; flex-wrap: wrap; gap: var(--s2); }
.no-js .nav a { font-size: 0.9375rem; padding: 0.25rem 0; border: 0; color: inherit; font-family: var(--font-body); }
.no-js .nav-toggle { display: none; }
.no-js .site-header { position: static; background: var(--charcoal); }
.no-js .site-header .wrap { flex-wrap: wrap; padding-block: var(--s2); }

/* ---------- 19. Print ---------- */
@media print { .site-header, .mobile-bar, .cta-band, .hero__scrim { display: none; } .hero { min-height: 0; } body { padding: 0; } }

/* ---------- 20. House photo grade: one warm treatment across every photograph ---------- */
.plate__img img, .feature__img img, .service__img img, .portrait img { filter: sepia(0.16) saturate(1.08) contrast(1.02); }
.plate__img, .feature__img, .service__img, .portrait { position: relative; }
.plate__img::after, .feature__img::after, .service__img::after, .portrait::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: #c9863f; mix-blend-mode: soft-light; opacity: 0.22;
}

/* ---------- 21. Third-party lightbox: keep the no-shadow rule ---------- */
.glightbox-clean .gslide-media, .glightbox-clean .gslide-image, .glightbox-clean .gslide-image img, .gslide-media, .goverlay + * { box-shadow: none !important; }
.glightbox-clean .gslide-description { background: var(--paper); color: var(--ink); }
.glightbox-clean .gdesc-inner { font-family: var(--font-body); }
.glightbox-clean .gslide-title { font-family: var(--font-display); font-variation-settings: "SOFT" 50; }
.glightbox-clean .gslide-desc { color: var(--muted); }
.gbtn { box-shadow: none !important; }

/* ---------- 22. Page heads with a ledger on the right ---------- */
.page-head--split { display: grid; gap: var(--s5); align-items: end; }
.page-head--split h1 { max-width: 12ch; }
@media (min-width: 900px) { .page-head--split { grid-template-columns: repeat(12, 1fr); column-gap: var(--s4); } .page-head--split > :first-child { grid-column: 1 / span 7; } .page-head--split > :last-child { grid-column: 9 / span 4; } }
.head-aside { border-top: 2px solid var(--ink); }
.head-aside li, .head-aside div.row { display: grid; grid-template-columns: 4.5rem 1fr; gap: var(--s2); align-items: baseline; padding-block: 0.8rem; border-bottom: 1px solid var(--rule); font-size: 0.9375rem; }
.head-aside a { text-decoration: none; display: contents; }
.head-aside .n { font-variant-numeric: tabular-nums; color: var(--rust-text); font-weight: 600; font-size: 0.875rem; }
.head-aside strong { display: block; font-family: var(--font-display); font-variation-settings: "SOFT" 50; font-weight: 500; font-size: 1.25rem; line-height: 1.2; }
.head-aside span.sub { color: var(--muted); font-size: 0.875rem; }
.head-aside a:hover strong { text-decoration: underline; text-decoration-color: var(--rust-text); text-decoration-thickness: 2px; text-underline-offset: 0.2em; }

/* Stitched seam: quilting line on plank sections */
.section--plank { border-block: 1px dashed var(--rule); }
.field-row { align-items: start; }

/* ---------- 23. Plan callouts on the featured photo (Sears-catalog numerals) ---------- */
.feature__img { position: relative; }
.callout {
  position: absolute; z-index: 2; transform: translate(-50%, -50%);
  display: grid; place-items: center; width: 2rem; height: 2rem;
  background: var(--paper); color: var(--ink); border: 2px solid var(--ink); border-radius: 0;
  font: 600 0.875rem/1 var(--font-body); font-variant-numeric: tabular-nums;
}
.callout-key { border-top: 2px solid var(--ink); margin: 0 0 var(--s3); }
.callout-key li { display: grid; grid-template-columns: 2.5rem 1fr; align-items: center; gap: var(--s1); padding-block: 0.6rem; border-bottom: 1px solid var(--rule); font-size: 0.9375rem; }
.callout-key li span { display: grid; place-items: center; width: 1.5rem; height: 1.5rem; border: 2px solid var(--ink); font-weight: 600; font-size: 0.75rem; }
.mobile-bar--single { grid-template-columns: 1fr; }
.mobile-bar--single a:first-child { background: var(--rust); color: #faf8f5; border: 0; }

.next-step { margin: var(--s3) 0 0; color: var(--muted); font-size: 0.9375rem; max-width: 52ch; }

.cta-band .curl { color: var(--rust-on-dark); }
.mobile-bar a { white-space: nowrap; }
@media (max-width: 359px) { .mobile-bar a { font-size: 0.875rem; } }
@media (max-width: 700px) { .hero__media img { object-position: 68% 38%; } }

/* ---------- 24. Utilities (replace inline styles) ---------- */
.u-m0 { margin: 0; } .u-fs-lg { font-size: 1.375rem; } .u-mt1 { margin-top: 1rem; } .u-mb6 { margin-bottom: var(--s6); }
.u-mb3 { margin-bottom: var(--s3); } .u-mb4 { margin-bottom: var(--s4); } .u-mw48 { max-width: 48ch; } .u-mt2 { margin-top: var(--s2); }
.u-mt3 { margin-top: var(--s3); } .u-mt4 { margin-top: var(--s4); } .u-muted { color: var(--muted); } .u-mb-xs { margin-bottom: 0.25rem; }
.u-h-inc { font-size: 1.25rem; margin: var(--s4) 0 var(--s2); } .u-addr { font-style: normal; margin-bottom: var(--s4); }

/* ---------- 25. Callout interaction + Now on site ledger ---------- */
.callout { cursor: default; transition: background-color 0.25s var(--ease), color 0.25s var(--ease); }
.callout.is-on { background: var(--rust); color: #faf8f5; border-color: var(--rust); }
.callout-key li { transition: background-color 0.25s var(--ease); }
.callout-key li.is-on { background: var(--paper); }
.callout-key li.is-on span { background: var(--rust); color: #faf8f5; border-color: var(--rust); }
.onsite-sec { padding-top: 0; }
.onsite { border-top: 2px solid var(--ink); }
.onsite li { display: grid; grid-template-columns: 1fr; gap: 0.1rem var(--s3); padding-block: 0.9rem; border-bottom: 1px solid var(--rule); align-items: baseline; font-size: 0.9375rem; }
.onsite__town { font-family: var(--font-display); font-variation-settings: "SOFT" 50; font-size: 1.375rem; font-weight: 500; }
.onsite__crew { color: var(--muted); }
.onsite__wk { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--rust-text); }
@media (min-width: 760px) { .onsite li { grid-template-columns: 1.2fr 2fr 1.2fr 1fr; } .onsite__wk { text-align: right; } }
