/* F2 Home Improvement — site styles
   Palette from the F2 identity manual: #232a2c graphite, #ecece2 off-white, #ccdadb mist; gold from the gold logo.
   Type: IBM Plex Sans (brand typeface, incl. the tracked italic HOME IMPROVEMENT lockup), IBM Plex Mono for tile specs. */

:root {
  --ink: #232a2c;
  --charcoal: #2b3437;
  --grout: #3a4447;
  --gold: #c8963c;
  --gold-hi: #ddb265;
  --gold-text: #8a6320; /* gold for text on light backgrounds (AA) */
  --porcelain: #ecece2;
  --mist: #ccdadb;
  --white: #ffffff;
  --text: #17171a;
  --slate: #585e66;
  --on-dark: #e9e7e3;
  --on-dark-mute: #aebdbf;
  --line: #dde0e3;
  --line-dark: #3d484b;

  --f-display: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", monospace;

  --wrap: 1240px;
  --gut: clamp(16px, 4vw, 32px);
  --sec: clamp(64px, 9vw, 120px);
  --r: 14px;
  --r-lg: 22px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow: 0 1px 2px rgba(0,0,0,.06), 0 10px 30px rgba(0,0,0,.08);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0; background: var(--white); color: var(--text);
  font: 400 17px/1.65 var(--f-body);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
h1, h2, h3, h4 {
  font-family: var(--f-display); font-weight: 600; line-height: 1.1;
  letter-spacing: -.02em; margin: 0 0 .5em;
}
h1 { font-size: clamp(2.4rem, 5.6vw, 4.6rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
h3 { font-size: clamp(1.25rem, 1.8vw, 1.5rem); line-height: 1.2; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--gold); color: var(--ink); }

.skip { position: absolute; left: 16px; top: -100px; z-index: 2000; background: var(--gold); color: var(--ink); padding: 12px 18px; border-radius: 8px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 16px; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.narrow { max-width: 780px; }

/* ---------- Brand primitives ---------- */
/* Tracked italic label — echoes "HOME IMPROVEMENT" in the logo lockup */
.eyebrow {
  display: inline-block; font-family: var(--f-display); font-style: italic; font-weight: 400;
  font-size: .78rem; letter-spacing: .32em; text-transform: uppercase; color: var(--gold-text);
  margin: 0 0 1rem;
}
.dark .eyebrow, .eyebrow.on-dark { color: var(--gold); }
/* Tile spec label: size · material · pattern */
.spec { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .02em; color: var(--slate); text-transform: none; }
.dark .spec { color: var(--on-dark-mute); }
.lede { font-size: clamp(1.08rem, 1.5vw, 1.25rem); color: var(--slate); max-width: 62ch; }
.dark .lede { color: var(--on-dark-mute); }
.dark { background: var(--ink); color: var(--on-dark); }
.dark h1, .dark h2, .dark h3 { color: var(--white); }
.porcelain { background: var(--porcelain); }
.section { padding-block: var(--sec); display: flow-root; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2 { margin: 0; max-width: 18ch; }
.section-head p { margin: 0; max-width: 46ch; color: var(--slate); }
.dark .section-head p { color: var(--on-dark-mute); }

/* Diagonal hairlines from the brand's post templates */
.slash { position: relative; isolation: isolate; }
.slash::before, .slash::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  width: 1px; height: 140%; background: linear-gradient(transparent, rgba(255,255,255,.18) 30%, rgba(255,255,255,.18) 70%, transparent);
  transform: rotate(38deg); top: -20%;
}
.slash::before { right: 18%; }
.slash::after { right: 8%; opacity: .6; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-hi); }
.btn-line { border-color: currentColor; color: var(--text); background: transparent; }
.btn-line:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.dark .btn-line { color: var(--white); }
.dark .btn-line:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow { font-weight: 600; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; border-bottom: 1.5px solid var(--gold); padding-bottom: 2px; }
.link-arrow:hover { color: var(--gold-text); }
.link-arrow svg { width: 18px; height: 18px; flex: none; }
.dark .link-arrow:hover { color: var(--gold); }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 100; background: rgba(35,42,44,.97); color: var(--white); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line-dark); }
.header .wrap { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--white); margin-right: auto; }
.logo svg { width: 52px; height: auto; color: var(--gold); }
.logo .logo-img { width: 58px; height: 58px; object-fit: contain; }
.logo-foot .logo-img { width: 96px; height: 96px; }
.logo span { font-family: var(--f-display); font-style: italic; font-weight: 400; letter-spacing: .32em; font-size: .74rem; text-transform: uppercase; line-height: 1.3; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav > a, .nav .has-menu > button {
  color: var(--on-dark); text-decoration: none; font-weight: 500; font-size: .95rem; padding: 10px 14px; border-radius: 8px;
  background: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
}
.nav > a:hover, .nav .has-menu > button:hover, .nav a[aria-current="page"] { color: var(--white); background: var(--charcoal); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--gold); }
.has-menu { position: relative; }
.has-menu > button svg { width: 12px; transition: transform .2s; }
.has-menu[data-open] > button svg { transform: rotate(180deg); }
.menu {
  position: absolute; top: calc(100% + 10px); left: -12px; min-width: 280px; padding: 10px;
  background: var(--charcoal); border: 1px solid var(--line-dark); border-radius: var(--r); box-shadow: 0 20px 40px rgba(0,0,0,.35);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .18s var(--ease);
}
.has-menu[data-open] .menu, .has-menu:focus-within .menu { opacity: 1; visibility: visible; transform: none; }
.menu a { display: flex; justify-content: space-between; gap: 16px; padding: 10px 12px; border-radius: 8px; text-decoration: none; color: var(--on-dark); font-size: .95rem; }
.menu a:hover { background: var(--grout); color: var(--white); }
.menu a .spec { color: var(--on-dark-mute); }
.menu hr { border: 0; border-top: 1px solid var(--line-dark); margin: 6px 0; }
.header-cta { display: flex; gap: 10px; align-items: center; }
.header-cta .phone { color: var(--white); text-decoration: none; font-weight: 600; font-variant-numeric: tabular-nums; display: inline-flex; gap: 8px; align-items: center; }
.header-cta .phone svg { width: 16px; color: var(--gold); }
.header-cta .btn { min-height: 44px; padding: 0 18px; font-size: .92rem; }
.burger { display: none; width: 46px; height: 46px; border-radius: 10px; border: 1px solid var(--line-dark); background: none; color: var(--white); cursor: pointer; align-items: center; justify-content: center; }
.burger svg { width: 22px; }
.mobile-panel { display: none; }

@media (max-width: 1040px) {
  .nav, .header-cta .phone span { display: none; }
  .header-cta .btn { display: none; }
  .burger { display: inline-flex; }
  .mobile-panel {
    display: block; position: fixed; inset: 76px 0 0; background: var(--ink); padding: 24px var(--gut) 40px; overflow-y: auto;
    opacity: 0; transform: translateY(-8px); transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s; visibility: hidden;
  }
  .mobile-panel[data-open] { opacity: 1; transform: none; visibility: visible; }
  .mobile-panel a { display: block; color: var(--white); text-decoration: none; padding: 14px 0; border-bottom: 1px solid var(--line-dark); font-family: var(--f-display); font-size: 1.4rem; font-weight: 600; }
  .mobile-panel .sub a { font-family: var(--f-body); font-size: 1rem; font-weight: 400; padding: 10px 0 10px 16px; color: var(--on-dark); }
  .mobile-panel .btn { margin-top: 24px; width: 100%; font-family: var(--f-body); font-size: 1rem; }
  .mobile-panel .btn-line { color: var(--white); }
}

/* ---------- Hero (home): the laid-tile mosaic ---------- */
.hero { padding-block: clamp(48px, 7vw, 96px) clamp(56px, 8vw, 110px); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 5.4vw, 4.8rem); margin-bottom: .35em; }
.hero h1 em { font-style: italic; font-weight: 400; color: var(--gold); }
.hero .lede { margin-bottom: 2rem; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 2.2rem; padding-top: 1.4rem; border-top: 1px solid var(--line-dark); list-style: none; padding-left: 0; }
.hero-facts li { font-family: var(--f-mono); font-size: .78rem; color: var(--on-dark-mute); display: flex; align-items: center; gap: 8px; }
.hero-facts li::before { content: ""; width: 6px; height: 6px; background: var(--gold); transform: rotate(45deg); }

.mosaic {
  display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: clamp(70px, 8.5vw, 118px);
  gap: 6px; padding: 6px; background: var(--grout); border-radius: var(--r-lg);
}
.mosaic .tile { position: relative; overflow: hidden; border-radius: 6px; background: var(--charcoal); margin: 0; }
.mosaic .tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.mosaic .tile:hover img { transform: scale(1.04); }
.mosaic .tile figcaption {
  position: absolute; left: 8px; bottom: 8px; right: 8px; font-family: var(--f-mono); font-size: .68rem; line-height: 1.3;
  color: var(--white); background: rgba(35,42,44,.72); padding: 5px 8px; border-radius: 4px; width: fit-content;
  opacity: 0; transform: translateY(4px); transition: .25s var(--ease);
}
.mosaic .tile:hover figcaption, .mosaic .tile:focus-within figcaption { opacity: 1; transform: none; }
.mosaic .t1 { grid-column: 1 / 4; grid-row: 1 / 4; }
.mosaic .t2 { grid-column: 4 / 7; grid-row: 1 / 3; }
.mosaic .t3 { grid-column: 4 / 6; grid-row: 3 / 5; }
.mosaic .t4 { grid-column: 6 / 7; grid-row: 3 / 5; }
.mosaic .t5 { grid-column: 1 / 3; grid-row: 4 / 6; }
.mosaic .t6 { grid-column: 3 / 4; grid-row: 4 / 6; }
.mosaic .t7 { grid-column: 4 / 7; grid-row: 5 / 6; }
/* tiles are "set" one at a time on load */
@media (prefers-reduced-motion: no-preference) {
  .js .mosaic .tile { opacity: 0; transform: translateY(-10px) scale(.985); }
  .js .mosaic.is-set .tile { animation: set .6s var(--ease) forwards; animation-delay: calc(var(--i) * 110ms + 150ms); }
  @keyframes set { to { opacity: 1; transform: none; } }
}

/* Page hero (inner pages) */
.page-hero { padding-block: clamp(40px, 6vw, 80px) clamp(48px, 6vw, 88px); }
.page-hero .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.page-hero.solo .wrap { grid-template-columns: minmax(0, 1fr); }
.page-hero h1 { font-size: clamp(2.2rem, 4.8vw, 4rem); }
.page-hero .frame { border-radius: var(--r-lg); overflow: hidden; border: 6px solid var(--grout); aspect-ratio: 4 / 3.4; background: var(--charcoal); }
.page-hero .frame img { width: 100%; height: 100%; object-fit: cover; }
.crumbs { font-size: .85rem; color: var(--on-dark-mute); margin-bottom: 1.6rem; }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li:not(:last-child)::after { content: "/"; margin-left: 6px; color: var(--grout); }
.crumbs a { text-decoration: none; color: var(--on-dark); }
.crumbs a:hover { color: var(--gold); }

/* Brand panel — used where no project photo exists yet (deck, some stone work) */
.brand-panel {
  position: relative; display: grid; place-items: center; width: 100%; height: 100%; min-height: 220px;
  background:
    repeating-linear-gradient(90deg, transparent 0 calc(20% - 3px), var(--grout) calc(20% - 3px) 20%),
    linear-gradient(160deg, #2b3437, #1f2527);
  color: var(--gold);
}
.brand-panel.deck { background: repeating-linear-gradient(0deg, #2a3235 0 34px, var(--grout) 34px 38px), var(--charcoal); }
.brand-panel.stone {
  background:
    radial-gradient(circle at 20% 30%, #343d40 0 18%, transparent 19%),
    radial-gradient(circle at 70% 60%, #30393c 0 22%, transparent 23%),
    radial-gradient(circle at 40% 80%, #363f42 0 14%, transparent 15%),
    var(--charcoal);
}
.brand-panel svg { width: 34%; max-width: 160px; opacity: .9; }
.brand-panel .spec { position: absolute; left: 14px; bottom: 12px; color: var(--on-dark-mute); }

/* ---------- Trust strip ---------- */
.facts { border-bottom: 1px solid var(--line); }
.facts ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.facts li { padding: 28px 24px; border-left: 1px solid var(--line); }
.facts li:first-child { border-left: 0; padding-left: 0; }
.facts strong { display: block; font-family: var(--f-display); font-size: 1.7rem; font-weight: 650; line-height: 1.1; }
.facts span { color: var(--slate); font-size: .92rem; }

/* ---------- Service cards ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.svc-card { display: flex; flex-direction: column; text-decoration: none; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: border-color .2s, box-shadow .25s, transform .25s var(--ease); }
.svc-card:hover { border-color: var(--gold); box-shadow: var(--shadow); transform: translateY(-3px); }
.svc-card .media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--charcoal); }
.svc-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.svc-card:hover .media img { transform: scale(1.05); }
.svc-card .body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.svc-card h3 { margin: 0; }
.svc-card p { color: var(--slate); margin: 0; font-size: .97rem; }
.svc-card .more { margin-top: auto; padding-top: 10px; font-weight: 600; font-size: .95rem; color: var(--gold-text); }
.tag-new { font-family: var(--f-mono); font-size: .68rem; background: var(--gold); color: var(--ink); padding: 3px 8px; border-radius: 4px; margin-left: 8px; vertical-align: middle; letter-spacing: .03em; }

/* ---------- Before / after ---------- */
.ba { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.ba-slider { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-lg); overflow: hidden; border: 6px solid var(--grout); background: var(--charcoal); user-select: none; touch-action: pan-y; --pos: 50%; }
.ba-slider img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-slider .after { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos)); }
.ba-slider .handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; background: var(--gold); transform: translateX(-1px); pointer-events: none; }
.ba-slider .handle::after { content: ""; position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; border-radius: 50%; background: var(--gold); transform: translate(-50%, -50%); box-shadow: 0 6px 20px rgba(0,0,0,.35); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f0f10' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l-6 6 6 6M15 6l6 6-6 6'/%3E%3C/svg%3E"); background-size: 22px; background-repeat: no-repeat; background-position: center; }
.ba-slider input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba-slider .lbl { position: absolute; top: 14px; font-family: var(--f-mono); font-size: .72rem; padding: 6px 10px; border-radius: 4px; background: rgba(35,42,44,.78); color: var(--white); }
.ba-slider .lbl.l { left: 14px; }
.ba-slider .lbl.r { right: 14px; background: var(--gold); color: var(--ink); }
.layers { list-style: none; padding: 0; margin: 1.6rem 0 0; border-top: 1px solid var(--line-dark); }
.layers li { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line-dark); }
.layers b { font-family: var(--f-mono); font-weight: 500; font-size: .8rem; color: var(--gold); padding-top: 2px; }
.layers span { color: var(--on-dark-mute); font-size: .96rem; }

/* ---------- Process (a real sequence, so it is numbered) ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; border-top: 1px solid var(--line); }
.steps li { counter-increment: step; padding: 28px 24px 8px 0; border-right: 1px solid var(--line); margin-right: 24px; }
.steps li:last-child { border-right: 0; margin-right: 0; }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font-family: var(--f-mono); font-size: .8rem; color: var(--gold-text); margin-bottom: 16px; }
.steps h3 { font-size: 1.25rem; margin-bottom: .4em; }
.steps p { color: var(--slate); font-size: .96rem; }
.steps.five { grid-template-columns: repeat(5, 1fr); }

/* ---------- Gallery ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line); background: var(--white); border-radius: 999px; padding: 8px 16px; cursor: pointer; font-size: .92rem; font-weight: 500; text-decoration: none; color: var(--text); }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"], .chip[aria-current="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }
.dark .chip { background: transparent; color: var(--on-dark); border-color: var(--line-dark); }
.dark .chip[aria-pressed="true"] { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; grid-auto-flow: dense; gap: 6px; padding: 6px; background: var(--grout); border-radius: var(--r-lg); }
.gallery .g { position: relative; margin: 0; overflow: hidden; border-radius: 6px; cursor: zoom-in; background: var(--charcoal); border: 0; padding: 0; }
.gallery .g.tall { grid-row: span 2; }
.gallery .g.wide { grid-column: span 2; }
.gallery .g img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), opacity .3s; }
.gallery .g:hover img { transform: scale(1.04); }
.gallery .g[hidden] { display: none; }
.gallery .g .spec { position: absolute; left: 8px; bottom: 8px; background: rgba(35,42,44,.75); color: var(--white); padding: 4px 8px; border-radius: 4px; opacity: 0; transition: opacity .2s; pointer-events: none; text-align: left; }
.gallery .g:hover .spec, .gallery .g:focus-visible .spec { opacity: 1; }
.lightbox { position: fixed; inset: 0; z-index: 500; background: rgba(10,10,11,.94); display: none; place-items: center; padding: 24px; }
.lightbox[data-open] { display: grid; }
.lightbox img { max-height: 84vh; width: auto; max-width: 100%; border-radius: 8px; }
.lightbox p { color: var(--on-dark); text-align: center; margin: 14px 0 0; font-size: .95rem; }
.lightbox button { position: absolute; background: var(--charcoal); color: var(--white); border: 1px solid var(--line-dark); border-radius: 999px; width: 48px; height: 48px; cursor: pointer; display: grid; place-items: center; }
.lightbox button svg { width: 20px; }
.lightbox .x { top: 20px; right: 20px; }
.lightbox .prev { left: 20px; top: 50%; }
.lightbox .next { right: 20px; top: 50%; }

/* ---------- Story / timeline ---------- */
.story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding: 0 0 28px 40px; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; background: var(--white); border: 2px solid var(--gold); transform: rotate(45deg); }
.timeline time, .timeline .when { font-family: var(--f-mono); font-size: .8rem; color: var(--gold-text); display: block; margin-bottom: 2px; }
.timeline h3 { font-size: 1.3rem; margin-bottom: .25em; }
.timeline p { color: var(--slate); margin: 0; }

/* ---------- Areas ---------- */
.areas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--ink); border: 1px solid var(--line-dark); border-radius: var(--r); overflow: hidden; }
.areas a { background: var(--ink); box-shadow: 0 0 0 1px var(--line-dark); padding: 22px 22px 20px; text-decoration: none; display: flex; flex-direction: column; gap: 4px; transition: background .2s; }
.areas a:hover { background: var(--charcoal); }
.areas a strong { font-family: var(--f-display); font-size: 1.3rem; font-weight: 600; color: var(--white); }
.areas a span { font-family: var(--f-mono); font-size: .74rem; color: var(--on-dark-mute); }
.areas a:hover strong { color: var(--gold); }
.state-note { margin-top: 18px; font-size: .9rem; color: var(--on-dark-mute); }

/* Service × city matrix on /services/ */
.matrix { width: 100%; border-collapse: collapse; font-size: .94rem; }
.matrix th, .matrix td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.matrix th { font-family: var(--f-mono); font-weight: 500; font-size: .74rem; color: var(--slate); text-transform: uppercase; letter-spacing: .06em; }
.matrix td a { text-decoration: none; }
.matrix td a:hover { color: var(--gold-text); text-decoration: underline; }
.matrix-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ---------- Estimate form ---------- */
.estimate { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.estimate .contact-lines { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 14px; }
.estimate .contact-lines a { text-decoration: none; font-weight: 600; font-size: 1.15rem; }
.estimate .contact-lines a:hover { color: var(--gold); }
.estimate .contact-lines .spec { display: block; }
.form { background: var(--white); color: var(--text); border-radius: var(--r-lg); padding: clamp(22px, 3.5vw, 40px); box-shadow: var(--shadow); border: 1px solid var(--line); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label, .field legend { font-weight: 600; font-size: .9rem; }
.field .opt { color: var(--slate); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--white);
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 116px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(200,150,60,.35); }
.field [aria-invalid="true"] { border-color: #b3261e; }
.field .err { color: #b3261e; font-size: .84rem; min-height: 0; }
.services-pick { border: 0; padding: 0; margin: 0 0 14px; }
.services-pick legend { margin-bottom: 8px; }
.pick { display: flex; flex-wrap: wrap; gap: 8px; }
.pick label { position: relative; }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 999px; cursor: pointer; font-size: .9rem; font-weight: 500; transition: .15s; }
.pick input:checked + span { background: var(--ink); color: var(--white); border-color: var(--ink); }
.pick input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .82rem; color: var(--slate); margin: 4px 0 18px; }
.consent input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--ink); }
.form .btn { width: 100%; }
.form-note { font-size: .82rem; color: var(--slate); margin: 12px 0 0; text-align: center; }
.form-status { margin-top: 14px; padding: 14px 16px; border-radius: 10px; font-size: .95rem; display: none; }
.form-status[data-state="ok"] { display: block; background: #edf7ee; color: #1c4d22; }
.form-status[data-state="error"] { display: block; background: #fdeceb; color: #7d1a14; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 48px 22px 0; position: relative; font-family: var(--f-display); font-weight: 600; font-size: 1.2rem; line-height: 1.3; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 14px; border-right: 2px solid var(--gold-text); border-bottom: 2px solid var(--gold-text); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .a { padding: 0 0 22px; color: var(--slate); max-width: 72ch; }
.faq .a p:last-child { margin: 0; }

/* ---------- Content pages (service, service × city) ---------- */
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 5vw, 72px); align-items: start; }
.prose { max-width: 72ch; }
.prose h2 { font-size: clamp(1.7rem, 2.8vw, 2.3rem); margin-top: 1.8em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.5em; }
.prose p, .prose li { color: #2c2e33; }
.prose a { color: var(--gold-text); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.prose a:hover { color: var(--ink); }
.prose ul { padding-left: 0; list-style: none; }
.prose ul li { position: relative; padding-left: 22px; margin-bottom: .5em; }
.prose ul li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg); }
.scope { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin: 1.5em 0; }
.scope div { background: var(--white); padding: 20px 22px; }
.scope h3 { font-size: 1.1rem; margin: 0 0 .35em; }
.scope p { margin: 0; font-size: .95rem; color: var(--slate); }
.aside { position: sticky; top: 100px; display: grid; gap: 16px; }
.aside-card { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; background: var(--white); }
.aside-card.dark { border-color: var(--ink); background: var(--ink); color: var(--on-dark); }
.aside-card h2, .aside-card h3 { font-size: 1.3rem; margin-bottom: .4em; }
.aside-card p { font-size: .95rem; color: var(--slate); }
.aside-card.dark p { color: var(--on-dark-mute); }
.aside-card .btn { width: 100%; margin-top: 8px; }
.aside-card ul { list-style: none; padding: 0; margin: 0; }
.aside-card li a { display: block; padding: 9px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-size: .95rem; }
.aside-card li:last-child a { border-bottom: 0; }
.aside-card li a:hover { color: var(--gold-text); }
.aside-card li a[aria-current="page"] { font-weight: 600; color: var(--gold-text); }
.nearby { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0 !important; }
.nearby li { padding: 6px 12px !important; border: 1px solid var(--line); border-radius: 999px; font-size: .9rem; margin: 0 !important; }
.nearby li::before { display: none; }
.strip-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 6px; background: var(--grout); border-radius: var(--r-lg); margin: 2em 0; }
.strip-gallery img { aspect-ratio: 1; object-fit: cover; border-radius: 6px; width: 100%; }

/* ---------- Blog ---------- */
.featured { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 0; border-radius: var(--r-lg); overflow: hidden; background: var(--charcoal); text-decoration: none; color: var(--on-dark); }
.featured .media { min-height: 360px; }
.featured .media img { width: 100%; height: 100%; object-fit: cover; }
.featured .body { padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.featured h2 { color: var(--white); font-size: clamp(1.6rem, 2.6vw, 2.3rem); margin: 0; }
.featured p { color: var(--on-dark-mute); margin: 0; }
.featured:hover h2 { color: var(--gold); }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 22px; }
.post-card { display: flex; flex-direction: column; text-decoration: none; gap: 12px; }
.post-card[hidden] { display: none; }
.post-card .media { aspect-ratio: 16 / 10; border-radius: var(--r); overflow: hidden; background: var(--charcoal); }
.post-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.post-card:hover .media img { transform: scale(1.04); }
.post-card h3 { font-size: 1.3rem; margin: 0; }
.post-card:hover h3 { color: var(--gold-text); }
.post-card p { color: var(--slate); font-size: .95rem; margin: 0; }
.meta { font-family: var(--f-mono); font-size: .74rem; color: var(--slate); display: flex; flex-wrap: wrap; gap: 6px 14px; }
.dark .meta, .featured .meta { color: var(--on-dark-mute); }
.meta .loc { color: var(--gold-text); }
.dark .meta .loc, .featured .meta .loc { color: var(--gold); }
.blog-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }

.article-hero { padding-block: clamp(40px, 6vw, 72px) 0; }
.article-hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.6rem); max-width: 22ch; }
.article-hero .lede { margin-bottom: 1.6rem; }
.article-cover { margin-top: clamp(28px, 4vw, 48px); border-radius: var(--r-lg) var(--r-lg) 0 0; overflow: hidden; aspect-ratio: 21 / 9; background: var(--charcoal); }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.toc { position: sticky; top: 100px; font-size: .9rem; }
.toc p { font-family: var(--f-mono); font-size: .74rem; color: var(--slate); text-transform: uppercase; letter-spacing: .08em; }
.toc ol { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.toc a { display: block; padding: 7px 0 7px 14px; margin-left: -2px; border-left: 2px solid transparent; text-decoration: none; color: var(--slate); line-height: 1.35; }
.toc a:hover, .toc a.active { color: var(--ink); border-left-color: var(--gold); }
.takeaways { background: var(--porcelain); border-radius: var(--r); padding: 22px 26px; margin: 0 0 2em; }
.takeaways h2 { font-size: 1.15rem !important; margin: 0 0 .6em !important; font-family: var(--f-mono); font-weight: 500; letter-spacing: 0; text-transform: uppercase; font-size: .8rem !important; color: var(--gold-text); }
.takeaways ul { margin: 0; }
.author { display: flex; gap: 16px; align-items: center; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 2.5em; }
.author .mark { width: 56px; height: 56px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; flex: none; }
.author .mark svg { width: 30px; color: var(--gold); }
.author p { margin: 0; font-size: .92rem; color: var(--slate); }
.author strong { color: var(--text); }
.cta-band { border-radius: var(--r-lg); padding: clamp(28px, 4vw, 48px); display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; margin-top: 2.5em; }
.cta-band h2 { margin: 0 0 .3em; font-size: clamp(1.5rem, 2.4vw, 2rem); }
.cta-band p { margin: 0; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--on-dark-mute); padding-block: clamp(56px, 7vw, 88px) 28px; font-size: .94rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer h2 { font-family: var(--f-mono); font-weight: 500; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark); margin-bottom: 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--gold); }
.foot-brand p { max-width: 36ch; margin-top: 16px; }
.foot-brand .logo span { color: var(--white); }
.foot-bottom { margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .84rem; }
.foot-big { font-family: var(--f-display); font-weight: 700; font-style: italic; color: #2d3639; font-size: clamp(3rem, 12vw, 10rem); line-height: .9; color: var(--charcoal); letter-spacing: -.02em; margin: 48px 0 0; user-select: none; white-space: nowrap; overflow: hidden; }

/* Mobile call bar */
.callbar { display: none; }
@media (max-width: 720px) {
  .callbar { display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; background: var(--ink); border-top: 1px solid var(--line-dark); padding: 8px; gap: 8px; padding-bottom: calc(8px + env(safe-area-inset-bottom)); }
  .callbar .btn { min-height: 48px; font-size: .95rem; padding: 0 12px; }
  .callbar .btn-line { color: var(--white); }
  body { padding-bottom: 72px; }
}

/* Reveal on scroll */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .js .reveal.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1040px) {
  .hero .wrap, .page-hero .wrap, .ba, .story, .estimate, .content-grid, .featured { grid-template-columns: minmax(0, 1fr); }
  .svc-grid, .post-grid { grid-template-columns: repeat(2, 1fr); }
  .areas { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .steps, .steps.five { grid-template-columns: repeat(2, 1fr); }
  .steps li:nth-child(2n) { border-right: 0; margin-right: 0; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .aside { position: static; }
  .article { grid-template-columns: minmax(0, 1fr); }
  .toc { display: none; }
  .facts ul { grid-template-columns: repeat(2, 1fr); }
  .facts li:nth-child(3) { border-left: 0; padding-left: 0; }
  .facts li { border-top: 1px solid var(--line); }
  .facts li:nth-child(-n+2) { border-top: 0; }
  .ba-slider { max-width: 520px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .svc-grid, .post-grid, .areas, .scope, .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .form .row { grid-template-columns: minmax(0, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .gallery .g.wide { grid-column: span 2; }
  .steps, .steps.five { grid-template-columns: minmax(0, 1fr); }
  .steps li { border-right: 0; margin-right: 0; border-bottom: 1px solid var(--line); padding-bottom: 20px; }
  .mosaic { grid-auto-rows: 58px; gap: 4px; padding: 4px; }
  .strip-gallery { grid-template-columns: repeat(2, 1fr); }
  .layers li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .cta-band { grid-template-columns: minmax(0, 1fr); }
  .logo span { font-size: .62rem; letter-spacing: .26em; }
  .logo .logo-img { width: 50px; height: 50px; }
  .facts li { padding: 20px 14px 20px 0; }
  .facts strong { font-size: 1.35rem; }
  .article-cover { aspect-ratio: 4 / 3; }
}
