/* ==========================================================================
   Denver General — site styles (v2 trial)
   Shared header/footer/buttons live here so later pages can reuse them.
   Homepage-only sections are marked HOME.
   ========================================================================== */

:root {
  --bg: #ffffff;
  --bg-soft: #f5f5f4;
  --bg-warm: #fafaf9;
  --text: #141414;
  --text-muted: #5c5a57;
  --text-faint: #7a7874;
  --line: #e7e5e4;
  --line-strong: #d6d3d1;
  --accent: #ff6028;
  --accent-hover: #e8521f;
  --accent-soft: #fff1eb;
  --ink: #111111;
  --dark: #121212;
  --dark-2: #1c1c1c;
  --on-dark: #f5f5f4;
  --on-dark-muted: #a8a29e;
  --soft-blue: #8eb8d4;
  --soft-blue-d: #6a9bb8;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 18px 40px rgba(0, 0, 0, 0.14);
  --radius: 14px;
  --radius-sm: 12px;
  --header-h: 72px;
  --container: 1160px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --callbar-h: 0px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

@font-face {
  font-family: "Inter";
  src: url("fonts/Inter-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/Inter-Italic-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  letter-spacing: -0.011em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  padding-bottom: var(--callbar-h);
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 {
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.08;
  color: var(--ink);
  margin: 0;
}
p { margin: 0; }
button { font-family: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: #ffd8cc; color: var(--ink); }

.skip-link {
  position: absolute; left: 12px; top: -40px; z-index: 100;
  background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px;
}
.skip-link:focus { top: 12px; }

.container {
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 24px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-family: inherit; font-size: 15.5px; font-weight: 600;
  letter-spacing: -0.01em; line-height: 1; text-decoration: none;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease),
              border-color 0.2s var(--ease), transform 0.2s var(--ease),
              box-shadow 0.2s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 8px 24px rgba(255, 96, 40, 0.28);
}
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-outline {
  background: transparent; color: var(--ink); border-color: var(--line-strong);
}
.btn-outline:hover { border-color: var(--ink); background: var(--bg-warm); }
.btn-outline-light {
  background: transparent; color: #fff; border-color: rgba(255,255,255,0.45);
}
.btn-outline-light:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-dark { background: #fff; color: var(--ink); }
.btn-dark:hover { background: var(--bg-soft); }
.btn-phone {
  background: var(--accent); color: #fff;
  min-height: 42px; padding: 0 16px; border-radius: 999px; font-size: 14px;
  box-shadow: 0 6px 16px rgba(255, 96, 40, 0.28);
}
.btn-phone:hover { background: var(--accent-hover); color: #fff; }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 16.5px; }

/* Header */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--header-h);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease),
              backdrop-filter 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(255,255,255,0.94);
  backdrop-filter: saturate(1.4) blur(16px);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  border-bottom-color: var(--line);
  box-shadow: 0 1px 0 rgba(0,0,0,0.03);
}
.header-inner {
  height: var(--header-h);
  display: flex; align-items: center; gap: 28px;
}
.logo { display: flex; align-items: center; flex: 0 0 auto; }
.logo img { height: 50px; width: auto; }
.logo .logo-light { display: block; }
.logo .logo-dark { display: none; }
.site-header.is-scrolled .logo .logo-light,
.site-header.is-open .logo .logo-light { display: none; }
.site-header.is-scrolled .logo .logo-dark,
.site-header.is-open .logo .logo-dark { display: block; }

.site-nav {
  display: flex; align-items: center; gap: 4px; margin-left: auto;
}
.site-nav a {
  text-decoration: none; font-size: 14.5px; font-weight: 500;
  color: rgba(255,255,255,0.92); padding: 8px 12px; border-radius: 8px;
  letter-spacing: -0.01em;
  transition: color 0.15s ease, background 0.15s ease;
}
.site-nav a:hover { color: #fff; background: rgba(255,255,255,0.1); }
.site-header.is-scrolled .site-nav a,
.site-header.is-open .site-nav a { color: var(--text); }
.site-header.is-scrolled .site-nav a:hover,
.site-header.is-open .site-nav a:hover { background: var(--bg-soft); color: var(--ink); }

.nav-burger {
  display: none; width: 40px; height: 40px; margin-left: auto;
  border-radius: 8px; border: 1px solid rgba(255,255,255,0.3);
  background: transparent; cursor: pointer; position: relative;
}
.nav-burger span {
  position: absolute; left: 11px; right: 11px; height: 1.5px;
  background: #fff; transition: transform 0.2s var(--ease), opacity 0.2s var(--ease), top 0.2s var(--ease);
}
.site-header.is-scrolled .nav-burger,
.site-header.is-open .nav-burger { border-color: var(--line); background: #fff; }
.site-header.is-scrolled .nav-burger span,
.site-header.is-open .nav-burger span { background: var(--ink); }
.nav-burger span:nth-child(1) { top: 13px; }
.nav-burger span:nth-child(2) { top: 19px; }
.nav-burger span:nth-child(3) { top: 25px; }
.site-header.is-open .nav-burger span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.site-header.is-open .nav-burger span:nth-child(2) { opacity: 0; }
.site-header.is-open .nav-burger span:nth-child(3) { top: 19px; transform: rotate(-45deg); }

/* Footer */
.site-footer { background: var(--dark); color: var(--on-dark); padding: 72px 0 28px; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 0.8fr 1.1fr; gap: 48px 32px;
}
.footer-brand p {
  margin-top: 18px; color: var(--on-dark-muted); font-size: 15px;
  max-width: 32ch; line-height: 1.6;
}
.logo-footer img { height: 56px; width: auto; }
.site-footer h2 {
  color: #fff; font-size: 13px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 16px;
}
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-links a {
  text-decoration: none; color: var(--on-dark-muted); font-size: 15px;
  transition: color 0.15s ease;
}
.footer-links a:hover { color: #fff; }
.footer-contact p, .footer-contact a {
  color: var(--on-dark-muted); font-size: 15px; text-decoration: none; line-height: 1.55;
}
.footer-contact a:hover { color: #fff; }
.footer-contact p + p { margin-top: 12px; }
.footer-contact .tel { color: #fff; font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.footer-bottom {
  margin-top: 56px; padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; justify-content: space-between; gap: 16px;
  color: var(--on-dark-muted); font-size: 13px;
}

/* Helpers */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 18px; height: 1.5px; background: var(--accent); display: block; }
.eyebrow-light { color: rgba(255,255,255,0.72); }
.eyebrow-light::before { background: var(--accent); }

.section { padding: 96px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { margin-bottom: 44px; max-width: 42rem; }
.section-head h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
.section-head p { margin-top: 12px; color: var(--text-muted); font-size: 17px; }

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }
.d1 { transition-delay: 0.08s; }
.d2 { transition-delay: 0.16s; }
.d3 { transition-delay: 0.24s; }
.d4 { transition-delay: 0.32s; }
.d5 { transition-delay: 0.4s; }
.static-mode .reveal,
html.static-mode .reveal { opacity: 1; transform: none; transition: none; }

/* ==========================================================================
   HOME — Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  color: #fff;
  background: #0c0c0c;
  padding: calc(var(--header-h) + 24px) 0 28px;
}

.hero-slides, .hero-slide {
  position: absolute; inset: 0;
}
.hero-slides { z-index: 0; }
.hero-slide {
  opacity: 0;
  animation: slideFade 20s infinite;
}
.hero-slide:nth-child(1) { animation-delay: 0s; }
.hero-slide:nth-child(2) { animation-delay: 4s; }
.hero-slide:nth-child(3) { animation-delay: 8s; }
.hero-slide:nth-child(4) { animation-delay: 12s; }
.hero-slide:nth-child(5) { animation-delay: 16s; }
.hero-slide img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.05);
  animation: kenburns 20s ease-in-out infinite;
}
.hero-slide:nth-child(2) img { animation-name: kenburns-2; transform-origin: 70% 40%; }
.hero-slide:nth-child(3) img { animation-name: kenburns-3; transform-origin: 30% 60%; }
.hero-slide:nth-child(4) img { animation-name: kenburns-2; transform-origin: 60% 50%; }
.hero-slide:nth-child(5) img { animation-name: kenburns; transform-origin: 40% 30%; }

@keyframes slideFade {
  0% { opacity: 0; }
  5% { opacity: 1; }
  20% { opacity: 1; }
  25% { opacity: 0; }
  100% { opacity: 0; }
}
@keyframes kenburns {
  0% { transform: scale(1.05) translate(0, 0); }
  100% { transform: scale(1.16) translate(-2.5%, 1.5%); }
}
@keyframes kenburns-2 {
  0% { transform: scale(1.16) translate(-2%, 1%); }
  100% { transform: scale(1.05) translate(0, 0); }
}
@keyframes kenburns-3 {
  0% { transform: scale(1.04) translate(1%, 0); }
  100% { transform: scale(1.14) translate(-1.5%, -2%); }
}

.hero-gradient {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(8,8,8,0.82) 0%, rgba(8,8,8,0.55) 42%, rgba(8,8,8,0.28) 100%),
    linear-gradient(0deg, rgba(8,8,8,0.78) 0%, rgba(8,8,8,0.2) 38%, rgba(8,8,8,0.25) 100%);
}

/* Animated pipes + drifting glows */
.hero-fx { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.hero-pipes { width: 100%; height: 100%; opacity: 0.45; clip-path: inset(0 0 0 48%); }
.hero-pipes path {
  fill: none;
  stroke: rgba(255, 96, 40, 0.45);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-dasharray: 6 16;
  animation: pipeflow 18s linear infinite;
}
.hero-pipes path.p2 { stroke: rgba(142, 184, 212, 0.35); animation-duration: 26s; animation-direction: reverse; }
@keyframes pipeflow { to { stroke-dashoffset: -420; } }

.hero-orb {
  position: absolute; border-radius: 50%; filter: blur(40px); opacity: 0.35;
  animation: drift 14s ease-in-out infinite alternate;
}
.hero-orb.o1 { width: 280px; height: 280px; background: #ff6028; left: 8%; top: 18%; }
.hero-orb.o2 { width: 220px; height: 220px; background: #8eb8d4; right: 12%; top: 30%; animation-duration: 18s; }
.hero-orb.o3 { width: 160px; height: 160px; background: #ff6028; right: 28%; bottom: 18%; animation-duration: 11s; opacity: 0.22; }
@keyframes drift {
  from { transform: translate(0, 0); }
  to { transform: translate(24px, -30px); }
}

/* Rising embers */
.embers { position: absolute; inset: 0; overflow: hidden; }
.ember {
  position: absolute; bottom: -10px; width: 5px; height: 5px; border-radius: 50%;
  background: #ff6028; box-shadow: 0 0 10px 3px rgba(255,96,40,0.55);
  opacity: 0; animation: rise 7s ease-in infinite;
}
.ember:nth-child(1) { left: 18%; animation-delay: 0s; }
.ember:nth-child(2) { left: 36%; width: 3px; height: 3px; animation-delay: 1.6s; animation-duration: 8s; }
.ember:nth-child(3) { left: 58%; animation-delay: 3.2s; animation-duration: 6.5s; }
.ember:nth-child(4) { left: 74%; width: 4px; height: 4px; animation-delay: 0.8s; }
.ember:nth-child(5) { left: 86%; animation-delay: 2.4s; animation-duration: 9s; }
.ember:nth-child(6) { left: 48%; width: 3px; height: 3px; animation-delay: 4s; }
@keyframes rise {
  0% { opacity: 0; transform: translateY(0) scale(0.8); }
  15% { opacity: 0.8; }
  100% { opacity: 0; transform: translateY(-70vh) scale(0.4); }
}

.hero-content { position: relative; z-index: 3; max-width: 720px; padding-bottom: 28px; }
.hero-content h1 {
  color: #fff;
  font-size: clamp(2.6rem, 6vw, 5rem);
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 0.98;
  text-wrap: balance;
}
.hero-content h1 .loc { display: block; font-weight: 550; }
.hero-tag {
  margin-top: 22px; font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 500; letter-spacing: -0.02em; color: #fff;
}
.hero-lead {
  margin-top: 14px; color: rgba(255,255,255,0.78);
  font-size: 17.5px; max-width: 40ch;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px;
  color: rgba(255,255,255,0.7); font-size: 13.5px; font-weight: 500;
}
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta svg { width: 16px; height: 16px; color: var(--accent); flex: 0 0 auto; }

.hero-gas { position: relative; z-index: 3; }
.gas-inner {
  display: flex; align-items: center; gap: 20px 28px;
  background: rgba(18,18,18,0.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 18px 22px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.28);
}
.gas-icon {
  flex: 0 0 auto; width: 48px; height: 48px; border-radius: 12px;
  background: rgba(255,96,40,0.16);
  display: grid; place-items: center; color: var(--accent);
  box-shadow: 0 0 0 1px rgba(255,96,40,0.15), 0 0 24px rgba(255,96,40,0.2);
}
.gas-icon svg { width: 24px; height: 24px; }
.gas-text { flex: 1 1 auto; min-width: 0; }
.gas-title { font-size: 1.2rem; font-weight: 600; letter-spacing: -0.03em; color: #fff; line-height: 1.2; }
.gas-desc { margin-top: 3px; color: var(--on-dark-muted); font-size: 14.5px; }
.gas-inner .btn { flex: 0 0 auto; }

/* Flicker the gas flame gently */
.gas-icon { animation: glowpulse 3.2s ease-in-out infinite; }
@keyframes glowpulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(255,96,40,0.15), 0 0 18px rgba(255,96,40,0.18); }
  50% { box-shadow: 0 0 0 1px rgba(255,96,40,0.3), 0 0 28px rgba(255,96,40,0.4); }
}

/* Trust stats */
.stats {
  background: var(--dark);
  color: #fff;
  padding: 36px 0;
  border-top: 1px solid rgba(255,255,255,0.04);
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.stat { text-align: left; }
.stat-num {
  font-size: clamp(2rem, 3.4vw, 3rem);
  font-weight: 650; letter-spacing: -0.045em;
  color: #fff; font-variant-numeric: tabular-nums; line-height: 1;
  white-space: nowrap;
}
.stat-num .count { margin: 0; padding: 0; }
.stat-num .accent { color: var(--accent); }
.stat-label { margin-top: 8px; color: var(--on-dark-muted); font-size: 14px; line-height: 1.4; }

/* Services */
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.service-card {
  display: flex; flex-direction: column; height: 100%;
  padding: 18px 22px 22px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  text-decoration: none; color: inherit;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
  overflow: hidden;
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--line-strong);
  color: inherit;
}
.illu {
  height: 132px; margin: -6px -8px 10px;
  display: grid; place-items: center;
}
.illu svg { width: 100%; height: 132px; overflow: visible; }
.service-card h3 { font-size: 1.14rem; letter-spacing: -0.03em; margin-bottom: 6px; }
.service-card p { color: var(--text-muted); font-size: 15px; line-height: 1.5; flex: 1; }
.service-card .more {
  margin-top: 14px; font-size: 13.5px; font-weight: 600; color: var(--ink);
  display: inline-flex; align-items: center; gap: 6px;
}
.service-card:hover .more { color: var(--accent); }

/* Illustration hover motion */
.service-card:hover .bob { animation: bob 1.2s ease-in-out infinite; }
.service-card:hover .flicker { animation: flicker 0.7s ease-in-out infinite; }
.service-card:hover .spin-slow { animation: spinw 1.8s ease-in-out infinite; }
.service-card:hover .drop { animation: drop 1.1s ease-in-out infinite; }
.service-card:hover .flake { animation: flake 1.6s ease-in-out infinite; }
.service-card:hover .glow-ring { animation: glowpulse 1s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes flicker {
  0%,100% { transform: scale(1) rotate(-2deg); opacity: 1; }
  50% { transform: scale(1.08) rotate(3deg); opacity: 0.9; }
}
@keyframes spinw { 0%,100% { transform: rotate(-12deg); } 50% { transform: rotate(18deg); } }
@keyframes drop { 0% { transform: translateY(-4px); opacity: 0.3; } 50% { opacity: 1; } 100% { transform: translateY(8px); opacity: 0; } }
@keyframes flake { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-6px) rotate(18deg); } }

/* How it works */
.how { position: relative; }
.how-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
  position: relative;
}
.how-pipe {
  position: absolute; top: 86px; left: 12%; right: 12%; height: 8px;
  pointer-events: none; z-index: 0;
}
.how-pipe path {
  fill: none; stroke: #e7e5e4; stroke-width: 6; stroke-linecap: round;
}
.how-pipe path.flow {
  stroke: var(--accent); stroke-width: 3; stroke-dasharray: 10 18;
  animation: pipeflow 8s linear infinite; opacity: 0.85;
}
.how-step {
  position: relative; z-index: 1;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 16px 22px 28px; text-align: center;
  box-shadow: var(--shadow-sm);
}
.how-illu { height: 180px; display: grid; place-items: center; }
.how-illu svg { width: 100%; height: 180px; overflow: visible; }
.how-num {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 28px; height: 28px; padding: 0 8px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
  font-size: 13px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 12px;
}
.how-step h3 { font-size: 1.2rem; margin-bottom: 8px; }
.how-step p { color: var(--text-muted); font-size: 15.5px; }

/* Values */
.values-grid {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: start;
}
.values-grid h2 { font-size: clamp(1.9rem, 3.2vw, 2.7rem); max-width: 12ch; }
.values-copy p { color: var(--text-muted); font-size: 17.5px; max-width: 42ch; }
.values-copy p + p { margin-top: 16px; }

/* Our Work */
.work-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 12px;
}
.work-featured {
  position: relative; border-radius: 16px; overflow: hidden;
  min-height: 100%; aspect-ratio: auto;
  background: #e7e5e4;
}
.work-featured .fade-slide {
  position: absolute; inset: 0; opacity: 0;
  animation: featFade 12s infinite;
}
.work-featured .fade-slide:nth-child(1) { animation-delay: 0s; }
.work-featured .fade-slide:nth-child(2) { animation-delay: 4s; }
.work-featured .fade-slide:nth-child(3) { animation-delay: 8s; }
.work-featured img { width: 100%; height: 100%; object-fit: cover; }
@keyframes featFade {
  0% { opacity: 0; } 8% { opacity: 1; } 33% { opacity: 1; } 41% { opacity: 0; } 100% { opacity: 0; }
}
.work-side {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.work-item {
  position: relative; margin: 0; border-radius: 14px; overflow: hidden;
  cursor: pointer; background: #e7e5e4; aspect-ratio: 4/5;
  border: 0; padding: 0; display: block; width: 100%;
}
.work-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.work-item:hover img { transform: scale(1.08); }
.work-featured { cursor: pointer; }
.work-featured:hover img { transform: scale(1.04); transition: transform 6s linear; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(10,10,10,0.88);
  display: none; align-items: center; justify-content: center;
  padding: 40px 16px;
}
.lightbox.is-on { display: flex; }
.lightbox img {
  max-width: min(1000px, 92vw); max-height: 86vh; width: auto; height: auto;
  border-radius: 12px; box-shadow: var(--shadow-lg);
}
.lb-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  color: #fff; font-size: 24px; cursor: pointer;
}
.lb-prev { left: 16px; }
.lb-next { right: 16px; }
.lb-close {
  position: absolute; top: 16px; right: 16px;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  color: #fff; font-size: 22px; cursor: pointer;
}

/* Owner */
.owner-grid {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: center;
}
.owner-grid img {
  width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: 18% 78%;
  border-radius: 16px; box-shadow: var(--shadow-md); background: #e7e5e4;
}
.owner-copy h2 { font-size: clamp(1.9rem, 3.2vw, 2.7rem); }
.owner-intro { margin-top: 22px; font-size: 1.2rem; font-weight: 500; letter-spacing: -0.02em; color: var(--ink); }
.owner-copy .bio { margin-top: 14px; color: var(--text-muted); max-width: 42ch; }
.owner-traits { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; list-style: none; padding: 0; }
.owner-traits li {
  padding: 8px 14px; border-radius: 999px; background: var(--bg-soft);
  border: 1px solid var(--line); font-size: 13.5px; font-weight: 600;
}

/* Reviews */
.example-note {
  display: inline-block; margin-top: 10px; padding: 6px 10px; border-radius: 8px;
  background: #faf6e6; color: #6b5a1e; font-size: 13px; font-weight: 500;
}
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 32px; }
.review-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
}
.example-badge {
  display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: #8a7a3d; background: #faf6e6;
  padding: 4px 8px; border-radius: 999px; margin-bottom: 14px;
}
.review-card p { color: var(--text-muted); font-size: 16px; line-height: 1.55; }
.review-card footer { margin-top: 18px; font-size: 13.5px; font-weight: 500; color: var(--text-faint); }

/* Closing CTA */
.cta-band {
  position: relative; overflow: hidden;
  background: var(--dark); color: #fff;
  padding: 88px 0;
}
.cta-band .glow {
  position: absolute; width: 480px; height: 480px; border-radius: 50%;
  background: #ff6028; filter: blur(80px); opacity: 0.22;
  right: -80px; top: -120px; pointer-events: none;
}
.cta-band .glow-2 {
  left: -80px; bottom: -160px; right: auto; top: auto;
  background: #8eb8d4; opacity: 0.16;
}
.cta-layout {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 0.7fr 1.3fr; gap: 40px; align-items: center;
}
.cta-copy h2 { color: #fff; font-size: clamp(2rem, 4vw, 3.1rem); }
.cta-copy p { margin-top: 14px; color: var(--on-dark-muted); font-size: 18px; max-width: 42ch; }
.cta-copy .hero-actions { margin-top: 28px; }

/* Mobile call bar */
.mobile-callbar { display: none; }

/* Responsive */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
  .how-pipe { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .work-layout { grid-template-columns: 1fr; }
  .work-featured { min-height: 380px; }
  .values-grid, .owner-grid, .cta-layout { gap: 36px; }
}

@media (max-width: 880px) {
  :root { --header-h: 64px; --callbar-h: 72px; }
  .container { width: min(100% - 32px, var(--container)); }
  .nav-burger { display: block; }
  .site-nav {
    display: none; position: absolute; top: var(--header-h); left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 12px 16px 20px; flex-direction: column; align-items: stretch;
    gap: 2px; margin: 0;
  }
  .site-header.is-open .site-nav { display: flex; }
  .site-nav a { padding: 12px; font-size: 16px; color: var(--text); }
  .header-inner { position: relative; }

  .hero {
    padding: calc(var(--header-h) + 12px) 0 calc(var(--callbar-h) + 14px);
    min-height: 100svh;
  }
  .hero-content { padding-bottom: 16px; }
  .hero-content h1 { font-size: 2.05rem; }
  .hero-tag { margin-top: 14px; }
  .hero-lead { font-size: 15.5px; margin-top: 10px; }
  .hero-actions { margin-top: 18px; gap: 8px; }
  .hero-actions .btn { min-height: 46px; flex: 1 1 auto; padding: 0 12px; font-size: 14.5px; }
  .hero-meta { margin-top: 14px; }
  .gas-inner { flex-wrap: wrap; padding: 14px; gap: 12px 16px; }
  .gas-inner .btn { width: 100%; min-height: 44px; }
  .nav-burger { background: rgba(255,255,255,0.12); }

  .stats-grid { grid-template-columns: 1fr 1fr; gap: 22px 16px; }
  .services-grid, .review-grid, .how-grid { grid-template-columns: 1fr; }
  .how-illu { height: 160px; }
  .values-grid, .owner-grid, .cta-layout { grid-template-columns: 1fr; }
  .values-grid h2 { max-width: none; }
  .owner-grid img { aspect-ratio: 16/10; object-position: 20% 70%; }
  .work-side { grid-template-columns: 1fr 1fr; }
  .section, .cta-band { padding: 64px 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; }

  .mobile-callbar {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
    padding: 10px 16px max(10px, env(safe-area-inset-bottom));
    background: #121212; box-shadow: 0 -10px 30px rgba(0,0,0,0.25);
  }
  .mobile-callbar a {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    background: var(--accent); color: #fff; text-decoration: none;
    font-weight: 600; font-size: 16px; letter-spacing: -0.02em;
    border-radius: 12px; min-height: 50px;
    box-shadow: 0 8px 20px rgba(255,96,40,0.3);
  }
}

@media (max-width: 560px) {
  .logo img { height: 40px; }
  .btn-phone { padding: 0 12px; font-size: 13px; }
  .hero-content h1 { font-size: 1.95rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .work-featured { min-height: 260px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* Reduced motion / static screenshots */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-slide, .hero-slide img, .hero-pipes path, .hero-orb, .ember,
  .gas-icon, .work-featured .fade-slide, .how-pipe path.flow {
    animation: none !important;
  }
  .hero-slide { opacity: 0; }
  .hero-slide:first-child { opacity: 1; }
  .work-featured .fade-slide:first-child { opacity: 1; }
  .service-card:hover .bob,
  .service-card:hover .flicker,
  .service-card:hover .spin-slow,
  .service-card:hover .drop,
  .service-card:hover .flake { animation: none; }
}
html.static-mode .hero-slide,
html.static-mode .hero-slide img,
html.static-mode .hero-pipes path,
html.static-mode .hero-orb,
html.static-mode .ember,
html.static-mode .gas-icon,
html.static-mode .work-featured .fade-slide,
html.static-mode .how-pipe path.flow {
  animation: none !important;
}
html.static-mode .hero-slide { opacity: 0; }
html.static-mode .hero-slide:first-child { opacity: 1; }
html.static-mode .hero-slide:first-child img { transform: scale(1.08); }
html.static-mode .work-featured .fade-slide { opacity: 0; }
html.static-mode .work-featured .fade-slide:first-child { opacity: 1; }
html.static-mode .embers, html.static-mode .hero-orb { display: none; }

.cta-illu { display: grid; place-items: center; }
.cta-illu svg { width: min(100%, 280px); height: auto; }
.work-featured { align-self: stretch; }
/* Gallery: even 2x2 when 4 side photos; avoid a hole when there are fewer */
.work-layout { align-items: stretch; }
.work-side:has(> .work-item:only-child),
.work-side:has(> .work-item:nth-child(2):last-child) {
  grid-template-columns: 1fr;
}
.work-side:has(> .work-item:only-child) .work-item {
  aspect-ratio: auto;
  min-height: 560px;
  height: 100%;
}
.work-side:has(> .work-item:nth-child(2):last-child) .work-item {
  aspect-ratio: 4 / 5;
}
.work-layout:has(.work-side > .work-item:only-child) .work-featured {
  min-height: 560px;
}
.work-side:has(> .work-item:nth-child(3):last-child) .work-item:last-child {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 7;
}


html.static-mode .site-header { position: absolute; }


/* ==========================================================================
   INNER PAGES
   ========================================================================== */
.site-nav a.is-active { font-weight: 600; }
.site-header.is-scrolled .site-nav a.is-active,
.site-header.is-open .site-nav a.is-active { color: var(--ink); }

.hero-slides.is-single .hero-slide { animation: none; opacity: 1; }
.hero-slides.is-single .hero-slide img {
  animation: kenburns 22s ease-in-out infinite alternate;
}
.hero-slides.count-3 .hero-slide { animation: slideFade3 15s infinite; }
.hero-slides.count-3 .hero-slide:nth-child(1) { animation-delay: 0s; }
.hero-slides.count-3 .hero-slide:nth-child(2) { animation-delay: 5s; }
.hero-slides.count-3 .hero-slide:nth-child(3) { animation-delay: 10s; }
@keyframes slideFade3 {
  0% { opacity: 0; } 6% { opacity: 1; } 33% { opacity: 1; } 39% { opacity: 0; } 100% { opacity: 0; }
}

.page-section { padding: 88px 0; }
.page-section + .page-section { padding-top: 0; }

.prose { max-width: 720px; }
.prose h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.15rem);
  margin: 0 0 16px;
  letter-spacing: -0.03em;
}
.prose p, .prose li {
  color: var(--text-muted);
  font-size: 17.5px;
  line-height: 1.7;
}
.prose p + p { margin-top: 16px; }
.prose .lead {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.45;
  margin-bottom: 16px;
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.split img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  background: #e7e5e4;
}
.split.is-flip { grid-template-columns: 0.95fr 1.05fr; }
.split.is-flip .split-copy { order: -1; }

.step-band {
  background: var(--dark);
  color: #fff;
  padding: 80px 0;
}
.step-band h2 { color: #fff; }
.step-band .eyebrow { color: rgba(255,255,255,0.65); }
.step-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 36px;
}
.step-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 24px 22px 28px;
}
.step-card .n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 999px;
  background: rgba(255,96,40,0.16); color: var(--accent);
  font-size: 13px; font-weight: 700; margin-bottom: 14px;
}
.step-card h3 { color: #fff; font-size: 1.1rem; margin-bottom: 8px; }
.step-card p { color: var(--on-dark-muted); font-size: 15px; }

.rebate {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px 32px;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.rebate::before {
  content: "";
  position: absolute; left: 0; top: 16px; bottom: 16px; width: 3px;
  background: var(--accent); border-radius: 2px;
  margin-left: 0;
}
.rebate { padding-left: 36px; }
.rebate h2 { font-size: 1.4rem; margin-bottom: 10px; }
.rebate p { color: var(--text-muted); font-size: 16.5px; }

.safety {
  background: var(--bg-soft);
  border-radius: 16px;
  padding: 24px 28px;
  font-size: 16.5px;
  color: var(--text);
  line-height: 1.6;
}
.safety strong { font-weight: 600; }

/* FAQ accordion (gas page only) */
.faq-list { max-width: 800px; }
.faq-item + .faq-item { border-top: 1px solid var(--line); }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0;
  padding: 22px 36px 22px 0; cursor: pointer;
  font-family: inherit; font-size: 1.08rem; font-weight: 600;
  letter-spacing: -0.025em; color: var(--ink);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq-q::after {
  content: "+";
  font-weight: 400; font-size: 1.4rem; color: var(--accent);
  line-height: 1; flex: 0 0 auto;
}
.faq-item.is-open .faq-q::after { content: "–"; }
.faq-a {
  display: none;
  padding: 0 8px 22px 0;
  color: var(--text-muted);
  font-size: 16.5px;
  line-height: 1.65;
}
.faq-item.is-open .faq-a { display: block; }

.other-services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.other-services a {
  display: block;
  padding: 18px 18px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.02em;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.other-services a:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: inherit;
}
.other-services a span {
  display: block;
  margin-top: 4px;
  font-weight: 400;
  font-size: 14px;
  color: var(--text-muted);
  letter-spacing: 0;
}

@media (max-width: 880px) {
  .split, .split.is-flip { grid-template-columns: 1fr; gap: 28px; }
  .split.is-flip .split-copy { order: 0; }
  .split img { aspect-ratio: 16/10; }
  .step-grid, .other-services { grid-template-columns: 1fr 1fr; }
  .page-section { padding: 64px 0; }
}
@media (max-width: 560px) {
  .step-grid, .other-services { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slides.is-single .hero-slide img,
  .hero-slides.count-3 .hero-slide { animation: none !important; }
  .hero-slides.count-3 .hero-slide:first-child { opacity: 1; }
}
html.static-mode .hero-slides.is-single .hero-slide img,
html.static-mode .hero-slides.count-3 .hero-slide { animation: none !important; }
html.static-mode .hero-slides.count-3 .hero-slide { opacity: 0; }
html.static-mode .hero-slides.count-3 .hero-slide:first-child { opacity: 1; }
html.static-mode .hero-slides.is-single .hero-slide { opacity: 1; }
.sr-colon{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
