/* ==========================================================================
   Plainsmith Showcase V2 — Multi-Page Subpage Grammar (All 9 Archetypes A1-A9)
   - Strict 3-size body scale below hero: 16px body, 14px UI/cards/forms, 12px meta
   - tabular-nums on all prices, specs, ratings, durations, and ranges
   - sites-worker/lines.js safe (never forces generic `span { display: block }`,
     zero bare middots inside flex/grid parents)
   - Zero generic cloned subpage shells across arch-a1..arch-a9
   ========================================================================== */

/* ---------- Universal Subpage Typography & Guardrails ---------- */
.v2-body-copy {
  font-size: var(--v2-text-body, 16px);
  line-height: 1.58;
  max-width: 65ch;
  color: var(--v2-muted);
}
.v2-ui-copy {
  font-size: var(--v2-text-ui, 14px);
  line-height: 1.48;
  color: var(--v2-muted);
}
.v2-meta-label {
  font-size: var(--v2-text-meta, 12px);
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--v2-kicker-ink, var(--v2-accent));
}
.v2-num { font-variant-numeric: tabular-nums; }

/* Focusable main landmark on SPA route change without noisy outline */
main#content:focus { outline: none; }

/* ---------- Breadcrumb (lines.js safe — separator uses ARIA-hidden slash) ---------- */
.v2-crumb {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-size: var(--v2-text-meta, 12px); font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 14px;
}
.v2-crumb a {
  text-decoration: none; opacity: 0.82; min-height: 32px;
  display: inline-flex; align-items: center;
}
.v2-crumb a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.v2-crumb-sep { opacity: 0.45; display: inline; }
.v2-crumb-cur { opacity: 1; }

/* ---------- Archetype-Specific Contrast Guards ---------- */
.arch-a5 { --v2-kicker-ink: #92400e; }
.arch-a5 .v2-hero .v2-kicker,
.arch-a5 .v2-subhead-a5 .v2-kicker,
.arch-a5 .v2-section-dark .v2-kicker { color: #f59e0b; }
.arch-a5 .v2-step-num { color: #92400e; }
.arch-a8 .v2-step-num { color: var(--v2-kicker-ink, #0e2442); }
.arch-a2 .v2-kicker { color: var(--v2-accent); }
.arch-a2 .v2-about-contrast {
  --v2-bg: #ede6d8;
  --v2-surface: #faf7f0;
  --v2-surface-alt: #e4dac8;
  --v2-ink: #1d1a16;
  --v2-muted: #463f35;
  --v2-line: rgba(29, 26, 22, 0.16);
  --v2-kicker-ink: #7c4a1d;
  --v2-accent-soft: rgba(124, 74, 29, 0.12);
  color: #1d1a16;
}
.arch-a2 .v2-about-contrast .v2-kicker,
.arch-a2 .v2-about-contrast .v2-meta-label { color: #7c4a1d; }
.arch-a2 .v2-about-contrast .v2-btn-primary {
  background: #7c4a1d; border-color: #7c4a1d; color: #ffffff;
}
.arch-a2 .v2-about-contrast .v2-btn-primary:hover {
  background: #633914; border-color: #633914;
}
.arch-a2 .v2-tier-card.featured {
  background: #2a2219; color: #f3efe6; border-color: var(--v2-accent);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.36);
}
.arch-a2 .v2-tier-card.featured .v2-tier-desc { color: #d6cfc2; }
.v2-cred-card, .v2-form-box, .v2-contact-info-card, .v2-standard-item, .v2-step-card, .v2-boundary-card {
  color: var(--v2-ink);
}

/* ---------- Distinct Per-Archetype Subpage Mastheads (Pages 2-5) ---------- */
.v2-subhead { padding: 44px 0 40px; border-bottom: 1px solid var(--v2-line); }
.v2-subhead .v2-h1 { font-size: clamp(32px, 4vw, 50px); line-height: 1.06; }
.v2-subhead .v2-lead { margin-top: 12px; font-size: 16px; line-height: 1.58; max-width: 60ch; }
.v2-subhead-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 20px; }

/* A1 Pure Pro — 60/40 white split + elevated trust/metric card */
.v2-subhead-a1 { background: #ffffff; }
.v2-subhead-a1-grid {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr); gap: 36px; align-items: center;
}
.v2-subhead-metric-card {
  background: #f4f7fa; border: 1px solid var(--v2-line); border-radius: 14px;
  padding: 22px 24px; box-shadow: var(--v2-shadow-md); display: grid; gap: 12px;
}
.v2-subhead-metric-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding-bottom: 10px; border-bottom: 1px solid var(--v2-line); font-size: 14px;
}
.v2-subhead-metric-row:last-child { padding-bottom: 0; border-bottom: 0; }
.v2-subhead-metric-row strong { font-size: 15px; font-weight: 800; color: var(--v2-ink); font-variant-numeric: tabular-nums; }

/* A2 Dark Showroom — Asymmetric dark editorial top + 220px framed craft strip */
.v2-subhead-a2 { background: var(--v2-bg); border-bottom-color: var(--v2-line); }
.v2-subhead-a2-top {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 32px; align-items: end;
  margin-bottom: 24px;
}
.v2-subhead-a2-strip {
  position: relative; border-radius: 14px; overflow: hidden; height: 220px;
  border: 1px solid rgba(243, 239, 230, 0.16);
}
.v2-subhead-a2-strip img { width: 100%; height: 100%; object-fit: cover; }
.v2-subhead-a2-strip-cap {
  position: absolute; left: 18px; bottom: 16px;
  background: rgba(17, 20, 24, 0.88); color: #f3efe6; backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 8px;
  padding: 8px 14px; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
}

/* A3 Full-Bleed Frame — Compact 260px dark-scrimmed craft photo banner */
.v2-subhead-a3 {
  position: relative; min-height: 260px; display: flex; align-items: center;
  padding: 44px 0; background: #0f1419; color: #ffffff; overflow: hidden; border-bottom: 0;
}
.v2-subhead-a3 .v2-hero-bg-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.v2-subhead-a3 .v2-hero-scrim {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(96deg, rgba(11, 15, 20, 0.92) 0%, rgba(11, 15, 20, 0.78) 58%, rgba(11, 15, 20, 0.42) 100%);
}
.v2-subhead-a3 .v2-wrap { position: relative; z-index: 2; }
.v2-subhead-a3 .v2-crumb {
  background: rgba(15, 20, 25, 0.72); border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 4px 12px; border-radius: 999px; color: #ffffff;
}
.v2-subhead-a3 .v2-kicker { color: #fbbf24; }
.v2-subhead-a3 .v2-lead { color: rgba(255, 255, 255, 0.88); }

/* A4 Direct Dispatch — Slate gradient masthead + inline Quick-Callback micro-card */
.v2-subhead-a4 {
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
}
.v2-subhead-a4-grid {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.75fr); gap: 32px; align-items: center;
}
.v2-micro-callback {
  background: #ffffff; color: #0f172a; border-radius: 14px; padding: 20px;
  border: 1px solid rgba(15, 23, 42, 0.10); box-shadow: var(--v2-shadow-md);
}
.v2-micro-callback h2 { font-family: var(--v2-display); font-size: 16px; font-weight: 800; margin-bottom: 4px; }
.v2-micro-callback p { font-size: 13px; color: #475569; margin-bottom: 12px; }
.v2-micro-callback-row { display: grid; gap: 8px; }
.v2-micro-callback input {
  width: 100%; min-height: 44px; padding: 8px 12px; border-radius: 8px;
  border: 1.5px solid #cbd5e1; background: #ffffff; color: #0f172a; font-size: 14px;
}

/* A5 Heavy Iron — Graphite title block + 4-cell single-line .v2-spec-bar */
.v2-subhead-a5 {
  background: #141b22; color: #f8fafc; padding: 40px 0 0; border-bottom: 0;
}
.v2-subhead-a5 .v2-lead { color: rgba(248, 250, 252, 0.80); }
.v2-subhead-a5-body { padding-bottom: 32px; }
.v2-subhead-a5 .v2-spec-bar { margin-top: 0; }

/* A6 Warm Workshop — Alabaster 2-col masthead + 3px accent-ruled owner note */
.v2-subhead-a6 { background: #faf8f4; }
.v2-subhead-a6-grid {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 36px; align-items: end;
}
.v2-subhead-a6 .v2-owner-note { margin-top: 0; font-size: 14px; line-height: 1.55; }

/* A7 Architectural Bento — Persistent #eff2f6 canvas + 2-tile modular masthead */
.v2-subhead-a7 { background: #eff2f6; border-bottom: 0; padding: 28px 0 18px; }
.v2-subhead-a7-grid {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr); gap: 16px;
}
.v2-bento-tile-white {
  background: #ffffff; color: #111827; border-radius: 20px; padding: 32px 34px;
  border: 1px solid rgba(17, 24, 39, 0.07); box-shadow: var(--v2-shadow-sm);
}
.v2-bento-tile-dark {
  background: #111827; color: #ffffff; border-radius: 20px; padding: 28px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 16px;
}
.v2-bento-tile-dark strong {
  display: block; font-family: var(--v2-display); font-size: 32px; font-weight: 800; line-height: 1.05;
  font-variant-numeric: tabular-nums;
}
.v2-bento-tile-dark p { font-size: 14px; color: rgba(255, 255, 255, 0.80); line-height: 1.48; }
.arch-a7 .v2-section,
.arch-a7 .v2-section-alt { background: #eff2f6; padding: 24px 0; }
.arch-a7 .v2-bento-shell {
  background: #ffffff; border-radius: 20px; padding: 32px;
  border: 1px solid rgba(17, 24, 39, 0.07); box-shadow: var(--v2-shadow-sm);
}

/* A8 Brand Banner — Compact saturated banner + overlapping -28px white floating strip */
.v2-subhead-a8 {
  background: var(--v2-banner-bg, #0e2442); color: #ffffff;
  padding: 36px 0 64px; border-bottom: 0;
}
.v2-subhead-a8 .v2-kicker { color: var(--v2-banner-kicker, #fbbf24); }
.v2-subhead-a8 .v2-lead { color: rgba(255, 255, 255, 0.86); }
.v2-subhead-a8-float {
  position: relative; z-index: 5; margin-top: -28px; margin-bottom: 12px;
}
.v2-subhead-a8-strip {
  background: #ffffff; color: #0f172a; border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.10); box-shadow: var(--v2-shadow-lg);
  padding: 12px 16px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
}
.v2-subhead-a8-chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px;
  border-radius: 999px; font-size: 13.5px; font-weight: 700; text-decoration: none;
  background: #f4f6f9; color: #0f172a; border: 1px solid rgba(15, 23, 42, 0.10);
}
.v2-subhead-a8-chip:hover { background: var(--v2-accent-soft); }

/* A9 Package Matrix — Centered rate-led masthead w/ inline rate/policy chips */
.v2-subhead-a9 {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  text-align: center; padding: 44px 0 36px;
}
.v2-subhead-a9-inner {
  max-width: 780px; margin-inline: auto;
  display: flex; flex-direction: column; align-items: center;
}
.v2-subhead-a9-inner .v2-kicker { justify-content: center; }
.v2-subhead-a9-inner .v2-lead { margin-inline: auto; }
.v2-rate-chips {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px;
}
.v2-rate-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px;
  background: #f1f5f9; border: 1px solid rgba(15, 23, 42, 0.10);
  color: #0f172a; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums;
}

/* ---------- Home Multi-Page Enhancement Strips (Capacity + Featured Projects) ---------- */
.v2-capacity-band {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 20px; align-items: stretch;
}
.v2-capacity-card {
  background: var(--v2-surface); border: 1px solid var(--v2-line); border-radius: var(--v2-radius);
  padding: 24px 26px; box-shadow: var(--v2-shadow-sm);
  display: flex; flex-direction: column; justify-content: space-between; gap: 14px;
}
.v2-capacity-card.is-highlight {
  background: var(--v2-dark-bg); color: var(--v2-dark-ink); border-color: transparent;
}
.v2-capacity-card.is-highlight .v2-ui-copy { color: rgba(248, 250, 252, 0.82); }
.v2-capacity-card.is-highlight .v2-meta-label { color: #fbbf24; }
.v2-capacity-stats {
  display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 13.5px; font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* ---------- Page 2: Three-Option Quotes, Scope Boundary & Punch-List Builder ---------- */
.v2-boundary-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px;
}
.v2-boundary-card {
  background: var(--v2-surface); border: 1px solid var(--v2-line);
  border-radius: var(--v2-radius); padding: 24px; box-shadow: var(--v2-shadow-sm);
  display: flex; flex-direction: column; gap: 12px;
}
.v2-boundary-card.is-refer {
  background: var(--v2-surface-alt); border-style: dashed;
}
.v2-boundary-pill {
  display: inline-flex; width: fit-content; padding: 4px 10px; border-radius: 999px;
  font-size: 11.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
}
.v2-boundary-pill.is-in { background: #dcfce7; color: #14532d; }
.v2-boundary-pill.is-photo { background: #fef3c7; color: #78350f; }
.v2-boundary-pill.is-refer { background: #fee2e2; color: #7f1d1d; }
.v2-boundary-list {
  list-style: none; padding: 0; margin: 0; display: grid; gap: 8px;
  font-size: 14px; line-height: 1.48; color: var(--v2-muted);
}
.v2-boundary-list li { display: flex; align-items: flex-start; gap: 8px; }
.v2-boundary-list .v2-ico { margin-top: 2px; color: var(--v2-kicker-ink, var(--v2-accent)); }

.v2-custom-item-row {
  display: flex; gap: 8px; margin-bottom: 14px;
}
.v2-custom-item-row input {
  flex: 1 1 auto; min-width: 0; min-height: 44px; padding: 8px 12px;
  border-radius: 8px; border: 1.5px solid var(--v2-line);
  background: var(--v2-bg); color: var(--v2-ink); font-size: 14px;
}

/* Trade-native Page 2 tool bands (Home Warranty, Cleaning Basement, Load/NFPA/Plan grids) */
.v2-trade-tool-grid {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 24px; align-items: start;
}
.v2-warranty-card {
  background: var(--v2-surface); border: 1px solid var(--v2-line);
  border-radius: var(--v2-radius); padding: 24px; box-shadow: var(--v2-shadow-sm);
  display: flex; flex-direction: column; gap: 14px; color: var(--v2-ink);
}
.v2-matrix-pill-row {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.v2-plans-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px;
}
.v2-basement-toggle {
  display: flex; align-items: flex-start; gap: 10px; min-height: 44px; cursor: pointer;
  font-size: 14px; line-height: 1.48; color: var(--v2-ink);
}
.v2-basement-toggle input {
  width: 20px; height: 20px; min-height: 0; margin-top: 2px; flex-shrink: 0;
  accent-color: var(--v2-accent);
}
.arch-a2 .v2-rate-chip {
  background: rgba(243, 239, 230, 0.12); border-color: rgba(243, 239, 230, 0.22); color: #f3efe6;
}

/* ---------- Page 3: Living Project Pages Hub + In-Page Modal Drawer ---------- */
.v2-filter-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 24px;
}
.v2-filter-btn {
  min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 1.5px solid var(--v2-line); background: var(--v2-surface); color: var(--v2-ink);
  font-size: 13.5px; font-weight: 700; cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.v2-filter-btn[aria-pressed="true"] {
  background: var(--v2-accent); border-color: var(--v2-accent); color: var(--v2-on-accent);
}
.v2-filter-count {
  margin-left: auto; font-size: 13px; font-weight: 600; color: var(--v2-muted);
  font-variant-numeric: tabular-nums;
}

.v2-projects-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px;
}
.arch-a7 .v2-projects-grid { gap: 18px; }
.arch-a7 .v2-projects-grid .v2-project-card:first-child { grid-column: 1 / -1; display: grid; grid-template-columns: 1.1fr 0.9fr; }
.arch-a7 .v2-projects-grid .v2-project-card:first-child .v2-project-media { aspect-ratio: auto; height: 100%; }
.arch-a3 .v2-projects-grid .v2-project-card:first-child { grid-column: 1 / -1; display: grid; grid-template-columns: 1.15fr 0.85fr; }
.arch-a3 .v2-projects-grid .v2-project-card:first-child .v2-project-media { aspect-ratio: auto; height: 100%; }

.v2-project-card {
  background: var(--v2-surface); border: 1px solid var(--v2-line);
  border-radius: var(--v2-radius); overflow: hidden; box-shadow: var(--v2-shadow-sm);
  display: flex; flex-direction: column;
}
.arch-a5 .v2-project-card { border-top: 3px solid var(--v2-accent); box-shadow: none; }
.v2-project-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #14191e; }
.v2-project-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
.v2-project-card:hover .v2-project-media img { transform: scale(1.03); }
.v2-project-town {
  position: absolute; left: 12px; top: 12px;
  padding: 5px 10px; border-radius: 999px;
  background: rgba(15, 23, 42, 0.86); color: #ffffff;
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
}
.v2-project-body {
  padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1;
}
.v2-project-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--v2-muted); font-variant-numeric: tabular-nums;
}
.v2-project-quote {
  padding: 10px 12px; border-left: 3px solid var(--v2-accent);
  background: var(--v2-surface-alt); border-radius: 0 8px 8px 0;
  font-size: 13.5px; line-height: 1.48; color: var(--v2-ink);
}
.v2-project-actions {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 8px;
}
.v2-project-actions .v2-btn { flex: 1 1 160px; }

/* In-Page Living Project Page Modal Drawer (Ruling #2) */
.v2-modal-backdrop {
  position: fixed; inset: 0; z-index: 120;
  background: rgba(10, 14, 18, 0.72); backdrop-filter: blur(4px);
  display: flex; justify-content: flex-end; align-items: stretch;
}
.v2-modal-panel {
  width: min(680px, 100%); height: 100%; overflow-y: auto;
  background: var(--v2-surface); color: var(--v2-ink);
  border-left: 1px solid var(--v2-line); box-shadow: -16px 0 48px rgba(0, 0, 0, 0.35);
  display: flex; flex-direction: column;
}
.v2-modal-head {
  position: sticky; top: 0; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 20px; background: var(--v2-surface); border-bottom: 1px solid var(--v2-line);
}
.v2-modal-close {
  min-width: 44px; min-height: 44px; border-radius: var(--v2-btn-radius);
  border: 1.5px solid var(--v2-line); background: var(--v2-surface-alt); color: var(--v2-ink);
  font-size: 14px; font-weight: 700; padding: 0 14px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.v2-modal-body { padding: 22px 24px 32px; display: grid; gap: 18px; }
.v2-modal-url-chip {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 8px; background: var(--v2-surface-alt);
  border: 1px solid var(--v2-line); font-size: 12.5px; font-weight: 700; color: var(--v2-ink);
}
.v2-modal-photo { border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3; }
.v2-modal-photo img { width: 100%; height: 100%; object-fit: cover; }
.v2-modal-specs {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px;
}
.v2-modal-spec-box {
  background: var(--v2-surface-alt); border: 1px solid var(--v2-line);
  border-radius: 10px; padding: 12px; font-variant-numeric: tabular-nums;
}
.v2-modal-spec-box span {
  display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--v2-muted);
}
.v2-modal-spec-box strong { display: block; font-size: 14px; font-weight: 800; margin-top: 4px; color: var(--v2-ink); }
.v2-modal-scope-list {
  list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 14px;
}
.v2-modal-scope-list li { display: flex; align-items: flex-start; gap: 8px; }
.v2-modal-scope-list .v2-ico { color: var(--v2-kicker-ink, var(--v2-accent)); margin-top: 2px; }
.v2-modal-schema {
  background: var(--v2-surface-alt); border: 1px solid var(--v2-line);
  border-radius: 10px; padding: 12px 14px; font-size: 13px; color: var(--v2-muted);
}
.v2-modal-schema summary { font-weight: 700; color: var(--v2-ink); min-height: 36px; display: flex; align-items: center; justify-content: space-between; }
.v2-modal-schema pre {
  margin: 10px 0 0; padding: 10px; border-radius: 6px; overflow-x: auto;
  background: #0f172a; color: #e2e8f0; font-size: 12px; line-height: 1.45;
}

/* ---------- Page 4: About, Crew & Credentials (Hard Rule #27 + L-014) ---------- */
.v2-cred-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px;
}
.v2-cred-card {
  background: var(--v2-surface); border: 1px solid var(--v2-line);
  border-radius: var(--v2-radius); padding: 22px; box-shadow: var(--v2-shadow-sm);
  display: flex; flex-direction: column; gap: 8px;
}
.v2-cred-card strong { font-family: var(--v2-display); font-size: 18px; font-weight: 800; }
.v2-cred-card p { font-size: 14px; line-height: 1.5; color: var(--v2-muted); }

.v2-standards-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px;
}
.v2-standard-item {
  display: flex; align-items: flex-start; gap: 12px; padding: 18px;
  border-radius: var(--v2-radius); background: var(--v2-surface); border: 1px solid var(--v2-line);
}
.v2-standard-ico {
  width: 36px; height: 36px; border-radius: 9px; flex-shrink: 0;
  background: var(--v2-accent-soft); color: var(--v2-kicker-ink, var(--v2-accent));
  display: grid; place-items: center;
}
.v2-standard-item strong { display: block; font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.v2-standard-item p { font-size: 14px; line-height: 1.48; color: var(--v2-muted); }

/* ---------- Page 5: Unified Quote & Contact ---------- */
.v2-contact-cards { display: grid; gap: 14px; margin-top: 20px; }
.v2-contact-info-card {
  background: var(--v2-surface); border: 1px solid var(--v2-line);
  border-radius: var(--v2-radius); padding: 18px 20px;
}
.v2-hours-table {
  width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 14px; font-variant-numeric: tabular-nums;
}
.v2-hours-table td {
  padding: 6px 0; border-bottom: 1px solid var(--v2-line);
}
.v2-hours-table tr:last-child td { border-bottom: 0; }
.v2-hours-table td:last-child { text-align: right; font-weight: 700; }
.v2-selected-banner {
  margin-bottom: 14px; padding: 10px 12px; border-radius: 8px;
  background: var(--v2-accent-soft); border: 1px solid var(--v2-line);
  font-size: 13.5px; font-weight: 700; color: var(--v2-ink);
}
.v2-sms-note {
  margin-top: 10px; font-size: 12.5px; line-height: 1.48; color: var(--v2-muted);
}

/* ---------- Distinct Per-Archetype Footers (Pages 1-5) ---------- */
.v2-footer-nav {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px;
}
.v2-footer-nav a {
  text-decoration: none; font-weight: 600; font-size: 14px; min-height: 44px;
  display: inline-flex; align-items: center;
}
.v2-footer-nav a:hover { text-decoration: underline; text-underline-offset: 3px; }
.v2-footer-nav a[aria-current="page"] { font-weight: 800; text-decoration: underline; text-underline-offset: 4px; }

.v2-footer .v2-brand-text small { opacity: 1; }
.arch-a1 .v2-footer { background: #f4f7fa; color: #475569; }
.arch-a1 .v2-footer a, .arch-a1 .v2-footer .v2-brand-text strong { color: #0f172a; }
.arch-a1 .v2-footer .v2-brand-text small { color: #475569; }
.arch-a2 .v2-footer { background: #0c0e10; color: #c7c1b5; border-top-color: rgba(243, 239, 230, 0.14); }
.arch-a2 .v2-footer a, .arch-a2 .v2-footer .v2-brand-text strong { color: #f3efe6; }
.arch-a2 .v2-footer .v2-brand-text small { color: #c7c1b5; }
.arch-a3 .v2-footer { background: #ffffff; color: #4b5563; }
.arch-a3 .v2-footer a, .arch-a3 .v2-footer .v2-brand-text strong { color: #111827; }
.arch-a3 .v2-footer .v2-brand-text small { color: #4b5563; }
.arch-a4 .v2-footer { background: #0f172a; color: #cbd5e1; border-top-color: rgba(255, 255, 255, 0.12); }
.arch-a4 .v2-footer a, .arch-a4 .v2-footer .v2-brand-text strong { color: #f8fafc; }
.arch-a4 .v2-footer .v2-brand-text small { color: #cbd5e1; }
.arch-a5 .v2-footer { background: #ffffff; color: #44505d; }
.arch-a5 .v2-footer a, .arch-a5 .v2-footer .v2-brand-text strong { color: #111820; }
.arch-a5 .v2-footer .v2-brand-text small { color: #44505d; }
.arch-a6 .v2-footer { background: #f2ede3; color: #464e46; }
.arch-a6 .v2-footer a, .arch-a6 .v2-footer .v2-brand-text strong { color: #1e2621; }
.arch-a6 .v2-footer .v2-brand-text small { color: #464e46; }
.arch-a7 .v2-footer { background: #eff2f6; color: #475569; border-top: 0; padding: 24px 0 36px; }
.arch-a7 .v2-footer .v2-wrap {
  background: #ffffff; border-radius: 20px; padding: 28px 32px;
  border: 1px solid rgba(17, 24, 39, 0.07); box-shadow: var(--v2-shadow-sm);
}
.arch-a7 .v2-footer a, .arch-a7 .v2-footer .v2-brand-text strong { color: #0f172a; }
.arch-a7 .v2-footer .v2-brand-text small { color: #475569; }
.arch-a8 .v2-footer { background: var(--v2-banner-bg, #0e2442); color: rgba(255, 255, 255, 0.84); border-top-color: rgba(255, 255, 255, 0.14); }
.arch-a8 .v2-footer a, .arch-a8 .v2-footer .v2-brand-text strong { color: #ffffff; }
.arch-a8 .v2-footer .v2-brand-text small { color: #dbe5f2; }
.arch-a9 .v2-footer { background: #f6f7f9; color: #475569; }
.arch-a9 .v2-footer a, .arch-a9 .v2-footer .v2-brand-text strong { color: #0f172a; }
.arch-a9 .v2-footer .v2-brand-text small { color: #475569; }

/* ---------- Responsive Subpages (<=960px & <=760px) ---------- */
@media (max-width: 960px) {
  .v2-subhead-a1-grid,
  .v2-subhead-a2-top,
  .v2-subhead-a4-grid,
  .v2-subhead-a6-grid,
  .v2-subhead-a7-grid,
  .v2-capacity-band,
  .v2-boundary-grid,
  .v2-projects-grid,
  .v2-cred-grid,
  .v2-standards-grid,
  .v2-trade-tool-grid,
  .v2-plans-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
  .arch-a7 .v2-projects-grid .v2-project-card:first-child,
  .arch-a3 .v2-projects-grid .v2-project-card:first-child {
    grid-column: auto;
    display: flex;
    flex-direction: column;
  }
  .arch-a7 .v2-projects-grid .v2-project-card:first-child .v2-project-media,
  .arch-a3 .v2-projects-grid .v2-project-card:first-child .v2-project-media {
    aspect-ratio: 4 / 3;
    height: auto;
  }
}

@media (max-width: 760px) {
  .v2-subhead { padding: 24px 0 22px; }
  .v2-subhead .v2-h1 { font-size: clamp(28px, 7.5vw, 36px); }
  .v2-subhead-a2-strip { height: 164px; }
  .v2-subhead-a2-strip-cap { left: 12px; right: 12px; bottom: 12px; padding: 6px 10px; font-size: 11px; }
  .v2-subhead-a3 { min-height: 210px; padding: 28px 0; }
  .v2-subhead-a5 { padding-top: 24px; }
  .v2-subhead-a5-body { padding-bottom: 20px; }
  .v2-subhead-a7 { padding: 16px 0 12px; }
  .v2-bento-tile-white, .v2-bento-tile-dark, .arch-a7 .v2-bento-shell { padding: 20px; border-radius: 16px; }
  .v2-subhead-a8 { padding: 24px 0 44px; }
  .v2-subhead-a8-float { margin-top: -20px; }
  .v2-modal-body { padding: 16px 18px 28px; }
  .v2-modal-specs { grid-template-columns: minmax(0, 1fr); }
  .v2-project-body { padding: 16px; }
  .v2-project-actions .v2-btn { width: 100%; }
  .v2-custom-item-row { flex-direction: column; }
  .arch-a7 .v2-footer .v2-wrap { padding: 20px; }
  /* Keep multi-page Home vertical rhythm tight on 390px phones */
  #capacity-proof, #featured-projects { padding: 18px 0; }
  .v2-capacity-card { padding: 16px; gap: 10px; }
  #featured-projects .v2-gallery-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  #featured-projects .v2-project-media { aspect-ratio: 16 / 9; }
  #featured-projects .v2-project-body { padding: 14px; gap: 8px; }
  #featured-projects .v2-project-body .v2-ui-copy { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .v2-project-media img, .v2-filter-btn { transition: none !important; transform: none !important; }
}
