/* ============================================================
   NiteLiters Inc. — "the plate book"
   Design system. See DESIGN-BRIEF.md for the reasoning.
   Fonts are self-hosted woff2; no third-party font CDN request.
   ============================================================ */

@font-face {
  font-family: "Literata";
  src: url("fonts/literata-latin.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Mulish";
  src: url("fonts/mulish-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* surfaces */
  --ink: #1a1815;
  --ink-900: #0f0e0c;
  --ink-700: #2a2723;
  --edge-dark: #3a3630;
  --paper: #f4f1ea;
  --paper-2: #e9e4d9;
  --edge-light: #d6cfc0;
  /* accent */
  --brass: #bc9c36;
  --brass-hi: #d4b24a;
  --brass-soft: #ccb788;
  /* brass is 2.3:1 on paper — too low for text. This is the text-safe
     variant (5.1:1 on --paper, 4.5:1 on --paper-2). Fills/rules keep --brass. */
  --brass-text: #786423;
  /* text */
  --ink-dim: #5e5850;
  --paper-dim: #b8b0a3;
  /* type */
  --ff-display: "Literata", Georgia, "Times New Roman", serif;
  --ff-body: "Mulish", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  /* rhythm — deliberately varied, not one gap */
  --s-1: 0.5rem;
  --s-2: 0.875rem;
  --s-3: 1.375rem;
  --s-4: 2.25rem;
  --s-5: 3.5rem;
  --s-6: 5.5rem;
  --s-7: 8rem;
  --wrap: 1180px;
  --wrap-narrow: 720px;
  --nav-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  /* z-scale — semantic, never 9999 */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-modal: 300;
  --z-toast: 400;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--ff-body);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--ff-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.018em;
  text-wrap: balance;
  margin: 0 0 var(--s-3);
}
h1 { font-size: clamp(2.2rem, 4.6vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.75rem); }
h3 { font-size: clamp(1.22rem, 2vw, 1.55rem); letter-spacing: -0.012em; }
p { margin: 0 0 var(--s-3); text-wrap: pretty; max-width: 72ch; }
.lede { font-size: clamp(1.1rem, 1.7vw, 1.3rem); line-height: 1.55; color: var(--ink-dim); }
ul, ol { margin: 0 0 var(--s-3); padding-left: 1.25rem; }
li { margin-bottom: 0.45rem; }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; border-radius: 2px; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2.5rem, var(--wrap-narrow)); margin-inline: auto; }
.skip {
  position: absolute; left: -9999px; top: 0; background: var(--ink);
  color: var(--paper); padding: 0.8rem 1.2rem; z-index: var(--z-toast);
}
.skip:focus { left: 0; }

/* ---------- the plate rule: the signature motif ---------- */
.rule {
  --rule-col: var(--edge-light);
  --tick-col: var(--brass);
  display: block;
  position: relative;
  height: 1px;
  background: var(--rule-col);
  width: 84px;
  margin: 0 0 var(--s-3);
  transform-origin: left center;
}
.rule::after {
  content: "";
  position: absolute;
  right: 0; top: -2px;
  width: 5px; height: 5px;
  background: var(--tick-col);
}
.on-ink .rule, .hero-bleed .rule { --rule-col: var(--edge-dark); --tick-col: var(--brass-soft); }
.rule.wide { width: 140px; }

/* ---------- surfaces ---------- */
.on-ink {
  background: var(--ink);
  color: var(--paper);
}
.on-ink h1, .on-ink h2, .on-ink h3 { color: var(--paper); }
.on-ink .lede, .on-ink .muted, .hero-bleed .lede { color: var(--paper-dim); }
.on-paper-2 { background: var(--paper-2); }
.muted { color: var(--ink-dim); }
.eyebrow {
  font-family: var(--ff-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brass-text);
  margin: 0 0 var(--s-2);
}
.on-ink .eyebrow, .hero-bleed .eyebrow, .plateband .eyebrow { color: var(--brass-soft); }

section { padding-block: var(--s-6); }
section.tight { padding-block: var(--s-5); }
section.tall { padding-block: var(--s-7); }

/* ---------- buttons: surface-conditional (see DESIGN-BRIEF §2) ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--ff-body); font-weight: 700; font-size: 0.97rem;
  letter-spacing: 0.01em;
  padding: 0.95rem 1.6rem;
  border: 1px solid transparent;
  border-radius: 2px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.22s var(--ease), color 0.22s var(--ease),
    border-color 0.22s var(--ease), transform 0.18s var(--ease),
    box-shadow 0.22s var(--ease);
}
.btn:active { transform: translateY(1px); }

/* on paper: ink fill (brass fails 3:1 on paper) */
.btn-primary { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-primary:hover { background: var(--ink-700); box-shadow: inset 0 -3px 0 var(--brass); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--edge-light); }
.btn-secondary:hover { border-color: var(--brass); box-shadow: inset 0 -2px 0 var(--brass); }

/* on ink: brass fill */
.on-ink .btn-primary, .hero-bleed .btn-primary { background: var(--brass); color: var(--ink); border-color: var(--brass); }
.on-ink .btn-primary:hover, .hero-bleed .btn-primary:hover { background: var(--brass-hi); border-color: var(--brass-hi); box-shadow: none; }
.on-ink .btn-secondary, .hero-bleed .btn-secondary { background: transparent; color: var(--paper); border-color: var(--brass-soft); }
.on-ink .btn-secondary:hover, .hero-bleed .btn-secondary:hover { border-color: var(--brass-hi); box-shadow: inset 0 -2px 0 var(--brass-hi); }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; }

/* ---------- header — no-jitter: fixed 76px box at all times ---------- */
#nav-sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 1px; }
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: var(--z-sticky);
  background: rgba(26, 24, 21, 0.92);
  border-bottom: 1px solid var(--edge-dark);
  /* ONLY compositor-safe properties transition; never height/padding/font-size */
  transition: background-color 0.28s var(--ease), box-shadow 0.28s var(--ease),
    backdrop-filter 0.28s var(--ease);
}
.site-header.scrolled {
  background: rgba(15, 14, 12, 0.97);
  backdrop-filter: saturate(140%) blur(10px);
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.36);
}
.header-inner {
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-2);
}
.brand { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.brand img { height: 34px; width: auto; }

.nav { display: flex; align-items: center; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
.nav > li { margin: 0; }
.nav a, .nav .navbtn {
  display: inline-flex; align-items: center; gap: 0.35rem;
  color: var(--paper); text-decoration: none;
  font-size: 0.88rem; font-weight: 600;
  white-space: nowrap;
  padding: 0.6rem 0.6rem;
  background: none; border: 0; border-radius: 2px; cursor: pointer;
  position: relative;
  transition: color 0.2s var(--ease);
}
.nav a::after, .nav .navbtn::after {
  content: ""; position: absolute; left: 0.6rem; right: 0.6rem; bottom: 0.38rem;
  height: 1px; background: var(--brass-soft);
  transform: scaleX(0); transform-origin: left; transition: transform 0.24s var(--ease);
}
.nav a:hover::after, .nav .navbtn:hover::after,
.nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav .navbtn svg { transition: transform 0.24s var(--ease); }
.nav .navbtn[aria-expanded="true"] svg { transform: rotate(180deg); }

.has-menu { position: relative; }
.menu {
  position: absolute; top: 100%; left: 0;   /* flush — no dead hover gap */
  min-width: 268px;
  background: var(--ink-900);
  border: 1px solid var(--edge-dark);
  border-radius: 2px;
  padding: 0.45rem;
  margin: 0; list-style: none;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.5);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
  z-index: var(--z-dropdown);
}
.has-menu.open .menu { opacity: 1; visibility: visible; transform: translateY(0); }
.menu li { margin: 0; }
.menu a {
  display: block; width: 100%; padding: 0.6rem 0.8rem;
  font-size: 0.9rem; font-weight: 600;
}
.menu a::after { display: none; }
.menu a:hover { background: var(--ink-700); color: var(--brass-soft); }
.menu a small { display: block; font-weight: 400; font-size: 0.78rem; color: var(--paper-dim); margin-top: 0.1rem; }

/* nav hover preview (explore layer #4) — pointer-only enhancement */
.has-preview { position: relative; }   /* anchor the preview to its own nav item */
.nav-preview {
  position: absolute; top: 100%; left: 0;
  width: 290px; padding: 0.95rem 1.05rem;
  background: var(--ink-900); border: 1px solid var(--edge-dark);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.5);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
  z-index: var(--z-dropdown); pointer-events: none;
}
.nav-preview strong { display: block; font-family: var(--ff-display); font-size: 1rem; margin-bottom: 0.3rem; color: var(--paper); }
.nav-preview span { display: block; font-size: 0.83rem; color: var(--paper-dim); line-height: 1.5; }
@media (hover: hover) and (pointer: fine) {
  .has-preview:hover .nav-preview { opacity: 1; visibility: visible; transform: translateY(0); }
}

.header-cta { display: flex; align-items: center; gap: var(--s-2); flex-shrink: 0; }
.tel-link {
  display: inline-flex; align-items: center; gap: 0.45rem;
  color: var(--paper); text-decoration: none; font-weight: 700; font-size: 0.9rem;
  white-space: nowrap; transition: color 0.2s var(--ease);
}
.tel-link:hover { color: var(--brass-soft); }
.tel-link svg { flex-shrink: 0; }
.header-cta .btn { padding: 0.7rem 0.95rem; font-size: 0.85rem; }

.burger {
  display: none; background: none; border: 1px solid var(--edge-dark);
  border-radius: 2px; padding: 0.55rem 0.62rem; cursor: pointer; color: var(--paper);
}
.burger span { display: block; width: 19px; height: 2px; background: currentColor; margin: 3.5px 0; transition: transform .24s var(--ease), opacity .24s var(--ease); }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* offset for fixed header */
main { padding-top: var(--nav-h); }

/* ---------- mobile nav ---------- */
@media (max-width: 1220px) {   /* header needs ~1200px at desktop; 20px slack */
  .burger { display: block; }
  .nav {
    position: fixed; inset: var(--nav-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink-900);
    border-bottom: 1px solid var(--edge-dark);
    padding: var(--s-2) 1.25rem var(--s-4);
    max-height: calc(100dvh - var(--nav-h));
    overflow-y: auto;
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: opacity .24s var(--ease), transform .24s var(--ease), visibility .24s;
  }
  .nav.open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav a, .nav .navbtn { padding: 0.85rem 0.25rem; font-size: 1rem; justify-content: space-between; width: 100%; }
  .nav a::after, .nav .navbtn::after { display: none; }
  .has-menu { position: static; }
  .menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; border-left: 1px solid var(--edge-dark);
    margin: 0 0 var(--s-2) 0.3rem; padding: 0 0 0 0.7rem;
    background: transparent;
    display: none;
  }
  .has-menu.open .menu { display: block; }
  .nav-preview { display: none; }
  .header-cta .btn { display: none; }
}
@media (max-width: 560px) {
  .tel-link span { display: none; }
  .brand img { height: 28px; }
}

/* ---------- HERO A — home: the inset plate (on paper) ---------- */
.hero-plate { padding-block: var(--s-6) var(--s-5); background: var(--paper); }
.hero-plate .grid {
  display: grid; grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(2rem, 4.5vw, 4rem); align-items: center;
}
.hero-plate h1 { margin-bottom: var(--s-3); }
.hero-plate .hero-copy p { max-width: 46ch; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 0 var(--s-3);
  margin-top: var(--s-4); padding-top: var(--s-3);
  border-top: 1px solid var(--edge-light);
  font-size: 0.83rem; color: var(--ink-dim);
}
.hero-meta b { color: var(--ink); font-weight: 700; }

/* the plate itself */
.plate { position: relative; }
.plate .frame {
  padding: 10px; background: var(--paper-2);
  border: 1px solid var(--edge-light);
}
.plate img { width: 100%; background: var(--ink-900); }
.plate figcaption {
  display: flex; align-items: baseline; gap: 0.7rem;
  margin-top: 0.7rem; font-size: 0.79rem; color: var(--ink-dim);
}
.plate .no {
  font-family: var(--ff-display); font-weight: 700;
  color: var(--brass-text); letter-spacing: 0.02em; flex-shrink: 0;
}
.plate .no::after {
  content: ""; display: inline-block; width: 22px; height: 1px;
  background: var(--edge-light); margin-left: 0.6rem; vertical-align: middle;
}
.on-ink .plate .frame { background: var(--ink-700); border-color: var(--edge-dark); }
.on-ink .plate figcaption { color: var(--paper-dim); }
.on-ink .plate .no { color: var(--brass-soft); }
.on-ink .plate .no::after { background: var(--edge-dark); }

@media (max-width: 900px) {
  .hero-plate .grid { grid-template-columns: 1fr; gap: var(--s-3); }
  .hero-plate { padding-block: var(--s-4) var(--s-4); }
  /* plate first on small screens: a monograph opens on the plate, and it puts
     the photography above the fold instead of a full screen of type */
  .hero-plate .plate { order: -1; }
  .hero-plate .plate .frame { padding: 6px; }
  .hero-plate .plate figcaption { font-size: 0.74rem; line-height: 1.45; margin-top: 0.5rem; }
  .hero-plate h1 { font-size: clamp(1.95rem, 8.2vw, 2.5rem); }
  .hero-plate .hero-meta { margin-top: var(--s-3); }
}

/* ---------- HERO B — service: full-bleed dark, type over image ---------- */
.hero-bleed {
  position: relative; min-height: min(72vh, 620px);
  display: flex; align-items: flex-end;
  padding-block: var(--s-6) var(--s-5);
  background: var(--ink-900); color: var(--paper);
  overflow: hidden;
}
.hero-bleed .bg { position: absolute; inset: 0; }
.hero-bleed .bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.92; }
/* Scrim is directional: heavy where the type sits, light where the photograph
   should stay a photograph. A flat overlay turns night photos into beige haze. */
.hero-bleed::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgba(12,11,9,0.92) 0%, rgba(12,11,9,0.78) 34%, rgba(12,11,9,0.30) 68%, rgba(12,11,9,0.12) 100%),
    linear-gradient(to top, rgba(12,11,9,0.82) 0%, rgba(12,11,9,0.20) 42%, rgba(12,11,9,0) 100%);
}
@media (max-width: 900px) {
  .hero-bleed::after {
    background: linear-gradient(to top, rgba(12,11,9,0.94) 10%, rgba(12,11,9,0.74) 55%, rgba(12,11,9,0.45) 100%);
  }
}
.hero-bleed .wrap { position: relative; z-index: 1; }
.hero-bleed h1 { max-width: 16ch; }
.hero-bleed .lede { max-width: 54ch; }
.crumbs { font-size: 0.8rem; color: var(--paper-dim); margin-bottom: var(--s-3); }
.crumbs a { text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .2s var(--ease); }
.crumbs a:hover { border-color: var(--brass-soft); }
.crumbs span { opacity: 0.5; margin: 0 0.45rem; }

/* ---------- HERO C — city: split, fact panel ---------- */
.hero-split { padding: 0; background: var(--paper-2); }
.hero-split .grid { display: grid; grid-template-columns: 1.05fr 1fr; min-height: 480px; }
.hero-split .shot { position: relative; }
.hero-split .shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-split .panel {
  padding: clamp(2.2rem, 4.5vw, 4rem) clamp(1.5rem, 3.5vw, 3.2rem);
  display: flex; flex-direction: column; justify-content: center;
}
.hero-split h1 { font-size: clamp(2rem, 4vw, 3.1rem); }
.factlist { margin: var(--s-3) 0 var(--s-4); border-top: 1px solid var(--edge-light); }
.factlist div {
  display: flex; justify-content: space-between; gap: var(--s-3);
  padding: 0.68rem 0; border-bottom: 1px solid var(--edge-light);
  font-size: 0.87rem;
}
.factlist dt { color: var(--ink-dim); margin: 0; }
.factlist dd { margin: 0; font-weight: 700; text-align: right; }
@media (max-width: 900px) {
  .hero-split .grid { grid-template-columns: 1fr; }
  .hero-split .shot { height: 260px; }
}

/* ---------- trust bar ---------- */
.trustbar { background: var(--ink); color: var(--paper); padding-block: var(--s-3); }
.trustbar ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 0.6rem clamp(1.2rem, 3vw, 2.6rem);
  font-size: 0.85rem; font-weight: 600; letter-spacing: 0.015em;
}
.trustbar li { display: flex; align-items: center; gap: 0.5rem; margin: 0; }
.trustbar svg { color: var(--brass-soft); flex-shrink: 0; }

/* ---------- doorway service cards (explore layer #1) ---------- */
.doorways { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: var(--s-3); }
.doorway {
  position: relative; display: flex; flex-direction: column;
  background: var(--paper-2);
  border: 1px solid var(--edge-light);
  text-decoration: none; color: inherit;
  overflow: hidden;
  transition: border-color .26s var(--ease), transform .26s var(--ease), box-shadow .26s var(--ease);
}
.doorway:hover { border-color: var(--brass); transform: translateY(-3px); box-shadow: 0 16px 38px rgba(26,24,21,0.13); }
.doorway .shot { aspect-ratio: 4/3; overflow: hidden; background: var(--ink-900); }
.doorway .shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.doorway:hover .shot img { transform: scale(1.045); }
.doorway .body { padding: var(--s-3); display: flex; flex-direction: column; flex: 1; }
.doorway h3 { margin-bottom: 0.5rem; }
.doorway p { font-size: 0.93rem; color: var(--ink-dim); margin-bottom: var(--s-2); }
.doorway .peek {
  margin-top: auto; padding-top: var(--s-2);
  border-top: 1px solid var(--edge-light);
}
.doorway .peek-label { font-size: 0.72rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--brass-text); margin-bottom: 0.4rem; }
.doorway .peek ul { list-style: none; margin: 0; padding: 0; font-size: 0.85rem; color: var(--ink-dim); }
.doorway .peek li { margin-bottom: 0.25rem; padding-left: 0.9rem; position: relative; }
.doorway .peek li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 5px; height: 1px; background: var(--brass); }
.doorway .go { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: var(--s-2); font-weight: 700; font-size: 0.87rem; color: var(--ink); }
.doorway .go svg { transition: transform .26s var(--ease); }
.doorway:hover .go svg { transform: translateX(4px); }
/* the peek collapses on pointer devices until hover; always in the DOM + crawlable */
@media (hover: hover) and (pointer: fine) {
  .doorway .peek {
    display: grid; grid-template-rows: 0fr;
    opacity: 0; padding-top: 0; border-top-color: transparent;
    transition: grid-template-rows .34s var(--ease), opacity .3s var(--ease), padding-top .34s var(--ease);
  }
  .doorway .peek > div { overflow: hidden; }
  .doorway:hover .peek, .doorway:focus-visible .peek {
    grid-template-rows: 1fr; opacity: 1; padding-top: var(--s-2); border-top-color: var(--edge-light);
  }
}


/* Mobile: the doorway card goes horizontal. Eight full-width 4:3 cards is a
   long scroll, and a 40vw image also stops the browser fetching an 800w
   thumbnail for a below-the-fold card. */
@media (max-width: 700px) {
  .doorway { display: grid; grid-template-columns: 38% 1fr; align-items: stretch; }
  .doorway .shot { aspect-ratio: auto; height: 100%; min-height: 128px; }
  .doorway .body { padding: var(--s-2) var(--s-3) var(--s-3) var(--s-2); }
  .doorway h3 { font-size: 1.08rem; }
  .doorway p { font-size: 0.88rem; margin-bottom: var(--s-2); }
  .doorway .peek ul { font-size: 0.8rem; }
  .doorway .go { font-size: 0.82rem; }
}

/* ---------- symptom picker (explore layer #2) ---------- */
.picker-chips { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-bottom: var(--s-3); }
.chip {
  border: 1px solid var(--edge-light); background: var(--paper);
  padding: 0.65rem 1.05rem; border-radius: 999px;
  font-size: 0.9rem; font-weight: 600; cursor: pointer;
  transition: border-color .22s var(--ease), background-color .22s var(--ease), color .22s var(--ease);
}
.chip:hover { border-color: var(--brass); }
.chip[aria-expanded="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.picker-answer {
  border-left: 1px solid var(--edge-light);
  padding: var(--s-2) 0 var(--s-2) var(--s-3);
  display: none;
}
.picker-answer.open { display: block; }
.picker-answer p { margin-bottom: 0.6rem; }
.picker-answer a { font-weight: 700; color: var(--ink); text-underline-offset: 3px; }

/* ---------- plate band (gallery teaser, on ink) ---------- */
.plateband { background: var(--ink); color: var(--paper); }
.plate-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: var(--s-2); }
.plate-grid .plate .frame { padding: 7px; }
.plate-grid figcaption { font-size: 0.74rem; }

/* gallery page grid — denser, plate numbers */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: var(--s-3); }

/* ---------- method / zones band ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--s-4) var(--s-3); counter-reset: step; }
.step { position: relative; padding-top: var(--s-3); border-top: 1px solid var(--edge-dark); }
.step h3 { font-size: 1.12rem; margin-bottom: 0.5rem; }
.step p { font-size: 0.92rem; color: var(--paper-dim); margin: 0; }
.step .mark {
  font-family: var(--ff-display); font-size: 0.82rem; font-weight: 700;
  color: var(--brass-soft); display: block; margin-bottom: 0.5rem; letter-spacing: 0.04em;
}

/* ---------- stats ---------- */
.stats { display: flex; flex-wrap: wrap; gap: var(--s-4) clamp(1.5rem, 5vw, 4.5rem); }
.stat .n {
  font-family: var(--ff-display); font-weight: 700;
  font-size: clamp(2.1rem, 4.2vw, 3.1rem); line-height: 1;
  color: var(--brass); display: block;
}
.on-ink .stat .n { color: var(--brass-soft); }
.stat .l { font-size: 0.84rem; color: var(--ink-dim); margin-top: 0.4rem; display: block; max-width: 20ch; }
.on-ink .stat .l { color: var(--paper-dim); }

/* ---------- prose column (service pages) ---------- */
.prose { max-width: 68ch; }
.prose h2 { margin-top: var(--s-5); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: var(--s-4); }
.prose ul li { margin-bottom: 0.55rem; }
.pull {
  margin: var(--s-4) 0; padding: var(--s-3) 0 var(--s-3) var(--s-3);
  border-left: 1px solid var(--edge-light);
  font-family: var(--ff-display); font-size: 1.16rem; line-height: 1.5; font-weight: 700;
}
.pull::before { content: ""; position: absolute; left: -1px; top: 0; width: 1px; height: 28px; background: var(--brass); }
.pull { position: relative; }
.pull cite { display: block; font-family: var(--ff-body); font-size: 0.85rem; font-style: normal; color: var(--ink-dim); margin-top: 0.6rem; }

/* ---------- specs list (city pages) ---------- */
.specs { border-top: 1px solid var(--edge-light); margin: 0 0 var(--s-4); }
.specs > div { display: grid; grid-template-columns: 210px 1fr; gap: var(--s-3); padding: var(--s-3) 0; border-bottom: 1px solid var(--edge-light); }
.specs dt { font-weight: 700; font-size: 0.93rem; margin: 0; }
.specs dd { margin: 0; color: var(--ink-dim); font-size: 0.95rem; }
.specs dd p:last-child { margin-bottom: 0; }
@media (max-width: 700px) { .specs > div { grid-template-columns: 1fr; gap: 0.35rem; } }

/* ---------- accordion (FAQ) ---------- */
.faq { border-top: 1px solid var(--edge-light); }
.faq-item { border-bottom: 1px solid var(--edge-light); }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  padding: var(--s-3) 2.5rem var(--s-3) 0; position: relative;
  font-family: var(--ff-display); font-size: 1.06rem; font-weight: 700; line-height: 1.35;
  transition: color .2s var(--ease);
}
.faq-q:hover { color: var(--brass-text); }
.faq-q .chev {
  position: absolute; right: 0.2rem; top: 50%; margin-top: -8px;
  transition: transform .3s var(--ease); color: var(--brass);
}
.faq-q[aria-expanded="true"] .chev { transform: rotate(180deg); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .32s var(--ease); }
.faq-a > div { overflow: hidden; }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a p { padding-bottom: var(--s-3); margin: 0; color: var(--ink-dim); }
.faq-a p + p { padding-top: 0; }
.faq-a p:first-child { font-weight: 600; color: var(--ink); }

/* ---------- service area ---------- */
.area-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: var(--s-4) var(--s-3); }
.area-list { list-style: none; margin: 0; padding: 0; }
.area-list li { padding: 0.5rem 0; border-bottom: 1px solid var(--edge-light); font-size: 0.94rem; margin: 0; }
.area-list a { font-weight: 700; text-decoration: none; border-bottom: 1px solid var(--brass); padding-bottom: 1px; }
.area-list a:hover { color: var(--brass-text); }
.area-list .note { display: block; font-size: 0.82rem; color: var(--ink-dim); font-weight: 400; margin-top: 0.15rem; }
/* plain-text towns: same rhythm, clearly not clickable */
.area-plain { font-size: 0.95rem; color: var(--ink-dim); line-height: 1.85; }

/* ---------- form shell (zero-CLS mount target) ---------- */
.form-shell {
  position: relative;
  background: var(--paper-2);
  border: 1px solid var(--edge-light);
  padding: var(--s-3);
  min-height: 759px;              /* settled embed height (713) + padding: no layout shift on mount */
}
/* the form wraps taller on narrow screens (measured 2026-10-01: 778 at 360-390, 818 at 320) */
@media (max-width: 480px) { .form-shell { min-height: 824px; } }
@media (max-width: 340px) { .form-shell { min-height: 864px; } }
/* the GHL form is transparent with dark labels, so the live embed keeps the
   paper card on dark bands; only the fallback block goes dark */
.on-ink .form-shell.no-embed { background: var(--ink-700); border-color: var(--edge-dark); }
.form-shell iframe { width: 100%; border: 0; display: block; }
/* shown only until the GHL embed is configured */
.form-shell.no-embed { min-height: 0; }
.form-fallback p { margin-bottom: var(--s-2); }
.form-fallback .ff-tel { font-family: var(--ff-display); font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; margin: var(--s-2) 0; }
.form-fallback .ff-tel a { text-decoration: none; }
.form-fallback .ff-meta { font-size: 0.88rem; color: var(--ink-dim); margin-bottom: var(--s-3); }
.on-ink .form-fallback .ff-meta { color: var(--paper-dim); }
.form-skeleton {
  position: absolute; inset: var(--s-3);
  display: flex; flex-direction: column; gap: 0.9rem;
  pointer-events: none;
}
.form-skeleton i {
  display: block; height: 46px; border-radius: 2px;
  background: linear-gradient(90deg, var(--edge-light) 25%, var(--paper) 50%, var(--edge-light) 75%);
  background-size: 260% 100%;
  animation: sheen 1.6s linear infinite;
}
.form-skeleton i:nth-child(5) { height: 96px; }
.form-skeleton i:last-child { height: 50px; width: 62%; }
@keyframes sheen { to { background-position: -260% 0; } }
.form-shell.mounted .form-skeleton { display: none; }

.form-card h2, .form-card h3 { margin-bottom: var(--s-3); }

/* ---------- review embed ---------- */
.review-embed { position: relative; min-height: 380px; }
.review-embed iframe { width: 100%; border: 0; display: block; }

/* ---------- where-to-next (explore layer #5) ---------- */
.wtn { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: var(--s-2); }
.wtn a {
  display: block; padding: var(--s-3);
  background: var(--paper); border: 1px solid var(--edge-light);
  text-decoration: none; color: inherit;
  transition: border-color .24s var(--ease), transform .24s var(--ease), background-color .24s var(--ease);
}
.wtn a:hover { border-color: var(--brass); transform: translateY(-2px); background: var(--paper-2); }
.wtn .k { display: block; font-size: 0.73rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--brass-text); margin-bottom: 0.45rem; }
.wtn .t { display: block; font-family: var(--ff-display); font-size: 1.1rem; font-weight: 700; margin-bottom: 0.35rem; line-height: 1.25; }
.wtn .d { display: block; font-size: 0.87rem; color: var(--ink-dim); line-height: 1.5; }
.wtn .arrow { display: inline-block; margin-top: 0.6rem; color: var(--brass); transition: transform .24s var(--ease); }
.wtn a:hover .arrow { transform: translateX(4px); }

/* ---------- final CTA band ---------- */
.cta-band { background: var(--ink); color: var(--paper); }
.cta-band .grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
@media (max-width: 900px) { .cta-band .grid { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-footer { background: var(--ink-900); color: var(--paper-dim); padding-block: var(--s-5) var(--s-4); font-size: 0.89rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: var(--s-4) var(--s-3); }
.site-footer .foot-h { font-family: var(--ff-body); font-size: 0.75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brass-soft); margin: 0 0 var(--s-2); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.45rem; }
.site-footer a { text-decoration: none; transition: color .2s var(--ease); }
.site-footer a:hover { color: var(--brass-soft); }
.site-footer img.flogo { height: 30px; width: auto; margin-bottom: var(--s-2); }
.site-footer address { font-style: normal; line-height: 1.75; }
.footer-legal {
  margin-top: var(--s-4); padding-top: var(--s-3);
  border-top: 1px solid var(--edge-dark);
  display: flex; flex-wrap: wrap; gap: 0.5rem var(--s-3);
  align-items: center; justify-content: space-between;
  font-size: 0.8rem;
}
.socials { display: flex; gap: 0.7rem; margin-top: var(--s-2); }
.socials a { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--edge-dark); border-radius: 2px; transition: border-color .2s var(--ease), color .2s var(--ease); }
.socials a:hover { border-color: var(--brass-soft); color: var(--brass-soft); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- mobile sticky bottom bar ---------- */
.mobilebar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: var(--z-sticky);
  display: none; grid-template-columns: 1fr 1fr 1fr;
  background: var(--ink-900); border-top: 1px solid var(--edge-dark);
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.mobilebar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.2rem;
  padding: 0.7rem 0.3rem; color: var(--paper); text-decoration: none;
  font-size: 0.72rem; font-weight: 700; letter-spacing: .02em;
  border-right: 1px solid var(--edge-dark);
}
.mobilebar a:last-child { border-right: 0; }
.mobilebar a.primary { background: var(--brass); color: var(--ink); }
.mobilebar svg { display: block; }
@media (max-width: 860px) {
  .mobilebar { display: grid; }
  body { padding-bottom: 66px; }
}

/* ---------- motion: reveals ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(20px); }
.js [data-reveal].in { opacity: 1; transform: none; transition: opacity .46s var(--ease), transform .46s var(--ease); }
.js [data-reveal-stagger] > * { opacity: 0; transform: translateY(18px); }
.js [data-reveal-stagger].in > * { opacity: 1; transform: none; transition: opacity .44s var(--ease), transform .44s var(--ease); }
.js [data-reveal-stagger].in > *:nth-child(1) { transition-delay: 0ms; }
.js [data-reveal-stagger].in > *:nth-child(2) { transition-delay: 70ms; }
.js [data-reveal-stagger].in > *:nth-child(3) { transition-delay: 140ms; }
.js [data-reveal-stagger].in > *:nth-child(4) { transition-delay: 210ms; }
.js [data-reveal-stagger].in > *:nth-child(5) { transition-delay: 280ms; }
.js [data-reveal-stagger].in > *:nth-child(6) { transition-delay: 350ms; }
.js [data-reveal-stagger].in > *:nth-child(7) { transition-delay: 420ms; }
.js [data-reveal-stagger].in > *:nth-child(8) { transition-delay: 490ms; }
/* the signature motion: the plate rule is drawn onto the page */
.js .rule { transform: scaleX(0); }
.js [data-reveal].in .rule, .js .rule.in { transform: scaleX(1); transition: transform .5s var(--ease) .12s; }

/* HERO CONTENT NEVER WAITS ON JS.
   A [data-reveal] block starts at opacity:0 and only becomes visible once
   main.js loads and the observer fires — which pushes LCP out by the whole
   JS round-trip (measured: home mobile LCP 2.71s -> the hero text). Above the
   fold we use a CSS-only entrance that begins at first paint instead, so the
   element is an LCP candidate immediately. */
@keyframes heroIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.js .hero-plate [data-reveal],
.js .hero-bleed [data-reveal],
.js .hero-split [data-reveal] {
  opacity: 1;
  transform: none;
  animation: heroIn 0.5s var(--ease) both;
}
.js .hero-plate .plate[data-reveal] { animation-delay: 0.08s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal], .js [data-reveal-stagger] > *, .js .rule {
    opacity: 1 !important; transform: none !important; transition: none !important;
  }
  .js .hero-plate [data-reveal], .js .hero-bleed [data-reveal], .js .hero-split [data-reveal] { animation: none !important; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ---------- utilities ---------- */
.stack-4 > * + * { margin-top: var(--s-4); }
.center { text-align: center; }
.center .rule, .center p { margin-inline: auto; }
.center .rule { margin-bottom: var(--s-3); }
.sec-head { max-width: 62ch; margin-bottom: var(--s-4); }
.sec-head.center { margin-inline: auto; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }
.split-media { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 900px) { .split-media { grid-template-columns: 1fr; } }

/* ---------- gallery viewer (2026-10-08) ----------
   JS builds one viewer per gallery section: a large stage plus thumbnails.
   Without JS the plain .gallery-grid stays and nothing below applies.
   Wide screens: thumbnails in a scrolling column beside the stage.
   Narrow screens: stage on top, thumbnails in a swipeable strip. */
.js .gallery-grid.gv-src { display: none; }
.gview { display: grid; gap: var(--s-2); grid-template-columns: minmax(0, 1fr); }
.gview-stage {
  position: relative; background: var(--ink-900);
  border: 1px solid var(--edge-light); padding: 10px;
  aspect-ratio: 4 / 3; width: 100%; touch-action: pan-y;
}
.gview-stage img {
  width: 100%; height: 100%; object-fit: contain; display: block;
  transition: opacity 0.25s var(--ease);
}
.gview-stage img.is-swapping { opacity: 0.15; }
.gview-nav {
  position: absolute; top: 50%; translate: 0 -50%;
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  background: rgb(15 14 12 / 0.62); color: var(--paper);
  border: 1px solid rgb(244 241 234 / 0.25);
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.gview-nav:hover { background: rgb(15 14 12 / 0.85); }
.gview-nav:active { transform: scale(0.94); }
.gview-nav svg { width: 22px; height: 22px; }
.gview-nav.prev { left: 18px; }
.gview-nav.next { right: 18px; }
.gview-cap {
  display: flex; align-items: baseline; gap: 0.7rem; flex-wrap: wrap;
  max-width: none; margin: 0; font-size: 0.9rem; color: var(--ink-dim); min-height: 2.6em;
}
.gview-cap .no { font-family: var(--ff-display); font-weight: 700; color: var(--brass-text); flex-shrink: 0; }
.gview-cap .no::after {
  content: ""; display: inline-block; width: 22px; height: 1px;
  background: var(--edge-light); margin-left: 0.6rem; vertical-align: middle;
}
.gview-cap .gview-text { flex: 1 1 20ch; }
.gview-count { margin-left: auto; font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }
.gview-thumbs {
  display: flex; gap: 8px; list-style: none; margin: 0; padding: 0 0 6px;
  overflow-x: auto; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch;
}
.gview-thumbs li { flex: 0 0 96px; scroll-snap-align: start; }
.gview-thumb {
  display: block; width: 100%; padding: 0; cursor: pointer;
  border: 2px solid transparent; background: var(--ink-900);
  opacity: 0.72; transition: opacity 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.gview-thumb img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.gview-thumb:hover { opacity: 1; transform: translateY(-2px); }
.gview-thumb[aria-current="true"] { opacity: 1; border-color: var(--brass); }
@media (min-width: 1000px) {
  .gview {
    grid-template-columns: minmax(0, 1fr) 312px;
    grid-template-areas: "stage thumbs" "cap thumbs";
    align-items: start; column-gap: var(--s-3);
  }
  .gview-stage { grid-area: stage; max-width: calc(76vh * 4 / 3); justify-self: center; }
  .gview-cap { grid-area: cap; }
  .gview-thumbs {
    grid-area: thumbs; align-self: stretch; contain: size;
    display: grid; grid-template-columns: repeat(3, 1fr); align-content: start;
    overflow-x: hidden; overflow-y: auto; padding: 2px 6px 2px 2px;
  }
}
@media (max-width: 700px) {
  .gview-stage { padding: 6px; }
  .gview-nav { width: 44px; height: 44px; }
  .gview-nav.prev { left: 10px; }
  .gview-nav.next { right: 10px; }
  .gview-thumbs li { flex-basis: 84px; }
}
@media (prefers-reduced-motion: reduce) {
  .gview-stage img, .gview-thumb, .gview-nav { transition: none; }
}

/* ---- before / after slider (2026-10-08). Markup from assemble.py ba_html().
   The after photo is the base; the before photo sits on top, clipped to the
   left of --ba. A transparent native range input on top does the dragging,
   so keyboard, touch and screen readers work without extra code. ---- */
.ba-wrap { max-width: 980px; margin: 0; }
.ba-stage { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ink-900); --ba: 50%; touch-action: pan-y; }
.ba-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; }
.ba-before { clip-path: inset(0 calc(100% - var(--ba)) 0 0); }
.ba-line { position: absolute; top: 0; bottom: 0; left: var(--ba); width: 2px; margin-left: -1px; background: var(--paper); box-shadow: 0 0 10px rgba(0,0,0,.45); pointer-events: none; }
.ba-knob { position: absolute; top: 50%; left: var(--ba); width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: var(--paper); border: 2px solid var(--brass); box-shadow: 0 4px 14px rgba(0,0,0,.4); display: grid; place-items: center; color: var(--ink); pointer-events: none; transition: transform .2s var(--ease); }
.ba-knob svg { display: block; }
.ba-tag { position: absolute; top: 12px; padding: 0.28rem 0.6rem; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--paper); background: rgba(15,14,12,.66); pointer-events: none; transition: opacity .25s; }
.ba-tag.b { left: 12px; }
.ba-tag.a { right: 12px; color: var(--ink); background: var(--brass-hi); }
.ba-stage[data-edge="l"] .ba-tag.b, .ba-stage[data-edge="r"] .ba-tag.a { opacity: 0; }
.ba-range { display: none; }
.js .ba-range { display: block; position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; background: transparent; }
.js .ba-range::-webkit-slider-thumb { -webkit-appearance: none; width: 46px; height: 100vh; }
.js .ba-range::-moz-range-thumb { width: 46px; height: 100vh; border: 0; }
.ba-stage:has(.ba-range:focus-visible) .ba-knob { outline: 3px solid var(--brass-hi); outline-offset: 3px; }
.ba-stage.dragging .ba-knob { transform: scale(1.08); }
@media (max-width: 600px) {
  .ba-knob { width: 40px; height: 40px; margin: -20px 0 0 -20px; }
  .ba-tag { top: 8px; font-size: 0.66rem; }
  .ba-tag.b { left: 8px; } .ba-tag.a { right: 8px; }
}
.ba-stack { display: grid; gap: var(--s-5); }
