/* Beechwood Homes: layout and components. Tokens only (see tokens.css). */

:root {
  --gutter: clamp(20px, 5vw, 64px);
  --maxw: 1200px;
  --header-h: 68px;
  --tapbar-h: 60px;
  --sec: clamp(56px, 7vw, 104px);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-weight: var(--weight-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: var(--weight-display);
  line-height: 1.08;
  letter-spacing: -.005em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); line-height: 1.04; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }
p { margin: 0 0 1em; max-width: 65ch; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--color-accent); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--color-accent-hover); }
strong { font-weight: var(--weight-strong); }
.nowrap, .tel { white-space: nowrap; }
.tel, .num { font-variant-numeric: tabular-nums; }

:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; border-radius: 2px; }
.on-dark :focus-visible, .band-dark :focus-visible, .site-footer :focus-visible, .tapbar :focus-visible { outline-color: var(--color-focus-on-dark); }

.skip-link {
  position: absolute; left: 8px; top: -80px; z-index: 200;
  background: var(--color-surface); color: var(--color-text);
  padding: .6em 1em; border-radius: var(--radius-sm); font-weight: var(--weight-strong);
}
.skip-link:focus { top: 8px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
.sec { padding-block: var(--sec); }
.band-dark { background: var(--color-dark-bg); color: var(--color-dark-text); }
.band-dark a:not(.btn) { color: var(--color-dark-accent); }
.band-dark p, .band-dark li { color: var(--color-dark-text); }
.band-dark .muted, .band-dark .lede { color: var(--color-dark-muted); }
.band-warm { background: var(--color-warm-bg); color: var(--color-warm-text); }
.band-warm a:not(.btn) { color: var(--color-warm-accent); }
.band-surface { background: var(--color-surface); }
.muted { color: var(--color-text-muted); }
.lede { font-size: var(--step-1); line-height: 1.5; color: var(--color-text); max-width: 56ch; }
.eyebrow {
  font-size: var(--step--1); font-weight: var(--weight-heavy);
  letter-spacing: .1em; text-transform: uppercase; color: var(--color-text-muted); margin: 0 0 .9rem;
}
.band-dark .eyebrow { color: var(--color-dark-accent); }
.band-warm .eyebrow { color: var(--color-warm-accent); }
.small { font-size: var(--step--1); line-height: 1.5; }
.source { font-size: var(--step--1); line-height: 1.5; color: var(--color-text-muted); max-width: 70ch; }
.band-warm .source { color: var(--color-warm-text); }
.band-dark .source { color: var(--color-dark-muted); }

/* ---------- Icons ---------- */
.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 48px; padding: .7em 1.4em;
  font: inherit; font-weight: var(--weight-strong); line-height: 1.2; text-decoration: none; text-align: center;
  background: var(--color-accent); color: var(--color-on-accent);
  border: 2px solid var(--color-accent); border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s, transform .2s var(--ease);
}
.btn:hover { background: var(--color-accent-hover); border-color: var(--color-accent-hover); color: var(--color-on-accent); }
.btn-ghost { background: transparent; color: var(--color-text); border-color: var(--color-text); }
.btn-ghost:hover { background: var(--color-text); border-color: var(--color-text); color: var(--color-bg); }
.band-dark .btn-ghost { color: var(--color-dark-text); border-color: var(--color-dark-text); }
.band-dark .btn-ghost:hover { background: var(--color-dark-text); color: var(--color-dark-bg); border-color: var(--color-dark-text); }
.band-dark .btn:not(.btn-ghost) { background: var(--color-dark-accent); border-color: var(--color-dark-accent); color: var(--color-dark-bg); }
.band-dark .btn:not(.btn-ghost):hover { background: var(--color-dark-text); border-color: var(--color-dark-text); color: var(--color-dark-bg); }
.btn-lg { min-height: 56px; padding: .8em 1.8em; font-size: var(--step-1); }
@media (hover: hover) { .btn:hover { transform: translateY(-2px); } }

.link-arrow { display: inline-flex; align-items: center; gap: .45em; font-weight: var(--weight-strong); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.link-arrow .icon { transition: transform .25s var(--ease); }
@media (hover: hover) { .link-arrow:hover .icon { transform: translateX(4px); } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--color-surface); border-bottom: 1px solid var(--color-line);
}
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--color-text); }
.brand:hover { color: var(--color-text); }
.brand-mark { width: 46px; height: 40px; color: var(--color-text); flex: none; }
.brand-words { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-display); font-size: 1.5rem; letter-spacing: .08em; }
.brand-sub { font-size: .66rem; font-weight: var(--weight-strong); letter-spacing: .42em; color: var(--color-accent); margin-top: .35em; padding-left: .08em; }

.nav-list { display: flex; align-items: center; gap: clamp(.9rem, 1.6vw, 1.6rem); }
.nav-list a { color: var(--color-text); text-decoration: none; font-size: .95rem; font-weight: var(--weight-strong); padding: .5em 0; border-bottom: 2px solid transparent; transition: border-color .2s, color .2s; }
.nav-list a:hover { color: var(--color-accent); border-bottom-color: var(--color-accent); }
.nav-list a[aria-current="page"] { border-bottom-color: var(--color-accent); }
.header-cta { display: flex; align-items: center; gap: .9rem; }
.header-cta .btn { min-height: 44px; padding: .55em 1.1em; font-size: .95rem; white-space: nowrap; }
.header-cta .btn .tel { font-weight: var(--weight-body); }
.menu-btn {
  display: none; align-items: center; gap: .5em; min-height: 44px; padding: .4em .9em;
  background: transparent; color: var(--color-text); border: 2px solid var(--color-text); border-radius: var(--radius-sm);
  font: inherit; font-weight: var(--weight-strong); cursor: pointer;
}
.menu-btn[aria-expanded="true"] { background: var(--color-text); color: var(--color-surface); }
.menu-btn .i-close { display: none; }
.menu-btn[aria-expanded="true"] .i-menu { display: none; }
.menu-btn[aria-expanded="true"] .i-close { display: block; }

@media (max-width: 1179px) {
  .menu-btn { display: inline-flex; }
  .header-cta .btn { display: none; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--color-surface); border-bottom: 1px solid var(--color-line); padding: .5rem var(--gutter) 1.5rem; box-shadow: var(--shadow-menu); }
  .site-nav.is-open { display: block; }
  html:not(.js) .site-nav { display: block; position: static; box-shadow: none; }
  html:not(.js) .menu-btn { display: none; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list a { display: block; padding: .95em 0; border-bottom: 1px solid var(--color-line); font-size: 1.05rem; }
  .nav-list a[aria-current="page"] { border-bottom-color: var(--color-line); color: var(--color-accent); }
  .site-nav .nav-call { display: flex; margin-top: 1.1rem; }
}
@media (min-width: 1180px) { .site-nav .nav-call { display: none; } }
@media (max-width: 1279px) { .header-cta .btn .tel { display: none; } }

/* ---------- Tap-to-call bar (mobile) ---------- */
.tapbar { display: none; }
@media (max-width: 640px) {
  body { padding-bottom: calc(var(--tapbar-h) + env(safe-area-inset-bottom)); }
  .tapbar {
    display: flex; position: fixed; inset: auto 0 0 0; z-index: 90;
    height: calc(var(--tapbar-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
    background: var(--color-dark-bg); border-top: 2px solid var(--color-dark-accent);
  }
  .tapbar a { flex: 1; display: flex; align-items: center; justify-content: center; gap: .6em; color: var(--color-dark-text); text-decoration: none; font-weight: var(--weight-strong); font-size: 1.05rem; min-height: 48px; }
  .tapbar a + a { border-left: 1px solid var(--color-dark-line); flex: 0 0 34%; }
  .tapbar .icon { color: var(--color-dark-accent); }
}

/* ---------- Hero (home): 7/5 split, photo bleeds off the right edge ---------- */
.hero { position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); min-height: min(720px, calc(100vh - var(--header-h))); }
.hero-text { position: relative; z-index: 2; padding: clamp(40px, 6vw, 88px) clamp(24px, 4vw, 64px) clamp(40px, 6vw, 88px) max(var(--gutter), calc((100vw - var(--maxw)) / 2)); display: flex; flex-direction: column; justify-content: center; }
.hero-text h1 { font-size: clamp(2.1rem, 1.3rem + 2.9vw, 3.6rem); margin-bottom: .45em; max-width: 18ch; }
@media (min-width: 861px) { .hero-text h1 .price { white-space: nowrap; } }
.hero-text h1 .price { display: inline; color: var(--color-accent); }
.hero-text .lede { margin-bottom: 1.6rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; }
.hero-phone { display: inline-flex; align-items: center; gap: .55em; font-weight: var(--weight-strong); font-size: var(--step-1); color: var(--color-text); text-decoration: none; }
.hero-phone:hover { color: var(--color-accent); }
.hero-tag { margin: 1.8rem 0 0; font-family: var(--font-display); font-size: var(--step-1); color: var(--color-text-muted); }
.hero-photo { position: relative; min-height: 360px; }
.hero-photo picture, .hero-photo img { width: 100%; height: 100%; }
.hero-photo img { object-fit: cover; object-position: 55% 50%; }
.plaque {
  position: absolute; z-index: 3; left: clamp(14px, 2.4vw, 32px); bottom: clamp(14px, 2.4vw, 32px);
  display: flex; align-items: center; gap: .9rem; max-width: calc(100% - 28px);
  padding: .8rem 1.15rem .8rem .95rem; background: color-mix(in srgb, var(--color-dark-bg) 92%, transparent);
  color: var(--color-dark-text); border: 1px solid color-mix(in srgb, var(--color-dark-accent) 55%, transparent);
  outline: 1px solid color-mix(in srgb, var(--color-dark-text) 14%, transparent); outline-offset: 3px;
  box-shadow: 0 10px 30px rgb(0 0 0 / .22);
}
.plaque-mark { width: 34px; height: 29px; flex: none; color: var(--color-dark-text); padding-right: .9rem; box-sizing: content-box; border-right: 1px solid color-mix(in srgb, var(--color-dark-accent) 45%, transparent); }
.plaque-text { display: flex; flex-direction: column; gap: .25rem; }
.plaque-k { font-size: .62rem; font-weight: var(--weight-strong); letter-spacing: .22em; text-transform: uppercase; color: var(--color-dark-accent); }
.plaque-big { font-family: var(--font-display); font-size: 1.2rem; line-height: 1.1; letter-spacing: .01em; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-photo { order: -1; aspect-ratio: 16 / 10; min-height: 0; max-height: 300px; width: 100%; }
  .hero-photo img { object-position: 50% 45%; }
  .hero-text { padding: 28px var(--gutter) 32px; }
  .plaque { left: 12px; bottom: 12px; padding: .55rem .8rem .55rem .7rem; gap: .65rem; }
  .plaque-mark { width: 26px; height: 22px; padding-right: .65rem; }
  .plaque-big { font-size: 1rem; }
  .plaque-k { font-size: .55rem; letter-spacing: .18em; }
}

/* ---------- Trust strip ---------- */
.trust { padding-block: 0; }
.trust-list { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-list li { padding: 28px clamp(14px, 2vw, 28px); border-left: 1px solid var(--color-dark-line); }
.trust-list li:first-child { border-left: 0; padding-left: 0; }
.trust-big { display: block; font-family: var(--font-display); font-size: clamp(1.45rem, 1.1rem + 1.2vw, 2.1rem); line-height: 1.1; color: var(--color-dark-text); margin-bottom: .3rem; }
.trust-small { display: block; font-size: var(--step--1); color: var(--color-dark-muted); line-height: 1.4; }
@media (max-width: 860px) {
  .trust-list { grid-template-columns: 1fr 1fr; }
  .trust-list li { padding: 22px 16px; border-left: 0; border-top: 1px solid var(--color-dark-line); }
  .trust-list li:nth-child(odd) { padding-left: 0; padding-right: 20px; }
  .trust-list li:nth-child(even) { border-left: 1px solid var(--color-dark-line); }
  .trust-list li:nth-child(-n+2) { border-top: 0; }
}

/* ---------- Section heads ---------- */
.sec-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 1rem clamp(24px, 5vw, 80px); align-items: end; margin-bottom: clamp(28px, 4vw, 52px); }
.sec-head h2 { margin: 0; }
.sec-head p { margin: 0; }
@media (max-width: 860px) { .sec-head { grid-template-columns: 1fr; } }

/* ---------- Price range chart ---------- */
.price-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.price-big { font-family: var(--font-display); font-size: var(--step-3); line-height: 1; margin: 0 0 .25em; }
.price-big .to { font-size: .45em; color: var(--color-warm-accent); padding-inline: .2em; }
.price-note { margin: 0 0 1.4rem; }
.range { --min: 350000; --max: 600000; background: var(--color-surface); border-radius: var(--radius-md); padding: clamp(18px, 3vw, 32px); position: relative; }
.range-title { font-size: var(--step--1); font-weight: var(--weight-heavy); letter-spacing: .1em; text-transform: uppercase; color: var(--color-text-muted); margin: 0 0 1.2rem; max-width: none; }
.range-rows { display: grid; gap: 1.1rem; position: relative; }
.range-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: .3rem; }
.range-label { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0 1rem; font-size: .95rem; line-height: 1.3; }
.range-label .v { font-weight: var(--weight-heavy); font-variant-numeric: tabular-nums; white-space: nowrap; }
.track { position: relative; height: 22px; }
.track::before { content: ""; position: absolute; left: 0; right: 0; top: 10px; height: 2px; background: var(--color-line); }
.track .band { position: absolute; top: 3px; bottom: 3px; left: var(--l); width: var(--w); background: var(--color-warm-bg); border-radius: var(--radius-pill); }
.track .dot { position: absolute; top: 3px; left: var(--p); width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: var(--color-dark-bg); border: 3px solid var(--color-surface); box-shadow: 0 0 0 1px var(--color-dark-bg); }
.range-row.is-us .track .band { background: var(--color-accent); height: 12px; top: 5px; }
.range-row.is-us .range-label { color: var(--color-accent); }
.range-axis { display: flex; justify-content: space-between; font-size: .8rem; color: var(--color-text-muted); margin-top: .9rem; font-variant-numeric: tabular-nums; }
.range-foot { margin: 1rem 0 0; }
@media (max-width: 860px) { .price-grid { grid-template-columns: 1fr; } }

/* ---------- Work mosaic ---------- */
.mosaic { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(10px, 1.6vw, 20px); }
.mosaic-left { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(10px, 1.6vw, 20px); align-content: start; }
.tile { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius-md); background: var(--color-line); }
.tile picture, .tile img { width: 100%; height: 100%; }
.tile img { object-fit: cover; }
.tile figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.2rem 1rem .8rem; font-size: var(--step--1); color: var(--color-dark-text); background: linear-gradient(to top, var(--color-scrim), var(--color-scrim-clear)); line-height: 1.35; }
.m-a { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
.m-c, .m-d { aspect-ratio: 1; }
.m-b { min-height: 320px; }
.m-b picture, .m-b img { position: absolute; inset: 0; }
.m-b img { object-position: 50% 60%; }
@media (max-width: 760px) {
  .mosaic { grid-template-columns: 1fr; }
  .m-b { min-height: 0; aspect-ratio: 4 / 5; }
}
.work-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1.6rem; }
.work-foot p { margin: 0; }

/* ---------- Warranty band ---------- */
.warranty { position: relative; overflow: hidden; }
.warranty-grid { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: center; }
.cert {
  width: clamp(200px, 24vw, 280px); aspect-ratio: 4 / 5; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 1.6rem 1.2rem; color: var(--color-dark-text);
  border: 1px solid color-mix(in srgb, var(--color-dark-accent) 70%, transparent);
  outline: 1px solid color-mix(in srgb, var(--color-dark-accent) 35%, transparent); outline-offset: -9px;
}
.cert-mark { width: 52px; height: 45px; color: var(--color-dark-text); margin-bottom: 1rem; }
.cert-k { font-size: .62rem; font-weight: var(--weight-strong); letter-spacing: .24em; text-transform: uppercase; color: var(--color-dark-accent); }
.cert-big { font-family: var(--font-display); font-size: clamp(2rem, 3.4vw, 2.7rem); line-height: 1; margin-top: .7rem; }
.cert-rule { width: 44px; height: 1px; background: var(--color-dark-accent); margin: .9rem 0 .8rem; }
.cert-sub { font-family: var(--font-display); font-size: 1.1rem; }
.cert-foot { margin-top: .35rem; font-size: .72rem; letter-spacing: .06em; color: color-mix(in srgb, var(--color-dark-text) 72%, transparent); }
.warranty h2 { max-width: 20ch; }
@media (max-width: 640px) { .warranty-grid { grid-template-columns: 1fr; } .cert { width: min(100%, 240px); aspect-ratio: auto; padding: 1.4rem 1rem; } }

/* ---------- Process list ---------- */
.steps { counter-reset: s; border-top: 1px solid var(--color-line); }
.steps li { display: grid; grid-template-columns: 3.2rem minmax(0, 1fr); gap: .2rem 1rem; padding: 1.15rem 0; border-bottom: 1px solid var(--color-line); counter-increment: s; align-items: baseline; }
.steps li::before { content: counter(s); font-family: var(--font-body); font-weight: var(--weight-heavy); font-size: 1.6rem; line-height: 1.1; color: var(--color-accent); grid-row: span 2; }
.steps h3, .steps h4 { font-family: var(--font-body); font-weight: var(--weight-heavy); font-size: var(--step-0); line-height: 1.3; margin: 0; }
.steps p { margin: 0; color: var(--color-text-muted); }
.steps-tight li { padding: .85rem 0; }
.band-warm .steps, .band-warm .steps li { border-color: var(--color-warm-line); }
.band-warm .steps li::before { color: var(--color-warm-accent); }
.band-warm .steps p { color: var(--color-warm-text); }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.split > .sticky { position: sticky; top: calc(var(--header-h) + 24px); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split > .sticky { position: static; } }

/* ---------- About teaser with watermark ---------- */
.mark-wm { position: relative; isolation: isolate; overflow: hidden; }
.mark-wm::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  right: -4%; top: 50%; width: clamp(220px, 34vw, 460px); aspect-ratio: 100 / 156; transform: translateY(-50%) rotate(8deg);
  background: var(--wm, url("../img/brand/tree-heartwood.svg")) center / contain no-repeat; opacity: .1;
}
.band-dark.mark-wm::before { --wm: url("../img/brand/tree-white.svg"); opacity: .09; }
.band-warm.mark-wm::before { left: -5%; right: auto; transform: translateY(-50%) rotate(-12deg); }
@media (max-width: 640px) { .mark-wm::before { width: 200px; opacity: .08; } }
.about-quote { font-family: var(--font-display); font-size: var(--step-3); line-height: 1.1; margin: 0 0 .5em; }

/* ---------- Where we build ---------- */
.towns { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--color-dark-line); }
.towns li { padding: 1.4rem 1.2rem 1.4rem 0; border-bottom: 1px solid var(--color-dark-line); }
.towns li + li { padding-left: 1.2rem; border-left: 1px solid var(--color-dark-line); }
.town-name { display: block; font-family: var(--font-display); font-size: var(--step-2); line-height: 1.1; color: var(--color-dark-text); }
.town-note { display: block; font-size: var(--step--1); color: var(--color-dark-muted); margin-top: .3rem; }
@media (max-width: 640px) { .towns { grid-template-columns: 1fr; } .towns li + li { padding-left: 0; border-left: 0; } }

/* ---------- Renovations ---------- */
.reno { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(24px, 5vw, 72px); align-items: center; }
.reno-photos { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(10px, 1.6vw, 20px); align-items: end; }
.reno-photos .tile:first-child { aspect-ratio: 3 / 4; }
.reno-photos .tile:last-child { aspect-ratio: 4 / 5; margin-bottom: clamp(24px, 5vw, 56px); }
.towns-light { border-color: var(--color-line); }
.towns-light li { border-color: var(--color-line); }
.towns-light .town-name { color: var(--color-text); }
.towns-light .town-note { color: var(--color-text-muted); }
.reno-list { margin: 1.2rem 0 1.6rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.reno-list li { padding: .35em .9em; border: 1px solid var(--color-text); border-radius: var(--radius-pill); font-weight: var(--weight-strong); font-size: .95rem; }
@media (max-width: 860px) { .reno { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--color-line); }
.faq details { border-bottom: 1px solid var(--color-line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; cursor: pointer; list-style: none; padding: 1.15rem 0; font-weight: var(--weight-heavy); font-size: var(--step-0); min-height: 48px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-body); font-size: 1.6rem; font-weight: var(--weight-body); color: var(--color-accent); line-height: 1; flex: none; transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--color-accent); }
.faq .ans { padding: 0 0 1.3rem; }
.faq .ans p:last-child { margin-bottom: 0; }

/* ---------- Final CTA ---------- */
.cta-final { text-align: left; }
.cta-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 5vw, 80px); align-items: center; }
.cta-phone { display: block; font-family: var(--font-display); font-size: clamp(2rem, 1.2rem + 3.6vw, 3.6rem); line-height: 1; color: var(--color-dark-text); text-decoration: none; white-space: nowrap; }
.band-dark a.cta-phone { color: var(--color-dark-text); }
.cta-phone:hover { color: var(--color-dark-accent); }
.cta-final.mark-wm::before { top: 88%; right: -8%; }
.cta-lines { display: grid; gap: .7rem; margin-top: 1.2rem; }
.cta-lines a { display: inline-flex; align-items: center; gap: .6em; }
@media (max-width: 860px) { .cta-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-dark-bg); color: var(--color-dark-text); padding-block: clamp(48px, 6vw, 80px) 28px; border-top: 4px solid var(--color-accent); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 3fr) minmax(0, 3fr) minmax(0, 3fr); gap: clamp(24px, 4vw, 56px); }
.footer-lockup { width: min(100%, 250px); height: auto; color: var(--color-dark-text); }
.lockup { color: var(--color-dark-text); }
.lockup-word { font-family: var(--font-display); fill: currentColor; }
.lockup-sub { font-family: var(--font-body); font-weight: var(--weight-strong); fill: var(--color-dark-accent); }
.footer-tag { font-family: var(--font-display); font-size: var(--step-1); margin: 1rem 0 0; color: var(--color-dark-text); }
.site-footer h2 { font-family: var(--font-body); font-size: var(--step--1); font-weight: var(--weight-heavy); letter-spacing: .1em; text-transform: uppercase; color: var(--color-dark-accent); margin-bottom: 1rem; }
.site-footer ul { display: grid; gap: .35rem; }
.site-footer a { color: var(--color-dark-text); text-decoration: none; display: inline-block; padding: .2em 0; }
.site-footer a:hover { color: var(--color-dark-accent); text-decoration: underline; }
.site-footer p { color: var(--color-dark-muted); font-size: .95rem; margin-bottom: .6rem; }
.footer-contact a { font-weight: var(--weight-strong); }
.footer-pages { columns: 2; column-gap: 1.5rem; display: block !important; }
.footer-pages li { break-inside: avoid; margin-bottom: .35rem; }
.footer-base { margin-top: clamp(32px, 5vw, 56px); padding-top: 1.2rem; border-top: 1px solid var(--color-dark-line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 2rem; font-size: .85rem; color: var(--color-dark-muted); }
.footer-base p { margin: 0; font-size: .85rem; max-width: none; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Inner page hero ---------- */
.page-hero { padding-block: clamp(40px, 5.5vw, 80px); position: relative; overflow: hidden; }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 5vw, 72px); align-items: center; }
.page-hero.no-photo .page-hero-grid { grid-template-columns: minmax(0, 1fr); }
.page-hero h1 { font-size: var(--step-4); margin-bottom: .35em; }
.page-hero .lede { margin: 0; }
.page-hero .tile { aspect-ratio: 4 / 3; }
.page-aside { display: flex; justify-content: center; }
.page-aside .cert { width: clamp(150px, 22vw, 240px); }
.crumbs { font-size: var(--step--1); color: var(--color-dark-muted); margin: 0 0 1rem; }
.crumbs a { color: var(--color-dark-muted) !important; text-decoration: underline; }
.crumbs a:hover { color: var(--color-dark-text) !important; }
@media (max-width: 860px) { .page-hero-grid { grid-template-columns: 1fr; } .page-hero .tile { aspect-ratio: 16 / 9; } }

/* ---------- Prose / factor lists ---------- */
.prose h2 { font-size: var(--step-2); margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose ul.bul { margin: 0 0 1em; display: grid; gap: .5rem; max-width: 65ch; }
.prose ul.bul li { position: relative; padding-left: 1.4rem; }
.prose ul.bul li::before { content: ""; position: absolute; left: 0; top: .72em; width: .6rem; height: 2px; background: var(--color-accent); }
.factors { border-top: 1px solid var(--color-line); }
.factors li { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: .3rem clamp(16px, 3vw, 48px); padding: 1.4rem 0; border-bottom: 1px solid var(--color-line); }
.factors h3 { font-size: var(--step-1); margin: 0; }
.factors p { margin: 0; color: var(--color-text-muted); }
.factors .dir { display: inline-block; margin-top: .4rem; font-size: var(--step--1); font-weight: var(--weight-heavy); color: var(--color-accent); letter-spacing: .04em; }
@media (max-width: 700px) { .factors li { grid-template-columns: 1fr; } }
.callout { background: var(--color-warm-bg); border-radius: var(--radius-md); padding: clamp(22px, 3.5vw, 40px); }
.callout h2, .callout h3 { margin-top: 0; }
.callout a { color: var(--color-warm-accent); }
.callout p:last-child { margin-bottom: 0; }

.compare-table { width: 100%; border-collapse: collapse; font-size: .98rem; }
.compare-table caption { text-align: left; font-size: var(--step--1); color: var(--color-text-muted); padding-bottom: .8rem; }
.compare-table th, .compare-table td { text-align: left; padding: .8rem .6rem .8rem 0; border-bottom: 1px solid var(--color-line); vertical-align: top; }
.compare-table thead th { font-size: var(--step--1); letter-spacing: .06em; text-transform: uppercase; color: var(--color-text-muted); }
.compare-table td.num, .compare-table th.num { text-align: right; padding-right: 0; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table-scroll { overflow-x: auto; }

/* ---------- Gallery ---------- */
.gallery { columns: 3 280px; column-gap: clamp(12px, 2vw, 24px); }
.gallery figure { margin: 0 0 clamp(12px, 2vw, 24px); break-inside: avoid; }
.gallery .tile { border-radius: var(--radius-md); }
.gallery .tile img { height: auto; }
.gallery figcaption { position: static; background: none; color: var(--color-text-muted); padding: .6rem 0 0; font-size: .95rem; }

/* ---------- Communities ---------- */
.lot-list { border-top: 1px solid var(--color-line); }
.lot-list li { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: .3rem clamp(16px, 3vw, 48px); padding: 1.3rem 0; border-bottom: 1px solid var(--color-line); }
.lot-list h3 { font-family: var(--font-body); font-weight: var(--weight-heavy); font-size: var(--step-0); line-height: 1.3; margin: 0; }
.lot-list p { margin: 0 0 .4rem; }
.lot-list .src { font-size: var(--step--1); color: var(--color-text-muted); }
@media (max-width: 700px) { .lot-list li { grid-template-columns: 1fr; } }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 3vw, 40px); margin: 0 0 1.4rem; }
.stat-row .n { display: block; font-family: var(--font-display); font-size: var(--step-3); line-height: 1; margin-bottom: .3rem; }
.stat-row .l { font-size: var(--step--1); line-height: 1.4; display: block; max-width: 24ch; }
@media (max-width: 640px) { .stat-row { grid-template-columns: 1fr; } .stat-row li { display: flex; align-items: baseline; gap: 1rem; } .stat-row .n { flex: none; min-width: 3.4ch; } }

/* ---------- Contact form ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.contact-big { display: grid; gap: 1.4rem; margin-bottom: 1.6rem; }
.contact-big a { display: block; text-decoration: none; color: var(--color-text); }
.contact-big .k { display: block; font-size: var(--step--1); font-weight: var(--weight-heavy); letter-spacing: .1em; text-transform: uppercase; color: var(--color-text-muted); margin-bottom: .15rem; }
.contact-big .phone { font-family: var(--font-display); font-size: clamp(2rem, 1.2rem + 3vw, 3.2rem); line-height: 1; white-space: nowrap; }
.contact-big .email { font-family: var(--font-display); font-size: clamp(1.35rem, 1rem + 1.6vw, 2rem); line-height: 1.1; overflow-wrap: anywhere; }
.contact-big a:hover .phone, .contact-big a:hover .email { color: var(--color-accent); }
.form { background: var(--color-surface); border: 1px solid var(--color-line); border-radius: var(--radius-md); padding: clamp(20px, 3.5vw, 40px); }
.form h2 { font-size: var(--step-2); }
.field { margin-bottom: 1.2rem; }
.field label, .field legend { display: block; font-weight: var(--weight-strong); margin-bottom: .35rem; padding: 0; }
.field .hint { font-weight: var(--weight-body); color: var(--color-text-muted); font-size: var(--step--1); }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field select, .field textarea {
  width: 100%; min-height: 48px; padding: .65em .8em; font: inherit; color: var(--color-text);
  background: var(--color-bg); border: 1.5px solid var(--color-text-muted); border-radius: var(--radius-sm);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; border-color: var(--color-text); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.2rem; }
fieldset.field { border: 0; margin-inline: 0; padding: 0; min-width: 0; }
.choices { display: flex; flex-wrap: wrap; gap: .6rem; }
.choices label { display: inline-flex; align-items: center; gap: .55em; min-height: 44px; margin: 0; padding: .4em 1em .4em .8em; border: 1.5px solid var(--color-text-muted); border-radius: var(--radius-pill); background: var(--color-bg); font-weight: var(--weight-body); cursor: pointer; }
.choices input { width: 1.1rem; height: 1.1rem; accent-color: var(--color-accent); margin: 0; }
.choices label:has(input:checked) { border-color: var(--color-accent); background: var(--color-warm-bg); }
.req { color: var(--color-accent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } .field-row { grid-template-columns: 1fr; } }

/* ---------- Misc ---------- */
.hide-sm { }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.stack > * + * { margin-top: 1rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem 1.2rem; align-items: center; }
.thanks { min-height: 55vh; display: grid; align-items: center; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
}

/* ---------- "What matters most to you?" selector (home) ---------- */
.matter-tabs { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: clamp(16px, 2.5vw, 26px); }
html:not(.js) .matter-tabs { display: none; }
.matter-tab {
  min-height: 48px; padding: .5em 1.15em; font: inherit; font-weight: var(--weight-strong); line-height: 1.2; text-align: center;
  color: var(--color-text); background: var(--color-surface); border: 1.5px solid var(--color-text-muted); border-radius: var(--radius-pill);
  cursor: pointer; transition: background-color .2s, border-color .2s, color .2s;
}
.matter-tab:hover { border-color: var(--color-accent); color: var(--color-accent); }
.matter-tab[aria-selected="true"] { background: var(--color-dark-bg); border-color: var(--color-dark-bg); color: var(--color-dark-text); }
.matter-panels { background: var(--color-surface); border: 1px solid var(--color-line); border-radius: var(--radius-md); }
.matter-panel { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: .8rem clamp(24px, 5vw, 72px); align-items: start; padding: clamp(22px, 3.5vw, 44px); }
.matter-panel + .matter-panel { border-top: 1px solid var(--color-line); }
.matter-panel[hidden] { display: none; }
.matter-panel .eyebrow { grid-column: 1 / -1; margin: 0; }
.js .matter-panel .eyebrow { display: none; }
.matter-panel h3 { font-size: var(--step-3); margin: 0; }
.matter-body p { max-width: 58ch; }
.matter-body .btn-row { margin: 1.4rem 0 0; }
.matter-for { font-size: var(--step-1); line-height: 1.4; font-weight: var(--weight-strong); border-left: 3px solid var(--color-accent); padding-left: 1rem; }
.matter-panel.is-in { animation: matter-in .25s ease both; }
@keyframes matter-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (max-width: 860px) { .matter-panel { grid-template-columns: 1fr; } }

/* ---------- On the job (AI illustrations) ---------- */
.onjob-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(10px, 1.6vw, 20px); }
.oj-a { grid-row: span 2; min-height: 320px; }
.oj-a picture, .oj-a img { position: absolute; inset: 0; }
.oj-b, .oj-c { aspect-ratio: 3 / 2; }
.onjob-note, .figs-note { margin: 1rem 0 0; }
@media (max-width: 760px) {
  .onjob-grid { grid-template-columns: 1fr; }
  .oj-a { grid-row: auto; min-height: 0; aspect-ratio: 3 / 2; }
}
.figs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: clamp(12px, 2vw, 24px); }
.figs figure { margin: 0; }
.figs .tile { aspect-ratio: 3 / 2; }
.figs figcaption { color: var(--color-text-muted); padding: .6rem 0 0; font-size: .95rem; line-height: 1.4; }

/* ---------- Contact: what happens next ---------- */
.next { margin-top: 2rem; padding-top: 1.6rem; border-top: 1px solid var(--color-line); }
.next h2 { font-size: var(--step-2); }

/* ---------- Footer: AI disclaimer ---------- */
.footer-ai { flex-basis: 100%; }

/* ---------- Blog ---------- */
.article { max-width: 68ch; margin-inline: auto; }
.article > p, .article li, .article .lede { max-width: none; }
.article p.lede { font-size: var(--step-1); line-height: 1.5; color: var(--color-text); }
.article h2 { font-size: var(--step-2); margin: 1.8em 0 .5em; }
.article h2:first-child { margin-top: 0; }
.article h3 { font-size: var(--step-1); }
.article p, .article li { line-height: 1.7; }
.article ul.bul { max-width: none; margin-bottom: 1.2em; }
.article ol.num-list { display: grid; gap: .8rem; margin: 0 0 1.2em; padding-left: 1.6rem; list-style: decimal; }
.article ol.num-list li::marker { color: var(--color-accent); font-weight: var(--weight-heavy); }
.article ol.steps { margin-bottom: 1.2em; }
.article .range, .article .table-scroll { margin-block: 1.4rem 1.6rem; }
.article .src-list { display: grid; gap: .6rem; font-size: var(--step--1); color: var(--color-text-muted); list-style: none; padding: 0; margin: 0; }
.article .src-list li { padding-left: 0; }
.article .src-list li::before { content: none; }
.article .soft-cta { margin-top: 2.6rem; }
.article .soft-cta p { max-width: none; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: clamp(20px, 3vw, 36px); }
.post-card { display: flex; flex-direction: column; gap: 1rem; }
.post-card .tile { display: block; aspect-ratio: 3 / 2; }
.post-card h2, .post-card h3 { font-size: var(--step-1); line-height: 1.2; margin: 0 0 .4em; }
.post-card h2 a, .post-card h3 a { color: var(--color-text); text-decoration: none; }
.post-card h2 a:hover, .post-card h3 a:hover { color: var(--color-accent); text-decoration: underline; }
.post-card p { margin: 0 0 .6em; color: var(--color-text-muted); }
.post-card .post-meta { font-size: var(--step--1); font-weight: var(--weight-strong); color: var(--color-accent); margin: 0; }
.callout .btn { color: var(--color-on-accent); }
.callout .btn:hover { color: var(--color-on-accent); }
.post-card .source { margin: .4rem 0 0; }

/* Before / after pairs: side by side, stacked on small screens. Static, no scroll effects. */
.ba-set { margin: 0 0 clamp(28px, 4vw, 48px); }
.ba-set:last-child { margin-bottom: 0; }
.ba-set h3 { margin: 0 0 .8rem; }
.ba-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(12px, 2vw, 24px); }
.ba-item { margin: 0; }
.ba-tile img { height: auto; display: block; }
.ba-badge { position: absolute; top: .7rem; left: .7rem; padding: .25em .7em; border-radius: var(--radius-pill); background: var(--color-dark-bg); color: var(--color-dark-text); font-size: .8rem; font-weight: var(--weight-strong); line-height: 1.3; letter-spacing: .02em; }
.ba-cap { margin: .6rem 0 0; padding-left: .75rem; border-left: 3px solid var(--color-line); color: var(--color-text-muted); font-size: .95rem; line-height: 1.4; }
.ba-cap-after { border-left-color: var(--color-accent); }
.ba-pair + .work-foot { margin-top: 1.2rem; }
.op-left { object-position: 30% 50%; }
.about-fig { margin: 1.4rem 0; grid-template-columns: minmax(0, 1fr); }
@media (max-width: 700px) { .ba-pair { grid-template-columns: minmax(0, 1fr); } }
