/* ============================================================
   BLASTWORX — SITE STYLES
   Structure + components on top of tokens.css.
   ============================================================ */

/* --- Reset / base ---------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--surface-base);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; border-radius: var(--radius-xs); }

/* --- Container ------------------------------------------- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad-desktop);
}
@media (max-width: 1024px) { .container { padding: 0 24px; } }
@media (max-width: 640px)  { .container { padding: 0 var(--container-pad-mobile); } }

/* --- Section rhythm -------------------------------------- */
.section { padding: 88px 0; }
@media (max-width: 1024px) { .section { padding: 64px 0; } }
@media (max-width: 640px)  { .section { padding: 48px 0; } }

.section-inset { background: var(--surface-inset); }
/* Raised panel — a third tone so a section reads apart from both its neighbors */
.section-showcase {
  background: var(--surface-raised);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

/* About section reuses the hero's ember-glow wash + steel-streak pattern */
.about {
  position: relative; overflow: hidden;
  background-color: var(--surface-base);
  background-image: radial-gradient(120% 90% at 78% -10%, rgba(224,126,39,0.28) 0%, rgba(224,126,39,0) 55%);
}
.about::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: repeating-linear-gradient(115deg, rgba(255,255,255,0.018) 0 2px, transparent 2px 26px);
}
.about .container { position: relative; }

/* --- Type helpers ---------------------------------------- */
.display {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  line-height: var(--lh-display);
  letter-spacing: var(--ls-display);
  color: var(--text-primary);
  margin: 0;
}
.ember-text {
  background: var(--grad-ember);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section-label {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body);
  font-size: 13px; font-weight: var(--fw-semibold);
  text-transform: uppercase; letter-spacing: var(--ls-overline);
  color: var(--accent);
  margin: 0 0 24px;
}
.section-label::before {
  content: ""; width: 22px; height: 2px;
  background: var(--grad-ember); border-radius: 2px;
}
/* Every eyebrow gets a line on both sides. The end line uses a reversed ember
   so the pair mirrors: bright soft-orange nearest the text, fading to burnt outward. */
.section-label::after {
  content: ""; width: 22px; height: 2px; border-radius: 2px;
  background: linear-gradient(135deg, #e07e27 0%, #892b10 100%);
}
.section-head { max-width: 640px; }
.section-head .display { font-size: clamp(34px, 5vw, 54px); }
.section-head p:not(.section-label) {
  margin: 18px 0 0; font-size: 18px; color: var(--text-secondary);
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-cta { margin-top: 32px; }
.section-head.center .section-label { justify-content: center; }

/* --- Buttons --------------------------------------------- */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-body); font-weight: var(--fw-semibold);
  font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; border: 0;
  padding: 14px 26px; border-radius: var(--radius-sm);
  transition: transform var(--dur-base) var(--ease-out),
              filter var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out);
}
/* Chrome reflection sweep — sits above the background, below the label */
.btn::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: -75%; width: 55%;
  z-index: -1; pointer-events: none;
  transform: skewX(-20deg);
  background: linear-gradient(105deg,
    transparent 0%,
    rgba(255,255,255,0.12) 38%,
    rgba(255,255,255,0.55) 50%,
    rgba(255,255,255,0.12) 62%,
    transparent 100%);
}
.btn:hover::before { left: 135%; transition: left 1000ms var(--ease-out); }
.btn:active { transform: translateY(1px) scale(0.99); }

.btn-primary {
  background: var(--grad-ember); color: var(--text-on-orange);
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover {
  filter: brightness(1.06); transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(224,126,39,0.55), 0 12px 38px rgba(224,126,39,0.40);
}
.btn-secondary {
  background: var(--surface-glass); color: var(--text-primary);
  border: 1px solid var(--border-default); backdrop-filter: blur(var(--glass-blur));
}
.btn-secondary:hover {
  border-color: var(--border-glow); transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(224,126,39,0.16);
}
.btn-lg { padding: 17px 34px; font-size: 15px; }
.btn-full { width: 100%; }
.btn [data-lucide] { width: 18px; height: 18px; }

/* --- Badge ----------------------------------------------- */
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-weight: var(--fw-semibold);
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent);
  padding: 7px 14px; border-radius: var(--radius-pill);
  background: rgba(224, 126, 39, 0.10);
  border: 1px solid var(--border-glow);
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 200;
  background: rgba(1, 1, 1, 0.72);
  backdrop-filter: blur(var(--glass-blur));
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: var(--glass-highlight);
}
.nav-inner {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px;
  height: 76px;
}
.nav-logo img { height: 32px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 6px; justify-self: end; }
.nav-item { position: relative; }
.nav-item > a {
  display: flex; align-items: center; gap: 6px; height: 76px; padding: 0 12px;
  font-family: var(--font-body); font-weight: var(--fw-semibold);
  font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-secondary); text-decoration: none;
  transition: color var(--dur-fast);
  white-space: nowrap;
}
.nav-item > a:hover { color: var(--accent); }

.nav-chevron { width: 11px; height: 11px; transition: transform var(--dur-base) var(--ease-out); }
.nav-item:hover .nav-chevron { transform: rotate(180deg); }

/* Desktop hover dropdown */
.dropdown {
  display: none;
  position: absolute; top: 100%; left: 0; min-width: 220px;
  padding: 8px;
  background: rgba(10, 10, 11, 0.97);
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg), var(--glass-highlight);
  z-index: 210;
}
.nav-item:hover .dropdown { display: block; }
.dropdown a {
  display: block; padding: 11px 14px; border-radius: var(--radius-sm);
  font-family: var(--font-body); font-weight: var(--fw-semibold);
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-secondary); text-decoration: none; white-space: nowrap;
  transition: background var(--dur-fast), color var(--dur-fast);
}
.dropdown a:hover { background: var(--surface-glass); color: var(--accent); }

.nav-actions { display: flex; align-items: center; gap: 18px; justify-self: end; }
.nav-phone {
  font-family: var(--font-display); font-size: 24px; letter-spacing: 0.02em;
  color: var(--text-primary); text-decoration: none; white-space: nowrap;
}
.nav-phone:hover { color: var(--accent); }

/* Panel-only chrome + burger hidden on desktop */
.nav-panel-header, .nav-panel-footer { display: none; }
.nav-backdrop { display: none; }
.nav-burger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 10px; background: transparent;
  border: 1px solid var(--border-default); border-radius: var(--radius-sm); cursor: pointer;
}
.nav-burger span {
  display: block; height: 2px; width: 100%; background: var(--text-primary);
  border-radius: 2px; transition: transform var(--dur-base) var(--ease-out),
                                    opacity var(--dur-fast);
}
body.nav-open .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-burger span:nth-child(2) { opacity: 0; }
body.nav-open .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Nav collapses to the slide-out panel earlier than the content grids (1024px):
   with five top-level items the desktop bar needs ~1190px to sit on one line. */
@media (max-width: 1200px) {
  .nav-inner { height: 72px; }
  .nav-cta-desktop { display: none; }
  .nav-phone { display: none; }
  .nav-burger { display: flex; margin-right: -20px; }

  .nav-links {
    position: fixed; top: 0; right: 0; left: auto;
    width: min(86vw, 380px); height: 100vh; height: 100dvh;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bw-ink-800);
    border-left: 1px solid var(--border-subtle);
    box-shadow: -12px 0 40px rgba(0,0,0,0.55);
    transform: translateX(100%);
    transition: transform 280ms var(--ease-out);
    z-index: 250; overflow-y: auto; overscroll-behavior: contain;
  }
  body.nav-open .nav-links { transform: translateX(0); }

  .nav-backdrop {
    position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 240;
    backdrop-filter: blur(2px);
  }
  body.nav-open .nav-backdrop { display: block; }
  body.nav-open { overflow: hidden; }

  .nav-panel-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 22px; border-bottom: 1px solid var(--border-subtle);
  }
  .nav-panel-header img { height: 22px; width: auto; }
  .nav-panel-close {
    width: 40px; height: 40px; display: grid; place-items: center;
    background: transparent; border: 1px solid var(--border-default);
    border-radius: var(--radius-sm); color: var(--text-primary); cursor: pointer;
  }
  .nav-panel-close svg { width: 20px; height: 20px; }

  .nav-item { border-bottom: 1px solid var(--border-subtle); }
  .nav-item > a { height: auto; padding: 20px 24px; font-size: 15px; color: var(--text-primary); justify-content: space-between; }

  /* Mobile accordion */
  .nav-chevron { width: 14px; height: 14px; }
  .nav-item.open .nav-chevron { transform: rotate(180deg); }
  .dropdown {
    display: none; position: static; min-width: 0; padding: 0 0 12px;
    background: transparent; backdrop-filter: none;
    border: 0; border-radius: 0; box-shadow: none;
  }
  .nav-item:hover .dropdown { display: none; }
  .nav-item.open .dropdown { display: block; }
  .dropdown a { padding: 12px 24px 12px 38px; font-size: 13px; }

  .nav-panel-footer {
    display: flex; flex-direction: column; gap: 12px;
    margin-top: auto; padding: 22px 24px 28px;
  }
  .nav-panel-phone { font-size: 16px; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; overflow: hidden;
  background-color: var(--surface-base);
  background-image: radial-gradient(120% 90% at 78% -10%, rgba(224,126,39,0.28) 0%, rgba(224,126,39,0) 55%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: repeating-linear-gradient(115deg, rgba(255,255,255,0.018) 0 2px, transparent 2px 26px);
}
.hero-grid {
  position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: 56px; align-items: center;
  padding: 104px 0 112px;
}
.hero h1 {
  font-size: clamp(40px, 6vw, 80px); line-height: 0.92; margin: 22px 0 0; max-width: 16ch;
}
.hero-lead {
  font-size: 19px; color: var(--text-secondary); max-width: 50ch; margin: 24px 0 36px;
  text-wrap: balance;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 40px; flex-wrap: wrap; margin-top: 56px; }
.stat-num { font-family: var(--font-display); font-size: 46px; color: var(--accent); line-height: 1; }
.stat-label {
  font-family: var(--font-body); font-size: 13px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-muted); margin-top: 6px;
}

/* --- Photo placeholder ----------------------------------- */
.photo-ph {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--grad-steel);
  border: 1px solid var(--border-default);
  box-shadow: var(--shadow-lg), var(--bevel-top);
}
.photo-ph::after {
  content: attr(data-label);
  position: absolute; inset: 0; display: grid; place-content: center; text-align: center;
  padding: 24px;
  font-family: var(--font-body); font-size: 12px; font-weight: var(--fw-semibold);
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted);
  background-image: var(--grad-spark),
    repeating-linear-gradient(135deg, rgba(255,255,255,0.025) 0 2px, transparent 2px 18px);
}
.hero-photo {
  position: relative; aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border-default);
  box-shadow: var(--shadow-lg), var(--bevel-top);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Centered, image-less hero variant (inner service pages) — shorter than the home hero */
.hero-centered .hero-inner {
  position: relative;
  max-width: 860px; margin: 0 auto; text-align: center;
  padding: 52px 0 60px;
}
.hero-centered h1 {
  font-size: clamp(32px, 4.4vw, 56px);
  /* 19ch (not 18) so the wider double-m word "Commercial" keeps "[Service] Blasting"
     on one line and the heading wraps to three lines like the other service pages. */
  max-width: 19ch; margin-left: auto; margin-right: auto;
}
.hero-centered .hero-lead { margin-left: auto; margin-right: auto; }
.hero-centered .hero-cta { justify-content: center; }
@media (max-width: 1024px) { .hero-centered .hero-inner { padding: 48px 0 52px; } }
@media (max-width: 640px)  { .hero-centered .hero-inner { padding: 40px 0 44px; } }

/* ============================================================
   SERVICES
   ============================================================ */
.cards-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 52px;
}
/* Homepage "Our Work" — clickable project tiles linking to the gallery */
.work-tile {
  display: block; position: relative; overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-default);
  box-shadow: var(--shadow-lg), var(--bevel-top);
}
.work-tile img {
  display: block; width: 100%; height: auto;
  aspect-ratio: 3 / 4; object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}
.work-tile:hover img { transform: scale(1.05); }
@media (prefers-reduced-motion: reduce) {
  .work-tile:hover img { transform: none; }
}
/* Services: flex so a 5-card set centers its trailing row instead of leaving a gap */
.services-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; }
.services-grid .service-card {
  flex: 1 1 calc((100% - 44px) / 3);
  max-width: calc((100% - 44px) / 3);
}
.service-card {
  display: block; text-decoration: none;
  position: relative; overflow: hidden;
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--bevel-top);
  transition: transform var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out);
}
.service-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--grad-ember); transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur-base) var(--ease-out);
}
.service-card::after {
  content: ""; position: absolute; inset: 0; opacity: 0; pointer-events: none;
  background: radial-gradient(80% 60% at 50% 0%, rgba(224,126,39,0.10) 0%, transparent 60%);
  transition: opacity var(--dur-base) var(--ease-out);
}
.service-card:hover { transform: translateY(-4px); border-color: var(--border-default); }
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover::after { opacity: 1; }
.service-icon {
  width: 56px; height: 56px; display: grid; place-items: center;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(224, 126, 39, 0.38) 0%, rgba(137, 43, 16, 0.30) 100%);
  border: 1px solid rgba(224, 126, 39, 0.45);
  box-shadow: 0 6px 20px rgba(224, 126, 39, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.10);
  color: var(--accent); margin-bottom: 20px;
  transition: box-shadow 320ms ease, transform 320ms ease;
}
.service-card:hover .service-icon {
  box-shadow: 0 10px 30px rgba(224, 126, 39, 0.50), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
}
.service-icon [data-lucide] { width: 28px; height: 28px; }
.service-tag {
  font-family: var(--font-body); font-size: 11px; font-weight: var(--fw-semibold);
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted);
}
.service-card h3 {
  font-family: var(--font-display); font-weight: var(--fw-bold); text-transform: uppercase;
  font-size: 28px; line-height: 1; letter-spacing: 0.01em;
  color: var(--text-primary); margin: 10px 0 12px;
}
.service-card p { font-size: 16px; margin: 0; color: var(--text-secondary); }

/* ============================================================
   SPLIT (text + image)  — image goes on top on mobile
   ============================================================ */
.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.split-text .display { font-size: clamp(34px, 5vw, 54px); }
.split-image { position: relative; }
.split-photo { aspect-ratio: 5 / 4; }
img.split-photo {
  display: block; width: 100%; height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-default);
  box-shadow: var(--shadow-lg), var(--bevel-top);
}
.area-map {
  width: 100%; height: auto; display: block;
  transform-origin: 50% 88%;
  animation: area-map-sway 6s ease-in-out infinite;
}
@keyframes area-map-sway {
  0%   { transform: rotate(-2deg); }
  50%  { transform: rotate(2deg); }
  100% { transform: rotate(-2deg); }
}
@media (prefers-reduced-motion: reduce) {
  .area-map { animation: none; }
}

/* How It Works — vertical timeline with scroll-driven ember fill */
.timeline { position: relative; max-width: 920px; margin: 56px auto 0; --tl-progress: 0px; }
/* base line */
.timeline::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px;
  transform: translateX(-50%); background: var(--border-default); border-radius: 2px;
}
/* fill that grows on scroll (height set in JS via --tl-progress) */
.timeline::after {
  content: ""; position: absolute; top: 0; left: 50%; width: 2px;
  transform: translateX(-50%); height: var(--tl-progress); max-height: 100%;
  background: linear-gradient(180deg, var(--accent-hover) 0%, var(--accent) 100%);
  border-radius: 2px; box-shadow: 0 0 12px rgba(224, 126, 39, 0.55);
}

.tl-item {
  position: relative; display: grid; grid-template-columns: 1fr 1fr;
  column-gap: 64px; margin-bottom: 36px;
}
.tl-item:last-child { margin-bottom: 0; }
.tl-item:nth-child(odd) .tl-card { grid-column: 1; }
.tl-item:nth-child(even) .tl-card { grid-column: 2; }

/* dot on the center line, lights up when the fill reaches it */
.tl-dot {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 16px; height: 16px; border-radius: 50%; z-index: 2;
  background: var(--surface-card); border: 2px solid var(--border-strong);
  transition: background var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
}
.tl-item.is-active .tl-dot {
  background: var(--accent); border-color: var(--accent);
  box-shadow: 0 0 0 5px rgba(224, 126, 39, 0.18), 0 0 16px rgba(224, 126, 39, 0.6);
}

.tl-card {
  display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start;
  background: var(--surface-card); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg); padding: 24px 26px; box-shadow: var(--bevel-top);
  transition: border-color var(--dur-base) var(--ease-out);
}
.tl-item.is-active .tl-card { border-color: var(--border-glow); }
.tl-icon {
  width: 46px; height: 46px; display: grid; place-items: center; flex: none;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(224, 126, 39, 0.38) 0%, rgba(137, 43, 16, 0.30) 100%);
  border: 1px solid rgba(224, 126, 39, 0.45);
  box-shadow: 0 6px 20px rgba(224, 126, 39, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.10);
  color: var(--accent);
  transition: box-shadow 320ms ease, transform 320ms ease;
}
.tl-item:hover .tl-icon,
.tl-item.is-active .tl-icon {
  box-shadow: 0 10px 30px rgba(224, 126, 39, 0.50), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
}
.tl-icon [data-lucide] { width: 24px; height: 24px; }
.tl-num {
  display: block;
  font-family: var(--font-body); font-size: 11px; font-weight: var(--fw-semibold);
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted);
}
.tl-card h4 {
  font-family: var(--font-display); font-weight: var(--fw-bold); text-transform: uppercase;
  font-size: 26px; line-height: 1; color: var(--text-primary); margin: 8px 0 10px;
}
.tl-card p { margin: 0; font-size: 16px; color: var(--text-secondary); }

/* Single-column (line on the left) on narrow screens */
@media (max-width: 768px) {
  .timeline { max-width: 100%; margin-top: 44px; }
  .timeline::before, .timeline::after { left: 10px; }
  .tl-item { grid-template-columns: 1fr; column-gap: 0; padding-left: 44px; margin-bottom: 24px; }
  .tl-item:nth-child(odd) .tl-card,
  .tl-item:nth-child(even) .tl-card { grid-column: 1; }
  .tl-dot { left: 10px; top: 30px; }
}

/* How We Blast feature rows */
.features { margin: 28px 0 0; }
.feature {
  display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start;
  padding: 22px 0; border-top: 1px solid var(--border-subtle);
}
.feature:first-child { border-top: 0; }
.feature-icon {
  width: 46px; height: 46px; display: grid; place-items: center;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(224, 126, 39, 0.38) 0%, rgba(137, 43, 16, 0.30) 100%);
  border: 1px solid rgba(224, 126, 39, 0.45);
  box-shadow: 0 6px 20px rgba(224, 126, 39, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.10);
  color: var(--accent);
  transition: box-shadow 320ms ease, transform 320ms ease;
}
.feature:hover .feature-icon {
  box-shadow: 0 10px 30px rgba(224, 126, 39, 0.50), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
}
.feature-icon [data-lucide] { width: 22px; height: 22px; }
.feature h4 {
  font-family: var(--font-display); font-weight: var(--fw-bold); text-transform: uppercase;
  font-size: 24px; line-height: 1; color: var(--text-primary); margin: 4px 0 8px;
}
.feature p { margin: 0; font-size: 16px; }

/* ============================================================
   PROOF STRIP
   ============================================================ */
/* ============================================================
   TESTIMONIALS (3D coverflow carousel)
   ============================================================ */
.carousel { margin-top: 52px; }
.carousel-stage {
  position: relative; height: 380px;
  perspective: 1700px;
}
.testimonial {
  position: absolute; top: 50%; left: 50%;
  width: min(440px, 84vw); height: 320px;
  display: flex; flex-direction: column;
  padding: 28px 28px 24px;
  border-radius: var(--radius-lg);
  /* Inactive cards: dark with a border */
  background: #121110;
  border: 1px solid var(--border-default);
  color: var(--text-secondary);
  transform: translate(-50%, -50%);
  transition: transform 0.55s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.45s ease, background 0.4s ease, color 0.4s ease;
  will-change: transform, opacity;
}
/* Active (front, center) card: deeper orange, darker in the top-left to match the buttons */
.testimonial.is-active {
  background: linear-gradient(135deg, #7e350e 0%, #c2611a 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.55);
}
.testimonial-tag {
  align-self: flex-start; margin-bottom: 18px;
  font-family: var(--font-body); font-size: 11px; font-weight: var(--fw-semibold);
  letter-spacing: 0.14em; text-transform: uppercase; color: #fff;
  background: linear-gradient(135deg, #e07e27 0%, #b85513 100%);
  border-radius: 999px; padding: 5px 13px;
}
.testimonial.is-active .testimonial-tag {
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.45);
}
.testimonial-quote {
  margin: 0 0 18px; flex: 1;
  font-size: 18px; line-height: 1.6;
}
.testimonial-author {
  margin: 0;
  font-family: var(--font-body); font-style: italic; font-weight: var(--fw-semibold);
  font-size: 15px; color: var(--text-muted);
}
.testimonial-author::before { content: "— "; }
.testimonial.is-active .testimonial-author { color: rgba(255, 255, 255, 0.85); }
.carousel-nav {
  display: flex; justify-content: center; gap: 14px; margin-top: 34px;
}
.carousel-btn {
  width: 48px; height: 48px; display: grid; place-items: center;
  font-size: 24px; line-height: 1; color: var(--text-primary);
  background: var(--surface-glass); border: 1px solid var(--border-default);
  border-radius: var(--radius-md); cursor: pointer;
  transition: border-color var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out);
}
.carousel-btn:hover { color: var(--accent); border-color: var(--border-glow); background: var(--surface-card); }

/* ============================================================
   BEFORE / AFTER GALLERY (drag-to-compare)
   ============================================================ */
.ba-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 52px;
}
.ba-item { margin: 0; }
.ba-slider {
  --ba-pos: 50%;
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-default);
  box-shadow: var(--shadow-lg), var(--bevel-top);
  background: var(--surface-inset);
  cursor: ew-resize;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
.ba-slider img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
}
/* Before layer sits on top, revealed from the left edge to the handle */
.ba-before {
  z-index: 2;
  clip-path: inset(0 calc(100% - var(--ba-pos)) 0 0);
}
.ba-tag {
  position: absolute; top: 14px; z-index: 4;
  font-family: var(--font-body); font-weight: var(--fw-semibold);
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-primary);
  padding: 5px 12px; border-radius: var(--radius-pill);
  background: rgba(1, 1, 1, 0.6);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(6px);
  pointer-events: none;
}
.ba-tag-before { left: 14px; }
.ba-tag-after  { right: 14px; }
.ba-handle {
  position: absolute; top: 0; bottom: 0;
  left: var(--ba-pos); z-index: 3;
  width: 2px; padding: 0; margin: 0; border: 0;
  transform: translateX(-50%);
  background: rgba(253, 253, 253, 0.92);
  box-shadow: 0 0 0 1px rgba(1, 1, 1, 0.25), 0 0 16px rgba(224, 126, 39, 0.45);
  cursor: ew-resize;
}
/* Grip is absolutely centered on the handle line so it stays on the split */
.ba-grip {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  color: #fff;
  background: var(--grad-ember);
  border: 2px solid rgba(253, 253, 253, 0.92);
  box-shadow: var(--shadow-md), 0 0 18px rgba(224, 126, 39, 0.5);
}
.ba-grip [data-lucide] { width: 22px; height: 22px; }
.ba-handle:focus-visible { outline: none; }
.ba-handle:focus-visible .ba-grip {
  box-shadow: var(--shadow-md), 0 0 0 3px var(--focus-ring);
}
.ba-caption {
  margin-top: 14px;
  font-family: var(--font-display); font-weight: var(--fw-semibold);
  font-size: 20px; letter-spacing: 0.01em;
  color: var(--text-primary); text-align: center;
}
@media (max-width: 640px) {
  .ba-grid { grid-template-columns: 1fr; gap: 22px; }
}
/* 3-up variant — balanced single row for pages with three pairs */
.ba-grid--3up { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1024px) { .ba-grid--3up { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .ba-grid--3up { grid-template-columns: 1fr; } }
/* Gallery variant — flex, 3 per row; a partial last row aligns left */
.ba-grid--gallery { display: flex; flex-wrap: wrap; justify-content: flex-start; }
.ba-grid--gallery .ba-item {
  flex: 0 1 calc((100% - 56px) / 3);
  max-width: calc((100% - 56px) / 3);
}
@media (max-width: 1024px) {
  .ba-grid--gallery .ba-item { flex-basis: calc((100% - 28px) / 2); max-width: calc((100% - 28px) / 2); }
}
@media (max-width: 640px) {
  .ba-grid--gallery .ba-item { flex-basis: 100%; max-width: 100%; }
}

/* ============================================================
   QUOTE FORM
   ============================================================ */
.quote {
  position: relative;
  background-color: var(--bw-ink-800);
  background-image: radial-gradient(110% 120% at 15% 50%, rgba(137,43,16,0.30) 0%, rgba(137,43,16,0) 55%);
}
.quote-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.quote-phone {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 28px;
  font-family: var(--font-display); font-size: 38px; color: var(--text-primary);
  text-decoration: none;
}
.quote-phone [data-lucide] { width: 28px; height: 28px; color: var(--accent); }
.quote-phone:hover { color: var(--accent); }
.quote-text {
  display: flex; width: fit-content; align-items: center; gap: 12px; margin-top: 14px;
  font-family: var(--font-body); font-size: 18px; font-weight: var(--fw-semibold);
  color: var(--text-primary); text-decoration: none;
}
.quote-text [data-lucide] { width: 28px; height: 28px; color: var(--accent); }
.quote-text:hover { color: var(--accent); }

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 34px;
  box-shadow: var(--shadow-lg), var(--bevel-top), 0 0 0 1px var(--border-glow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.field label {
  font-family: var(--font-body); font-size: 12px; font-weight: var(--fw-semibold);
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted);
}
.field input, .field textarea, .field select {
  font-family: var(--font-body); font-size: 15px; color: var(--text-primary);
  background: var(--surface-inset); border: 1px solid var(--border-default);
  border-radius: var(--radius-sm); padding: 13px 14px; width: 100%;
  transition: border-color var(--dur-fast);
}
.field input::placeholder, .field textarea::placeholder { color: var(--bw-steel-400); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--border-glow); }
.field textarea { resize: vertical; min-height: 110px; }
/* Native dropdown, restyled to match inputs with a custom chevron */
.field select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%238b94a0' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.field select:required:invalid { color: var(--bw-steel-400); }
.field select option { color: var(--text-primary); background: var(--surface-inset); }
.form-success { text-align: center; padding: 30px 0; }
.form-success [data-lucide] { width: 52px; height: 52px; color: var(--accent); margin: 0 auto; }
.form-success h3 {
  font-family: var(--font-display); text-transform: uppercase; font-size: 30px;
  color: var(--text-primary); margin: 16px 0 6px;
}
.is-hidden { display: none !important; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--surface-base); border-top: 1px solid var(--border-subtle); }
.footer-rule { height: 3px; background: var(--grad-ember); }
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px;
  padding: 64px 0 40px;
}
.footer-logo { height: 24px; width: auto; margin-bottom: 18px; }
.footer-about { font-size: 15px; line-height: 1.6; max-width: 280px; margin: 0; }
.footer-col h4 {
  font-family: var(--font-body); font-weight: var(--fw-semibold); font-size: 13px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent);
  margin: 0 0 16px;
}
.footer-col a { display: block; color: var(--text-secondary); text-decoration: none; font-size: 15px; margin-bottom: 10px; }
.footer-col a:hover { color: var(--accent); }
/* Get In Touch column: icon + label rows, same size as the rest of the footer */
.footer-contact a,
.footer-contact p {
  display: flex; align-items: center; gap: 11px; margin: 0 0 12px;
  font-size: 15px; color: var(--text-secondary); text-decoration: none;
}
.footer-contact a:hover { color: var(--accent); }
.footer-contact [data-lucide] { width: 18px; height: 18px; color: var(--accent); flex: none; }
.footer-bottom {
  border-top: 1px solid var(--border-subtle); padding: 22px 0;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  text-align: center;
  font-size: 14px; color: var(--text-muted);
}
.footer-credit { font-size: 13px; }
.footer-credit a {
  color: var(--text-secondary); text-decoration: none;
  transition: color var(--dur-fast);
}
.footer-credit a:hover { color: var(--accent); }

/* ============================================================
   INNER PAGES — closing CTA band + single testimonial pull-quote
   (reusable across service pages: Industrial, Marine, etc.)
   ============================================================ */
.cta-band {
  position: relative;
  background-color: var(--bw-ink-800);
  background-image: radial-gradient(110% 120% at 50% 0%, rgba(137,43,16,0.30) 0%, rgba(137,43,16,0) 55%);
}
.cta-inner { position: relative; max-width: 720px; margin: 0 auto; text-align: center; }
.cta-inner .section-label { justify-content: center; }
.cta-inner .display { font-size: clamp(32px, 5vw, 50px); }
.cta-lead {
  margin: 18px auto 0; max-width: 60ch;
  font-size: 18px; color: var(--text-primary);
}
.cta-points {
  list-style: none; margin: 28px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px;
}
.cta-points li {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; color: var(--text-primary);
}
.cta-points [data-lucide] { width: 18px; height: 18px; color: var(--accent); flex: none; }
.cta-buttons { justify-content: center; margin-top: 32px; }

/* Single testimonial pull-quote */
.pull-quote { text-align: center; }
.pull-quote-card {
  max-width: 760px; margin: 0 auto;
  background: var(--surface-card); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg); padding: 36px 40px;
  box-shadow: var(--shadow-md), var(--bevel-top);
}
.pull-quote-tag {
  display: inline-block; margin-bottom: 18px;
  font-family: var(--font-body); font-size: 11px; font-weight: var(--fw-semibold);
  letter-spacing: 0.14em; text-transform: uppercase; color: #fff;
  background: var(--grad-ember); border-radius: var(--radius-pill); padding: 5px 13px;
}
.pull-quote-text {
  margin: 0; font-size: 20px; line-height: 1.6; color: var(--text-primary);
}
.pull-quote-author {
  margin: 16px 0 0;
  font-family: var(--font-body); font-style: italic; font-weight: var(--fw-semibold);
  font-size: 15px; color: var(--text-muted);
}
.pull-quote-author::before { content: "— "; }
@media (max-width: 640px) {
  .pull-quote-card { padding: 28px 24px; }
  .pull-quote-text { font-size: 18px; }
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(24px); }
.reveal.in-view {
  animation: ds-reveal-up 700ms cubic-bezier(0.4, 0, 0.2, 1) var(--reveal-delay, 0ms) forwards;
}
@keyframes ds-reveal-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; padding: 72px 0 80px; }
  /* Hero: center the copy and place the image below it on mobile */
  .hero-copy { text-align: center; }
  .hero-copy h1, .hero-copy .hero-lead { margin-left: auto; margin-right: auto; }
  .hero-copy .hero-cta, .hero-copy .hero-stats { justify-content: center; }
  .hero-photo { order: 0; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid .service-card {
    flex-basis: calc((100% - 22px) / 2); max-width: calc((100% - 22px) / 2);
  }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split-image { order: -1; }
  .quote-grid { grid-template-columns: 1fr; gap: 40px; }
  /* Center stacked section text on mobile (features stay left-aligned) */
  .split-text { text-align: center; }
  .split-text .features { text-align: left; }
  .quote-grid > div:first-child { text-align: center; }
  .quote-text { margin-left: auto; margin-right: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 640px) {
  .hero-stats { gap: 28px; }
  .cards-grid { grid-template-columns: 1fr; }
  .services-grid .service-card { flex-basis: 100%; max-width: 100%; }
  .carousel-stage { height: 420px; }
  .testimonial { height: 360px; }
  .form-row { grid-template-columns: 1fr; }
  /* Footer: stack and center everything on mobile */
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-logo { margin-left: auto; margin-right: auto; }
  .footer-about { max-width: none; }
  .footer-contact a, .footer-contact p { justify-content: center; }
}

/* ============================ FAQ ============================ */
.faq {
  max-width: 760px;
  margin: 40px auto 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.faq-item {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 0 24px;
  transition: border-color var(--dur-base) var(--ease-out);
}
.faq-item[open] { border-color: var(--border-glow); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.35rem);
  line-height: 1.35;
  color: var(--text-primary);
  transition: color var(--dur-fast);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover,
.faq-item[open] summary { color: var(--accent); }
.faq-chevron {
  flex: none;
  display: inline-flex;
  color: var(--accent);
  transition: transform var(--dur-base) var(--ease-out);
}
.faq-chevron [data-lucide],
.faq-chevron svg { width: 20px; height: 20px; }
.faq-item[open] .faq-chevron { transform: rotate(180deg); }
.faq-item > p {
  margin: 0;
  padding: 0 0 24px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal.in-view { opacity: 1; transform: none; animation: none; }
  * { transition: none !important; }
}
