/* ————————————————————————————————————————————————
   BOROUGHLINE PLUMBING CO. — NYC Trade Editorial
   Tokens / base / header / hero / sections / footer
   ———————————————————————————————————————————————— */

:root {
  --porcelain: #F4F1E9;
  --chalk: #FFFEFA;
  --carbon: #252824;
  --olive: #535848;
  --copper: #A64F35;
  --copper-deep: #8C3E28;
  --brass: #C49A63;
  --stone: #827F75;
  --hairline: #D9D3C8;
  --ink-soft: #3A3E39;

  --font-display: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  --gutter: clamp(20px, 4vw, 56px);
  --section-gap: clamp(72px, 9vw, 132px);
  --radius-s: 3px;

  --shadow-rest: 0 1px 2px rgba(37, 40, 36, 0.07);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--porcelain);
  color: var(--carbon);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  text-align: left;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

::selection { background: var(--copper); color: var(--chalk); }

/* Focus — always visible, always copper */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ————— Layout primitives ————— */
.wrap {
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.grid12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(16px, 2.5vw, 32px);
}

/* Mono technical label */
.eyebrow, .meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--stone);
}
.eyebrow { color: var(--copper); }

/* Section heading block */
.sec-head {
  border-top: 1px solid var(--carbon);
  padding-top: 14px;
  margin-bottom: clamp(28px, 4vw, 52px);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.sec-head h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.1rem, 4.2vw, 3.5rem);
  line-height: 0.98;
  letter-spacing: 0.005em;
  margin: 0.12em 0 0;
  max-width: 16ch;
  text-wrap: balance;
}
.sec-head .meta { white-space: nowrap; }
.sec-lede {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 52ch;
}

/* ————— Buttons ————— */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  padding: 16px 24px;
  border-radius: var(--radius-s);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease,
    border-color 160ms ease, transform 160ms ease;
  min-height: 52px;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-solid {
  background: var(--copper);
  border-color: var(--copper-deep);
  color: var(--chalk);
}
.btn-solid:hover { background: var(--copper-deep); }
.btn-solid:active { transform: translateY(1px); }
.btn-ghost {
  background: transparent;
  border-color: var(--carbon);
  color: var(--carbon);
}
.btn-ghost:hover { background: var(--carbon); color: var(--porcelain); }
.btn-ghost:active { transform: translateY(1px); }
.btn-light {
  background: transparent;
  border-color: rgba(255, 254, 250, 0.55);
  color: var(--chalk);
}
.btn-light:hover { background: var(--chalk); color: var(--carbon); border-color: var(--chalk); }
.btn[disabled] { opacity: 0.55; cursor: wait; transform: none; }

/* ————— Utility strip ————— */
.utility {
  background: var(--carbon);
  color: #CFCDC4;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.utility .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 34px;
  padding-top: 6px;
  padding-bottom: 6px;
}
.utility .u-right { display: flex; align-items: center; gap: 14px; }
.utility .u-sep { width: 1px; height: 12px; background: #4a4e46; }
.utility a { color: var(--chalk); text-decoration: none; border-bottom: 1px solid var(--brass); }
.utility a:hover { color: var(--brass); }

/* ————— Header ————— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(244, 241, 233, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease, background-color 200ms ease;
}
.site-header.scrolled {
  background: var(--porcelain);
  border-bottom-color: var(--hairline);
}
.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  line-height: 1;
}
.wordmark svg { width: 34px; height: 34px; flex: none; }
.wordmark .wm-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.28rem;
  letter-spacing: 0.04em;
  line-height: 0.95;
}
.wordmark .wm-text span { display: block; }
.wordmark .wm-text .wm-sub {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.6rem;
  letter-spacing: 0.34em;
  color: var(--copper);
  margin-top: 4px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 34px);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 150ms ease, border-color 150ms ease;
}
.nav-links a:hover { color: var(--copper); border-bottom-color: var(--copper); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-cta .btn { min-height: 46px; padding: 12px 20px; }
.menu-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  background: none;
  border: 1px solid var(--carbon);
  border-radius: var(--radius-s);
  padding: 12px 15px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  cursor: pointer;
  color: var(--carbon);
  min-height: 46px;
}
.menu-toggle svg { width: 16px; height: 16px; }
.mobile-panel { display: none; }

/* ————— Hero ————— */
.hero {
  position: relative;
  overflow: clip;
  border-bottom: 1px solid var(--hairline);
}
.hero::before {
  /* faint rule-grid, limited to hero, almost imperceptible */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(37, 40, 36, 0.055) 1px, transparent 1px);
  background-size: calc(100% / 12) 100%;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, black 0%, transparent 92%);
}
.hero .grid12 { position: relative; padding-block: clamp(40px, 5vw, 84px) clamp(48px, 5vw, 88px); }
.hero-copy { grid-column: 1 / span 7; align-self: center; }
.hero-copy h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 6.4vw, 5.6rem);
  line-height: 0.94;
  letter-spacing: 0.002em;
  margin: 14px 0 20px;
  max-width: 11ch;
  text-wrap: balance;
}
.hero-copy h1 .h-copper { color: var(--copper); }
.hero-stand {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 46ch;
  margin-bottom: 28px;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.hero-principles {
  display: flex;
  align-items: stretch;
  gap: 0;
  border-top: 1px solid var(--hairline);
  padding-top: 16px;
  list-style: none;
  margin: 0;
  max-width: 560px;
}
.hero-principles li {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--olive);
  padding: 2px 18px;
  flex: 1;
}
.hero-principles li:first-child { padding-left: 0; }
.hero-principles li + li { border-left: 1px solid var(--hairline); }

.hero-fig { grid-column: 8 / span 5; position: relative; align-self: start; }
.hero-frame {
  position: relative;
  background: var(--chalk);
  border: 1px solid var(--hairline);
  padding: 10px 10px 0;
  box-shadow: var(--shadow-rest);
}
.hero-frame .imgwrap { overflow: hidden; }
.hero-frame img {
  width: 100%;
  height: clamp(300px, 34vw, 480px);
  object-fit: cover;
  filter: saturate(0.88) contrast(1.03) sepia(0.09);
  transition: transform 600ms ease;
}
.hero-frame:hover img { transform: scale(1.02); }
.hero-frame figcaption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 4px 12px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--stone);
}
.hero-frame figcaption strong { color: var(--copper); font-weight: 500; }
/* copper connector motif anchored to frame */
.hero-tick {
  position: absolute;
  left: -1px;
  top: 34px;
  width: 44px;
  height: 44px;
  border-left: 3px solid var(--copper);
  border-bottom: 3px solid var(--copper);
  pointer-events: none;
}
.hero-tick::after {
  content: "";
  position: absolute;
  left: -6px;
  top: -6px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--copper);
}
.hero-side-note {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.92rem;
  color: var(--stone);
}
.hero-side-note svg { width: 16px; height: 16px; flex: none; margin-top: 4px; }

/* Photo fallback block (if a remote image fails) */
.ph-fallback {
  background: var(--olive) !important;
  color: var(--porcelain);
  min-height: 220px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 24px;
  text-align: center;
}

/* ————— Sections ————— */
section.block { padding-block: var(--section-gap); }
section.block + section.block { border-top: 1px solid var(--hairline); }

/* ————— Service directory ————— */
.svc-layout { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 4vw, 72px); align-items: start; }
.svc-intro { position: sticky; top: 120px; }
.svc-intro .sec-lede { margin-bottom: 26px; }
.svc-visual {
  border: 1px solid var(--hairline);
  background: var(--chalk);
  padding: 8px 8px 0;
}
.svc-visual .imgwrap { overflow: hidden; position: relative; }
.svc-visual img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  filter: saturate(0.88) contrast(1.03) sepia(0.09);
}
.svc-visual figcaption {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 4px 12px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--stone);
}
.svc-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--carbon); }
.svc-row {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 18px;
  align-items: center;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  border-bottom: 1px solid var(--hairline);
  padding: 22px 8px;
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: background-color 150ms ease, padding-left 180ms ease;
  position: relative;
}
.svc-row .svc-no {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--stone);
}
.svc-row .svc-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  line-height: 1.02;
  letter-spacing: 0.01em;
  display: block;
}
.svc-row .svc-desc { font-size: 0.98rem; color: var(--ink-soft); display: block; margin-top: 6px; max-width: 56ch; }
.svc-row .svc-arrow {
  width: 40px; height: 40px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-s);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background-color 150ms ease, border-color 150ms ease, transform 180ms ease;
  flex: none;
}
.svc-row .svc-arrow svg { width: 17px; height: 17px; }
.svc-row::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--copper);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 180ms ease;
}
.svc-row:hover, .svc-row:focus-visible, .svc-row.active {
  background: linear-gradient(to right, rgba(166, 79, 53, 0.06), transparent 65%);
  padding-left: 16px;
}
.svc-row:hover::before, .svc-row:focus-visible::before, .svc-row.active::before { transform: scaleY(1); }
.svc-row:hover .svc-arrow, .svc-row:focus-visible .svc-arrow, .svc-row.active .svc-arrow {
  background: var(--copper);
  border-color: var(--copper);
  color: var(--chalk);
  transform: translateX(4px);
}
.svc-row:hover .svc-no, .svc-row.active .svc-no { color: var(--copper); }

/* ————— Built for the city ————— */
.city-collage { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(16px, 2.5vw, 32px); }
.city-a { grid-column: 1 / span 7; }
.city-b { grid-column: 8 / span 5; display: flex; flex-direction: column; gap: 20px; }
.city-c { grid-column: 1 / span 12; margin-top: clamp(8px, 2vw, 20px); }
.city-card { position: relative; }
.city-card figure { margin: 0; }
.city-card .imgwrap {
  overflow: hidden;
  border: 1px solid var(--hairline);
  background: var(--chalk);
  padding: 8px;
}
.city-card img {
  width: 100%;
  object-fit: cover;
  filter: saturate(0.88) contrast(1.03) sepia(0.09);
}
.city-a img { height: clamp(280px, 32vw, 460px); }
.city-b img { height: 220px; }
.city-c-inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(20px, 3vw, 48px);
  border: 1px solid var(--hairline);
  background: var(--carbon);
  color: var(--porcelain);
  padding: clamp(24px, 3.5vw, 48px);
  align-items: center;
}
.city-c-inner img { height: clamp(200px, 22vw, 300px); width: 100%; object-fit: cover; filter: saturate(0.85) sepia(0.1); }
.city-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
  display: block;
  margin-bottom: 8px;
}
.city-card h3, .city-c-inner h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  line-height: 1;
  margin: 0 0 10px;
}
.city-card p { color: var(--ink-soft); font-size: 1rem; max-width: 52ch; }
.city-c-inner p { color: #C9C7BE; font-size: 1rem; }
.city-cap {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--stone);
  padding: 8px 2px 0;
}
.city-c-inner .city-cap { color: #8f8c82; }
.borough-diagram {
  margin-top: clamp(20px, 3vw, 36px);
  border-top: 1px solid var(--hairline);
  padding-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}
.borough-diagram svg {
  display: block;
  width: 100%;
  max-width: 560px;
  height: auto;
  flex: 1 1 300px;
  min-width: 0;
}
.borough-note { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--stone); max-width: 60ch; }
.coverage-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 14px 0 0; padding: 0; }
.coverage-chips li {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--hairline);
  padding: 7px 12px;
  border-radius: var(--radius-s);
  color: var(--olive);
  background: var(--chalk);
}

/* ————— Process ————— */
.process { background: var(--carbon); color: var(--porcelain); }
.process .sec-head { border-top-color: var(--porcelain); }
.process .sec-head h2 { color: var(--chalk); }
.process .sec-head .meta { color: #9a978c; }
.process .sec-lede { color: #C9C7BE; }
.steps {
  list-style: none;
  margin: clamp(28px, 4vw, 48px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
}
.step {
  position: relative;
  padding: 0 22px 0 0;
  margin-right: 22px;
  border-top: 1px solid #4a4e46;
  padding-top: 20px;
}
.step:last-child { margin-right: 0; }
.step::after {
  content: "";
  position: absolute;
  top: -4px;
  left: 0;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--brass);
}
.step:first-child::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: -22px;
  height: 1px;
  background: var(--copper);
  width: 34px;
}
.step .step-no {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--brass);
}
.step h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.45rem;
  line-height: 1;
  margin: 8px 0;
  color: var(--chalk);
}
.step p { font-size: 0.94rem; color: #B9B7AD; margin: 0; }
.process-foot {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(20px, 3vw, 48px);
  margin-top: clamp(28px, 4vw, 52px);
  align-items: center;
  border-top: 1px solid #4a4e46;
  padding-top: clamp(24px, 3vw, 40px);
}
.process-foot figure { margin: 0; display: flex; gap: 16px; align-items: center; }
.process-foot img {
  width: 148px; height: 112px;
  object-fit: cover;
  border: 1px solid #4a4e46;
  padding: 5px;
  background: #2E322D;
  filter: saturate(0.85) sepia(0.08);
  flex: none;
}
.process-foot figcaption { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: #9a978c; }
.process-foot .pf-text { font-size: 1.02rem; color: #D8D6CC; max-width: 52ch; }

/* ————— Field notes ————— */
.notes-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(16px, 2.5vw, 32px); }
.note { margin: 0; }
.note .imgwrap { overflow: hidden; border: 1px solid var(--hairline); background: var(--chalk); padding: 8px; }
.note img { width: 100%; object-fit: cover; filter: saturate(0.88) contrast(1.03) sepia(0.09); transition: transform 500ms ease; }
.note:hover img { transform: scale(1.025); }
.note figcaption {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid var(--carbon);
  padding: 8px 2px 10px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--stone);
}
.note figcaption strong { color: var(--carbon); font-weight: 500; }
.note-1 { grid-column: 1 / span 5; }
.note-1 img { height: clamp(320px, 36vw, 520px); }
.note-2 { grid-column: 6 / span 4; align-self: end; }
.note-2 img { height: clamp(240px, 24vw, 340px); }
.note-3 { grid-column: 10 / span 3; align-self: start; margin-top: clamp(0px, 6vw, 96px); }
.note-3 img { height: clamp(280px, 26vw, 380px); }
.note-4 { grid-column: 2 / span 5; }
.note-4 img { height: clamp(220px, 22vw, 300px); }
.note-5 { grid-column: 7 / span 5; }
.note-5 img { height: clamp(220px, 22vw, 300px); }
.notes-disclaimer { font-size: 0.9rem; color: var(--stone); margin-top: 26px; max-width: 70ch; }

/* ————— Request section ————— */
.request-band { background: var(--chalk); border-block: 1px solid var(--hairline); }
.req-layout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 72px); align-items: start; }
.req-aside { position: sticky; top: 120px; }
.req-aside h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 4.6vw, 4rem);
  line-height: 0.95;
  margin: 14px 0 16px;
  max-width: 12ch;
}
.req-aside .sec-lede { margin-bottom: 24px; }
.call-box {
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--copper);
  padding: 18px 20px;
  background: var(--porcelain);
  margin-top: 8px;
}
.call-box .meta { display: block; margin-bottom: 6px; }
.call-box a.tel {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.7rem;
  letter-spacing: 0.02em;
  text-decoration: none;
}
.call-box a.tel:hover { color: var(--copper); }
.call-box small { display: block; color: var(--stone); font-size: 0.85rem; margin-top: 4px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 0.95rem; }
.field label .req { color: var(--copper); font-weight: 700; }
.field input, .field select, .field textarea {
  font: inherit;
  font-size: 1rem;
  color: var(--carbon);
  background: var(--chalk);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-s);
  padding: 13px 14px;
  width: 100%;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.field textarea { min-height: 128px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--stone); }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--copper);
  box-shadow: 0 0 0 3px rgba(166, 79, 53, 0.15);
  outline: none;
}
.field [aria-invalid="true"] { border-color: var(--copper); background: #FBF3EE; }
.f-err { font-size: 0.86rem; color: var(--copper-deep); font-weight: 600; display: none; }
.f-err.show { display: block; }
.radio-row { display: flex; flex-wrap: wrap; gap: 8px; }
.radio-pill { position: relative; }
.radio-pill input { position: absolute; opacity: 0; inset: 0; }
.radio-pill span {
  display: inline-block;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-s);
  padding: 10px 14px;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  background: var(--chalk);
  transition: all 150ms ease;
}
.radio-pill input:checked + span { background: var(--carbon); color: var(--porcelain); border-color: var(--carbon); }
.radio-pill input:focus-visible + span { outline: 2px solid var(--copper); outline-offset: 2px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9rem; color: var(--ink-soft); }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--copper); flex: none; }
.consent a { color: var(--copper-deep); }
.form-status { margin-top: 18px; }
.form-status .sending {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--olive);
}
.spinner {
  width: 18px; height: 18px; flex: none;
  border: 2px solid var(--hairline);
  border-top-color: var(--copper);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.demo-notice {
  border: 1px solid var(--brass);
  background: #FAF4E8;
  padding: 20px 22px;
  border-radius: var(--radius-s);
}
.demo-notice h3 { font-family: var(--font-display); font-size: 1.5rem; margin: 0 0 8px; }
.demo-notice .ref { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.1em; color: var(--copper-deep); }
.demo-notice p { font-size: 0.95rem; color: var(--ink-soft); }

/* ————— FAQ ————— */
.faq-list { border-top: 1px solid var(--carbon); margin-top: 8px; }
.faq-item { border-bottom: 1px solid var(--hairline); }
.faq-q {
  width: 100%;
  display: grid;
  grid-template-columns: 56px 1fr 40px;
  gap: 14px;
  align-items: center;
  background: none;
  border: none;
  padding: 20px 4px;
  cursor: pointer;
  font: inherit;
  text-align: left;
  color: inherit;
  transition: padding-left 160ms ease;
}
.faq-q:hover { padding-left: 10px; }
.faq-q:hover .faq-t { color: var(--copper); }
.faq-n { font-family: var(--font-mono); font-size: 0.72rem; color: var(--stone); letter-spacing: 0.1em; }
.faq-t { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.25rem, 2.2vw, 1.65rem); line-height: 1.05; }
.faq-icon {
  width: 34px; height: 34px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-s);
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform 220ms ease, background-color 160ms ease, color 160ms ease;
  justify-self: end;
}
.faq-icon svg { width: 15px; height: 15px; }
.faq-q[aria-expanded="true"] .faq-icon { background: var(--copper); border-color: var(--copper); color: var(--chalk); transform: rotate(45deg); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 260ms ease; }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a-inner { overflow: hidden; }
.faq-a p { padding: 0 4px 24px 70px; margin: 0; max-width: 72ch; color: var(--ink-soft); }

/* ————— Final CTA ————— */
.final-cta { background: var(--carbon); color: var(--porcelain); position: relative; overflow: clip; }
.final-cta .wrap {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: 32px;
  align-items: center;
  padding-block: clamp(64px, 8vw, 120px);
}
.final-cta h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  line-height: 0.94;
  margin: 0 0 16px;
  color: var(--chalk);
  text-wrap: balance;
}
.final-cta h2 em { font-style: normal; color: var(--brass); }
.final-cta p { color: #C9C7BE; max-width: 48ch; font-size: 1.1rem; }
.final-ctas { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.final-ctas .meta { color: #9a978c; }
.pipe-motif { position: absolute; right: -30px; bottom: -30px; opacity: 0.5; pointer-events: none; }

/* ————— Footer ————— */
.site-footer { background: var(--porcelain); border-top: 1px solid var(--carbon); }
.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 2fr) minmax(0, 3fr) minmax(0, 2fr);
  gap: clamp(24px, 3vw, 48px);
  padding-block: clamp(40px, 5vw, 64px) 32px;
}
.foot-brand p { color: var(--ink-soft); font-size: 0.98rem; max-width: 34ch; margin-top: 12px; }
.foot-h { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--stone); margin: 0 0 14px; }
.foot-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.foot-links a { text-decoration: none; font-weight: 600; font-size: 0.96rem; }
.foot-links a:hover { color: var(--copper); }
.foot-contact { font-size: 0.95rem; }
.foot-contact a { font-weight: 600; }
.foot-contact a:hover { color: var(--copper); }
.foot-contact .placeholder-note { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--copper); }
.foot-base {
  border-top: 1px solid var(--hairline);
  padding-block: 18px 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--stone);
}

/* ————— Legal modal ————— */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(37, 40, 36, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: var(--chalk);
  border: 1px solid var(--hairline);
  border-top: 3px solid var(--copper);
  max-width: 620px;
  width: 100%;
  max-height: 80vh;
  overflow: auto;
  padding: clamp(24px, 4vw, 40px);
}
.modal h2 { font-family: var(--font-display); font-size: 2rem; margin: 0 0 6px; line-height: 1; }
.modal .demo-flag { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--copper); }
.modal p { font-size: 0.95rem; color: var(--ink-soft); }
.modal .btn { margin-top: 16px; }

/* ————— Reveal on scroll (subtle) ————— */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 500ms ease, transform 500ms ease; }
.reveal.in { opacity: 1; transform: none; }

/* ————— Responsive ————— */
@media (max-width: 1100px) {
  .hero-copy { grid-column: 1 / span 6; }
  .hero-fig { grid-column: 7 / span 6; }
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 28px; }
  .step:nth-child(4) { margin-right: 22px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .menu-toggle { display: inline-flex; }
  .mobile-panel {
    display: block;
    border-top: 1px solid var(--hairline);
    background: var(--porcelain);
    max-height: 0;
    overflow: hidden;
    transition: max-height 260ms ease;
  }
  .mobile-panel.open { max-height: 420px; }
  .mobile-panel ul { list-style: none; margin: 0; padding: 8px var(--gutter) 20px; display: flex; flex-direction: column; }
  .mobile-panel a {
    text-decoration: none;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.6rem;
    padding: 10px 0;
    border-bottom: 1px solid var(--hairline);
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .mobile-panel a:hover { color: var(--copper); }

  .hero .grid12 { padding-block: 32px 44px; }
  .hero-copy { grid-column: 1 / -1; }
  .hero-copy h1 { font-size: clamp(2.9rem, 13vw, 4.4rem); }
  .hero-fig { grid-column: 1 / -1; margin-top: 8px; }
  .hero-frame img { height: clamp(240px, 60vw, 380px); }

  .svc-layout, .req-layout { grid-template-columns: 1fr; }
  .svc-intro, .req-aside { position: static; }
  .svc-visual { display: none; }
  .svc-row { grid-template-columns: 44px 1fr auto; padding: 18px 4px; }

  .city-a, .city-b, .city-c { grid-column: 1 / -1; }
  .city-c-inner { grid-template-columns: 1fr; }
  .city-a img { height: 300px; }

  .process-foot { grid-template-columns: 1fr; }

  .note-1 { grid-column: 1 / span 7; }
  .note-2 { grid-column: 8 / span 5; }
  .note-3 { grid-column: 1 / span 5; margin-top: 0; }
  .note-4 { grid-column: 6 / span 7; }
  .note-5 { grid-column: 1 / span 12; }

  .final-cta .wrap { grid-template-columns: 1fr; }
  .final-ctas { flex-direction: row; flex-wrap: wrap; }
  .final-ctas .btn { flex: 1 1 200px; justify-content: center; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .utility .u-left { display: none; }
  .utility .wrap { justify-content: flex-end; }
  .hero-principles { flex-direction: column; gap: 8px; }
  .hero-principles li { padding-left: 0; }
  .hero-principles li + li { border-left: none; border-top: 1px solid var(--hairline); padding-top: 8px; }
  .hero-ctas .btn { flex: 1 1 100%; justify-content: center; }
  .steps { grid-template-columns: 1fr; }
  .step { margin-right: 0; padding-right: 0; border-top: none; border-left: 1px solid #4a4e46; padding-left: 20px; padding-top: 0; padding-bottom: 4px; }
  .step::after { left: -4px; top: 4px; }
  .step:first-child::before { display: none; }
  .notes-grid .note { grid-column: 1 / -1 !important; margin-top: 0 !important; }
  .note img { height: 260px !important; }
  .form-grid { grid-template-columns: 1fr; }
  .faq-a p { padding-left: 4px; }
  .faq-q { grid-template-columns: 1fr 40px; }
  .faq-n { display: none; }
  .foot-grid { grid-template-columns: 1fr; }
  .final-ctas { flex-direction: column; }
}

@media (max-width: 480px) {
  .nav-bar { gap: 10px; }
  .wordmark { gap: 8px; }
  .wordmark svg { width: 28px; height: 28px; }
  .wordmark .wm-text { font-size: 1.05rem; }
  .wordmark .wm-text .wm-sub { display: none; }
  .nav-cta { gap: 8px; }
  .nav-cta .btn-solid { padding: 10px 14px; font-size: 0.88rem; min-height: 44px; }
}

@media (max-width: 380px) {
  .nav-bar { min-height: 66px; }
  .nav-cta .btn-solid { padding: 10px 14px; font-size: 0.9rem; }
  .hero-copy h1 { font-size: 2.7rem; }
}

/* ————— Reduced motion ————— */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .hero-frame:hover img, .note:hover img { transform: none; }
}
