/* JMartin Construction — black + orange custom builder site */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0a0a0a;
  --bg-2: #141414;
  --bg-3: #1c1c1c;
  --line: rgba(255,255,255,0.10);
  --line-2: rgba(255,255,255,0.18);
  --t1: #ffffff;
  --t2: rgba(255,255,255,0.74);
  --t3: rgba(255,255,255,0.50);
  --orange: #ff7a1a;
  --orange-h: #ff8f3a;
  --orange-deep: #d95800;
  --good: #22c55e;
  --bad: #ef4444;
  --r: 10px;
  --r-lg: 14px;
  --eo: cubic-bezier(.16,1,.3,1);
  --container: 1180px;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--t1);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01" on, "cv11" on;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea, button { font-family: inherit; }

/* ── Brand logo + wordmark ── */
.brand-logo {
  height: 44px; width: auto;
  display: block;
  border-radius: 6px;
}
.brand-logo-lg { height: 96px; }
.brand-word { font-weight: 700; letter-spacing: -0.01em; font-size: 1.05rem; line-height: 1; }
.brand-word em { color: var(--orange); font-style: normal; font-weight: 800; }
@media (max-width: 480px) {
  .brand-word { display: none; }
}

/* ── Nav ── */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.85rem clamp(1rem, 4vw, 2.5rem);
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 0.6rem; }
.nav-links { display: flex; align-items: center; gap: 1.6rem; }
.nav-links a {
  font-size: 0.88rem; font-weight: 500; color: var(--t2);
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--t1); }
.nav-phone {
  background: var(--orange); color: #0a0a0a !important;
  padding: 0.55rem 0.9rem; border-radius: var(--r);
  font-weight: 700 !important; font-size: 0.85rem !important;
}
.nav-phone:hover { background: var(--orange-h); }
@media (max-width: 820px) {
  .nav-links a:not(.nav-phone) { display: none; }
}

/* ── Buttons ── */
.btn-primary, .btn-ghost {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.95rem 1.4rem; border-radius: var(--r);
  font-weight: 700; font-size: 0.9rem; letter-spacing: -0.005em;
  border: none;
  transition: background 0.18s var(--eo), transform 0.18s var(--eo), border-color 0.18s ease;
}
.btn-primary {
  background: var(--orange); color: #0a0a0a;
}
.btn-primary:hover { background: var(--orange-h); transform: translateY(-1px); }
.btn-primary svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.btn-ghost {
  background: transparent; color: var(--t1);
  border: 1px solid var(--line-2);
}
.btn-ghost:hover { border-color: var(--orange); color: var(--orange); }
.btn-ghost svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-submit { width: 100%; justify-content: center; padding: 1.05rem 1.4rem; margin-top: 0.4rem; }
.btn-submit:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

/* ── Hero ── */
.hero {
  position: relative;
  min-height: clamp(560px, 86vh, 820px);
  display: flex; align-items: center;
  padding: clamp(4rem, 12vw, 8rem) clamp(1.25rem, 4vw, 2.5rem) clamp(4rem, 10vw, 7rem);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,10,10,0.45) 0%, rgba(10,10,10,0.78) 60%, rgba(10,10,10,1) 100%),
    url('https://images.unsplash.com/photo-1600585154526-990dced4db0d?w=1800&auto=format&fit=crop') center/cover no-repeat;
  filter: saturate(1.05);
}
.hero-inner { position: relative; max-width: 820px; width: 100%; margin: 0 auto; text-align: center; }
.eyebrow {
  display: inline-block;
  font-size: 0.7rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--orange); font-weight: 700;
  margin-bottom: 1.1rem;
}
.eyebrow-light { color: var(--orange); }
.hero h1.seo-h1,
.service-hero h1.seo-h1 {
  /* SEO H1: visually equivalent to the eyebrow so the brand-voice
     headline (.hero-display) remains the dominant visual element. */
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--orange);
  font-weight: 700;
  margin-bottom: 1.1rem;
  line-height: 1.4;
}
.hero .hero-display {
  font-size: clamp(2.2rem, 6.5vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0 0 1.1rem;
  color: var(--t1);
}
.service-hero .hero-display {
  font-size: clamp(2rem, 5.5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0 0 0.85rem;
  color: var(--t1);
  max-width: 760px;
}
.hero-sub {
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  color: var(--t2);
  max-width: 640px; margin: 0 auto 2rem;
}
.hero-cta-row {
  display: flex; gap: 0.85rem; justify-content: center; flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.hero-byline {
  font-size: 0.85rem; color: var(--t3);
}

/* ── Section frame ── */
.section {
  padding: clamp(4rem, 9vw, 6.5rem) clamp(1.25rem, 4vw, 2.5rem);
  max-width: var(--container); margin: 0 auto;
}
.section-dark {
  max-width: none;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-dark > * { max-width: var(--container); margin-left: auto; margin-right: auto; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto clamp(2.5rem, 5vw, 4rem); }
.section-head h2 {
  font-size: clamp(1.85rem, 4vw, 2.6rem); font-weight: 800;
  letter-spacing: -0.02em; line-height: 1.1; margin: 0.4rem 0 0.85rem;
}
.section-head p { color: var(--t2); font-size: 1.02rem; }

/* ── Services — image-card carousel ── */
.section-services {
  /* Carousel breaks out beyond the section width, but heading + dots stay centered */
  max-width: none;
  padding-left: 0; padding-right: 0;
}
.services-head, .services-dots {
  max-width: var(--container);
  margin-left: auto; margin-right: auto;
  padding-left: clamp(1.25rem, 4vw, 2.5rem);
  padding-right: clamp(1.25rem, 4vw, 2.5rem);
}
.services-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 1.5rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.services-head-copy { max-width: 560px; }
.services-head-copy .eyebrow { margin-bottom: 0.7rem; }
.services-head-copy h2 {
  font-size: clamp(1.85rem, 4vw, 2.6rem); font-weight: 800;
  letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 0.85rem;
}
.services-head-copy p { color: var(--t2); font-size: 1.02rem; max-width: 520px; }
.services-nav { display: flex; gap: 0.5rem; flex-shrink: 0; }
@media (max-width: 720px) { .services-nav { display: none; } }
.services-arrow {
  width: 40px; height: 40px; border-radius: 8px;
  background: transparent; border: 1px solid var(--line-2);
  color: var(--t1);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.services-arrow:hover:not(:disabled) {
  background: var(--bg-3); border-color: var(--orange); color: var(--orange);
}
.services-arrow:disabled { opacity: 0.4; cursor: not-allowed; }
.services-arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.services-carousel { width: 100%; overflow: hidden; }
.services-track {
  display: flex; gap: 1.25rem;
  justify-content: safe center;
  padding: 0.5rem clamp(1.25rem, 4vw, 2.5rem) 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.services-track::-webkit-scrollbar { display: none; }

.svc-tile {
  position: relative;
  flex: 0 0 300px;
  height: 432px;
  border-radius: 14px;
  overflow: hidden;
  scroll-snap-align: start;
  display: block;
  text-decoration: none;
  color: #fff;
  background: var(--bg-3);
  isolation: isolate;
}
@media (min-width: 1024px) { .svc-tile { flex-basis: 360px; } }
.svc-tile img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s var(--eo);
  z-index: 1;
}
.svc-tile:hover img { transform: scale(1.05); }
.svc-tile-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,10,10,0) 0%, rgba(10,10,10,0.55) 55%, rgba(10,10,10,0.96) 100%),
    linear-gradient(180deg, rgba(255,122,26,0) 65%, rgba(255,122,26,0.18) 100%);
  z-index: 2;
}
.svc-tile-body {
  position: absolute; inset: auto 0 0 0; z-index: 3;
  padding: 1.6rem 1.6rem 1.5rem;
}
.svc-tile-body h3 {
  font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em;
  margin-bottom: 0.55rem;
}
.svc-tile-body p {
  font-size: 0.9rem; line-height: 1.55; opacity: 0.92;
  margin-bottom: 1.2rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.svc-tile-cta {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.86rem; font-weight: 600;
  color: var(--orange);
}
.svc-tile-cta svg {
  width: 16px; height: 16px;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  transition: transform 0.2s ease;
}
.svc-tile:hover .svc-tile-cta svg { transform: translateX(4px); }

.services-scroll-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin: 1.75rem auto 0;
  padding: 0.45rem 0.95rem;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.22em;
  color: var(--orange); text-transform: uppercase;
  border: 1px solid rgba(255,122,26,0.35);
  border-radius: 999px;
  width: fit-content;
}
.services-scroll-hint svg {
  width: 14px; height: 14px;
  fill: none; stroke: currentColor; stroke-width: 2.4;
  stroke-linecap: round; stroke-linejoin: round;
  animation: scroll-hint-nudge 2.2s ease-in-out infinite;
}
@keyframes scroll-hint-nudge {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(4px); }
}
@media (prefers-reduced-motion: reduce) {
  .services-scroll-hint svg { animation: none; }
}

/* ── Service detail pages ── */
.service-hero {
  position: relative;
  min-height: clamp(420px, 60vh, 560px);
  display: flex; align-items: flex-end;
  padding: clamp(4rem, 8vw, 6rem) clamp(1.25rem, 4vw, 2.5rem);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.service-hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  background-repeat: no-repeat;
}
.service-hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.55) 0%, rgba(10,10,10,0.85) 70%, rgba(10,10,10,0.98) 100%);
}
.service-hero-inner {
  position: relative; z-index: 1;
  max-width: var(--container); width: 100%;
  margin: 0 auto;
}
.service-hero h1 {
  font-size: clamp(2rem, 5.5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0.6rem 0 0.85rem;
  max-width: 760px;
}
.service-hero p.lede {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--t2);
  max-width: 620px;
  margin-bottom: 1.5rem;
}
.service-back {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.8rem; font-weight: 600;
  color: var(--t3); letter-spacing: 0.02em;
  margin-bottom: 0.6rem;
  transition: color 0.18s ease;
}
.service-back:hover { color: var(--orange); }
.service-back svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.service-body {
  display: block;
  padding: clamp(3.5rem, 7vw, 5.5rem) clamp(1.25rem, 4vw, 2.5rem) clamp(2.5rem, 5vw, 3.5rem);
  max-width: 820px;
  margin: 0 auto;
}
.service-prose h2 {
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.85rem;
}
.service-prose p {
  font-size: 1rem; color: var(--t2);
  line-height: 1.7; margin-bottom: 1rem;
}
.service-prose h3 {
  font-size: 1.05rem; font-weight: 700;
  margin-top: 2rem; margin-bottom: 0.85rem;
  letter-spacing: -0.01em;
}
.service-included {
  list-style: none;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.5rem;
}
.service-included li {
  display: flex; align-items: flex-start; gap: 0.55rem;
  font-size: 0.92rem; color: var(--t1); line-height: 1.45;
  padding: 0.55rem 0;
}
.service-included li::before {
  content: ""; flex-shrink: 0;
  width: 6px; height: 6px; margin-top: 0.55rem;
  border-radius: 50%; background: var(--orange);
}
/* Horizontal process timeline for "How a [service] job runs" sections */
.service-process {
  padding: clamp(2.5rem, 5vw, 3.5rem) clamp(1.25rem, 4vw, 2.5rem) clamp(3.5rem, 6vw, 5rem);
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.service-process-inner {
  max-width: var(--container);
  margin: 0 auto;
}
.service-process .section-head { margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.process-roadmap {
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--steps, 5), minmax(0, 1fr));
  gap: 0.85rem;
}
.process-line {
  position: absolute;
  left: 5%; right: 5%; top: 36px;
  height: 2px;
  background: linear-gradient(to right,
    rgba(255,122,26,0.25),
    rgba(255,122,26,0.55),
    rgba(255,122,26,0.25));
  border-radius: 2px;
  z-index: 0;
}
.process-step {
  position: relative; z-index: 1;
  text-align: center;
  padding-top: 4.25rem;
  display: flex; flex-direction: column; align-items: center;
}
.process-dot {
  position: absolute; left: 50%; top: 28px;
  transform: translateX(-50%);
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--orange);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 4px rgba(255,122,26,0.18);
  transition: transform 0.2s var(--eo);
}
.process-dot::after {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--bg-2);
}
.process-step:hover .process-dot { transform: translateX(-50%) scale(1.18); }
.process-badge {
  display: inline-block;
  padding: 0.18rem 0.55rem;
  font-size: 0.6rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: #0a0a0a;
  background: var(--orange);
  border-radius: 999px;
  margin-bottom: 0.45rem;
  font-feature-settings: "tnum" on;
}
.process-step h3 {
  font-size: 0.96rem; font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.25rem;
  color: var(--t1);
  line-height: 1.25;
}
.process-step p {
  font-size: 0.8rem; color: var(--t2);
  line-height: 1.5;
  max-width: 170px;
  margin: 0 auto;
}
.service-process-cta {
  text-align: center;
  margin-top: clamp(2rem, 4vw, 3rem);
}
@media (max-width: 880px) {
  .process-roadmap {
    grid-template-columns: 1fr;
    max-width: 460px;
    margin: 0 auto;
    gap: 1.25rem;
  }
  .process-line {
    left: 36px; right: auto; top: 5%; bottom: 5%;
    width: 2px; height: auto;
    background: linear-gradient(to bottom,
      rgba(255,122,26,0.25),
      rgba(255,122,26,0.55),
      rgba(255,122,26,0.25));
  }
  .process-step {
    padding-top: 0;
    padding-left: 4.5rem;
    text-align: left;
    align-items: flex-start;
  }
  .process-dot { left: 36px; top: 4px; }
  .process-step:hover .process-dot { transform: translateX(-50%) scale(1.18); }
  .process-step p { margin: 0; max-width: none; }
}

/* ── Projects — 3 across on desktop, larger tiles ── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
@media (max-width: 880px) {
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .projects-grid { grid-template-columns: 1fr; gap: 1rem; }
}
.project {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-3);
  aspect-ratio: 4 / 3;
  cursor: pointer;
}
.project img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s var(--eo);
}
.project:hover img { transform: scale(1.045); }
.project figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.25rem 1.25rem 1.1rem;
  background: linear-gradient(180deg, rgba(10,10,10,0) 0%, rgba(10,10,10,0.85) 80%);
  color: #fff;
}
.proj-label {
  display: inline-block;
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.3rem;
}
.project h4 { font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em; }
.projects-note, .areas-note, .reviews-note {
  margin-top: 1.5rem; text-align: center;
  font-size: 0.78rem; color: var(--t3); font-style: italic;
}

/* ── Process — horizontal roadmap timeline ── */
.roadmap {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 0.5rem;
}
.roadmap-line {
  position: absolute; left: 5%; right: 5%; top: 36px; height: 2px;
  background: linear-gradient(to right,
    rgba(255,122,26,0.25),
    rgba(255,122,26,0.55),
    rgba(255,122,26,0.25));
  border-radius: 2px;
  z-index: 0;
}
.roadmap-item {
  position: relative; z-index: 1;
  text-align: center;
  padding-top: 4.25rem;
  display: flex; flex-direction: column; align-items: center;
}
.roadmap-dot {
  position: absolute; left: 50%; top: 28px;
  transform: translateX(-50%);
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--orange);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 4px rgba(255,122,26,0.18);
  transition: transform 0.2s var(--eo);
}
.roadmap-dot::after {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--bg);
}
.roadmap-item:hover .roadmap-dot { transform: translateX(-50%) scale(1.2); }
.roadmap-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  font-size: 0.66rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: #0a0a0a;
  background: var(--orange);
  border-radius: 999px;
  margin-bottom: 0.55rem;
  font-feature-settings: "tnum" on;
}
.roadmap-item h4 {
  font-size: 0.98rem; font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.35rem;
}
.roadmap-item p {
  font-size: 0.83rem; color: var(--t2); line-height: 1.5;
  max-width: 200px;
  margin: 0 auto;
}
@media (max-width: 880px) {
  .roadmap {
    grid-template-columns: 1fr;
    max-width: 460px;
    gap: 1.25rem;
  }
  .roadmap-line {
    left: 36px; right: auto; top: 5%; bottom: 5%;
    width: 2px; height: auto;
    background: linear-gradient(to bottom,
      rgba(255,122,26,0.25),
      rgba(255,122,26,0.55),
      rgba(255,122,26,0.25));
  }
  .roadmap-item {
    padding-top: 0; padding-left: 4.5rem;
    text-align: left; align-items: flex-start;
  }
  .roadmap-dot {
    left: 36px; top: 4px;
    transform: translateX(-50%);
  }
  .roadmap-item:hover .roadmap-dot { transform: translateX(-50%) scale(1.2); }
  .roadmap-item p { margin: 0; max-width: none; }
}

/* ── Areas — Leaflet map of Western Montana ── */
.areas-map-wrap {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 1.5rem;
  max-width: var(--container);
  margin: 0 auto;
  align-items: stretch;
}
@media (max-width: 880px) {
  .areas-map-wrap { grid-template-columns: 1fr; }
}
.areas-map {
  height: 480px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line-2);
  overflow: hidden;
  background: var(--bg-2);
}
.areas-map .leaflet-container {
  background: #1a1a1a;
  font-family: inherit;
}
.areas-map .leaflet-control-attribution {
  background: rgba(10,10,10,0.7);
  color: var(--t3);
  font-size: 0.65rem;
}
.areas-map .leaflet-control-attribution a { color: var(--t2); }
.areas-map .leaflet-control-zoom a {
  background: var(--bg-2);
  color: var(--t1);
  border: 1px solid var(--line-2);
}
.areas-map .leaflet-control-zoom a:hover {
  background: var(--bg-3);
  color: var(--orange);
}
.jm-marker {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--orange);
  color: #0a0a0a;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.78rem;
  box-shadow: 0 0 0 4px rgba(255,122,26,0.28), 0 4px 10px rgba(0,0,0,0.4);
  border: 2px solid #0a0a0a;
}
.jm-marker-hub {
  width: 32px; height: 32px;
  font-size: 0.92rem;
  background: #fff;
  border-color: var(--orange);
  box-shadow: 0 0 0 6px rgba(255,122,26,0.40), 0 4px 14px rgba(0,0,0,0.5);
  margin: -3px 0 0 -3px;
}
.jm-tooltip {
  background: var(--bg-2) !important;
  color: var(--t1) !important;
  border: 1px solid var(--line-2) !important;
  border-radius: 6px !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  padding: 0.4rem 0.6rem !important;
  box-shadow: 0 6px 16px rgba(0,0,0,0.4) !important;
  line-height: 1.35 !important;
}
.jm-tooltip strong { display: block; color: var(--t1); }
.jm-tooltip .jm-tip-sub {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--t3);
  letter-spacing: 0.005em;
  margin-top: 0.1rem;
}
.jm-tooltip::before { display: none; }
.areas-legend {
  list-style: none;
  display: flex; flex-direction: column;
  gap: 0.5rem;
  align-self: center;
}
.areas-legend li {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.65rem 0.85rem;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--r);
  font-size: 0.9rem;
  font-weight: 500;
}
.areas-pin {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--orange); color: #0a0a0a;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.72rem;
  flex-shrink: 0;
}

/* ── Reviews — 3-column auto-scrolling testimonials ── */
.section-reviews { max-width: none; padding-left: clamp(1rem, 4vw, 2.5rem); padding-right: clamp(1rem, 4vw, 2.5rem); }
.section-reviews > * { max-width: var(--container); margin-left: auto; margin-right: auto; }
.rev-pill {
  display: inline-block;
  padding: 0.35rem 0.95rem;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--t1);
  margin-bottom: 1.1rem;
}
.tcols {
  position: relative;
  display: flex; justify-content: center; gap: 1.5rem;
  margin-top: 2.5rem;
  max-height: 740px;
  overflow: hidden;
}
/* Top + bottom fade overlays — pure compositing, no mask layer.
   mask-image on a parent of a transforming child forces a per-frame
   compositing pass and causes visible stutter on lower-end GPUs. */
.tcols::before, .tcols::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 22%;
  z-index: 2;
  pointer-events: none;
}
.tcols::before {
  top: 0;
  background: linear-gradient(to bottom, var(--bg) 0%, rgba(10,10,10,0) 100%);
}
.tcols::after {
  bottom: 0;
  background: linear-gradient(to top, var(--bg) 0%, rgba(10,10,10,0) 100%);
}
.tcol {
  flex: 0 0 auto;
  width: 100%;
  max-width: 320px;
}
.tcol-md { display: none; }
.tcol-lg { display: none; }
@media (min-width: 768px) {
  .tcol-md { display: block; }
}
@media (min-width: 1024px) {
  .tcol-lg { display: block; }
}
.tcol-track {
  display: flex; flex-direction: column; gap: 1.5rem;
  padding-bottom: 1.5rem;
  animation: tcol-scroll var(--tcol-duration, 40s) linear infinite;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}
/* Triple-buffer marquee: 3 copies of each card set, wrap at -33.333%
   so the loop point falls in the middle of identical content — any
   sub-pixel drift from variable card heights stays invisible. */
@keyframes tcol-scroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(0, -33.3333%, 0); }
}

.tcard {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 2.25rem 1.75rem;
}
.tcard p {
  font-size: 0.95rem;
  color: var(--t1);
  line-height: 1.65;
  letter-spacing: -0.005em;
}
.tcard-meta {
  display: flex; align-items: center; gap: 0.75rem;
  margin-top: 1.25rem;
}
.tcard-meta img {
  width: 40px; height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--line-2);
}
.tcard-meta strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.25;
}
.tcard-meta span {
  display: block;
  font-size: 0.85rem;
  color: var(--t3);
  letter-spacing: -0.005em;
  line-height: 1.25;
}

@media (prefers-reduced-motion: reduce) {
  .tcol-track { animation: none; }
  .tcols { max-height: none; -webkit-mask-image: none; mask-image: none; }
}

/* ── Legal pages (privacy / terms) ── */
.legal-page {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 5rem) clamp(1.25rem, 4vw, 2.5rem) clamp(3rem, 6vw, 5rem);
}
.legal-header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}
.legal-header .eyebrow { display: inline-block; margin-bottom: 0.75rem; }
.legal-header h1.hero-display {
  font-size: clamp(2rem, 4.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}
.legal-page .legal-updated {
  font-size: 0.85rem; color: var(--t3);
  margin-bottom: 0;
}
.legal-page p {
  color: var(--t2);
  line-height: 1.75;
  margin-bottom: 1rem;
  font-size: 0.97rem;
}
.legal-page h2 {
  margin-top: 2.75rem;
  margin-bottom: 0.85rem;
  font-size: 1.32rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--t1);
}
.legal-page h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.55rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  color: var(--t1);
}
.legal-page ul, .legal-page ol {
  margin: 0 0 1rem 1.4rem;
  color: var(--t2);
}
.legal-page li {
  margin-bottom: 0.5rem;
  line-height: 1.65;
  font-size: 0.95rem;
}
.legal-page strong { color: var(--t1); font-weight: 600; }
.legal-page a {
  color: var(--orange);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.15s ease;
}
.legal-page a:hover { opacity: 0.85; }
.legal-callout {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--orange);
  padding: 1.1rem 1.4rem;
  border-radius: var(--r);
  margin: 1.25rem 0 1.5rem;
}
.legal-callout p { margin: 0; }
.legal-footer-note {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--t3);
}

/* ── Service-page extras (local context + project types + related) ── */
.service-extras {
  padding: 0 clamp(1.25rem, 4vw, 2.5rem) clamp(2.5rem, 5vw, 4rem);
}
.service-extras-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
}
@media (max-width: 880px) { .service-extras-inner { grid-template-columns: 1fr; } }
.extras-block h3 {
  font-size: 1.25rem; font-weight: 800;
  letter-spacing: -0.015em;
  margin-bottom: 0.85rem;
  color: var(--t1);
}
.extras-block p {
  font-size: 0.97rem; color: var(--t2);
  line-height: 1.7; margin-bottom: 1rem;
}
.project-types {
  list-style: none;
  display: flex; flex-direction: column; gap: 0.7rem;
}
.project-types li {
  padding: 0.7rem 0 0.7rem 1rem;
  border-left: 2px solid var(--orange);
  font-size: 0.93rem;
  line-height: 1.55;
  color: var(--t2);
}
.project-types li strong { color: var(--t1); font-weight: 700; display: inline; }

.related-services {
  padding: clamp(3rem, 6vw, 4.5rem) clamp(1.25rem, 4vw, 2.5rem);
  background: var(--bg-2);
  border-top: 1px solid var(--line);
}
.related-inner { max-width: var(--container); margin: 0 auto; }
.related-inner > h3 {
  font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--orange); font-weight: 700;
  margin-bottom: 1.5rem;
  text-align: center;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
@media (max-width: 720px) {
  .related-grid { grid-template-columns: 1fr; }
}
.related-card {
  display: block;
  padding: 1.5rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  text-decoration: none;
  color: var(--t1);
  transition: border-color 0.2s ease, transform 0.2s var(--eo);
}
.related-card:hover { border-color: var(--orange); transform: translateY(-2px); }
.related-card h4 {
  font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em;
  margin-bottom: 0.4rem;
}
.related-card p {
  font-size: 0.88rem; color: var(--t2); line-height: 1.55;
  margin-bottom: 0.6rem;
}
.related-card .related-arrow {
  color: var(--orange); font-weight: 700; font-size: 0.88rem;
  transition: transform 0.2s ease;
  display: inline-block;
}
.related-card:hover .related-arrow { transform: translateX(4px); }

/* ── FAQ (homepage + service pages) ── */
.section-faq { padding-bottom: clamp(3rem, 6vw, 4.5rem); }
.faq-list {
  display: flex; flex-direction: column; gap: 0.6rem;
  max-width: 820px; margin: 0 auto;
}
.faq-item {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color 0.2s ease;
}
.faq-item[open] { border-color: rgba(255,122,26,0.4); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.05rem 1.25rem;
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 1rem;
  font-size: 0.98rem; font-weight: 600;
  color: var(--t1);
  letter-spacing: -0.005em;
  line-height: 1.4;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  width: 22px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.4rem; font-weight: 400; line-height: 1;
  color: var(--orange);
  transition: transform 0.2s var(--eo);
}
.faq-item[open] summary::after {
  content: "−";
  transform: rotate(0deg);
}
.faq-item summary:hover { color: var(--orange); }
.faq-body {
  padding: 0 1.25rem 1.1rem;
  color: var(--t2);
  font-size: 0.92rem;
  line-height: 1.65;
}
.faq-body p { margin: 0; }
.faq-body p + p { margin-top: 0.7rem; }

/* ── Contact CTA ── */
.cta {
  padding: clamp(4rem, 9vw, 6.5rem) clamp(1.25rem, 4vw, 2.5rem);
  background: var(--bg-2);
  border-top: 1px solid var(--line);
}
.cta-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (max-width: 880px) { .cta-inner { grid-template-columns: 1fr; } }
.cta-copy h2 {
  font-size: clamp(1.85rem, 4vw, 2.6rem); font-weight: 800;
  letter-spacing: -0.02em; line-height: 1.1; margin: 0.4rem 0 1rem;
}
.cta-copy p { color: var(--t2); font-size: 1.02rem; margin-bottom: 1.6rem; }
.cta-meta { display: flex; flex-direction: column; gap: 0.7rem; }
.cta-meta-item {
  display: inline-flex; align-items: center; gap: 0.55rem;
  color: var(--t2); font-size: 0.93rem; font-weight: 500;
}
.cta-meta-item svg { width: 16px; height: 16px; fill: none; stroke: var(--orange); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.cta-form {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.25rem, 2.5vw, 1.85rem);
}
.field { display: flex; flex-direction: column; margin-bottom: 0.9rem; }
.field label {
  font-size: 0.78rem; font-weight: 600;
  color: var(--t1); letter-spacing: 0.04em;
  margin-bottom: 0.4rem; text-transform: uppercase;
}
.field .req { color: var(--orange); margin-left: 2px; }
.field input, .field textarea {
  width: 100%; min-width: 0;
  font-size: 0.97rem; color: var(--t1);
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: 8px;
  padding: 0.78rem 0.9rem;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--orange);
  background: var(--bg);
  box-shadow: 0 0 0 3px rgba(255,122,26,0.15);
}
.field input.invalid, .field textarea.invalid {
  border-color: var(--bad);
  box-shadow: 0 0 0 3px rgba(239,68,68,0.18);
}
.field textarea { min-height: 120px; resize: vertical; line-height: 1.55; }
.form-status {
  margin-top: 0.85rem; font-size: 0.88rem; min-height: 1.2em;
  text-align: center;
}
.form-status.ok { color: var(--good); }
.form-status.err { color: var(--bad); }
.form-fineprint { font-size: 0.74rem; color: var(--t3); text-align: center; margin-top: 0.7rem; }

/* ── Footer ── */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 3rem clamp(1.25rem, 4vw, 2.5rem) 1.5rem;
}
.ft-inner {
  max-width: var(--container); margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 2.5rem; justify-content: space-between; align-items: flex-start;
}
.ft-brand { max-width: 320px; }
.ft-brand p { font-size: 0.88rem; color: var(--t2); margin-top: 0.65rem; line-height: 1.6; }
.ft-cols { display: flex; gap: 3.5rem; flex-wrap: wrap; }
.ft-col h4 {
  font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--orange); font-weight: 700; margin-bottom: 0.85rem;
}
.ft-col a {
  display: block; font-size: 0.88rem; color: var(--t2);
  margin-bottom: 0.55rem; transition: color 0.18s ease;
}
.ft-col a:hover { color: var(--orange); }
.ft-btm {
  max-width: var(--container); margin: 2.5rem auto 0;
  padding-top: 1.4rem; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: 0.75rem; color: var(--t3);
}

/* ── Chat widget ── */
.chat-toggle {
  position: fixed; bottom: 1.4rem; right: 1.4rem; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--orange); color: #0a0a0a;
  border: none;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 30px rgba(255,122,26,0.35), 0 4px 10px rgba(0,0,0,0.5);
  transition: transform 0.2s var(--eo), background 0.2s ease;
}
.chat-toggle:hover { transform: translateY(-2px) scale(1.04); background: var(--orange-h); }
.chat-toggle svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.chat-toggle .ico-close { display: none; }
.chat-toggle.open .ico-open { display: none; }
.chat-toggle.open .ico-close { display: block; }

.chat-panel {
  position: fixed; bottom: 5.4rem; right: 1.4rem; z-index: 59;
  width: min(calc(100vw - 2rem), 380px);
  max-height: calc(100vh - 7rem);
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
  overflow: hidden;
  display: flex; flex-direction: column;
  opacity: 0; pointer-events: none; transform: translateY(8px) scale(0.98);
  transition: opacity 0.2s var(--eo), transform 0.22s var(--eo);
}
.chat-panel.open { opacity: 1; pointer-events: auto; transform: translateY(0) scale(1); }
.chat-head {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.8rem 0.95rem;
  background: #0a0a0a;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.chat-avatar {
  width: 38px; height: 38px;
  border-radius: 8px;
  flex-shrink: 0;
  overflow: hidden;
  background: #0a0a0a;
}
.chat-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.chat-head strong { display: block; font-size: 0.92rem; line-height: 1.2; }
.chat-head span { display: block; font-size: 0.72rem; color: var(--t3); margin-top: 1px; }

.chat-body {
  padding: 0.7rem 0.85rem 0.85rem;
  overflow-y: auto;
  /* Hide scrollbar but keep scroll fallback for very short viewports */
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.chat-body::-webkit-scrollbar { display: none; }

.chat-msg {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 12px 12px 12px 4px;
  padding: 0.55rem 0.75rem;
  font-size: 0.82rem; color: var(--t1); line-height: 1.45;
  margin-bottom: 0.6rem;
}
.chat-msg p { margin: 0; }
.field-tight { margin-bottom: 0.5rem; }
.field-tight label { font-size: 0.68rem; margin-bottom: 0.22rem; }
.field-tight input, .field-tight textarea {
  font-size: 0.88rem; padding: 0.45rem 0.65rem;
  width: 100%; min-width: 0;
}
.field-tight textarea { min-height: 44px; line-height: 1.35; resize: vertical; }

/* Two-column field row (first + last name on lead form and chat widget) */
.field-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.5rem;
  margin-bottom: 0.9rem;
}
.field-row .field,
.field-row .field-tight { margin-bottom: 0; min-width: 0; }
.cta-form .field-row { gap: 0.75rem; margin-bottom: 0.9rem; }
.chat-form .field-row { gap: 0.5rem; margin-bottom: 0.5rem; }
@media (max-width: 480px) {
  .cta-form .field-row { grid-template-columns: 1fr; gap: 0; }
  .cta-form .field-row .field { margin-bottom: 0.9rem; }
}
.consent {
  display: grid; grid-template-columns: auto 1fr; gap: 0.45rem;
  align-items: start; padding: 0.3rem 0 0.4rem;
  font-size: 0.66rem; color: var(--t2); line-height: 1.4;
}
.consent input { margin-top: 0.15rem; accent-color: var(--orange); }
.consent.invalid span { color: var(--bad); }
.consent a { color: var(--orange); text-decoration: underline; text-underline-offset: 2px; }
.consent a:hover { opacity: 0.85; }
.form-fineprint a { color: var(--orange); text-decoration: underline; text-underline-offset: 2px; }
.form-fineprint a:hover { opacity: 0.85; }
.chat-form .btn-submit { padding: 0.55rem 1rem; margin-top: 0.1rem; font-size: 0.74rem; }
/* Hide empty status to reclaim ~20px when there's no message */
.chat-form .form-status:empty { display: none; min-height: 0; }
.chat-form .form-status { margin-top: 0.4rem; min-height: 0; font-size: 0.78rem; }

@media (max-width: 480px) {
  .chat-panel { right: 1rem; bottom: 5rem; }
  .chat-toggle { right: 1rem; bottom: 1rem; }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
