/* ==========================================================================
   BLUELINE PLUMBING & DRAIN
   Award-Winning Editorial Experience & Spatial Depth
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design Tokens & Variables
   -------------------------------------------------------------------------- */
:root {
  /* Palette Inspired by Real Plumbing Materials */
  --bg-ink: #0E1620;
  --bg-ink-surface: #141F2D;
  --bg-ink-deep: #080D14;

  --bg-bone: #F2EDE4;
  --bg-sand: #E6DFD2;
  --bg-emergency: #1E3550;

  --color-copper: #C8672B;
  --color-copper-hover: #D87334;
  --color-copper-active: #B25821;
  --color-copper-dark: #7A360D;

  --color-steel: #2F5D8A;
  --color-steel-light: #5280B0;

  /* Typography Colors */
  --text-dark-primary: #111827;
  --text-dark-secondary: #4B5563;
  --text-dark-muted: #6B7280;

  --text-light-primary: #FFFFFF;
  --text-light-secondary: #D1D9E0;
  --text-light-muted: #9CA3AF;

  /* Crisp 1px Rules & Borders */
  --border-light-subtle: rgba(17, 24, 39, 0.12);
  --border-light-solid: #D1C7B7;
  --border-dark-subtle: rgba(255, 255, 255, 0.12);
  --border-dark-solid: #223145;

  /* Typography Families */
  --font-heading: 'Bricolage Grotesque', system-ui, -apple-system, sans-serif;
  --font-body: 'DM Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Easing System */
  --ease-out-expo: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-transition: cubic-bezier(0.65, 0, 0.35, 1);

  /* Layout */
  --site-max-width: 1280px;
  --mobile-pad: 20px;
  --desktop-pad: clamp(24px, 4vw, 48px);
  --header-height: 68px;
}

/* --------------------------------------------------------------------------
   2. Reset, Custom Scrollbar & Selection
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  background-color: var(--bg-ink);
  color: var(--text-light-primary);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
  background-color: var(--bg-ink);
  line-height: 1.55;
  font-size: 1.125rem; /* 18px on desktop */
  color: var(--text-light-primary);
  position: relative;
}

@media (max-width: 767px) {
  body {
    font-size: 1.0625rem; /* 17px on mobile */
  }
}

::selection {
  background-color: var(--color-copper);
  color: #FFFFFF;
}

/* Styled Industrial Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-ink-deep);
}
::-webkit-scrollbar-thumb {
  background: #3A4756;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-copper);
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
}

ul {
  list-style: none;
}

/* Top Thin Copper Scroll Progress Line */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background-color: var(--color-copper);
  z-index: 999;
  pointer-events: none;
  transition: width 0.1s linear;
}

/* Paper Grain (Desktop Only, Subtle 3%) */
.paper-grain {
  display: none;
}

@media (min-width: 1024px) {
  .paper-grain {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 998;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  }
}

/* --------------------------------------------------------------------------
   3. Custom Interactive Cursor (Desktop Only)
   -------------------------------------------------------------------------- */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 10000;
  display: none;
}

@media (pointer: fine) and (min-width: 1025px) {
  .custom-cursor {
    display: block;
  }
}

.cursor-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  background-color: var(--color-copper);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: opacity 0.15s ease;
}

.cursor-ring {
  position: absolute;
  width: 32px;
  height: 32px;
  border: 1.5px solid var(--color-copper);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: width 0.25s var(--ease-out-expo), height 0.25s var(--ease-out-expo), background-color 0.2s ease;
}

.cursor-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  color: #FFFFFF;
  letter-spacing: 0.05em;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.custom-cursor.is-hovering .cursor-ring {
  width: 60px;
  height: 60px;
  background-color: rgba(200, 103, 43, 0.2);
}

.custom-cursor.is-hovering .cursor-dot {
  opacity: 0;
}

.custom-cursor.has-label .cursor-label {
  opacity: 1;
  transform: scale(1);
}

/* --------------------------------------------------------------------------
   4. Buttons & Micro-Interactions (Water Level Fill, 2px Press Down)
   -------------------------------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  padding: 0.95rem 1.6rem;
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  min-height: 48px;
  text-decoration: none;
  z-index: 1;
}

.btn:active {
  transform: translateY(2px) !important;
  box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.4) !important;
}

/* Water Level Rising Fill on Hover */
.btn-water-fill {
  position: relative;
}

.btn-fill-bg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-copper-hover);
  transform: translateY(100%);
  transition: transform 0.3s var(--ease-out-expo);
  z-index: -1;
}

.btn-water-fill:hover .btn-fill-bg {
  transform: translateY(0%);
}

.btn-copper {
  background-color: var(--color-copper);
  color: #FFFFFF;
  border: 1px solid #994715;
  box-shadow: 3px 3px 0 #000000;
}

.btn-secondary-dark {
  background-color: transparent;
  color: #FFFFFF;
  border: 1px solid var(--border-dark-solid);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.4);
}

.btn-secondary-dark .btn-fill-bg {
  background-color: var(--bg-ink-surface);
}

.btn-emergency {
  background-color: #FFFFFF;
  color: #0E1620;
  border: 2px solid #0E1620;
  box-shadow: 4px 4px 0 #0E1620;
  font-size: 1.15rem;
  padding: 1.1rem 2rem;
}

.btn-emergency .btn-fill-bg {
  background-color: #F7F3EA;
}

.btn-full {
  width: 100%;
}

/* Link underline draws in from left */
.nav-link {
  position: relative;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-light-secondary);
  padding: 0.35rem 0;
  transition: color 0.15s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-copper);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s var(--ease-out-expo);
}

.nav-link:hover {
  color: #FFFFFF;
}

.nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* --------------------------------------------------------------------------
   5. Variable-Font Kinetic Type (Weight Eases on Viewport Entry & Hover)
   -------------------------------------------------------------------------- */
.kinetic-headline {
  font-variation-settings: 'wght' var(--h-weight, 500);
  transition: font-variation-settings 0.5s var(--ease-out-expo);
}

.kinetic-headline.in-view {
  --h-weight: 780;
}

.kinetic-word {
  display: inline-block;
  color: var(--color-copper);
  transition: font-variation-settings 0.2s ease, transform 0.2s ease;
}

.kinetic-word:hover {
  font-variation-settings: 'wght' 850;
  transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   6. SITE HEADER
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: rgba(14, 22, 32, 0.96);
  border-bottom: 1px solid var(--border-dark-solid);
  z-index: 100;
  display: flex;
  align-items: center;
}

.header-inner {
  width: 100%;
  max-width: var(--site-max-width);
  margin: 0 auto;
  padding: 0 var(--desktop-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media (max-width: 767px) {
  .header-inner {
    padding: 0 var(--mobile-pad);
  }
}

.brand-lockup {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.01em;
}

.brand-sub {
  font-size: 0.85rem;
  color: #9CA3AF;
  font-weight: 500;
}

@media (max-width: 480px) {
  .brand-sub {
    display: none;
  }
}

.desktop-nav {
  display: none;
}

@media (min-width: 960px) {
  .desktop-nav {
    display: block;
  }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-call-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.95rem;
  background-color: var(--color-copper);
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 4px;
  border: 1px solid #994715;
  box-shadow: 2px 2px 0 #000000;
  min-height: 40px;
}

.mobile-menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--border-dark-solid);
  border-radius: 4px;
  background-color: var(--bg-ink-surface);
}

@media (min-width: 960px) {
  .mobile-menu-toggle {
    display: none;
  }
}

.menu-line {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #FFFFFF;
}

/* Mobile Nav Drawer */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #0E1620;
  z-index: 200;
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1.5rem;
  transform: translateY(-100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

.mobile-nav-drawer.is-open {
  transform: translateY(0);
}

.mobile-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-dark-solid);
}

.drawer-brand {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: #FFFFFF;
}

.mobile-drawer-close {
  font-size: 2rem;
  color: #FFFFFF;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-drawer-body {
  padding: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-nav-link {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: #FFFFFF;
  padding: 0.35rem 0;
}

.mobile-nav-link.text-emergency {
  color: #F87171;
}

.drawer-phone-btn {
  display: block;
  text-align: center;
  padding: 1rem;
  background-color: var(--color-copper);
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  border-radius: 4px;
  box-shadow: 3px 3px 0 #000000;
}

.drawer-note {
  font-size: 0.85rem;
  color: #9CA3AF;
  text-align: center;
  margin-top: 0.65rem;
}

/* --------------------------------------------------------------------------
   7. SECTIONS & THEMES
   -------------------------------------------------------------------------- */
section {
  position: relative;
  padding: 88px 0;
  z-index: 2;
}

@media (max-width: 767px) {
  section {
    padding: 64px 0;
  }
}

.section-container {
  width: 100%;
  max-width: var(--site-max-width);
  margin: 0 auto;
  padding: 0 var(--desktop-pad);
}

@media (max-width: 767px) {
  .section-container {
    padding: 0 var(--mobile-pad);
  }
}

[data-theme="dark"] {
  background-color: var(--bg-ink);
  color: var(--text-light-primary);
}

[data-theme="bone"] {
  background-color: var(--bg-bone);
  color: var(--text-dark-primary);
}

[data-theme="sand"] {
  background-color: var(--bg-sand);
  color: var(--text-dark-primary);
}

.section-tag {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-steel);
  margin-bottom: 0.5rem;
}

.section-tag-copper {
  color: var(--color-copper);
}

.section-heading {
  font-family: var(--font-heading);
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: inherit;
  margin-bottom: 0.85rem;
}

.section-subtext {
  font-size: clamp(1.05rem, 1.8vw, 1.18rem);
  line-height: 1.55;
  color: var(--text-dark-secondary);
  max-width: 62ch;
}

.section-header-centered {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3rem;
}

.section-header-centered .section-subtext {
  margin: 0 auto;
}

.section-header-left {
  max-width: 760px;
  margin-bottom: 2.75rem;
}

.text-white { color: #FFFFFF !important; }
.text-secondary { color: var(--text-light-secondary) !important; }
.text-copper { color: var(--color-copper) !important; }

/* --------------------------------------------------------------------------
   8. FEATURE 1: HERO - "THE WALL X-RAY"
   -------------------------------------------------------------------------- */
.section-hero {
  background-color: var(--bg-ink);
  padding-top: calc(var(--header-height) + 16px);
  padding-bottom: 48px;
}

.hero-container {
  width: 100%;
  max-width: var(--site-max-width);
  margin: 0 auto;
  padding: 0 var(--desktop-pad);
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 992px) {
  .hero-container {
    grid-template-columns: 1.2fr 1fr;
    gap: 3.5rem;
  }
}

@media (max-width: 767px) {
  .hero-container {
    padding: 0 var(--mobile-pad);
    gap: 1.5rem;
  }
}

.hero-text-col {
  display: flex;
  flex-direction: column;
}

.hero-subhead-lead {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-copper);
  margin-bottom: 0.65rem;
}

.hero-heading {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  margin-bottom: 1.15rem;
}

.hero-highlight-wrap {
  display: block;
  position: relative;
  width: fit-content;
}

.hand-underline-target {
  position: relative;
}

.hand-underline-svg {
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 12px;
  pointer-events: none;
}

.hero-body {
  font-size: clamp(1.05rem, 1.8vw, 1.18rem);
  line-height: 1.55;
  color: var(--text-light-secondary);
  max-width: 58ch;
  margin-bottom: 1.75rem;
}

.hero-buttons-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

@media (max-width: 767px) {
  .hero-buttons-wrap {
    flex-direction: column;
    width: 100%;
  }
  .hero-buttons-wrap .btn {
    width: 100%;
  }
}

.btn-call-hero {
  padding: 1rem 1.85rem;
  font-size: 1.05rem;
}

.hero-xray-prompt {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-light-muted);
}

.xray-pulse-icon {
  width: 8px;
  height: 8px;
  background-color: var(--color-copper);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(200, 103, 43, 0.3);
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.9); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.6; }
  100% { transform: scale(0.9); opacity: 1; }
}

/* The Wall X-Ray Interactive Viewport */
.hero-xray-col {
  width: 100%;
}

.xray-viewport {
  position: relative;
  width: 100%;
  height: clamp(260px, 38vw, 440px);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border-dark-solid);
  background-color: var(--bg-ink-surface);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.4);
  cursor: crosshair;
}

.xray-wall-base {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.05);
}

/* Circular Scanner Lens Reveal Layer */
.xray-lens-reveal {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  clip-path: circle(var(--lens-radius, 110px) at var(--lens-x, 50%) var(--lens-y, 50%));
  transition: clip-path 0.05s linear;
}

.xray-pipes-schematic {
  width: 100%;
  height: 100%;
}

.pipes-blueprint-svg {
  width: 100%;
  height: 100%;
}

.water-pulse-dot {
  animation: pulse-flow 2.4s infinite linear;
}

.pulse-delay {
  animation-delay: 1.2s;
}

@keyframes pulse-flow {
  0% { opacity: 0; transform: translateY(-30px); }
  50% { opacity: 1; }
  100% { opacity: 0; transform: translateY(50px); }
}

/* Scanner Lens Reticle Ring & Telemetry Readouts */
.xray-reticle-ring {
  position: absolute;
  top: var(--lens-y, 50%);
  left: var(--lens-x, 50%);
  width: calc(var(--lens-radius, 110px) * 2);
  height: calc(var(--lens-radius, 110px) * 2);
  transform: translate(-50%, -50%);
  border: 1.5px solid var(--color-copper);
  border-radius: 50%;
  pointer-events: none;
}

.reticle-crosshair-h {
  position: absolute;
  top: 50%;
  left: -10px;
  width: calc(100% + 20px);
  height: 1px;
  background: rgba(200, 103, 43, 0.4);
}

.reticle-crosshair-v {
  position: absolute;
  top: -10px;
  left: 50%;
  width: 1px;
  height: calc(100% + 20px);
  background: rgba(200, 103, 43, 0.4);
}

.reticle-telemetry {
  position: absolute;
  bottom: 12px;
  left: 14px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: #D1D9E0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.telem-accent {
  color: #FBBF24;
  font-weight: 600;
}

/* Circular Stamp Badge */
.circular-stamp {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 86px;
  height: 86px;
  pointer-events: none;
  transform: rotate(-8deg);
  z-index: 10;
}

.stamp-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  animation: stamp-slow-rotate 35s linear infinite;
}

@keyframes stamp-slow-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.stamp-text {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  fill: #FFFFFF;
}

.stamp-center-star {
  font-size: 16px;
  fill: #FFFFFF;
}

/* --------------------------------------------------------------------------
   9. FEATURE 3: VALVE-TURN SECTION TRANSITIONS
   -------------------------------------------------------------------------- */
.valve-transition-divider {
  position: relative;
  width: 100%;
  height: 70px;
  background-color: var(--bg-ink-deep);
  border-top: 1px solid var(--border-dark-solid);
  border-bottom: 1px solid var(--border-dark-solid);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

.valve-wheel-assembly {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.valve-wheel-svg {
  width: 50px;
  height: 50px;
  transition: transform 0.1s linear;
}

.valve-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-copper);
  letter-spacing: 0.08em;
}

/* --------------------------------------------------------------------------
   10. OWNER'S STORY (Bone: #F2EDE4)
   -------------------------------------------------------------------------- */
.section-story {
  border-top: 1px solid var(--border-light-subtle);
  border-bottom: 1px solid var(--border-light-subtle);
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 960px) {
  .story-grid {
    grid-template-columns: 1fr 1.35fr;
    gap: 3.5rem;
  }
}

.story-image-card {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border-light-solid);
  background-color: #FFFFFF;
  box-shadow: 4px 4px 0 #D1C7B7;
}

.story-owner-photo {
  width: 100%;
  height: clamp(280px, 38vw, 440px);
  object-fit: cover;
  filter: saturate(0.85);
}

.story-image-caption {
  padding: 1rem 1.25rem;
  background-color: #FFFFFF;
  border-top: 1px solid var(--border-light-solid);
  display: flex;
  flex-direction: column;
}

.story-image-caption strong {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--text-dark-primary);
}

.story-image-caption span {
  font-size: 0.85rem;
  color: var(--color-copper);
}

.story-paragraphs {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin: 1.5rem 0 2rem;
}

.story-p {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--text-dark-primary);
}

.scrub-word {
  display: inline;
  color: rgba(17, 24, 39, 0.45); /* 45% readable unread state */
  transition: color 0.15s ease;
}

.scrub-word.is-active {
  color: #111827;
}

.signature-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-light-subtle);
}

.signature-svg {
  width: min(100%, 280px);
  height: auto;
}

.sig-note {
  font-size: 0.85rem;
  color: var(--text-dark-muted);
}

/* --------------------------------------------------------------------------
   11. FEATURE 2: SCROLL-DRIVEN 3D HOUSE CUTAWAY (The Backbone)
   -------------------------------------------------------------------------- */
.section-cutaway-backbone {
  border-bottom: 1px solid var(--border-light-subtle);
  padding: 72px 0;
}

.cutaway-split-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 992px) {
  .cutaway-split-container {
    grid-template-columns: 1.15fr 1fr;
    gap: 3.5rem;
  }
}

.cutaway-content-col {
  display: flex;
  flex-direction: column;
}

/* Hotspot Zone Buttons */
.hotspot-buttons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

@media (max-width: 480px) {
  .hotspot-buttons-grid {
    grid-template-columns: 1fr;
  }
}

.btn-zone-hotspot {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background-color: #FFFFFF;
  border: 1px solid var(--border-light-solid);
  border-radius: 4px;
  box-shadow: 2px 2px 0 #C4B9A4;
  text-align: left;
  transition: all 0.15s ease;
  min-height: 48px;
}

.zone-num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-copper);
}

.zone-text {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark-primary);
}

.btn-zone-hotspot:hover,
.btn-zone-hotspot.active {
  border-color: var(--color-copper);
  background-color: #FDFBF7;
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 #C4B9A4;
}

.btn-zone-hotspot.active .zone-text {
  color: var(--color-copper);
}

.zone-ping {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 6px;
  height: 6px;
  background-color: var(--color-copper);
  border-radius: 50%;
  opacity: 0;
}

.btn-zone-hotspot.active .zone-ping {
  opacity: 1;
  animation: pulse-ring 1.8s infinite;
}

/* Diagnosis Detail Card */
.house-detail-card {
  background-color: #FFFFFF;
  border: 1px solid var(--border-light-solid);
  border-radius: 4px;
  padding: 1.75rem;
  box-shadow: 4px 4px 0 #C4B9A4;
}

.detail-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.detail-badge {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-steel);
}

.detail-telemetry-mono {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dark-muted);
}

.detail-title {
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-dark-primary);
  margin-bottom: 1.25rem;
}

.detail-subhead {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: #6B7280;
  margin-bottom: 0.4rem;
}

.detail-body {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-dark-primary);
  margin-bottom: 1.5rem;
}

.detail-pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 1.15rem 0;
  border-top: 1px solid var(--border-light-subtle);
  border-bottom: 1px solid var(--border-light-subtle);
  margin-bottom: 1.5rem;
}

@media (min-width: 480px) {
  .detail-pricing-grid {
    grid-template-columns: 1.4fr 1fr;
  }
}

.price-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-dark-muted);
}

.price-val {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark-primary);
}

.action-caption {
  font-size: 0.8rem;
  color: var(--text-dark-muted);
  margin-top: 0.65rem;
  text-align: center;
}

/* 3D Cutaway Column (Sticky Canvas) */
.cutaway-3d-col {
  width: 100%;
}

.house-3d-sticky-frame {
  position: relative;
  width: 100%;
  height: clamp(340px, 50vh, 560px);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border-light-solid);
  background-color: #E2DBD0;
  box-shadow: 4px 4px 0 #C4B9A4;
}

@media (min-width: 992px) {
  .house-3d-sticky-frame {
    position: sticky;
    top: calc(var(--header-height) + 24px);
  }
}

.house-3d-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.cutaway-3d-overlay {
  position: absolute;
  bottom: 12px;
  left: 14px;
  right: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dark-primary);
  background-color: rgba(255, 255, 255, 0.85);
  padding: 0.4rem 0.75rem;
  border-radius: 3px;
  border: 1px solid var(--border-light-solid);
}

.cam-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background-color: var(--color-copper);
  border-radius: 50%;
  margin-right: 6px;
}

/* --------------------------------------------------------------------------
   12. FEATURE 7: PHYSICAL ROTARY WATER HEATER KNOB (Bone: #F2EDE4)
   -------------------------------------------------------------------------- */
.section-heater {
  border-bottom: 1px solid var(--border-light-subtle);
}

.heater-control-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 960px) {
  .heater-control-layout {
    grid-template-columns: 1fr 1.25fr;
  }
}

.heater-dial-card {
  background-color: #FFFFFF;
  border: 1px solid var(--border-light-solid);
  border-radius: 4px;
  padding: 2rem;
  box-shadow: 4px 4px 0 #D1C7B7;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Physical Rotary Knob Face */
.rotary-knob-wrapper {
  position: relative;
  width: 160px;
  height: 160px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
}

.rotary-knob-wrapper:active {
  cursor: grabbing;
}

.knob-face {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #F7F3EA 0%, #D8CFBE 60%, #B8AC9A 100%);
  border: 4px solid var(--color-copper);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2), inset 0 2px 4px rgba(255, 255, 255, 0.6);
  transform: rotate(0deg);
  transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.knob-indicator-pip {
  position: absolute;
  top: 10px;
  left: 50%;
  width: 6px;
  height: 18px;
  background-color: var(--color-copper);
  border-radius: 3px;
  transform: translateX(-50%);
}

.knob-ribbing {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 1px dashed rgba(0, 0, 0, 0.2);
  transform: translate(-50%, -50%);
}

.knob-notch-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.notch {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-dark-muted);
}

.notch-105 { top: 80%; left: 0; }
.notch-120 { top: 0; left: 50%; transform: translateX(-50%); color: var(--color-copper); font-weight: 800; }
.notch-130 { top: 25%; right: 0; }
.notch-145 { top: 80%; right: 0; color: #DC2626; }

.heater-dial-readout {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1.5rem;
}

.dial-temp-value {
  font-family: var(--font-heading);
  font-size: 3.8rem;
  font-weight: 800;
  line-height: 0.95;
  color: var(--text-dark-primary);
}

.dial-temp-unit {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-copper);
}

.dial-temp-status {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-steel);
  margin-top: 0.4rem;
}

.dial-stepper-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: 320px;
}

.btn-step {
  width: 44px;
  height: 44px;
  border-radius: 4px;
  background-color: var(--bg-bone);
  border: 1px solid var(--border-light-solid);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-dark-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 2px 2px 0 #D1C7B7;
}

.btn-step:hover {
  background-color: #E2DBD0;
}

.temp-slider {
  flex: 1;
  height: 8px;
  -webkit-appearance: none;
  appearance: none;
  background: #D8CFBE;
  border-radius: 4px;
  outline: none;
}

.temp-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-copper);
  border: 2px solid #FFFFFF;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  cursor: grab;
}

.temp-slider::-moz-range-thumb {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-copper);
  border: 2px solid #FFFFFF;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  cursor: grab;
}

.dial-scale-labels {
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: 320px;
  margin-top: 0.85rem;
  font-size: 0.75rem;
  color: var(--text-dark-muted);
}

.optimal-label {
  font-weight: 700;
  color: var(--color-copper);
}

/* Tank Simulation Graphic */
.heater-advice-card {
  background-color: #FFFFFF;
  border: 1px solid var(--border-light-solid);
  border-radius: 4px;
  padding: 2rem;
  box-shadow: 4px 4px 0 #D1C7B7;
  position: relative;
}

.tank-interactive-mini {
  position: relative;
  width: 100%;
  height: 70px;
  margin-bottom: 1.5rem;
  background-color: #EAE4D8;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border-light-solid);
}

.mini-water-fill {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 70%;
  background-color: #2F5D8A;
  opacity: 0.7;
  transition: height 0.3s ease, background-color 0.3s ease;
}

.mini-steam-plumes {
  position: absolute;
  top: 8px;
  left: 20px;
  width: 60px;
  height: 30px;
  pointer-events: none;
}

.steam-vap {
  position: absolute;
  width: 12px;
  height: 12px;
  background: rgba(17, 24, 39, 0.2);
  border-radius: 50%;
  filter: blur(4px);
  opacity: 0;
}

.s1 { animation: steam-bob 2s infinite ease-out 0s; }
.s2 { left: 16px; animation: steam-bob 2s infinite ease-out 0.8s; }

@keyframes steam-bob {
  0% { transform: translateY(15px); opacity: 0; }
  50% { opacity: 0.5; }
  100% { transform: translateY(-20px); opacity: 0; }
}

.advice-tag {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-copper);
  margin-bottom: 0.4rem;
  display: block;
}

.advice-heading {
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 800;
  color: var(--text-dark-primary);
  margin-bottom: 0.85rem;
}

.advice-text {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-dark-primary);
  margin-bottom: 1.5rem;
}

.heater-perks-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-light-subtle);
}

.heater-perks-list li {
  display: flex;
  flex-direction: column;
}

.heater-perks-list strong {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: var(--text-dark-primary);
}

.heater-perks-list span {
  font-size: 0.9rem;
  color: var(--text-dark-secondary);
}

/* --------------------------------------------------------------------------
   13. FEATURE 9: EDITORIAL SERVICES LIST (Dark: #0E1620)
   -------------------------------------------------------------------------- */
.section-services {
  background-color: var(--bg-ink);
  border-bottom: 1px solid var(--border-dark-solid);
}

.services-desktop-preview {
  display: none;
  position: fixed;
  width: 280px;
  height: 190px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border-dark-solid);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.6);
  pointer-events: none;
  z-index: 50;
  opacity: 0;
  clip-path: inset(0 100% 0 0);
  transition: opacity 0.2s ease, clip-path 0.35s var(--ease-out-expo);
}

@media (min-width: 1024px) {
  .services-desktop-preview {
    display: block;
  }
}

.services-desktop-preview.is-active {
  opacity: 1;
  clip-path: inset(0 0 0 0);
}

.services-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85);
}

.services-list {
  display: flex;
  flex-direction: column;
}

.service-row-item {
  border-bottom: 1px solid var(--border-dark-solid);
  padding: 1.35rem 0;
  cursor: pointer;
  transition: background-color 0.15s ease, padding-left 0.25s var(--ease-out-expo);
}

.service-row-item:hover {
  background-color: rgba(255, 255, 255, 0.02);
  padding-left: 1rem;
}

.service-row-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.service-title-group {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
}

.service-num {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-copper);
}

.service-item-name {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 3vw, 2.25rem);
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.15;
}

.service-row-item.is-featured .service-item-name {
  font-size: clamp(1.65rem, 3.8vw, 2.85rem);
}

.service-expand-icon {
  font-size: 1.25rem;
  color: #9CA3AF;
  transition: transform 0.25s ease;
}

.service-row-item.is-open .service-expand-icon {
  transform: rotate(45deg);
  color: var(--color-copper);
}

.service-row-body {
  display: none;
  padding-top: 0.85rem;
  max-width: 62ch;
}

.service-row-item.is-open .service-row-body {
  display: block;
}

.service-body-text {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-light-secondary);
}

.service-mobile-thumb {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 4px;
  margin-top: 1rem;
  border: 1px solid var(--border-dark-solid);
}

@media (min-width: 1024px) {
  .service-mobile-thumb {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   14. FEATURE 5: 2AM EMERGENCY MOMENT & LIVE PRESSURE GAUGE
   -------------------------------------------------------------------------- */
.section-emergency {
  background-color: var(--bg-emergency);
  padding: clamp(64px, 8vw, 96px) 0;
  color: #FFFFFF;
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}

.emergency-gauge-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 960px) {
  .emergency-gauge-layout {
    grid-template-columns: 1fr 1.35fr;
  }
}

.pressure-gauge-card {
  background-color: #0E1620;
  border: 1px solid #33445A;
  border-radius: 6px;
  padding: 1.75rem;
  box-shadow: 4px 4px 0 #080D14;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pressure-gauge-svg {
  width: min(100%, 260px);
  height: auto;
  overflow: visible;
}

.gauge-num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  fill: #374151;
}

.danger-num {
  fill: #DC2626;
  font-weight: 800;
}

.gauge-unit {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  fill: #6B7280;
}

.gauge-digital-readout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  margin-top: 1.25rem;
}

.digital-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #9CA3AF;
}

.digital-val {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 700;
  color: #F87171;
}

.btn-gauge-reset {
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background-color: var(--bg-ink-surface);
  border: 1px solid #33445A;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #FFFFFF;
}

.btn-gauge-reset:hover {
  background-color: var(--color-copper);
}

.emergency-text-col {
  display: flex;
  flex-direction: column;
}

.emergency-badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: #FCA5A5;
  margin-bottom: 0.75rem;
}

.emergency-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5.5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 1.15rem;
}

.emergency-desc {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  line-height: 1.55;
  color: #E2E8F0;
  margin-bottom: 2.5rem;
  max-width: 60ch;
}

.emergency-cta-row {
  margin-bottom: 3rem;
}

.emergency-specs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

@media (min-width: 640px) {
  .emergency-specs-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.spec-cell strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.spec-cell span {
  font-size: 0.9rem;
  color: #CBD5E1;
  line-height: 1.5;
}

/* Light Camera Shake Class (4px, 300ms, single trigger) */
.light-screen-shake {
  animation: single-shake 0.3s var(--ease-out-expo);
}

@keyframes single-shake {
  0% { transform: translate3d(0, 0, 0); }
  25% { transform: translate3d(-3px, 2px, 0); }
  50% { transform: translate3d(3px, -2px, 0); }
  75% { transform: translate3d(-2px, 1px, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

/* --------------------------------------------------------------------------
   15. FEATURE 11: REVIEWS (Draggable with Snap & Star Animations)
   -------------------------------------------------------------------------- */
.section-reviews {
  border-bottom: 1px solid var(--border-light-subtle);
}

.reviews-slider-track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 1.25rem;
  cursor: grab;
}

.reviews-slider-track:active {
  cursor: grabbing;
}

.review-card {
  flex: 0 0 calc(100% - 40px);
  scroll-snap-align: start;
  background-color: #FFFFFF;
  border: 1px solid var(--border-light-solid);
  border-radius: 4px;
  padding: 1.75rem;
  box-shadow: 4px 4px 0 #D1C7B7;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

@media (min-width: 768px) {
  .review-card {
    flex: 0 0 460px;
  }
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1rem;
}

.review-author {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--text-dark-primary);
  display: block;
}

.review-location {
  font-size: 0.85rem;
  color: var(--color-copper);
}

.review-stars {
  color: #D97706;
  font-size: 1.1rem;
  letter-spacing: 2px;
}

.star-fill {
  display: inline-block;
  opacity: 0.3;
  transform: scale(0.85);
  transition: opacity 0.3s ease, transform 0.3s var(--ease-out-expo);
}

.review-card.active-card .star-fill {
  opacity: 1;
  transform: scale(1);
}

.s1 { transition-delay: 0.05s; }
.s2 { transition-delay: 0.1s; }
.s3 { transition-delay: 0.15s; }
.s4 { transition-delay: 0.2s; }
.s5 { transition-delay: 0.25s; }

.review-quote {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-dark-primary);
  margin-bottom: 1.5rem;
}

.review-meta {
  font-size: 0.85rem;
  color: var(--text-dark-muted);
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-light-subtle);
}

.carousel-hint {
  font-size: 0.85rem;
  color: var(--text-dark-secondary);
  margin-top: 0.75rem;
}

/* --------------------------------------------------------------------------
   16. FEATURE 8: PRICING BREAKDOWN WITH SLIDING COIN ANIMATION
   -------------------------------------------------------------------------- */
.section-pricing {
  border-bottom: 1px solid var(--border-light-subtle);
}

.pricing-split-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}

@media (min-width: 960px) {
  .pricing-split-layout {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.section-body {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-dark-primary);
  margin: 1rem 0 1.75rem;
}

.pricing-math-card {
  background-color: #FFFFFF;
  border: 1px solid var(--border-light-solid);
  border-radius: 4px;
  padding: 1.75rem;
  box-shadow: 4px 4px 0 #D1C7B7;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  position: relative;
  overflow: hidden;
}

.math-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  color: var(--text-dark-primary);
}

/* Sliding Copper Token / Chip */
.math-credit-animation-track {
  position: relative;
  height: 38px;
  background-color: #F7F3EA;
  border-radius: 4px;
  border: 1px dashed var(--border-light-solid);
  overflow: hidden;
}

.copper-credit-chip {
  position: absolute;
  top: 4px;
  left: 6px;
  height: 28px;
  padding: 0 0.85rem;
  background-color: var(--color-copper);
  color: #FFFFFF;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.2);
  transform: translateX(0);
  transition: transform 0.6s var(--ease-out-expo);
}

.math-credit-animation-track.is-credited .copper-credit-chip {
  transform: translateX(180px);
}

.math-separator {
  height: 1px;
  background-color: var(--border-light-subtle);
  margin: 0.35rem 0;
}

.math-total-line {
  font-weight: 700;
}

.total-zero {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  color: var(--color-copper);
}

.btn-replay-math {
  align-self: flex-start;
  margin-top: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-steel);
}

.btn-replay-math:hover {
  color: var(--color-copper);
}

/* Before / After Comparison Slider */
.before-after-col {
  width: 100%;
}

.before-after-heading {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-dark-primary);
  margin-bottom: 0.35rem;
}

.before-after-sub {
  font-size: 0.95rem;
  color: var(--text-dark-secondary);
  margin-bottom: 1.25rem;
}

.before-after-wrapper {
  position: relative;
  width: 100%;
  height: 280px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border-light-solid);
  box-shadow: 4px 4px 0 #D1C7B7;
  user-select: none;
  cursor: ew-resize;
  outline: none;
}

.compare-pane {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.compare-after {
  background-color: #E2DBD0;
  z-index: 1;
}

.compare-before {
  background-color: #D3CAB9;
  z-index: 2;
  width: 50%;
  overflow: hidden;
  border-right: 2px solid #FFFFFF;
}

.compare-tag {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.5rem;
  background-color: #FFFFFF;
  border-radius: 2px;
  width: fit-content;
}

.tag-after { color: var(--color-copper); }
.tag-before { color: #4B5563; }

.compare-caption {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark-primary);
}

.pipe-mockup {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100px;
}

.copper-body {
  width: 80%;
  height: 38px;
  background: linear-gradient(to bottom, #C8672B 0%, #DFA17A 40%, #A34E1A 100%);
  border-radius: 2px;
  position: relative;
  border: 1px solid #7E360B;
}

.rust-body {
  width: 80%;
  height: 38px;
  background: #5A524A;
  border-radius: 2px;
  position: relative;
  border: 1px solid #332D27;
}

.compare-slider-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 48px;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: ew-resize;
}

.handle-bar {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: #FFFFFF;
}

.handle-grab-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: #FFFFFF;
  border: 2px solid var(--color-copper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--color-copper);
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

/* --------------------------------------------------------------------------
   17. FEATURE 12: CONTACT FORM & COPPER TAP DROP CATCHMENT
   -------------------------------------------------------------------------- */
.section-contact {
  background-color: var(--bg-ink);
  padding-bottom: 120px;
}

.contact-tap-fixture-wrap {
  width: 120px;
  height: 120px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.copper-tap-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.tap-falling-droplet {
  animation: drop-fall 2.2s infinite cubic-bezier(0.4, 0, 0.9, 0);
}

@keyframes drop-fall {
  0% { transform: translateY(0) scale(0.6); opacity: 0; }
  30% { transform: translateY(8px) scale(1); opacity: 1; }
  85% { transform: translateY(50px) scale(0.9); opacity: 1; }
  100% { transform: translateY(65px) scale(0.3); opacity: 0; }
}

.contact-header-center {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3rem;
}

.contact-header-center .section-subtext {
  margin: 0 auto;
}

.contact-card-box {
  max-width: 760px;
  margin: 0 auto;
  background-color: var(--bg-ink-surface);
  border: 1px solid var(--border-dark-solid);
  border-radius: 4px;
  padding: clamp(1.5rem, 4vw, 2.75rem);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.5);
  position: relative;
}

.form-fields-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.35rem;
}

@media (min-width: 640px) {
  .form-fields-grid {
    grid-template-columns: 1fr 1fr;
  }
  .form-item-full {
    grid-column: 1 / -1;
  }
}

.form-item {
  display: flex;
  flex-direction: column;
}

.field-label {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 0.45rem;
}

.required-star {
  color: var(--color-copper);
}

.field-input {
  width: 100%;
  padding: 0.85rem 1rem;
  background-color: #0E1620;
  border: 1px solid var(--border-dark-solid);
  border-radius: 4px;
  color: #FFFFFF;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.15s ease;
}

.field-input:focus {
  border-color: var(--color-copper);
}

.field-select {
  cursor: pointer;
}

.error-msg {
  display: none;
  font-size: 0.8rem;
  color: #F87171;
  margin-top: 0.35rem;
}

.form-item.has-error .field-input {
  border-color: #F87171;
}

.form-item.has-error .error-msg {
  display: block;
}

.form-submit-row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.75rem;
}

@media (min-width: 600px) {
  .form-submit-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.btn-submit {
  font-size: 1.05rem;
  padding: 1rem 1.85rem;
}

.form-guarantee-note {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-light-secondary);
}

.note-shield {
  color: var(--color-copper);
  font-weight: 800;
}

/* Success Overlay with Water Ripple */
.form-success-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-ink-surface);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 20;
}

.form-success-overlay.is-active {
  opacity: 1;
  pointer-events: all;
}

.success-icon-circle {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background-color: var(--color-copper);
  color: #FFFFFF;
  font-size: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  animation: ripple-in 0.6s var(--ease-out-expo);
}

@keyframes ripple-in {
  0% { transform: scale(0.6); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.success-title {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  color: #FFFFFF;
  margin-bottom: 0.65rem;
}

.success-body {
  font-size: 1rem;
  color: var(--text-light-secondary);
  max-width: 480px;
  margin-bottom: 1.5rem;
}

/* --------------------------------------------------------------------------
   18. FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: var(--bg-ink-deep);
  border-top: 1px solid var(--border-dark-solid);
  padding: 64px 0 calc(64px + 50px);
  color: var(--text-light-secondary);
}

@media (min-width: 768px) {
  .site-footer {
    padding: 64px 0;
  }
}

.footer-container {
  width: 100%;
  max-width: var(--site-max-width);
  margin: 0 auto;
  padding: 0 var(--desktop-pad);
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .footer-container {
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3.5rem;
  }
}

@media (max-width: 767px) {
  .footer-container {
    padding: 0 var(--mobile-pad);
  }
}

.footer-brand {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: #FFFFFF;
  display: block;
}

.footer-tagline {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-copper);
  margin: 0.25rem 0 0.85rem;
}

.footer-description {
  font-size: 0.95rem;
  line-height: 1.55;
  color: #9CA3AF;
  max-width: 46ch;
  margin-bottom: 1.5rem;
}

.footer-phone-big {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: #FFFFFF;
  display: inline-block;
  transition: color 0.15s ease;
}

.footer-phone-big:hover {
  color: var(--color-copper);
}

.footer-subhead {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 1rem;
}

.neighborhood-grid {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.neighborhood-link {
  font-size: 0.95rem;
  color: #CBD5E1;
  transition: color 0.15s ease;
}

.neighborhood-link:hover {
  color: var(--color-copper);
}

.license-highlight {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-copper);
  margin-bottom: 0.5rem;
}

.license-detail {
  font-size: 0.85rem;
  line-height: 1.5;
  color: #9CA3AF;
  margin-bottom: 1.25rem;
}

.copyright-line {
  font-size: 0.8rem;
  color: #6B7280;
}

/* --------------------------------------------------------------------------
   19. MOBILE STICKY BOTTOM BAR
   -------------------------------------------------------------------------- */
.mobile-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 0.65rem var(--mobile-pad) calc(0.65rem + env(safe-area-inset-bottom, 0px));
  background-color: rgba(14, 22, 32, 0.98);
  border-top: 1px solid var(--border-dark-solid);
  z-index: 90;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 0.65rem;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.4);
  transition: transform 0.25s ease;
}

.mobile-sticky-bar.is-hidden {
  transform: translateY(100%);
}

@media (min-width: 768px) {
  .mobile-sticky-bar {
    display: none;
  }
}

.sticky-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 0.5rem;
  border-radius: 4px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  min-height: 46px;
}

.sticky-btn-call {
  background-color: var(--color-copper);
  color: #FFFFFF;
  border: 1px solid #994715;
}

.sticky-btn-quote {
  background-color: var(--bg-ink-surface);
  color: #FFFFFF;
  border: 1px solid var(--border-dark-solid);
}

/* --------------------------------------------------------------------------
   20. REDUCED MOTION PREFERENCES
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .custom-cursor,
  .circular-stamp,
  .light-screen-shake {
    display: none !important;
    animation: none !important;
  }
}
