/* ============================================================
   MX BUILDERS — SHARED STYLESHEET
   ------------------------------------------------------------
   Single external stylesheet used by every page (see README.md /
   .claude/CLAUDE.md for the architectural rationale: this repo
   intentionally deviates from mx-website's per-page inline <style>
   pattern because mx-builders ships 14 pages, and 14x duplication
   of an ~800-line block is wasteful payload + a drift risk).
   Design tokens, nav, hero, section, card-grid, footer, mobile
   menu, and reveal-on-scroll patterns are adapted from
   mx-website/builder.html — same visual language, generalized
   into reusable classes so every later page can reuse verbatim.
   ============================================================ */

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

:root {
  --navy:       #0E1B5C;
  --navy-dark:  #070B1F;
  --teal:       #00ACC1;
  --teal-dark:  #007A94;
  --amber:      #E8A020;
  --amber-dark: #C47A10;
  --bg:         #F4F6FF;
  --white:      #FFFFFF;
  --text:       #0E1B5C;
  --mid:        #5A6A9E;
  --border:     #D8DDEF;
  --card:       #EDF0FB;
}

html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; background: var(--bg); color: var(--text); overflow-x: hidden; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.96); backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(14,27,92,0.1);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px; height: 64px;
  box-shadow: 0 1px 24px rgba(14,27,92,0.07);
}
.nav-logo img { height: 32px; display: block; }
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links > li { position: relative; display: flex; align-items: center; }
.nav-links a { color: rgba(14,27,92,0.65); text-decoration: none; font-size: 13px; font-weight: 500; letter-spacing: 0.04em; transition: color 0.2s; }
.nav-links a:hover { color: #0E1B5C; }
.nav-links a.active { color: var(--navy); }
.nav-btn {
  background: var(--teal); color: #fff; padding: 9px 22px; border-radius: 100px;
  font-size: 13px; font-weight: 600; text-decoration: none; transition: background 0.2s;
  white-space: nowrap;
}
.nav-btn:hover { background: var(--teal-dark); }

/* Services mega-dropdown (desktop) */
.nav-dropdown-toggle {
  display: flex; align-items: center; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 0;
  color: rgba(14,27,92,0.65); font-family: inherit; font-size: 13px; font-weight: 500;
  letter-spacing: 0.04em; transition: color 0.2s;
}
.nav-dropdown-toggle:hover { color: var(--navy); }
.nav-dropdown-toggle svg { width: 13px; height: 13px; stroke-width: 2; transition: transform 0.2s; }
.nav-dropdown:hover .nav-dropdown-toggle svg,
.nav-dropdown.open .nav-dropdown-toggle svg { transform: rotate(180deg); }

.nav-dropdown-menu {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  width: 560px; padding-top: 18px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.18s ease, visibility 0.18s ease;
  z-index: 150;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1; visibility: visible; pointer-events: auto;
}
.nav-dropdown-menu-inner {
  background: #fff; border: 1px solid var(--border); border-radius: 16px;
  box-shadow: 0 24px 64px rgba(14,27,92,0.16);
  padding: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 32px;
}
.dropdown-col { display: flex; flex-direction: column; gap: 2px; }
.dropdown-tier-label {
  font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--mid); margin-bottom: 8px; padding: 0 10px;
}
.dropdown-col a {
  padding: 9px 10px; border-radius: 8px; color: var(--text); text-decoration: none;
  font-size: 14px; font-weight: 600; transition: background 0.15s, color 0.15s;
}
.dropdown-col a:hover { background: var(--bg); color: var(--teal-dark); }
.dropdown-col-secondary a { color: var(--mid); font-weight: 400; }
.dropdown-col-secondary a:hover { color: var(--teal-dark); }
.dropdown-bottom-row {
  grid-column: 1 / -1; display: flex; gap: 8px; margin-top: 8px;
  padding-top: 16px; border-top: 1px solid var(--border);
}
.dropdown-bottom-row a {
  flex: 1; text-align: center; padding: 10px; border-radius: 8px;
  background: var(--bg); color: var(--navy); font-size: 13px; font-weight: 600;
  text-decoration: none; transition: background 0.15s;
}
.dropdown-bottom-row a:hover { background: var(--card); }

/* ── HERO ── */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  background: linear-gradient(135deg, #0a0f1e 0%, #0E1B3A 45%, #070B1F 100%);
  position: relative; overflow: hidden; padding: 120px 52px 80px;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 60% at 80% 50%, rgba(232,160,32,0.07) 0%, transparent 70%);
}
.hero-bg-word {
  position: absolute; right: -40px; bottom: -80px;
  font-family: 'DM Serif Display', serif; font-size: clamp(200px, 22vw, 360px);
  color: transparent; -webkit-text-stroke: 1px rgba(232,160,32,0.06);
  letter-spacing: -0.06em; line-height: 1; user-select: none; pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; max-width: 1200px; margin: 0 auto; width: 100%; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--amber); margin-bottom: 32px;
}
.hero-eyebrow::before { content: ''; width: 28px; height: 1px; background: var(--amber); }
.hero-logo { margin-bottom: 32px; }
.hero-logo img { height: 64px; display: block; }
.hero-headline {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(40px, 6.4vw, 84px);
  font-weight: 400; line-height: 1.02; letter-spacing: -0.03em;
  color: #fff; max-width: 820px; margin-bottom: 28px;
}
.hero-headline em { font-style: italic; color: var(--amber); }
.hero-desc {
  font-size: 17px; color: rgba(255,255,255,0.7); max-width: 560px;
  line-height: 1.75; font-weight: 300; margin-bottom: 44px;
}
.hero-ctas { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.btn-primary {
  background: var(--amber); color: #fff; padding: 14px 32px; border-radius: 100px;
  font-size: 14px; font-weight: 600; text-decoration: none; transition: all 0.2s;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary:hover { background: var(--amber-dark); transform: translateY(-2px); }
.btn-ghost {
  color: rgba(255,255,255,0.8); font-size: 14px; font-weight: 500; text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.3); padding-bottom: 2px; transition: all 0.2s;
}
.btn-ghost:hover { color: #fff; border-color: rgba(255,255,255,0.7); }
.btn-white {
  background: #fff; color: var(--amber); padding: 14px 36px; border-radius: 100px;
  font-size: 14px; font-weight: 700; text-decoration: none; display: inline-flex;
  align-items: center; gap: 8px; transition: all 0.2s;
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.2); }
.hero-stats {
  display: flex; gap: 48px; margin-top: 64px; padding-top: 48px;
  border-top: 1px solid rgba(255,255,255,0.1); flex-wrap: wrap;
}
.hero-stat-num {
  font-family: 'DM Serif Display', serif; font-size: 40px; color: #fff;
  line-height: 1; letter-spacing: -0.02em;
}
.hero-stat-num span { color: var(--amber); }
.hero-stat-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.5); margin-top: 6px; font-weight: 600; }

/* ── SECTIONS (generic) ── */
.section { padding: 100px 52px; max-width: 1200px; margin: 0 auto; }
.section-wrap { padding: 100px 0; }
.section-wrap .section { padding-top: 0; padding-bottom: 0; }
.label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--amber); margin-bottom: 16px; display: flex; align-items: center; gap: 10px;
}
.label::before { content: ''; width: 24px; height: 2px; background: var(--amber); border-radius: 2px; }
.label-teal { color: var(--teal) !important; }
.label-teal::before { background: var(--teal) !important; }
h1, h2, h3 { font-weight: 400; }
h2.title {
  font-family: 'DM Serif Display', serif; font-size: clamp(36px, 5vw, 62px);
  font-weight: 400; line-height: 1.05; letter-spacing: -0.025em; color: var(--navy);
}
h2.title em { font-style: italic; color: var(--amber); }
.subtitle { font-size: 17px; color: var(--mid); line-height: 1.75; font-weight: 300; max-width: 560px; margin-top: 20px; }
.disclosure {
  font-size: 12.5px; color: var(--mid); line-height: 1.65; font-weight: 400;
  max-width: 680px; margin-top: 20px;
}
.disclosure.on-dark { color: rgba(255,255,255,0.45); }

/* ── SERVICES GRID (Tier-1 primary anchor) ── */
.services-bg { background: var(--white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.services-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; margin-top: 60px;
  background: var(--border); border: 1px solid var(--border); border-radius: 16px; overflow: hidden;
}
.service-card { background: var(--white); padding: 40px 36px; transition: background 0.3s; text-decoration: none; display: block; }
.service-card:hover { background: var(--card); }
.service-icon { margin-bottom: 20px; color: var(--amber); }
.service-icon svg { width: 28px; height: 28px; stroke-width: 1.5; display: block; }
.service-card h3 { font-size: 20px; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.service-card p { font-size: 14px; color: var(--mid); line-height: 1.75; font-weight: 300; }
.service-card .card-link { font-size: 13px; font-weight: 600; color: var(--teal-dark); margin-top: 16px; display: inline-flex; align-items: center; gap: 6px; }
.service-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.tag {
  font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 100px; background: var(--bg); color: var(--navy);
  border: 1px solid var(--border);
}

/* ── SECONDARY SERVICES STRIP (Tier-2/3, lighter weight) ── */
.secondary-services { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.secondary-service-link {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 100px;
  background: var(--white); border: 1px solid var(--border); color: var(--navy); text-decoration: none;
  font-size: 13.5px; font-weight: 600; transition: all 0.2s;
}
.secondary-service-link:hover { background: var(--card); border-color: var(--teal); color: var(--teal-dark); }
.secondary-service-link svg { width: 15px; height: 15px; stroke-width: 2; color: var(--teal); }
.secondary-service-link.tier3 svg { color: var(--amber); }

/* ── PORTFOLIO / CASE STUDY CARDS ── */
.portfolio-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 56px; }
.portfolio-card {
  display: block; text-decoration: none; border-radius: 14px; overflow: hidden;
  background: var(--card); border: 1px solid var(--border); transition: transform 0.3s, box-shadow 0.3s;
}
.portfolio-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(14,27,92,0.12); }
.portfolio-img { aspect-ratio: 4/3; overflow: hidden; background: var(--border); }
.portfolio-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.portfolio-caption { padding: 16px 18px; }
.portfolio-caption .addr { font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 2px; }
.portfolio-caption .meta { font-size: 12px; color: var(--mid); }

/* ── CTA BAND ── */
.cta-band { background: var(--amber); padding: 80px 52px; text-align: center; }
.cta-band h2 {
  font-family: 'DM Serif Display', serif; font-size: clamp(32px, 4vw, 52px);
  color: #fff; font-weight: 400; letter-spacing: -0.02em; margin-bottom: 16px;
}
.cta-band p { color: rgba(255,255,255,0.85); font-size: 16px; font-weight: 300; margin-bottom: 36px; }

/* ── FOOTER ── */
footer {
  background: var(--navy-dark); color: rgba(255,255,255,0.5);
  padding: 48px 52px; display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 20px;
}
footer .footer-logo img { height: 26px; display: block; opacity: 0.85; }
footer p { font-size: 13px; }
footer a { color: rgba(255,255,255,0.5); text-decoration: none; font-size: 13px; transition: color 0.2s; }
footer a:hover { color: #fff; }
.footer-links { display: flex; gap: 28px; flex-wrap: wrap; }

/* ── REVEAL ON SCROLL ── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }

/* ── MOBILE NAV ── */
.nav-hamburger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px; margin: -6px;
  z-index: 101;
}
.nav-hamburger span { display: block; width: 22px; height: 2px; background: rgba(14,27,92,0.7); border-radius: 2px; transition: all 0.25s; }
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: rgba(5,9,20,0.98); backdrop-filter: blur(20px);
  flex-direction: column; overflow-y: auto;
}
.mobile-menu.open { display: flex; }
.mm-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; height: 64px; flex-shrink: 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.mm-head img { height: 26px; opacity: 0.9; }
.mm-close {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.07); color: rgba(255,255,255,0.7); font-size: 16px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.mm-close:hover { background: rgba(255,255,255,0.14); color: #fff; }
.mm-body { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 32px 24px; gap: 32px; }

.mm-services-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--amber); margin-bottom: 14px;
}
.mm-services-links { list-style: none; display: flex; flex-direction: column; }
.mm-services-links li { border-bottom: 1px solid rgba(255,255,255,0.06); }
.mm-services-links a { display: block; padding: 13px 0; font-size: 17px; font-weight: 600; color: #fff; text-decoration: none; transition: color 0.2s; }
.mm-services-links a:hover { color: var(--amber); }
.mm-services-links.mm-services-secondary a { font-weight: 400; color: rgba(255,255,255,0.65); }

.mm-links { list-style: none; display: flex; flex-direction: column; }
.mm-links li { border-bottom: 1px solid rgba(255,255,255,0.06); }
.mm-links a {
  display: block; padding: 18px 0;
  font-family: 'DM Serif Display', serif; font-size: 28px;
  color: #fff; text-decoration: none; letter-spacing: -0.02em;
  transition: color 0.2s;
}
.mm-links a:hover { color: var(--amber); }
.mm-cta {
  display: block; margin: 8px 24px 40px;
  background: var(--amber); color: #fff; padding: 18px 32px;
  border-radius: 100px; font-size: 15px; font-weight: 700;
  text-align: center; text-decoration: none; transition: background 0.2s;
  flex-shrink: 0;
}
.mm-cta:hover { background: var(--amber-dark); }

/* ── RESPONSIVE ── */
@media (max-width: 1000px) {
  .nav-links { display: none; }
  .nav-btn { display: none; }
  .nav-hamburger { display: flex; }
}
@media (max-width: 900px) {
  nav { padding: 0 24px; }

  .hero { padding: 100px 24px 64px; }
  .hero-bg-word { font-size: clamp(100px, 26vw, 200px); right: -10px; bottom: -30px; }
  .hero-logo img { height: 44px; }
  .hero-desc { font-size: 15px; margin-bottom: 36px; }
  .hero-stats { gap: 28px; margin-top: 40px; padding-top: 28px; }
  .hero-stat-num { font-size: 32px; }

  .section { padding: 64px 24px; }
  .section-wrap { padding: 64px 0; }

  .services-grid { grid-template-columns: 1fr; }
  .service-card { padding: 28px 24px; }

  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }

  .cta-band { padding: 64px 24px; }

  footer { padding: 32px 24px; flex-direction: column; align-items: flex-start; gap: 20px; }
  .footer-links { gap: 20px; flex-wrap: wrap; }
}
@media (max-width: 480px) {
  nav { padding: 0 20px; }

  .hero { padding: 84px 20px 52px; }
  .hero-logo img { height: 38px; }
  .hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
  .hero-stat-num { font-size: 28px; }

  .section { padding: 52px 20px; }

  .portfolio-grid { grid-template-columns: 1fr; }

  .cta-band { padding: 52px 20px; }

  footer { padding: 28px 20px; }
}

/* ============================================================
   WAVE 1 REDESIGN — NEW SHARED COMPONENTS (2026-08-06)
   ------------------------------------------------------------
   Everything below this line was added for the Wave 1 redesign
   (see .claude/CLAUDE.md and README.md for the wave's brief).
   These are shared, reusable components intended for every
   subsequent page rebuilt in Wave 2 / Wave 3 — do not duplicate
   any of this into a page-level <style> block. Sections are
   ordered to match the Wave 1 spec: (a) accessibility polish,
   (b) buyer-type grid, (c) process steps, (d) before/after
   slider, (e) capability supergroups + jump-nav, (f) CTA band
   alt variant.
   ============================================================ */

/* ── (a) ACCESSIBILITY: real focus-visible ring on every interactive element ──
   The base sheet above relied entirely on browser default focus styling
   (inconsistent/invisible in some browsers on custom controls like
   .nav-dropdown-toggle, .service-card links, etc). This gives every
   focusable element a real, visible keyboard-focus ring. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ── (a) REDUCED MOTION: hard requirement, not optional ──
   Neutralizes .reveal's transition/transform (elements simply appear at
   full opacity with no slide-up), disables the count-up animation (JS
   also checks this via matchMedia and skips straight to the final
   value), and removes the .hero-bg-word parallax transform + any
   before/after slider transition. This block must stay in sync with any
   future motion added to this stylesheet. */
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-d1, .reveal-d2, .reveal-d3 {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
  .hero-bg-word {
    transform: none !important;
  }
  .ba-slider-img, .ba-slider-handle, .ba-slider-range {
    transition: none !important;
  }
  html { scroll-behavior: auto; }
}

/* ── (b) WHO WE BUILD FOR — buyer-type segmentation grid ──
   3-up card grid for the homepage "Who We Build For" section. Visually
   related to .service-card but intentionally distinct: subtler card
   background, icon-in-circle treatment, and a colored top border-accent
   per card (teal / amber / navy, in card order) so the section reads as
   its own thing rather than a repeat of "What We Build". */
.buyer-type-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px;
}
.buyer-type-card {
  background: var(--white); border: 1px solid var(--border); border-radius: 16px;
  border-top: 3px solid var(--teal); padding: 36px 32px;
  transition: transform 0.3s, box-shadow 0.3s;
}
.buyer-type-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(14,27,92,0.1); }
.buyer-type-card:nth-child(2) { border-top-color: var(--amber); }
.buyer-type-card:nth-child(3) { border-top-color: var(--navy); }
.buyer-type-icon {
  width: 52px; height: 52px; border-radius: 50%; background: var(--card);
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
  color: var(--teal);
}
.buyer-type-card:nth-child(2) .buyer-type-icon { color: var(--amber); }
.buyer-type-card:nth-child(3) .buyer-type-icon { color: var(--navy); }
.buyer-type-icon svg { width: 24px; height: 24px; stroke-width: 1.5; display: block; }
.buyer-type-card h3 { font-size: 18px; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.buyer-type-card p { font-size: 14px; color: var(--mid); line-height: 1.7; font-weight: 300; }

/* ── (c) PROCESS STEPS — generic numbered "how it works" timeline ──
   Reusable across service pages (e.g. "how a tenant improvement project
   moves from scope to certificate of occupancy"). Horizontal, connected
   by a line, on desktop; stacks to a vertical timeline on mobile. Markup:
   <div class="process-steps"><div class="process-step">
     <div class="process-step-num">1</div><h3>...</h3><p>...</p>
   </div>...</div> */
.process-steps { display: flex; margin-top: 56px; position: relative; }
.process-steps::before {
  content: ''; position: absolute; top: 23px; left: 0; right: 0; height: 2px;
  background: var(--border); z-index: 0;
}
.process-step { flex: 1; position: relative; z-index: 1; padding: 0 20px; text-align: left; }
.process-step:first-child { padding-left: 0; }
.process-step:last-child { padding-right: 0; }
.process-step-num {
  width: 46px; height: 46px; border-radius: 50%; background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: 'DM Serif Display', serif; font-size: 18px; margin-bottom: 20px;
  border: 4px solid var(--bg);
}
.process-step h3 { font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.process-step p { font-size: 13.5px; color: var(--mid); line-height: 1.65; font-weight: 300; }

/* ── (d) BEFORE/AFTER COMPARISON SLIDER ──
   Accessible drag-comparison component. The "after" image is clipped via
   clip-path driven entirely by the --ba-pos custom property (set on the
   .ba-slider wrapper); js/main.js updates --ba-pos on the range input's
   `input` event, which simultaneously moves the after-image clip AND the
   visible handle line/knob below — no separate JS positioning needed for
   the handle. Uses a REAL <input type="range"> (see markup below) so
   keyboard (arrow keys) and touch both work natively — do not replace
   this with a custom pointer-drag div, which would lose keyboard access.
   REQUIRED: the range input's aria-label must be filled in per-instance
   by whoever uses this component, e.g. aria-label="Drag to compare
   before and after photos of 190 Dawns Edge Drive, Montgomery, TX" — a
   generic/missing label will fail this repo's accessibility test suite
   (tests/accessibility.test.ts requires every non-hidden form control to
   have a label or aria-label).
   Markup:
   <div class="ba-slider" style="--ba-pos:50%">
     <img class="ba-slider-img ba-slider-before" src="..." alt="Before: ..."/>
     <img class="ba-slider-img ba-slider-after" src="..." alt="After: ..."/>
     <div class="ba-slider-handle" aria-hidden="true"></div>
     <input type="range" class="ba-slider-range" min="0" max="100" value="50"
            aria-label="Drag to compare before and after photos of <address>"/>
   </div> */
.ba-slider {
  position: relative; width: 100%; aspect-ratio: 4 / 3; border-radius: 14px;
  overflow: hidden; background: var(--border); --ba-pos: 50%;
}
.ba-slider-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block;
  user-select: none;
}
.ba-slider-after { clip-path: inset(0 calc(100% - var(--ba-pos)) 0 0); }
.ba-slider-handle {
  position: absolute; top: 0; bottom: 0; left: var(--ba-pos); width: 3px;
  background: #fff; transform: translateX(-50%);
  box-shadow: 0 0 0 1px rgba(14,27,92,0.15), 0 2px 12px rgba(0,0,0,0.35);
  pointer-events: none; z-index: 1;
}
.ba-slider-handle::before {
  content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 38px; height: 38px; border-radius: 50%; background: #fff;
  box-shadow: 0 2px 14px rgba(0,0,0,0.35);
}
.ba-slider-handle::after {
  content: '↔'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -55%);
  font-size: 15px; color: var(--navy); font-weight: 700;
}
.ba-slider-range {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; z-index: 2;
  opacity: 0; cursor: ew-resize; appearance: none; -webkit-appearance: none; background: transparent;
}
.ba-slider-range::-webkit-slider-runnable-track { background: transparent; }
.ba-slider-range::-moz-range-track { background: transparent; }
.ba-slider-range::-webkit-slider-thumb {
  -webkit-appearance: none; width: 38px; height: 38px; border-radius: 50%;
  background: transparent; border: none; cursor: ew-resize;
}
.ba-slider-range::-moz-range-thumb {
  width: 38px; height: 38px; border-radius: 50%; background: transparent; border: none; cursor: ew-resize;
}
/* Visible focus indicator on the whole component when the (invisible) range
   input is keyboard-focused — the range itself is opacity:0 by design (the
   .ba-slider-handle div is the visible control surface), so the ring goes
   on the wrapper via :focus-within instead of directly on the input. */
.ba-slider:focus-within {
  outline: 2px solid var(--teal); outline-offset: 3px;
}
.ba-slider-caption {
  position: absolute; bottom: 10px; left: 10px; right: 10px; z-index: 1;
  display: flex; justify-content: space-between; pointer-events: none;
}
.ba-slider-caption span {
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  background: rgba(7,11,31,0.65); color: #fff; padding: 4px 10px; border-radius: 100px;
}

/* ── (e) CAPABILITIES SUPERGROUPS — 2-level capabilities-page structure ──
   Wraps several existing .capability-section blocks under one higher-
   level H2 heading (5 supergroups on /capabilities: Sitework, Concrete &
   Exteriors / Structure & Envelope / Interior Finishes / MEP Systems /
   Specialties & Compliance). Individual category headings inside a
   supergroup are H3 (see h3.title below), keeping heading order valid
   (h1 -> h2 supergroup -> h3 category). */
.capability-supergroup { border-top: 1px solid var(--border); }
.capability-supergroup-title {
  font-family: 'DM Serif Display', serif; font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 400; letter-spacing: -0.02em; color: var(--navy); line-height: 1.1;
  max-width: 1200px; margin: 0 auto; padding: 64px 52px 4px;
}
.capability-supergroup-title em { font-style: italic; color: var(--amber); }
.capability-supergroup-intro {
  font-size: 14.5px; color: var(--mid); line-height: 1.7; font-weight: 300;
  max-width: 720px; margin: 0 auto; padding: 0 52px 8px;
}
/* Category heading one level below the supergroup H2 title above. Same
   serif treatment as h2.title, scaled down to read as subordinate. */
h3.title {
  font-family: 'DM Serif Display', serif; font-weight: 400; letter-spacing: -0.02em;
  color: var(--navy); line-height: 1.15; font-size: clamp(24px, 3vw, 32px);
}
h3.title em { font-style: italic; color: var(--amber); }
.capability-category-intro {
  font-size: 14.5px; color: var(--mid); line-height: 1.75; font-weight: 300;
  max-width: 680px; margin-top: 14px;
}
.capability-category-link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 12px;
  font-size: 13px; font-weight: 600; color: var(--teal-dark); text-decoration: none;
}
.capability-category-link:hover { color: var(--teal); }

/* Two-tier jump-nav / table-of-contents: a bold "supergroups" row (jumps
   to each H2 section) plus the existing fine-grained category pill list
   (jumps to each H3 anchor). Reusable on any page with many subsections. */
.capabilities-jumpnav-groups { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.capabilities-jumpnav-groups a {
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.02em; padding: 9px 18px;
  border-radius: 100px; background: var(--navy); color: #fff; text-decoration: none;
  transition: background 0.2s;
}
.capabilities-jumpnav-groups a:hover { background: var(--teal-dark); }
.capabilities-jumpnav {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; max-width: 900px;
}
.capabilities-jumpnav a {
  font-size: 12.5px; font-weight: 600; padding: 6px 14px; border-radius: 100px;
  background: var(--bg); color: var(--navy); border: 1px solid var(--border);
  text-decoration: none; transition: all 0.2s;
}
.capabilities-jumpnav a:hover { background: var(--card); border-color: var(--teal); color: var(--teal-dark); }
.capability-section { scroll-margin-top: 88px; }

/* ── (f) CTA BAND — teal variant ──
   Same .cta-band structure, swapped to teal for categories research
   flagged as a growth priority worth slightly stronger visual
   differentiation (e.g. Ground-Up Commercial). Usage: add class
   "cta-band-alt" alongside the existing "cta-band" class. */
.cta-band.cta-band-alt { background: var(--teal); }
.cta-band.cta-band-alt .btn-white { color: var(--teal-dark); }

/* ── WAVE 1 RESPONSIVE ── */
@media (max-width: 900px) {
  .buyer-type-grid { grid-template-columns: 1fr; }

  .process-steps { flex-direction: column; gap: 32px; }
  .process-steps::before { top: 0; bottom: 0; left: 22px; right: auto; width: 2px; height: auto; }
  .process-step { padding: 0 0 0 60px; }
  .process-step-num { position: absolute; left: 0; top: 0; }

  .capability-supergroup-title { padding: 48px 24px 4px; }
  .capability-supergroup-intro { padding: 0 24px 8px; }
}

