/* ==========================================================================
   Trenchless Repair Pros — design system
   Palette: graphite + brushed copper on warm paper. Engineering-firm register,
   not a consumer plumber site.
   ========================================================================== */

/* NuFlow Phoenix verbatim palette: black / white / green #5AA444, Roboto Condensed
   800-italic headings, Montserrat body. Variable names kept from the original
   copper system so components cascade without renaming. */
:root {
  --ink:        #000000;
  --ink-2:      #111111;
  --ink-3:      #1C1C1C;
  --steel:      #3F3F3F;
  --steel-2:    #6E6E6E;
  --copper:     #5AA444;
  --copper-2:   #6CBF54;
  --copper-deep:#47893A;
  --paper:      #FFFFFF;
  --paper-2:    #F4F4F4;
  --line:       rgba(0,0,0,0.10);
  --line-dark:  rgba(255,255,255,0.14);
  --shadow:     0 20px 60px -20px rgba(0,0,0,0.35);
  --shadow-sm:  0 8px 24px -12px rgba(0,0,0,0.25);
  --radius:     14px;
  --radius-sm:  8px;
  --ff-display: 'Roboto Condensed', 'Arial Narrow', sans-serif;
  --ff-body:    'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  --ff-mono:    'Montserrat', sans-serif;
  --ease: cubic-bezier(.16,.84,.44,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

body {
  margin: 0;
  font-family: var(--ff-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

h1, h2, h3, h4 {
  font-family: var(--ff-display);
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  line-height: 1.1;
  letter-spacing: 0;
  margin: 0 0 .5em;
  color: var(--ink);
}

h1 { font-size: clamp(2.6rem, 4.4vw, 3.45rem); }
h2 { font-size: clamp(2.1rem, 3.6vw, 3.1rem); }
h3 { font-size: clamp(1.25rem, 1.8vw, 1.55rem); }

body { font-size: 1.08rem; font-weight: 500; }
p { margin: 0 0 1em; color: var(--steel); }
a { color: inherit; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  font-family: var(--ff-body);
  font-style: italic;
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--copper);
  font-weight: 700;
  margin-bottom: 1.1em;
}
.eyebrow::before {
  content: '';
  width: 22px; height: 1px;
  background: var(--copper);
}
.on-dark .eyebrow { color: var(--copper-2); }
.on-dark .eyebrow::before { background: var(--copper-2); }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}
.section { padding: clamp(64px, 9vw, 128px) 0; }
.section-tight { padding: clamp(40px, 6vw, 72px) 0; }
.on-dark { background: var(--ink); color: var(--paper); }
.on-dark p { color: rgba(255,255,255,0.72); }
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4 { color: var(--paper); }
.on-paper-2 { background: var(--paper-2); }

/* ---------- buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .6em;
  font-family: var(--ff-body);
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
  font-size: .95rem;
  letter-spacing: .03em;
  padding: .85em 1.6em;
  border-radius: 100px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s var(--ease), border-color .35s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--copper);
  color: #fff;
  box-shadow: 0 12px 30px -10px rgba(90,164,68,0.55);
}
.btn-primary:hover { transform: translateY(-2px); background: var(--copper-deep); box-shadow: 0 18px 36px -10px rgba(90,164,68,0.65); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { transform: translateY(-2px); background: var(--ink-3); }
.btn-outline { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--copper); color: var(--copper-deep); }
.on-dark .btn-outline { border-color: var(--line-dark); color: var(--paper); }
.on-dark .btn-outline:hover { border-color: var(--copper-2); color: var(--copper-2); }
.btn-block { width: 100%; justify-content: center; }

/* ---------- nav ---------- */
/* NuFlow: solid black bar, always */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 14px 0;
  background: #000;
  transition: padding .4s var(--ease), box-shadow .4s var(--ease);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1.2em; max-width: 1340px; }
.site-header.scrolled {
  padding: 10px 0;
  background: #000;
  box-shadow: 0 12px 30px -20px rgba(0,0,0,0.6);
}
.brand { display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: #fff; }
.site-header.scrolled .brand { color: #fff; }
.brand-row { display: flex; align-items: center; gap: .12em; }
.brand-row .word { font-family: var(--ff-body); font-weight: 800; font-size: 1.6rem; letter-spacing: -.02em; line-height: 1; text-transform: lowercase; }
.brand-row .word:first-child { color: var(--copper); }
.brand-drop { display: inline-flex; align-items: center; margin: 0 .06em; }
.brand-drop svg { height: 1.35rem; width: auto; display: block; }
.brand-sub { font-family: var(--ff-body); font-weight: 600; font-size: .6rem; letter-spacing: .22em; text-transform: uppercase; color: #fff; margin-left: 2px; white-space: nowrap; }
.site-header.scrolled .brand-sub { color: #fff; }

/* NuFlow nav: Montserrat 14px 700 italic uppercase, white, green hover */
.nav-links { display: flex; align-items: center; gap: 1.35em; list-style: none; margin: 0; padding: 0; }
.nav-links > li { position: relative; }
.nav-links a, .nav-trigger {
  text-decoration: none;
  font-size: .875rem;
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-family: var(--ff-body);
  color: #fff;
  position: relative;
  padding: 4px 0;
  background: none;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: .35em;
  cursor: pointer;
  white-space: nowrap;
}
.site-header.scrolled .nav-links a, .site-header.scrolled .nav-trigger { color: #fff; }
.nav-links a:hover, .nav-trigger:hover { color: var(--copper-2); }
.site-header.scrolled .nav-links a:hover, .site-header.scrolled .nav-trigger:hover { color: var(--copper-2); }
.nav-trigger .chev { width: 10px; height: 10px; transition: transform .3s var(--ease); }
.has-mega:hover .chev, .has-mega.mega-open .chev { transform: rotate(180deg); }
.nav-links .provider-link { opacity: .85; }

/* ---------- dropdown menu — NuFlow verbatim: black panel, white italic
   uppercase links, green hover ---------- */
.mega-panel {
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  transform: translateY(-8px);
  min-width: 290px;
  background: #000;
  border-radius: 0;
  box-shadow: 0 18px 40px -12px rgba(0,0,0,0.55);
  border: none;
  border-top: 3px solid var(--copper);
  padding: .9em 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .28s var(--ease), transform .28s var(--ease), visibility .28s;
  z-index: 50;
}
.mega-panel::before {
  /* invisible hover bridge so the pointer can travel from trigger to panel */
  content: '';
  position: absolute;
  top: -17px; left: 0; right: 0;
  height: 17px;
}
.has-mega:hover .mega-panel,
.has-mega.mega-open .mega-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
.mega-grid { display: flex; flex-direction: column; }
.mega-panel .mega-grid .mega-item {
  display: block;
  padding: 10px 38px !important;
  text-decoration: none;
  transition: color .2s var(--ease);
}
.mega-item .mi-icon { display: none; }
.mega-item strong { display: block; font-size: .875rem; color: #fff; font-weight: 700; font-style: italic; text-transform: uppercase; letter-spacing: .06em; transition: color .2s var(--ease); }
.mega-item small { display: none; }
.mega-item:hover strong { color: var(--copper-2); }

.mega-panel-wide { min-width: 330px; }
/* grouped locations dropdown: 8 markets, 29 submarket links */
.mega-panel-locations { min-width: 880px; max-width: calc(100vw - 32px); left: auto; right: -220px; }
.mega-loc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 36px; padding: 8px 34px 18px; }
.mega-loc-group { min-width: 0; }
.mega-loc-head { font-size: .62rem; font-weight: 800; font-style: italic; letter-spacing: .12em; text-transform: uppercase; color: #7C7C7C; padding: 12px 0 5px; border-bottom: 1px solid rgba(255,255,255,0.1); margin-bottom: 6px; }
.mega-loc-group a { display: block; padding: 6px 0; text-decoration: none; font-size: .78rem; font-weight: 700; font-style: italic; text-transform: uppercase; letter-spacing: .03em; color: #fff; transition: color .2s var(--ease); line-height: 1.35; overflow-wrap: break-word; }
.mega-loc-group a:hover { color: var(--copper-2); }
.mega-panel-locations .mega-viewall { margin: 4px 34px 6px; }
@media (max-width: 1180px) { .mega-panel-locations { min-width: 700px; right: -160px; } .mega-loc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.mega-cities { display: flex; flex-direction: column; margin-bottom: .6em; }
.mega-cities a { display: block; padding: 10px 34px; text-decoration: none; font-size: .875rem; font-weight: 700; font-style: italic; text-transform: uppercase; letter-spacing: .06em; color: #fff; transition: color .2s var(--ease); }
.mega-cities a:hover { color: var(--copper-2); }
.mega-viewall { display: flex; align-items: center; justify-content: space-between; margin: 0 2.2em; padding: .8em 1.2em; border-radius: 100px; background: var(--copper); color: #fff !important; text-decoration: none; font-weight: 700 !important; font-style: italic; text-transform: uppercase; font-size: .8rem !important; letter-spacing: .06em; }
.mega-viewall:hover { background: var(--copper-deep); color: #fff !important; }

@media (max-width: 860px) {
  .mega-panel { display: none; }
}
.nav-cta { display: flex; align-items: center; gap: 1.6em; }
.nav-toggle { display: none; }

.nav-toggle {
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 999px;
  border: 1px solid var(--line-dark);
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span { display: block; width: 16px; height: 1.6px; background: var(--paper); border-radius: 2px; }
.site-header.scrolled .nav-toggle { border-color: var(--line); }
.site-header.scrolled .nav-toggle span { background: var(--ink); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 99;
  background: var(--ink);
  color: var(--paper);
  display: flex; flex-direction: column;
  align-items: flex-start; justify-content: center;
  gap: 1.6em;
  padding: 0 clamp(24px,7vw,48px);
  opacity: 0; visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s;
}
.mobile-menu.open { opacity: 1; visibility: visible; transform: translateY(0); }
.mobile-menu a { text-decoration: none; color: var(--paper); font-family: var(--ff-display); font-size: 1.8rem; font-weight: 600; }
.mobile-menu a:hover { color: var(--copper-2); }
.mobile-menu .btn { margin-top: .6em; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
}
@media (max-width: 700px) {
  /* header CTA lives in the mobile menu + hero at this size; keep the hamburger reachable */
  .nav-cta .btn-primary { display: none; }
  .brand-row .word { font-size: 1.3rem; }
  .brand-sub { font-size: .52rem; letter-spacing: .26em; }

  /* mobile hero: show the FULL video frame (letterboxed on black) with the copy below it */
  .hero-video { object-fit: contain; object-position: center 62px; }
  .hero::before {
    background: linear-gradient(180deg,
      rgba(0,0,0,0.1) 0,
      rgba(0,0,0,0.1) calc(62px + 56.25vw),
      rgba(0,0,0,0.94) calc(62px + 56.25vw + 50px),
      #000 100%);
  }
  .hero-content { padding-top: calc(62px + 56.25vw + 28px); }
}
@media (min-width: 861px) {
  .mobile-menu { display: none; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.5), rgba(0,0,0,0.62) 60%, #000 100%);
  z-index: 1;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.hero-videos { position: absolute; inset: 0; z-index: 0; }
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.4s ease;
}
.hero-video.is-active { opacity: 1; }
/* after the clip plays once, hold the final frame with a slow drift instead of re-looping */
.hero-video.hero-ended { animation: heroHoldPan 34s ease-in-out infinite alternate; }
@keyframes heroHoldPan {
  from { transform: scale(1.03); }
  to   { transform: scale(1.11) translateX(-1.6%); }
}
.hero-grid { display: none; }
.hero h1, .hero h2, .hero h3, .hero h4 { color: var(--paper); }
.hero .eyebrow, .breadcrumb-hero .eyebrow { color: var(--copper-2); }
.hero .eyebrow::before, .breadcrumb-hero .eyebrow::before { background: var(--copper-2); }
.hero .btn-outline { border-color: rgba(255,255,255,0.35); color: var(--paper); }
.hero .btn-outline:hover { border-color: var(--copper-2); color: var(--copper-2); }
.hero-content { position: relative; z-index: 2; padding-top: 100px; }
.hero-copy { max-width: 860px; }
.hero-copy p.lead { font-size: 1.32rem; max-width: 620px; color: rgba(255,255,255,0.82); }
.hero-actions { display: flex; align-items: center; gap: 1.4em; margin-top: 2.1em; flex-wrap: wrap; }
.hero-note { font-family: var(--ff-mono); font-size: .78rem; color: rgba(255,255,255,0.5); }

.hero-stats {
  position: relative; z-index: 2;
  margin-top: clamp(48px, 7vw, 84px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-dark);
  padding-top: 2em;
  gap: 1.5em;
}
.hero-stat .num { font-family: var(--ff-display); font-size: clamp(1.6rem, 2.4vw, 2.3rem); font-weight: 650; color: var(--copper-2); }
.hero-stat .label { font-size: .82rem; color: rgba(255,255,255,0.6); margin-top: .3em; }
@media (max-width: 760px) { .hero-stats { grid-template-columns: repeat(2, 1fr); } }

.scroll-cue {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.45); font-family: var(--ff-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase;
}
.scroll-cue .line { width: 1px; height: 34px; background: linear-gradient(var(--copper-2), transparent); animation: scrolldrop 1.8s var(--ease) infinite; }
@keyframes scrolldrop { 0% { opacity: 0; transform: scaleY(.3); transform-origin: top;} 40% { opacity: 1; transform: scaleY(1); transform-origin: top;} 100% { opacity: 0; transform: scaleY(1); transform-origin: bottom;} }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-stagger > * { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal-stagger.is-visible > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: .02s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: .10s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: .18s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: .26s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: .34s; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: .42s; }

/* ---------- layout helpers ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 900px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; } .grid-2 { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.kicker-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 2em; margin-bottom: 2.6em; flex-wrap: wrap; }
.kicker-row .head { max-width: 640px; }
.kicker-row .aside { max-width: 380px; }

/* ---------- cards ---------- */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2em 1.9em;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-sm); border-color: rgba(90,164,68,0.35); }
.card .icon { width: 46px; height: 46px; margin-bottom: 1.1em; }
.card .icon svg { width: 100%; height: 100%; }
.card h3 { margin-bottom: .4em; }
.card p { margin-bottom: 0; font-size: .95rem; }
.card .learn { display: inline-flex; align-items: center; gap: .4em; margin-top: 1.1em; font-size: .86rem; font-weight: 600; color: var(--copper-deep); text-decoration: none; }
.card .learn svg { width: 14px; height: 14px; transition: transform .3s var(--ease); }
.card:hover .learn svg { transform: translateX(4px); }

/* ---------- process ---------- */
.process { position: relative; }
.process-step {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 1.6em;
  padding: 2em 0;
  border-top: 1px solid var(--line);
}
.on-dark .process-step { border-top-color: var(--line-dark); }
.process-step:first-child { border-top: none; }
.process-num { font-family: var(--ff-mono); font-size: .95rem; font-weight: 700; font-style: italic; color: var(--copper); padding-top: .2em; }
.process-step h3 { margin-bottom: .35em; }
.process-step p { margin-bottom: 0; max-width: 620px; }

/* iconed variant — large color-coordinated step icons */
.process-step-iconed { grid-template-columns: 108px 1fr; align-items: center; padding: 2.4em 0; }
.process-badge { display: flex; flex-direction: column; align-items: center; gap: .55em; }
.p-icon {
  width: 88px; height: 88px;
  border-radius: 22px;
  background: rgba(90,164,68,0.10);
  border: 1.5px solid rgba(108,191,84,0.45);
  box-shadow: 0 0 34px rgba(90,164,68,0.28), inset 0 0 22px rgba(90,164,68,0.10);
  display: flex; align-items: center; justify-content: center;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s var(--ease);
}
.process-step-iconed:hover .p-icon {
  transform: translateY(-4px) scale(1.04);
  background: rgba(90,164,68,0.18);
  box-shadow: 0 0 48px rgba(90,164,68,0.45), inset 0 0 22px rgba(90,164,68,0.14);
}
.p-icon svg { width: 52px; height: 52px; }
.p-num { font-family: var(--ff-body); font-weight: 800; font-style: italic; font-size: .92rem; letter-spacing: .1em; color: var(--copper-2); }
@media (max-width: 640px) {
  .process-step-iconed { grid-template-columns: 84px 1fr; gap: 1.1em; }
  .p-icon { width: 68px; height: 68px; border-radius: 17px; }
  .p-icon svg { width: 40px; height: 40px; }
}

/* ---------- stat band ---------- */
.stat-band { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat-item { text-align: left; }
.stat-item .num { font-family: var(--ff-display); font-size: clamp(2rem, 3.2vw, 2.9rem); font-weight: 650; color: var(--ink); }
.stat-item .num span.suffix { color: var(--copper-deep); }
.stat-item .label { color: var(--steel); font-size: .92rem; margin-top: .3em; }

/* ---------- coverage map ---------- */
.coverage-panel {
  background:
    linear-gradient(rgba(0,0,0,0.82), rgba(0,0,0,0.92)),
    url('/assets/coverage-bg.jpg') center/cover no-repeat;
  color: var(--paper);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 48px);
  position: relative;
  overflow: hidden;
}
.coverage-panel svg.us-map { width: 100%; height: auto; display: block; }
.coverage-panel .dot { fill: var(--copper-2); }

/* ---------- quote form ---------- */
.quote-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(24px, 3vw, 40px);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .82rem; font-weight: 600; margin-bottom: .45em; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%;
  font-family: var(--ff-body);
  font-size: .95rem;
  padding: .85em 1em;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--copper);
  box-shadow: 0 0 0 4px rgba(90,164,68,0.14);
}
.field textarea { resize: vertical; min-height: 110px; }
.hp-field { position: absolute; left: -9999px; top: -9999px; opacity: 0; }
.form-msg { font-size: .88rem; margin-top: 1em; display: none; }
.form-msg.show { display: block; }
.form-msg.ok { color: #2E7D4F; }
.form-msg.err { color: #B23B3B; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.65); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5em; padding-bottom: 40px; border-bottom: 1px solid var(--line-dark); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h4 { color: var(--paper); font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; font-family: var(--ff-mono); font-weight: 500; margin-bottom: 1.2em; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .7em; }
.footer-grid a { text-decoration: none; color: rgba(255,255,255,0.65); font-size: .92rem; }
.footer-grid a:hover { color: var(--copper-2); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 24px; font-size: .8rem; flex-wrap: wrap; gap: 1em; }
.footer-acquire { font-size: .8rem; color: rgba(255,255,255,0.4); text-decoration: underline; text-decoration-color: rgba(255,255,255,0.2); text-underline-offset: 3px; }
.footer-acquire:hover { color: var(--copper-2); text-decoration-color: var(--copper-2); }

/* ---------- misc ---------- */
.badge-row { display: flex; flex-wrap: wrap; gap: .6em; }
.badge { font-family: var(--ff-mono); font-size: .74rem; letter-spacing: .04em; padding: .5em 1em; border-radius: 999px; border: 1px solid var(--line); color: var(--steel); }
.on-dark .badge { border-color: var(--line-dark); color: rgba(255,255,255,0.7); }

.img-frame { border-radius: var(--radius); overflow: hidden; position: relative; box-shadow: var(--shadow-sm); }
.img-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

.divider-copper { height: 2px; width: 64px; background: linear-gradient(90deg, var(--copper), transparent); margin: 1.4em 0; }

.faq-item { border-top: 1px solid var(--line); padding: 1.6em 0; }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item button {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 1em;
  font-family: var(--ff-display); font-size: 1.05rem; font-weight: 600; color: var(--ink);
  padding: 0;
}
.faq-item .plus { flex: none; width: 20px; height: 20px; position: relative; }
.faq-item .plus::before, .faq-item .plus::after { content: ''; position: absolute; background: var(--copper-deep); border-radius: 2px; }
.faq-item .plus::before { width: 100%; height: 2px; top: 9px; left: 0; }
.faq-item .plus::after { width: 2px; height: 100%; top: 0; left: 9px; transition: transform .3s var(--ease); }
.faq-item[data-open="true"] .plus::after { transform: rotate(90deg); opacity: 0; }
.faq-item .answer { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.faq-item[data-open="true"] .answer { max-height: 240px; }
.faq-item .answer p { padding-top: 1em; margin-bottom: 0; }

.breadcrumb-hero {
  background: var(--ink); color: var(--paper);
  padding: calc(100px + 56px) 0 56px;
  position: relative; overflow: hidden;
}
.breadcrumb-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 50% 60% at 85% 0%, rgba(90,164,68,0.22), transparent 60%);
}
.breadcrumb-hero .container { position: relative; }
.breadcrumb-hero .crumbs { font-family: var(--ff-mono); font-size: .78rem; color: rgba(255,255,255,0.5); margin-bottom: 1.4em; letter-spacing: .04em; }
.breadcrumb-hero .crumbs a { color: rgba(255,255,255,0.5); text-decoration: none; }
.breadcrumb-hero .crumbs a:hover { color: var(--copper-2); }
.breadcrumb-hero h1, .breadcrumb-hero h2 { color: var(--paper); }

.cta-band {
  background:
    linear-gradient(135deg, rgba(17,24,35,0.94), rgba(0,0,0,0.88)),
    url('/assets/cta-pipes.jpg') center/cover no-repeat;
  color: var(--paper);
  border-radius: var(--radius);
  padding: clamp(40px, 6vw, 72px);
  position: relative;
  overflow: hidden;
}
.cta-band::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 90% 10%, rgba(90,164,68,0.25), transparent 60%);
  pointer-events: none; /* decorative only — must never eat clicks on the CTA */
}
.cta-band .inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 2em; flex-wrap: wrap; }
.cta-band h1, .cta-band h2, .cta-band h3 { color: var(--paper); }
.cta-band p { color: rgba(255,255,255,0.78); }

/* ---------- network / coverage graphic ---------- */
.network-graphic { width: 100%; height: auto; display: block; }
.network-graphic .node { fill: var(--copper-2); }
.network-graphic .node-dim { fill: rgba(255,255,255,0.28); }
.network-graphic .edge { stroke: rgba(255,255,255,0.18); stroke-width: 1; }
.network-graphic .edge-hot { stroke: rgba(108,191,84,0.55); stroke-width: 1.2; }

.diagram-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px,3vw,36px); }
.diagram-wrap svg { width: 100%; height: auto; display: block; }
.diagram-legend { display: flex; gap: 1.6em; margin-top: 1.4em; flex-wrap: wrap; }
.diagram-legend .item { display: flex; align-items: center; gap: .55em; font-size: .82rem; color: var(--steel); font-family: var(--ff-mono); }
.diagram-legend .swatch { width: 18px; height: 3px; border-radius: 2px; }

/* ---------- 3D action scene ---------- */
.scene-3d-wrap { perspective: 1400px; margin-top: 2.8em; }
.scene-3d .depth-back, .scene-3d .depth-mid, .scene-3d .depth-front { transition: transform .35s var(--ease); }
.scene-3d {
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: clamp(20px, 3vw, 36px);
  transform-style: preserve-3d;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  will-change: transform;
}
.scene-3d:hover { box-shadow: var(--shadow); }
.scene-3d::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 0%), rgba(255,255,255,0.55), transparent 55%);
  mix-blend-mode: overlay;
  opacity: 0;
  transition: opacity .4s var(--ease);
  pointer-events: none;
}
.scene-3d:hover::after { opacity: 1; }
.scene-3d svg { width: 100%; height: auto; display: block; }

.scene-caption { display: flex; align-items: center; justify-content: space-between; gap: 1em; margin-top: 1.4em; flex-wrap: wrap; }
.scene-caption .diagram-legend { margin-top: 0; }
.scene-live { display: inline-flex; align-items: center; gap: .5em; font-family: var(--ff-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--steel); }
.scene-live .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--copper); animation: livePulse 1.6s ease-in-out infinite; }
@keyframes livePulse { 0%,100% { opacity: 1; box-shadow: 0 0 0 0 rgba(90,164,68,0.5); } 50% { opacity: .6; box-shadow: 0 0 0 5px rgba(90,164,68,0); } }

/* ---- job-sequence animation: one shared 14s clock ----
   phases: scan crawler 2-22% -> defects stamp 24-35% -> liner inversion 36-74%
   (sealing each crack as it passes) -> cured stamp 79-96% -> loop mask reset */
.scene-dark { background: #0A0A0A; border-color: rgba(255,255,255,0.08); }
.scene-dark:hover { box-shadow: 0 24px 70px -24px rgba(90,164,68,0.4); }

.scene-dark .crawler { animation: crawlMove 14s linear infinite, crawlFade 14s linear infinite; }
@keyframes crawlMove { 0%,2% { transform: translateX(0); } 22% { transform: translateX(660px); } 100% { transform: translateX(660px); } }
@keyframes crawlFade { 0%,1.5% { opacity: 0; } 2.5% { opacity: 1; } 22% { opacity: 1; } 24%,100% { opacity: 0; } }
.scene-dark .cone { animation: coneFlicker .55s ease-in-out infinite; }
@keyframes coneFlicker { 0%,100% { opacity: .45; } 50% { opacity: .8; } }

.scene-dark .blip { opacity: 0; transform: scale(.2); }
.blip-1 { animation: blip1 14s linear infinite; }
.blip-2 { animation: blip2 14s linear infinite; }
.blip-3 { animation: blip3 14s linear infinite; }
.blip-4 { animation: blip4 14s linear infinite; }
.blip-5 { animation: blip5 14s linear infinite; }
@keyframes blip1 { 0%,5.3% { opacity: 0; transform: scale(.2);} 6% { opacity: .9; } 8.3% { opacity: 0; transform: scale(1.7);} 100% { opacity: 0; transform: scale(.2);} }
@keyframes blip2 { 0%,9.2% { opacity: 0; transform: scale(.2);} 9.9% { opacity: .9; } 12.2% { opacity: 0; transform: scale(1.7);} 100% { opacity: 0; transform: scale(.2);} }
@keyframes blip3 { 0%,13% { opacity: 0; transform: scale(.2);} 13.7% { opacity: .9; } 16% { opacity: 0; transform: scale(1.7);} 100% { opacity: 0; transform: scale(.2);} }
@keyframes blip4 { 0%,16.9% { opacity: 0; transform: scale(.2);} 17.6% { opacity: .9; } 19.9% { opacity: 0; transform: scale(1.7);} 100% { opacity: 0; transform: scale(.2);} }
@keyframes blip5 { 0%,20.8% { opacity: 0; transform: scale(.2);} 21.5% { opacity: .9; } 23.8% { opacity: 0; transform: scale(1.7);} 100% { opacity: 0; transform: scale(.2);} }

.scene-dark .stamp { opacity: 0; }
.stamp-scan { animation: stampScan 14s linear infinite; }
@keyframes stampScan { 0%,24% { opacity: 0; transform: translateY(8px);} 26% { opacity: 1; transform: translateY(0);} 33% { opacity: 1; } 35%,100% { opacity: 0; } }
.stamp-done { animation: stampDone 14s linear infinite; }
@keyframes stampDone { 0%,79% { opacity: 0; transform: translateY(8px);} 81% { opacity: 1; transform: translateY(0);} 94% { opacity: 1; } 96%,100% { opacity: 0; } }

.scene-dark .liner-body { transform-origin: 80px 157px; transform: scaleX(0); animation: linerBody 14s linear infinite; }
@keyframes linerBody { 0%,36% { transform: scaleX(0);} 74% { transform: scaleX(1);} 100% { transform: scaleX(1);} }
.scene-dark .liner-head2 { opacity: 0; animation: linerHead2 14s linear infinite; }
@keyframes linerHead2 { 0%,36% { transform: translateX(0); opacity: 0;} 37% { opacity: 1;} 73.5% { opacity: 1;} 74% { transform: translateX(740px);} 75.5%,100% { transform: translateX(740px); opacity: 0;} }

.crack-1 { animation: crackOut1 14s linear infinite; }
.crack-2 { animation: crackOut2 14s linear infinite; }
.crack-3 { animation: crackOut3 14s linear infinite; }
.crack-4 { animation: crackOut4 14s linear infinite; }
.crack-5 { animation: crackOut5 14s linear infinite; }
@keyframes crackOut1 { 0%,41.6% { opacity: 1; } 42.6%,100% { opacity: 0; } }
@keyframes crackOut2 { 0%,48.3% { opacity: 1; } 49.3%,100% { opacity: 0; } }
@keyframes crackOut3 { 0%,55% { opacity: 1; } 56%,100% { opacity: 0; } }
@keyframes crackOut4 { 0%,61.7% { opacity: 1; } 62.7%,100% { opacity: 0; } }
@keyframes crackOut5 { 0%,68.4% { opacity: 1; } 69.4%,100% { opacity: 0; } }

.scene-dark .seal { opacity: 0; transform: scale(.4); }
.seal-1 { animation: seal1 14s linear infinite; }
.seal-2 { animation: seal2 14s linear infinite; }
.seal-3 { animation: seal3 14s linear infinite; }
.seal-4 { animation: seal4 14s linear infinite; }
.seal-5 { animation: seal5 14s linear infinite; }
@keyframes seal1 { 0%,41.6% { opacity: 0; transform: scale(.4);} 42.4% { opacity: 1; transform: scale(1.15);} 43.2% { transform: scale(1);} 95% { opacity: 1; transform: scale(1);} 97%,100% { opacity: 0; } }
@keyframes seal2 { 0%,48.3% { opacity: 0; transform: scale(.4);} 49.1% { opacity: 1; transform: scale(1.15);} 49.9% { transform: scale(1);} 95% { opacity: 1; transform: scale(1);} 97%,100% { opacity: 0; } }
@keyframes seal3 { 0%,55% { opacity: 0; transform: scale(.4);} 55.8% { opacity: 1; transform: scale(1.15);} 56.6% { transform: scale(1);} 95% { opacity: 1; transform: scale(1);} 97%,100% { opacity: 0; } }
@keyframes seal4 { 0%,61.7% { opacity: 0; transform: scale(.4);} 62.5% { opacity: 1; transform: scale(1.15);} 63.3% { transform: scale(1);} 95% { opacity: 1; transform: scale(1);} 97%,100% { opacity: 0; } }
@keyframes seal5 { 0%,68.4% { opacity: 0; transform: scale(.4);} 69.2% { opacity: 1; transform: scale(1.15);} 70% { transform: scale(1);} 95% { opacity: 1; transform: scale(1);} 97%,100% { opacity: 0; } }

.scene-dark .vapor { opacity: 0; }
.vapor-1 { animation: vaporRise 14s linear infinite; animation-delay: 0s; }
.vapor-2 { animation: vaporRise2 14s linear infinite; }
.vapor-3 { animation: vaporRise3 14s linear infinite; }
.vapor-4 { animation: vaporRise4 14s linear infinite; }
.vapor-5 { animation: vaporRise5 14s linear infinite; }
.vapor-6 { animation: vaporRise6 14s linear infinite; }
@keyframes vaporRise  { 0%,46% { opacity: 0; transform: translateY(0);} 48% { opacity: .7;} 52%,100% { opacity: 0; transform: translateY(-30px);} }
@keyframes vaporRise2 { 0%,52% { opacity: 0; transform: translateY(0);} 54% { opacity: .7;} 58%,100% { opacity: 0; transform: translateY(-30px);} }
@keyframes vaporRise3 { 0%,58% { opacity: 0; transform: translateY(0);} 60% { opacity: .7;} 64%,100% { opacity: 0; transform: translateY(-30px);} }
@keyframes vaporRise4 { 0%,64% { opacity: 0; transform: translateY(0);} 66% { opacity: .7;} 70%,100% { opacity: 0; transform: translateY(-30px);} }
@keyframes vaporRise5 { 0%,70% { opacity: 0; transform: translateY(0);} 72% { opacity: .7;} 76%,100% { opacity: 0; transform: translateY(-30px);} }
@keyframes vaporRise6 { 0%,74% { opacity: 0; transform: translateY(0);} 76% { opacity: .7;} 80%,100% { opacity: 0; transform: translateY(-30px);} }

.scene-dark .loop-mask { opacity: 1; animation: loopMask 14s linear infinite; pointer-events: none; }
@keyframes loopMask { 0% { opacity: 1; } 2% { opacity: 0; } 96.5% { opacity: 0; } 99.5%,100% { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .scene-3d { transform: none !important; }
  .scene-dark .crawler, .scene-dark .blip, .scene-dark .stamp, .scene-dark .liner-head2,
  .scene-dark .seal, .scene-dark .vapor, .scene-dark .loop-mask, .scene-dark .crack,
  .scene-dark .liner-body, .scene-live .dot { animation: none !important; }
  .scene-dark .liner-body { transform: scaleX(1); }
  .scene-dark .crack { opacity: 0; }
  .scene-dark .crawler, .scene-dark .blip, .scene-dark .loop-mask, .scene-dark .stamp-scan { opacity: 0 !important; }
  .scene-dark .stamp-done, .scene-dark .seal { opacity: 1 !important; transform: none !important; }
}

/* ---------- market directory (city pages) ---------- */
.dir-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 860px) { .dir-grid { grid-template-columns: 1fr; } }
.dir-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8em;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.dir-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-sm); }
.dir-featured { border-top: 4px solid var(--copper); }
.dir-featured:hover { border-color: rgba(90,164,68,0.45); border-top-color: var(--copper); }
.dir-ribbon {
  position: absolute; top: 14px; right: 14px;
  font-family: var(--ff-body); font-style: italic; font-weight: 800;
  font-size: .64rem; letter-spacing: .12em; text-transform: uppercase;
  color: #fff; background: var(--copper);
  padding: .45em 1em; border-radius: 100px;
}
.dir-head { display: flex; align-items: center; gap: 1em; margin-bottom: 1em; }
.dir-logo { flex: none; width: 58px; height: 58px; border-radius: 14px; display: flex; align-items: center; justify-content: center; }
.dir-logo svg { width: 100%; height: 100%; display: block; }
.dir-head h3 { margin: 0; font-size: 1.25rem; }
.dir-head .dir-tag { font-size: .78rem; color: var(--steel-2); font-weight: 600; margin-top: 2px; }
.dir-blurb { font-size: .93rem; margin-bottom: 1em; }
.dir-meta { display: grid; grid-template-columns: 1fr 1fr; gap: .5em 1.2em; margin: 1em 0 1.2em; padding: 1em 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.dir-meta .m { font-size: .8rem; color: var(--steel-2); }
.dir-meta .m strong { display: block; font-size: .92rem; color: var(--ink); font-weight: 700; font-style: normal; }
.dir-actions { display: flex; align-items: center; justify-content: space-between; gap: 1em; flex-wrap: wrap; }
.dir-phone { font-family: var(--ff-body); font-weight: 800; font-style: italic; font-size: 1.05rem; color: var(--ink); text-decoration: none; }
.dir-phone:hover { color: var(--copper-deep); }
.dir-standard {
  grid-column: 1 / -1;
  display: flex; align-items: center; gap: 1.4em; flex-wrap: wrap;
  background: var(--paper-2);
  border-top: none;
}
.dir-standard .dir-head { margin-bottom: 0; flex: 1 1 260px; }
.dir-standard .dir-blurb { margin: 0; flex: 2 1 300px; }
.dir-standard .dir-actions { flex: 0 0 auto; }
.dir-note { margin-top: 1.6em; font-size: .85rem; color: var(--steel-2); }
.dir-note a { color: var(--copper-deep); font-weight: 700; }
.dir-rr {
  display: flex; align-items: flex-start; gap: .8em;
  background: rgba(90,164,68,0.08);
  border: 1px solid rgba(90,164,68,0.3);
  border-radius: var(--radius-sm);
  padding: 1em 1.2em;
  margin-top: 1.6em;
  font-size: .88rem; color: var(--steel);
}
.dir-rr svg { flex: none; width: 22px; height: 22px; margin-top: 1px; }

/* hub cards: submarket link lists */
.hub-links { display: flex; flex-direction: column; gap: .15em; margin-top: .9em; border-top: 1px solid var(--line); padding-top: .8em; }
.hub-links a { text-decoration: none; font-size: .85rem; font-weight: 700; font-style: italic; text-transform: uppercase; letter-spacing: .04em; color: var(--ink); padding: 4px 0; transition: color .2s var(--ease); }
.hub-links a:hover { color: var(--copper-deep); }

/* market model cards (get-listed) */
.market-card { position: relative; }
.market-card .slots { display: flex; gap: .4em; margin-top: .9em; }
.market-card .slot-pill { font-family: var(--ff-body); font-style: italic; font-weight: 700; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; padding: .4em .9em; border-radius: 100px; }
.slot-pill.sf { background: rgba(90,164,68,0.14); color: var(--copper-deep); border: 1px solid rgba(90,164,68,0.4); }
.slot-pill.ss { background: var(--paper-2); color: var(--steel); border: 1px solid var(--line); }
.slot-strip {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5em; flex-wrap: wrap;
  background: var(--ink); color: var(--paper);
  border-radius: var(--radius);
  padding: 1.6em 2em;
  margin-bottom: 2.4em;
}
.slot-strip .num { font-family: var(--ff-display); font-style: italic; font-weight: 800; font-size: 2.2rem; color: var(--copper-2); }
.slot-strip .lbl { font-size: .82rem; color: rgba(255,255,255,0.65); }

/* ---------- guides / articles ---------- */
.guide-body { max-width: 780px; }
.guide-body h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin: 1.6em 0 .5em; }
.guide-body h3 { font-size: clamp(1.15rem, 1.7vw, 1.35rem); margin: 1.4em 0 .4em; }
.guide-body p, .guide-body li { color: var(--steel); }
.guide-body ul, .guide-body ol { padding-left: 1.3em; line-height: 1.75; margin: 0 0 1.2em; }
.guide-body table { width: 100%; border-collapse: collapse; margin: 1.4em 0 1.8em; font-size: .93rem; }
.guide-body table th { background: var(--ink); color: #fff; text-align: left; padding: .8em 1em; font-family: var(--ff-body); font-style: italic; font-weight: 700; text-transform: uppercase; font-size: .74rem; letter-spacing: .06em; }
.guide-body table td { padding: .75em 1em; border-bottom: 1px solid var(--line); vertical-align: top; }
.guide-body table tr:nth-child(even) td { background: var(--paper-2); }
.guide-callout { background: rgba(90,164,68,0.08); border-left: 4px solid var(--copper); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 1.1em 1.4em; margin: 1.6em 0; font-size: .95rem; color: var(--steel); }
.guide-meta { font-family: var(--ff-body); font-style: italic; font-weight: 700; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--steel-2); margin-bottom: .8em; }
.guide-cta { margin: 2.2em 0; }
.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .guide-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .guide-grid { grid-template-columns: 1fr; } }
.guide-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.7em; text-decoration: none; display: flex; flex-direction: column; transition: transform .35s var(--ease), box-shadow .35s var(--ease); border-top: 4px solid var(--copper); }
.guide-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-sm); }
.guide-card h3 { margin: .4em 0 .5em; font-size: 1.15rem; }
.guide-card p { font-size: .9rem; margin-bottom: 1em; }
.guide-card .learn { margin-top: auto; display: inline-flex; align-items: center; gap: .4em; font-size: .85rem; font-weight: 700; font-style: italic; text-transform: uppercase; color: var(--copper-deep); }

/* ---------- quote modal ---------- */
.qm-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.78);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s;
}
.qm-overlay.open { opacity: 1; visibility: visible; }
.qm-panel {
  position: relative;
  width: 100%; max-width: 560px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: #fff;
  border-radius: var(--radius);
  border-top: 5px solid var(--copper);
  box-shadow: 0 40px 90px -20px rgba(0,0,0,0.7);
  padding: clamp(24px, 4vw, 40px);
  transform: translateY(18px) scale(.97);
  transition: transform .35s var(--ease);
}
.qm-overlay.open .qm-panel { transform: translateY(0) scale(1); }
.qm-close {
  position: absolute; top: 14px; right: 14px;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.qm-close:hover { border-color: var(--copper); transform: rotate(90deg); }
.qm-close::before, .qm-close::after {
  content: ''; position: absolute;
  width: 15px; height: 2px; border-radius: 2px;
  background: var(--ink);
}
.qm-close::before { transform: rotate(45deg); }
.qm-close::after { transform: rotate(-45deg); }
.qm-eyebrow { font-family: var(--ff-body); font-style: italic; font-weight: 700; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--copper); margin-bottom: .5em; }
.qm-panel h3 { font-size: clamp(1.7rem, 3vw, 2.2rem); margin-bottom: .3em; }
.qm-sub { font-size: .95rem; color: var(--steel-2); margin-bottom: 1.6em; }
.qm-msg { font-size: .9rem; margin-top: 1em; display: none; font-weight: 600; }
.qm-msg.show { display: block; }
.qm-msg.ok { color: var(--copper-deep); }
.qm-msg.err { color: #B23B3B; }
.qm-success {
  text-align: center;
  padding: 2.5em 0 1.5em;
  display: none;
}
.qm-success.show { display: block; }
.qm-success .tick {
  width: 74px; height: 74px; margin: 0 auto 1.2em;
  border-radius: 50%;
  background: rgba(90,164,68,0.12);
  border: 2px solid var(--copper);
  display: flex; align-items: center; justify-content: center;
}
.qm-success .tick svg { width: 36px; height: 36px; }

/* ---------- 404 ---------- */
.err-page { min-height: 100vh; display: flex; align-items: center; background: var(--ink); color: var(--paper); }
