/* Ace Countertops — one-page landing.
   Brand: black-tie card table meets shop floor (design/VOICE.md).
   Tokens mirror assets/theme.css; the double gold+white keyline from the
   printed door-hanger is the signature section divider. */

:root {
  color-scheme: dark;
  --bg: #141414;
  --bg-deep: #0F0F0E;
  --surface: #1B1A17;
  --surface-hover: #262420;
  --fg: #F5F1E6;
  --fg-muted: #C8C1B2;
  --fg-subtle: #9B9483;
  --border: #2D2A24;
  --border-strong: #4A4232;
  --gold-hi: #F1E2A0;
  --gold: #D2AE5A;
  --gold-deep: #8C6E2E;
  --radius: 8px;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, monospace;
  --pad: clamp(1.25rem, 5vw, 4rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--gold-hi); }
section, header.hero { scroll-margin-top: 4.5rem; }

/* skip link — off-screen until a keyboard lands on it (mirrors .skip in
   assets/site.css so the landing behaves like every server-rendered page) */
.skip {
  position: absolute; left: -999px;
  background: var(--surface); color: var(--fg);
  padding: 10px 16px; border-radius: var(--radius);
  z-index: 100;
}
.skip:focus { left: 12px; top: 12px; }

h1, h2, h3 { line-height: 1.12; margin: 0 0 0.6em; font-weight: 650; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 6.5vw, 4.6rem); }
h2 { font-size: clamp(1.8rem, 4.4vw, 3rem); }

.kicker {
  font: 600 0.78rem/1 var(--mono);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1rem;
}
.section-sub { color: var(--fg-muted); max-width: 42rem; margin: 0 0 2rem; }

section { padding: clamp(3.5rem, 9vh, 6.5rem) var(--pad); max-width: 78rem; margin: 0 auto; }
/* The shared header (injectSiteHead, 2026-07-28) loads assets/site.css on this
   page, whose `main section { padding: 30px 0 }` (0,0,2) beats the bare
   `section` rule above (0,0,1) and zeroes the side padding — invisible on
   desktop where the centered 78rem max-width leaves outer whitespace, but on
   phones every section's text sat at x=0 (measured 2026-08-06 at 390px).
   site.css's `main section:last-of-type { padding-bottom: 64px }` adds a
   pseudo-class (0,1,2), so the last section needs its own re-assertion too.
   These live here, not in site.css, because landing.css loads only on this
   page and loads last — the 989 content pages never see them. */
main section { padding: clamp(3.5rem, 9vh, 6.5rem) var(--pad); }
main section:last-of-type { padding-bottom: clamp(3.5rem, 9vh, 6.5rem); }

/* ── section system (2026-07-31) ──────────────────────────────────────
   Every homepage section reads as a SECTION: kicker + heading + sub are
   centered as a block, and the content below (grids, cards, tables, the
   map) spans the full container. Long-form prose keeps a reading measure
   but is centered as a column, not pinned to the left rail. The hero and
   the quote form own their own layout and are exempt. */
section:not(.hero):not(.quote) > .kicker,
section:not(.hero):not(.quote) > h2,
section:not(.hero):not(.quote) > .section-sub {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
section:not(.hero):not(.quote) > h2 { max-width: 56rem; }
/* long-form columns: centered, with a reading measure */
.pitch-lines, .trade-verdict, .pitch-ctas { max-width: 52rem; margin-left: auto; margin-right: auto; }
.pitch-ctas { justify-content: center; }
.trade { max-width: 62rem; margin-left: auto; margin-right: auto; }
.depth--prose > p, .depth--prose > ul, .depth--faq > details, .depth--faq > p,
.depth--prose > .depth-links, .depth--table > .footnote, .depth--table > p {
  max-width: 50rem;
  margin-left: auto;
  margin-right: auto;
}

/* signature divider: thin gold rule over a white hairline */
.rule {
  height: 0;
  max-width: 78rem;
  margin: 0 auto;
  border-top: 2px solid transparent;
  border-image: linear-gradient(90deg, var(--gold-deep), var(--gold) 22%, var(--gold-hi) 50%, var(--gold) 78%, var(--gold-deep)) 1;
  position: relative;
}
.rule::after {
  content: "";
  position: absolute;
  inset: 3px 8% auto;
  border-top: 1px solid rgba(255, 255, 255, 0.35);
}

/* ── buttons ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font: 600 0.95rem/1.2 var(--font);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn-gold {
  background: linear-gradient(180deg, var(--gold-hi), var(--gold) 55%, #B08F45);
  color: #141414;
  border-color: var(--gold-deep);
}
.btn-gold:hover { filter: brightness(1.08); }
.btn-line {
  background: transparent;
  color: var(--fg);
  border-color: var(--border-strong);
}
.btn-line:hover { border-color: var(--gold); color: var(--gold-hi); }
.btn-wide { width: 100%; text-align: center; }

/* ── nav ─────────────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.6rem var(--pad);
  background: rgba(15, 15, 14, 0.78);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-brand img { height: 32px; width: auto; }
.nav-links { display: flex; gap: 1.2rem; margin-left: auto; }
.nav-links a {
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 0.92rem;
}
.nav-links a:hover { color: var(--gold-hi); }
.nav-cta { padding: 0.5rem 1rem; font-size: 0.88rem; }
.nav-toggle { display: none; margin-left: auto; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 6px 11px; cursor: pointer; color: var(--fg); font-size: 18px; }
.nav-toggle:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0;
    background: rgba(15, 15, 14, 0.96); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border);
    padding: 4px var(--pad) 12px; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 1rem; }
  .nav-links a:last-child { border-bottom: 0; }
  .nav[data-open="true"] .nav-links { display: flex; }
  /* JS off: no toggle, menu laid out in flow — same fallback as the content site */
  .no-js .nav-toggle { display: none; }
  .no-js .nav-links { display: flex; position: static; padding: 0; }
}

/* ── 1 · hero ────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 6rem var(--pad) 4rem;
  background:
    radial-gradient(120% 90% at 50% 0%, #23201a 0%, var(--bg-deep) 70%);
  overflow: hidden;
}
/* The hero backdrop is a single still (2026-08-06, replacing the wipe video).
   The <picture> element itself is not a replaced element, so it needs the
   positioning and the <img> inside it needs the cover fit — setting only one
   of the two leaves the photo at intrinsic size in the corner. */
.hero-photo,
.hero-photo .hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.hero-photo .hero-img {
  object-fit: cover;
  /* The source is a 3:4 PORTRAIT phone photo dropped into a landscape hero, so
     cover crops hard vertically and the choice of band is the whole composition.
     The white quartz island — the product — sits in the lower half; the upper
     half is cabinetry. Measured against the rendered hero at 1280×700 and at
     390×844: 62% framed the wall cabinets and cut the island off entirely, 72%
     puts the island top and the counter run in frame at both. */
  object-position: 50% 72%;
  max-width: none; /* beats the global `img { max-width: 100% }` on tall crops */
}
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(120% 100% at 50% 0%, rgba(20, 20, 20, 0.42), rgba(15, 15, 14, 0.8));
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 52rem;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.7);
}
/* No reduced-motion branch is needed any more: the backdrop is a still, so
   there is nothing to stop. (This block used to hide .hero-video and paint the
   poster as a ::after background.) */
.hero-mark { margin: 0 auto 1.5rem; width: clamp(160px, 24vw, 270px); height: auto;
  filter: drop-shadow(0 4px 18px rgba(0,0,0,0.6)); }
/* The hero H1 is a 70-char service+area headline (2026-07-31), not the old
   6-word tagline — it needs a tighter clamp than the page-wide h1 rule or it
   wraps to four lines on desktop. The tagline lives on as a gold strapline. */
.hero-inner h1 { font-size: clamp(1.7rem, 4.6vw, 3.2rem); text-wrap: balance; }
.hero-tagline { color: var(--gold); font-size: clamp(1.1rem, 2.4vw, 1.5rem); font-weight: 650; margin: 0 0 0.7rem; }
.hero-sub { color: var(--fg-muted); font-size: clamp(1rem, 2vw, 1.2rem); max-width: 36rem; margin: 0 auto 2rem; }
.hero-ctas { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; }
.hero-hint {
  position: absolute;
  bottom: 1.2rem; left: 50%;
  translate: -50%;
  color: var(--gold);
  animation: bob 2.4s ease-in-out infinite;
}
@keyframes bob { 50% { transform: translateY(6px); opacity: 0.5; } }

/* ── 2 · pitch ───────────────────────────────────────────────────────── */
.pitch { max-width: 78rem; }
.pitch-lines { display: grid; gap: 1.4rem; margin-top: 2.5rem; }
/* ── the door hanger, re-set for screen (2026-08-06) ───────────────────
   The printed hanger IS the layout, at the owner's direction: the message in
   its own order, centered, with the gold keyline under each line the way the
   card prints it. The previous version rewrote this copy as a two-card "trade"
   — that was our idea, not the client's, and it is gone.
   The separator is a bottom border on each line rather than an <hr> so it
   cannot be read as a thematic break by a screen reader — it is decoration
   repeating the printed rule. The last line drops it (nothing follows). */
.hanger {
  display: grid;
  gap: 0;
  margin: 2.2rem auto 0;
  max-width: 46rem;
  text-align: center;
}
.pitch-line {
  margin: 0;
  padding: 1.15rem 0;
  font-size: clamp(1.02rem, 2.1vw, 1.28rem);
  line-height: 1.5;
  color: var(--fg);
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(90deg, transparent, var(--gold-deep) 12%, var(--gold) 50%, var(--gold-deep) 88%, transparent) 1;
  opacity: 0;               /* revealed by WAAPI; forced on if JS is off */
}
.pitch-line:last-child { border-bottom: 0; border-image: none; }
.no-js .pitch-line, .pitch-line.shown { opacity: 1; }
.pitch-line em { color: var(--gold-hi); font-style: normal; }
.pitch-line-big { color: var(--gold-hi); font-weight: 650; }
/* Emoji render at the surrounding font size but sit low against caps; nudged
   rather than scaled so the line box never changes height between lines. */
.hemoji { font-style: normal; vertical-align: -0.08em; }

/* the trade — two cards and a swap mark; stacks under 640px */
.trade {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  gap: 1rem;
  margin-top: 2.2rem;
}
.trade-card {
  padding: 1.3rem 1.4rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
}
.trade-card h3 {
  margin: 0 0 0.3rem;
  font: 700 0.8rem var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}
.trade-card p { margin: 0; font-size: 1.12rem; font-weight: 600; color: var(--fg); }
.trade-swap { display: grid; place-items: center; color: var(--gold); }
.trade-verdict {
  margin: 1.1rem 0 0;
  text-align: center;
  font-size: 1.15rem;
  font-weight: 650;
  color: var(--gold-hi);
}
@media (max-width: 639px) {
  .trade { grid-template-columns: 1fr; }
  .trade-swap svg { rotate: 90deg; }
}
.pitch-ctas { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2.2rem; }
.pitch-serious { color: var(--fg); }

/* ── 2b · social proof ───────────────────────────────────────────────────
   Markup is generated at serve time by server/reviews.go into the
   <!--ace:reviews-strip--> marker, so there is nothing to style when the
   reviews table is empty — the whole section is absent, not hidden.
   minmax(min(15rem,100%),1fr): a fixed track minimum overflows a 320px
   viewport, and this page must not scroll sideways at any width. */
.proof { max-width: 68rem; }
.proof-sub { color: var(--fg-muted); max-width: 44rem; margin: 0 auto 0.5rem; text-align: center; }
.proof-quotes {
  list-style: none; padding: 0;
  margin: 2.2rem 0 0;
  display: grid; gap: 1.1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));
}
.proof-q {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.2rem 1.3rem;
}
.proof-stars { color: var(--gold); letter-spacing: 2px; margin: 0 0 0.6rem; }
.proof-q blockquote { margin: 0; font-size: 1rem; line-height: 1.55; color: var(--fg); }
.proof-who { margin: 0.9rem 0 0; font-size: 0.85rem; color: var(--fg-subtle); }
.proof-more { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 1.9rem 0 0; }

/* ── 3 · shop the catalog ────────────────────────────────────────────────
   Four category cards replacing the colour wall + loupe (owner, 2026-08-06).
   One real link per card (the h3), stretched over the whole card by ::after so
   the image and the CTA are part of the same hit target without adding two more
   links to the same URL for a screen reader to read out. The CTA is therefore a
   <span>, not an <a> — do not "fix" it into a link.
   Grid: 1 across on phones, 2 from 640px, 4 from 1000px; the sizes attribute in
   injectShopPictures (server/home.go) mirrors those breakpoints and must be
   changed with them. */
.shopgrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
  margin-top: 2rem;
}
@media (min-width: 640px) { .shopgrid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .shopgrid { grid-template-columns: repeat(4, 1fr); } }
.shopcard {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.shopcard:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.shopcard:focus-within { border-color: var(--gold); }
.shopcard-media { display: block; }
.shopcard-media img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #201d18;
}
.shopcard-body { display: flex; flex-direction: column; gap: 0.6rem; padding: 1rem 1.1rem 1.2rem; flex: 1; }
.shopcard-body h3 { margin: 0; font-size: 1.15rem; }
.shopcard-body h3 a { color: var(--fg); text-decoration: none; }
/* The stretched hit target. `position: relative` on the card is what bounds it. */
.shopcard-body h3 a::after { content: ""; position: absolute; inset: 0; }
.shopcard:hover .shopcard-body h3 a { color: var(--gold-hi); }
.shopcard-body p { margin: 0; font-size: 0.93rem; line-height: 1.55; color: var(--fg-muted); }
.shopcard-cta { margin-top: auto; align-self: flex-start; pointer-events: none; }
.shopgrid-more { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 1.8rem 0 0; }
@media (prefers-reduced-motion: reduce) { .shopcard { transition: none; } .shopcard:hover { transform: none; } }

/* ── 3b · colour wall — RETIRED 2026-08-06 ───────────────────────────────
   Rules kept because landing/js/{colorwall,loupe}.js are still in the tree for
   a future colour-browsing surface; nothing on this page mounts them. */
.chip-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.8rem; }
.wall-controls {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 0.5rem 1rem; margin-bottom: 0.8rem;
}
.wall-controls .chip-row { margin-bottom: 0; }
.wall-search {
  flex: 0 1 15rem; min-width: 10rem;
  padding: 0.38rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--fg);
  font: 500 0.85rem/1.2 var(--font);
}
.wall-search::placeholder { color: var(--fg-subtle); }
.wall-search:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 1px; border-color: var(--gold); }
.wall-more-row { display: flex; justify-content: center; margin-top: 1.1rem; }
.wall-more {
  padding: 0.55rem 1.5rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--gold-hi);
  font: 600 0.9rem/1.2 var(--font);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.wall-more:hover { border-color: var(--gold); color: var(--fg); }
.chip {
  padding: 0.38rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--fg-muted);
  font: 500 0.85rem/1.2 var(--font);
  cursor: pointer;
}
.chip:hover { border-color: var(--gold); color: var(--fg); }
.chip[aria-pressed="true"] {
  background: linear-gradient(180deg, var(--gold-hi), var(--gold));
  border-color: var(--gold-deep);
  color: #141414;
  font-weight: 650;
}
.color-count { font: 500 0.8rem/1 var(--mono); color: var(--fg-subtle); margin: 0 0 1.2rem; }
.swatch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 0.9rem;
}
.swatch {
  display: flex;
  flex-direction: column;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.15s, transform 0.15s;
}
.swatch:hover { border-color: var(--gold); transform: translateY(-2px); }
/* the swatch currently shown in the larger view above the wall */
.swatch.is-active { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.swatch.is-active .swatch-name { color: var(--gold-hi); }
.swatch-img { aspect-ratio: 1; background: #201d18; overflow: hidden; }
.swatch-img img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.4s; }
.swatch-img img.loaded { opacity: 1; }
.swatch-name { padding: 0.55rem 0.7rem 0.1rem; font-size: 0.86rem; font-weight: 600; }
.swatch-family { padding: 0 0.7rem 0.6rem; font-size: 0.74rem; color: var(--fg-subtle); }

/* ── 4 · the larger view (lives inside #colors since 2026-07-31) ─────── */
.loupe-stage { margin: 0 0 2.2rem; }
.loupe-hint { margin: 0.55rem 0 0; font-size: 0.88rem; color: var(--fg-subtle); max-width: 42rem; }
#loupe-canvas {
  width: 100%;
  height: clamp(300px, 52vw, 520px);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: #1a1815;
  cursor: crosshair;
  touch-action: none;
}
#loupe-caption {
  margin-top: 0.7rem;
  font: 500 0.85rem/1 var(--mono);
  color: var(--gold);
}

/* ── 5 · estimate ────────────────────────────────────────────────────── */
.est-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
@media (max-width: 860px) { .est-grid { grid-template-columns: 1fr; } }
.est-controls { display: grid; gap: 1.1rem; }
.est-controls label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--fg-muted);
}
.est-controls output { float: right; color: var(--gold-hi); font: 600 0.88rem/1.4 var(--mono); }
/* margin-inline MUST stay 0. Chrome's UA stylesheet gives input[type=range] a
   2px margin on all four sides; combined with width:100% that is 4px wider than
   the parent, and it was the entire reason the homepage reported 4px of
   horizontal overflow at 360px — the one page in the breakpoint battery that
   was not clean. A margin sits outside the border box, so box-sizing cannot
   absorb it; the width has to stop at 100% of a box with no side margins. */
.est-controls input[type="range"] { width: 100%; margin: 0.45rem 0 0; accent-color: var(--gold); }
.est-controls select, .est-controls input[type="number"] {
  width: 100%;
  margin-top: 0.45rem;
  padding: 0.55rem 0.7rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--fg);
  font: inherit;
}
.est-steppers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; }
.est-receipt {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 1.6rem;
  font-family: var(--mono);
  position: sticky;
  top: 5rem;
}
.est-row { display: flex; gap: 0.5rem; align-items: baseline; color: var(--fg-muted); font-size: 0.9rem; }
.est-row span:first-child { font-size: 1.6rem; font-weight: 700; color: var(--fg); }
.est-lines { margin: 1.1rem 0; display: grid; gap: 0.45rem; }
.est-lines div { display: flex; justify-content: space-between; font-size: 0.88rem; }
.est-lines dt { color: var(--fg-subtle); }
.est-lines dd { margin: 0; }
.est-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-top: 2px solid var(--gold);
  padding-top: 0.9rem;
}
.est-total strong { font-size: 2rem; color: var(--gold-hi); }
.est-engine { font-size: 0.7rem; color: var(--fg-subtle); letter-spacing: 0.06em; }
.est-note, .est-studio { font-family: var(--font); font-size: 0.84rem; color: var(--fg-muted); }

/* ── 6 · gallery — one row of four + lightbox ─────────────────────────
   Thumbnails: 4-across from 720px, 2×2 below. Each tile is a keyboard-
   operable button (lightbox.js sets role/tabindex); the caption sits under
   the image at thumbnail size and inside the lightbox at full size. */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}
@media (max-width: 719px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
.gitem {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: zoom-in;
  transition: border-color 0.15s, transform 0.15s;
}
.gitem:hover, .gitem:focus-visible { border-color: var(--gold); transform: translateY(-2px); }
.gitem picture { display: block; } /* <picture> is inline by default: baseline gap */
.gitem img {
  width: 100%;
  /* height:auto is load-bearing: renderPicture emits width/height ATTRIBUTES
     (layout-shift hints), and a presentational height wins whenever no CSS
     height is declared — which silently defeats aspect-ratio and rendered
     these tiles 860px tall. */
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #201d18;
}
.gitem figcaption {
  padding: 0.6rem 0.75rem 0.7rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--fg-muted);
}

/* the lightbox overlay (landing/js/lightbox.js) */
body.lb-open { overflow: hidden; }
.lb {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 10, 9, 0.97);
  /* Horizontal swipe must reach the pointer handlers. Without this the browser
     claims the gesture as a pan, fires pointercancel instead of pointerup, and
     the swipe silently does nothing. pan-y keeps any vertical scroll intact. */
  touch-action: pan-y;
}
/* 🔴 THE `hidden` ATTRIBUTE IS NOT ENOUGH WHEN THE AUTHOR SETS `display`.
   `[hidden]` is a UA-stylesheet rule (`display: none`), so ANY author rule with
   a display — `.lb { display: flex }` two lines up, `.lb-arrow { display: grid }`
   below — wins on cascade order and the element stays visible with its
   `hidden` attribute set. lightbox.js closes by setting `overlay.hidden = true`,
   which is why closing the viewer did nothing at all: the node was hidden in
   the accessibility tree and still painted over the page. Same bug hid nothing
   on the arrows, which showed on standalone (single-image) opens too.
   These two rules are what make `hidden` real here. Do not delete them, and do
   not "simplify" the JS to toggle a class instead without deleting them too. */
.lb[hidden] { display: none; }
.lb-arrow[hidden] { display: none; }
.lb-fig {
  margin: 0;
  max-width: min(92vw, 1400px);
  text-align: center;
}
.lb-fig img {
  max-width: 100%;
  max-height: 82vh;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: #201d18;
}
.lb-fig figcaption { margin-top: 0.8rem; font-size: 0.95rem; color: var(--fg-muted); }
.lb-close {
  position: absolute;
  top: max(1rem, env(safe-area-inset-top));
  right: max(1rem, env(safe-area-inset-right));
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.55rem 1rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--fg);
  font: 600 0.9rem var(--font);
  cursor: pointer;
}
.lb-close:hover { border-color: var(--gold); color: var(--gold-hi); }
.lb-arrow {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  background: rgba(27, 26, 23, 0.85);
  color: var(--fg);
  cursor: pointer;
}
.lb-prev { left: max(0.8rem, env(safe-area-inset-left)); }
.lb-next { right: max(0.8rem, env(safe-area-inset-right)); }
.lb-arrow:hover { border-color: var(--gold); color: var(--gold-hi); }
.lb-count {
  position: absolute;
  bottom: max(1rem, env(safe-area-inset-bottom));
  left: 50%;
  translate: -50%;
  margin: 0;
  font: 500 0.85rem var(--mono);
  color: var(--fg-subtle);
}
@media (max-width: 719px) {
  .lb-arrow { width: 44px; height: 44px; }
  .lb-fig { max-width: 96vw; }
  .lb-fig img { max-height: 74vh; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-hint { animation: none; }
}

/* ── 7 · edges ───────────────────────────────────────────────────────── */
.edge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.9rem;
}
.edge-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 1rem 1rem 0.9rem;
}
.edge-card canvas { width: 100%; height: 110px; display: block; }
.edge-card h3 { font-size: 0.95rem; margin: 0.6rem 0 0.1rem; }
.edge-card p { margin: 0; font: 500 0.8rem/1.4 var(--mono); color: var(--gold); }

/* ── 8 · process — full-width 3 steps, animated Inkscape icons ────────
   Cards go 3-across at ≥860px, stack below. Icon choreography per card:
   .lit (process.js, staggered) draws every stroke in via dashoffset, then
   each icon runs ONE idle motion — the laser beam sweeps across the counter,
   the saw blade spins about its hub, the install arrow presses the slab
   down. All of it dies under prefers-reduced-motion. */
.process-grid {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  counter-reset: step;
}
@media (max-width: 859px) { .process-grid { grid-template-columns: 1fr; } }
.process-step {
  position: relative;
  padding: 1.8rem 1.6rem 1.6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  opacity: 0.45;
  transform: translateY(10px);
  transition: opacity 0.5s, transform 0.5s, border-color 0.2s;
}
.process-step.lit { opacity: 1; transform: none; }
.process-step:hover { border-color: var(--border-strong); }
.step-n {
  position: absolute;
  top: 1.1rem;
  right: 1.2rem;
  font: 700 2.2rem/1 var(--mono);
  color: var(--border-strong);
}
.process-step h3 { font-size: 1.25rem; color: var(--gold-hi); margin: 1.1rem 0 0.4rem; }
.process-step p { color: var(--fg-muted); margin: 0; }
.picon { width: 84px; height: 84px; display: block; }

/* draw-in: every stroke starts dashed out, .lit releases it */
.picon path, .picon circle {
  stroke-dasharray: 260;
  stroke-dashoffset: 260;
  transition: stroke-dashoffset 1.1s cubic-bezier(0.3, 0, 0.2, 1);
}
.lit .picon path, .lit .picon circle { stroke-dashoffset: 0; }
.lit .picon .i-tick { transition-delay: 0.55s; }
.lit .picon .i-kerf { transition-delay: 0.6s; }
.lit .picon .i-level { transition-delay: 0.6s; }

/* idle motions — start after the draw completes */
.lit .picon-measure .i-beam {
  stroke-dasharray: 4 5;
  animation: beam-sweep 2.6s linear 1.2s infinite;
}
@keyframes beam-sweep { to { stroke-dashoffset: -54; } }
.lit .picon-fabricate .i-bladeunit {
  transform-origin: 48px 46px;
  animation: blade-spin 5s linear 1.2s infinite;
}
@keyframes blade-spin { to { rotate: 360deg; } }
.lit .picon-install .i-arrow {
  animation: arrow-press 2.4s cubic-bezier(0.4, 0, 0.4, 1) 1.2s infinite;
}
@keyframes arrow-press {
  0%, 100% { translate: 0 0; opacity: 1; }
  45% { translate: 0 7px; opacity: 1; }
  60% { translate: 0 7px; opacity: 0; }
  61% { translate: 0 0; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .process-step { opacity: 1; transform: none; transition: none; }
  .picon path, .picon circle { stroke-dashoffset: 0; transition: none; }
  .lit .picon .i-beam, .lit .picon .i-bladeunit, .lit .picon .i-arrow { animation: none; }
}

/* ── 9 · share ───────────────────────────────────────────────────────── */
.share-stage { max-width: 40rem; }
#share-canvas {
  width: 100%;
  height: auto;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: 0 12px 40px -12px rgba(0, 0, 0, 0.8);
}
.share-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 1.2rem; }
.share-status { font: 500 0.82rem/1.4 var(--mono); color: var(--gold); min-height: 1.2em; }

/* ── 10 · quote ──────────────────────────────────────────────────────── */
.quote-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
@media (max-width: 860px) { .quote-grid { grid-template-columns: 1fr; } }
#quote-form { display: grid; gap: 1.1rem; }
#quote-form label { font-size: 0.88rem; font-weight: 600; color: var(--fg-muted); }
#quote-form input, #quote-form textarea {
  width: 100%;
  margin-top: 0.45rem;
  padding: 0.65rem 0.8rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--fg);
  font: inherit;
  resize: vertical;
}
#quote-form input:user-invalid, #quote-form input.invalid { border-color: #D98A7B; }
.q-attach { font-size: 0.82rem; color: var(--fg-subtle); margin: 0; }
.q-status { font: 500 0.9rem/1.5 var(--mono); color: var(--gold-hi); min-height: 1.4em; margin: 0; }
.quote-direct {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 1.6rem;
  display: grid;
  gap: 0.9rem;
}
.quote-direct > p { margin: 0; font-weight: 650; }
.quote-fine { font-size: 0.78rem; color: var(--fg-subtle); }

/* ── footer ──────────────────────────────────────────────────────────── */
.footer { text-align: center; padding: 0 var(--pad) 3.5rem; }
.footer .rule { margin-bottom: 2.5rem; }
.footer img { margin: 0 auto 1rem; width: 90px; height: auto; }
.footer p { color: var(--fg-muted); margin: 0.3rem 0; }
.footer-fine { font-size: 0.78rem; color: var(--fg-subtle); max-width: 44rem; margin: 0.8rem auto 0; }
.footer-links { display: grid; gap: 1.5rem 1.25rem; grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 58rem; margin: 0 auto 2.5rem; text-align: left; }
.footer-links h4 { font: 600 0.76rem/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin: 0 0 0.6rem; }
.footer-links a { display: block; padding: 0.26rem 0; color: var(--fg-muted); font-size: 0.92rem; }
.footer-links a:hover { color: var(--gold-hi); }
@media (max-width: 640px) { .footer-links { grid-template-columns: 1fr 1fr; } }

/* ── ace:depth ── GENERATED by tools/build-core-depth.mjs · do not hand-edit.
   Depth sections on the landing page (audit item 13). Mirrors the .pg-sec
   rules in assets/site.css so a table, a card grid and a <details> FAQ look
   the same on "/" as they do on every server-rendered page. */
.depth { max-width: 72rem; }
.depth p { color: var(--fg-muted); max-width: 74ch; }
.depth ul, .depth ol { color: var(--fg-muted); max-width: 74ch; padding-left: 1.2em; }
.depth li { margin-bottom: 0.4em; }
.depth .depth-links { max-width: 74ch; line-height: 2; }
.depth .tablewrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 10px; margin-bottom: 1.4rem; }
.depth table { border-collapse: collapse; width: 100%; font-size: 0.93rem; }
.depth th { text-align: left; padding: 11px 14px; background: var(--surface); color: var(--fg); border-bottom: 1px solid var(--border-strong); white-space: nowrap; }
.depth td { padding: 10px 14px; border-bottom: 1px solid var(--border); color: var(--fg-muted); }
.depth tbody tr:last-child td { border-bottom: 0; }
.depth .footnote { font-size: 0.82rem; color: var(--fg-subtle); margin-top: 8px; }
.depth .cardgrid { list-style: none; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(15rem, 100%), 1fr)); max-width: none; }
.depth .cardgrid .card a { display: block; height: 100%; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 1.1rem 1.2rem; color: var(--fg); text-decoration: none; }
.depth .cardgrid .card a:hover { border-color: var(--gold); }
.depth .cardgrid h3 { font-size: 1.02rem; margin: 0 0 0.3rem; color: var(--gold-hi); }
.depth .cardgrid p { margin: 0; font-size: 0.9rem; color: var(--fg-muted); }
.depth .qa { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; margin-bottom: 12px; padding: 2px 20px; max-width: 74ch; }
.depth .qa summary { cursor: pointer; padding: 14px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.depth .qa summary::-webkit-details-marker { display: none; }
.depth .qa summary::after { content: "+"; color: var(--gold); font-size: 1.3rem; line-height: 1; transition: transform 0.2s; }
.depth .qa[open] summary::after { transform: rotate(45deg); }
.depth .steps { list-style: none; padding: 0; counter-reset: step; max-width: 74ch; }
.depth .steps > li { counter-increment: step; position: relative; padding: 0 0 18px 52px; }
.depth .steps > li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(210, 174, 90, 0.14); color: var(--gold-hi); font-weight: 700; }
.depth .steps h3 { margin: 4px 0 4px; font-size: 1.05rem; }
.depth .steps p { margin: 0; }
.depth h3 { font-size: 1.1rem; margin: 1.6rem 0 0.4rem; color: var(--gold-hi); }
.depth .ctarow { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 1.4rem; }
/* feature cards (catalog hubs, guide cards): image on top, body below */
.depth .cardgrid .card.has-img a { padding: 0; overflow: hidden; }
.depth .cardgrid .card.has-img picture { display: block; }
.depth .cardgrid .card.has-img img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; display: block; background: #201d18; }
.depth .cardgrid .card.has-img .cardbody { display: block; padding: 1rem 1.2rem 1.1rem; }
.depth .cardgrid .cardmore { display: inline-block; margin-top: 0.55rem; font: 600 0.8rem/1 var(--mono); color: var(--gold); }
.depth .cardgrid .card a:hover .cardmore { color: var(--gold-hi); }
.depth .depth-more { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 1.8rem; max-width: none; }
/* the coverage map (tools/build-coverage-map.mjs) */
.depth .cmap-wrap { max-width: 46rem; margin: 0 auto 1.6rem; }
.depth .cmap { width: 100%; height: auto; display: block; }
.depth .cmap-base path { fill: var(--surface); stroke: var(--border); stroke-width: 0.6; }
.depth .cmap-county { fill: rgba(210, 174, 90, 0.22); stroke: var(--gold-deep); stroke-width: 0.8; }
.depth .cmap-linked { fill: rgba(210, 174, 90, 0.42); }
.depth .cmap a:hover .cmap-county, .depth .cmap a:focus .cmap-county { fill: var(--gold); stroke: var(--gold-hi); }
.depth .cmap-hq-halo { fill: none; stroke: var(--gold); stroke-width: 1.4; opacity: 0.55; }
.depth .cmap-hq-star { fill: var(--gold-hi); stroke: #201a0c; stroke-width: 0.8; }
.depth .cmap-links h3 { margin-top: 1.4rem; }
@media (prefers-reduced-motion: no-preference) {
  .depth .cmap-hq-halo { transform-origin: center; transform-box: fill-box; animation: cmap-pulse 3s ease-out infinite; }
  @keyframes cmap-pulse { 0% { scale: 0.55; opacity: 0.8; } 70% { scale: 1.15; opacity: 0; } 100% { scale: 1.15; opacity: 0; } }
}
/* ── /ace:depth ── */

/* Form honeypot (#quote-form). Off-screen, not display:none — see the matching
   note in assets/site.css. Filling it marks the submission as spam at formsd. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ── the cost table on a phone (QA A2, 2026-07-29) ────────────────────────────
   A reviewer on an iPhone 15 reported "What a finished kitchen costs" as cut off
   and needing side-swiping to read end to end. The wrapper was already
   `overflow-x:auto`, so the PAGE never scrolled sideways — that gate was green
   and stayed green. The defect is legibility, not overflow: five columns of
   prices at 390px means you swipe away from the "Kitchen size" label and then
   cannot tell which row you are reading.

   Fix without changing the generated markup: pin the first column so the row
   label travels with you, and show a right-edge shadow so it is obvious there
   is more table. Do NOT "solve" this by shrinking the font — these are the
   prices the whole section exists to publish. */
.depth .tablewrap { position: relative; -webkit-overflow-scrolling: touch; }
@media (max-width: 760px) {
  .depth .tablewrap table { min-width: 34rem; }
  .depth .tablewrap th:first-child,
  .depth .tablewrap td:first-child {
    position: sticky; left: 0; z-index: 1;
    background: var(--surface, #141414);
    box-shadow: 1px 0 0 var(--border, #2a2a2a);
  }
  /* scroll affordance: a soft edge that disappears once you reach the end */
  .depth .tablewrap {
    background:
      linear-gradient(to left, rgba(20,20,20,0), rgba(20,20,20,.75)) right center / 26px 100% no-repeat;
    background-attachment: local;
  }
}

/* ── 8 · depth icons + split layouts (jadeqa 2026-08-19: QJ0QEJ5A, CY0CPRXD,
   JFFXXHAY, QRWXK23X) ─────────────────────────────────────────────────────
   Icons are inline SVGs from landing/icons/ (stroke currentColor, every path
   pathLength="100" — the contract the draw animation below depends on).
   Reveal + hover-pop are WAAPI in landing/js/depthanim.js; only the
   stroke-draw lives here, and only under no-preference. */
.depth-ico { display: inline-flex; flex: none; width: 44px; height: 44px; align-items: center; justify-content: center;
  border: 1px solid var(--border-strong); border-radius: 12px; color: var(--gold, #d2ae5a); background: var(--surface); }
.depth-ico svg { width: 26px; height: 26px; display: block; }
.card .depth-ico { margin-bottom: 0.75rem; }
.card.has-icon a { display: flex; flex-direction: column; }

@media (prefers-reduced-motion: no-preference) {
  @keyframes ico-redraw { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
  .ico-armed .depth-ico :is(path, rect, circle) { stroke-dasharray: 100; stroke-dashoffset: 0; }
  .ico-armed a:hover .depth-ico :is(path, rect, circle),
  .ico-armed .icon-btn:hover .depth-ico :is(path, rect, circle),
  .ico-armed .stepsico > li:hover .depth-ico :is(path, rect, circle) {
    animation: ico-redraw 0.7s ease forwards;
  }
}

/* icon buttons — a labelled action row, not bare gold links */
.icon-btns { display: flex; flex-wrap: wrap; gap: 12px; padding: 0; list-style: none; margin: 1.4rem 0 0; max-width: none; }
.icon-btn { display: inline-flex; align-items: center; gap: 12px; padding: 0.65rem 1.1rem 0.65rem 0.65rem;
  border: 1px solid var(--border-strong); border-radius: 12px; background: var(--surface);
  color: var(--fg); text-decoration: none; transition: border-color 0.25s ease, transform 0.25s ease; }
.icon-btn:hover { border-color: var(--gold, #d2ae5a); transform: translateY(-2px); text-decoration: none; }
.icon-btn .depth-ico { width: 38px; height: 38px; border: 0; }
.icon-btn b { font-weight: 600; display: block; }
.icon-btn small { color: var(--fg-subtle); }

/* two-column section split: prose/steps one side, photography the other */
.depth-split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(1.4rem, 4vw, 3rem); align-items: center; }
.depth-split .split-media { margin: 0; }
.depth-split .split-media :is(img, picture img) { width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--border); display: block; }
.depth-split .split-media figcaption { font-size: 0.78rem; color: var(--fg-subtle); margin-top: 8px; }
@media (max-width: 860px) { .depth-split { grid-template-columns: 1fr; } .depth-split .split-media { order: -1; } }

/* icon step list (what-happens-next) */
.stepsico { list-style: none; padding: 0; margin: 0; max-width: 46rem; counter-reset: step; }
.stepsico > li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; padding: 0.9rem 0; margin: 0;
  border-bottom: 1px solid var(--border); align-items: start; }
.stepsico > li:last-child { border-bottom: 0; }
.stepsico h3 { margin: 0 0 0.25em; font-size: 1.02rem; }
.stepsico p { margin: 0; font-size: 0.94rem; }

/* where-we-work: stat strip + split map layout */
.area-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; list-style: none; padding: 0; margin: 0 0 1.4rem; max-width: 46rem; }
.area-stats li { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 0.85rem 1rem; margin: 0; }
.area-stats b { display: block; font-size: 1.45rem; color: var(--gold, #d2ae5a); line-height: 1.1; }
.area-stats span { font-size: 0.82rem; color: var(--fg-subtle); }
@media (max-width: 560px) { .area-stats { grid-template-columns: 1fr 1fr; } }
.area-links summary { cursor: pointer; color: var(--fg); font-weight: 600; padding: 0.5rem 0; }
.area-links[open] summary { color: var(--gold, #d2ae5a); }
.depth-split .cmap-wrap { margin: 0; }
