/* ============================================
   FMC Technologies — Liquid Glass Design System
   Shared stylesheet for all inner pages
   ============================================ */

:root {
  --bg: #000000;
  --bg-raised: #0a0a0a;
  --bg-card: #111111;
  --bg-card-hover: #161616;
  --border: rgba(255,255,255,0.08);
  --text-primary: #f5f5f7;
  --text-secondary: #a1a1a6;   /* lifted from #86868b — better contrast on dark cards */
  --text-tertiary: #8e8e93;    /* lifted from #6e6e73 — captions/eyebrows no longer read disabled */
  --teal: #0d8a7c;
  --teal-bright: #2dd4bf;
  --teal-glow: rgba(45,212,191,0.12);

  /* Brand product palettes — reference these, never inline */
  --bp-sage: #9CAF88;
  --bp-sage-bright: #b6cca2;
  --pulse-red: #e74c3c;
  --pulse-red-bright: #ff6b57;
  --pulse-red-alarm: #c0392b;
  --rx-purple: #a78bfa;
  --rx-purple-bright: #c4b5ff;
  --rx-purple-deep: #7c6bc4;

  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Inter', 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-mono: 'SF Mono', SFMono-Regular, ui-monospace, Menlo, monospace;

  /* Liquid Glass tokens */
  --glass-bg: rgba(255,255,255,0.06);
  --glass-bg-hover: rgba(255,255,255,0.10);
  --glass-border: rgba(255,255,255,0.14);
  --glass-highlight: rgba(255,255,255,0.22);
  --glass-shadow: rgba(0,0,0,0.50);
  --glass-blur: 24px;
  --glass-saturation: 180%;
  --glass-radius: 22px;

  /* ── De-AI v1: deliberate radius scale ─────────────────────────────
     Replaces the previous "everything's 22px" treatment so a hero
     showcase, a dashboard panel, and a button each carry a different
     amount of softness. The intent is to make the design feel
     hand-tuned by a controls-and-software contractor rather than
     defaulted-out by a UI kit. */
  --radius-hero:    28px;   /* large hero / showcase cards only */
  --radius-panel:   18px;   /* dashboards, app/report panels */
  --radius-control: 8px;    /* buttons, chips, inputs */

  /* Mono stack for numerical readouts. Used wherever the UI is
     showing a meter value, dollars, kW, kWh, timestamp, or any other
     value that wants tabular alignment. Anchored to SF Mono on Apple
     hardware; falls through to high-quality system mono everywhere
     else. */
  --data-font: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

/* ── De-AI v1: data-readout utility ───────────────────────────────
   Apply to the inline numeric value, NOT its surrounding label. The
   tabular-nums hint stops digits from jittering when a value
   refreshes (1.234 → 1.245 → 1.256 stay column-aligned). This is one
   of the cheapest ways to make a number feel like a meter reading
   rather than a generic SaaS metric. */
.data-readout,
.metric-value,
.kpi-value,
.meter-value,
.timestamp,
.point-label {
  font-family: var(--data-font);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.005em;
}

/* (Removed v1 site-wide mono opt-in for legacy dashboard selectors.
   The .data-readout / .metric-value / .kpi-value / .meter-value /
   .timestamp / .point-label utility classes above are still here
   if a page wants to opt in explicitly, but the dashboards keep
   their original number fonts.) */

/* ── De-AI v1: matte technical panel surface ────────────────────────
   A second visual language for technical / reporting content. The
   liquid-glass surface (--glass-bg) signals premium product; this
   .tech-panel signals "this is data from a real meter or BAS, not a
   marketing card." Use on dashboards, service-plan panels, success-
   story dossier strips, and report previews. Deliberately flatter,
   tighter, and lower-shadow than the glass treatment. */
.tech-panel {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.018)),
    rgba(8, 14, 18, 0.72);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-panel);
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.tech-panel--bordered {
  border-color: rgba(255,255,255,0.18);
}
.tech-panel--report {
  /* Sharper corners for explicit "report excerpt" framing. Pairs with
     a small all-caps label above the panel ("Field report, Apr 28"
     etc.) for the project-dossier feel. */
  border-radius: var(--radius-control);
}

/* ── De-AI v1: subtle blueprint grid background ─────────────────────
   Use as a backdrop for technical panels, schematic strips, or a
   product preview that wants to read as field-engineering rather
   than marketing-graphic. Two perpendicular faint lines on a 28 px
   pitch; opacity is intentionally low so it reads as a texture, not
   a feature. */
.schematic-bg {
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 28px 28px;
}
.schematic-bg--soft {
  background-image:
    linear-gradient(rgba(255,255,255,0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.022) 1px, transparent 1px);
  background-size: 28px 28px;
}

/* ── De-AI v1: technical label ──────────────────────────────────────
   Small uppercase tag for "Main meter", "Last sample", "Service
   finding", etc. Pairs with .data-readout values to give them
   meter/report context. Distinct from the existing .section-eyebrow
   (which is a brand/section marker) — this one is operational. */
.tech-label {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: var(--text-tertiary);
  font-family: var(--font);
}

/* ── De-AI v1: hero operational marker ─────────────────────────────
   Tiny mono caption that sits ABOVE a page hero headline. Used to
   ground a marketing page in operational specifics (Niagara / BACnet
   / Modbus, "Est. 1996", "New England", a utility-bill cadence,
   etc.) — bespoke detail no AI generator would default to. Pages
   are free to swap the dot for a product-color accent. */
.hero-marker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-family: var(--data-font);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 22px;
}
.hero-marker .hm-dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--teal-bright);
  box-shadow: 0 0 6px rgba(45,212,191,0.6);
  flex-shrink: 0;
}
.hero-marker .hm-dot--pulse  { background: var(--pulse-red);    box-shadow: 0 0 6px rgba(231,76,60,0.6); }
.hero-marker .hm-dot--rx     { background: var(--rx-purple);    box-shadow: 0 0 6px rgba(167,139,250,0.6); }
.hero-marker .hm-dot--sage   { background: var(--bp-sage);      box-shadow: 0 0 6px rgba(156,175,136,0.5); }
.hero-marker .hm-sep {
  display: inline-block;
  width: 1px;
  height: 10px;
  background: rgba(255,255,255,0.20);
}

/* ── De-AI v1: project dossier strip ───────────────────────────────
   Job / Scope / System / Outcome row, used on success-story pages
   and any page that wants a "project-specific, not templated"
   header. Each cell stacks an all-caps label over a value. Mobile
   collapses to 2 columns then 1. */
.dossier-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-control);
  overflow: hidden;
  margin: 18px 0 22px;
}
.dossier-strip > .dossier-cell {
  background: rgba(8,14,18,0.78);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.dossier-cell-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--text-tertiary);
}
.dossier-cell-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
}
@media (max-width: 760px) {
  .dossier-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 460px) {
  .dossier-strip { grid-template-columns: 1fr; }
}

/* Accessibility: visually hidden but screen-reader accessible */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.sr-only:focus {
  position: fixed !important;
  top: 10px; left: 10px;
  width: auto !important; height: auto !important;
  clip: auto !important;
  padding: 10px 16px !important;
  background: var(--teal);
  color: white;
  border-radius: 8px;
  z-index: 999;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
/* Defensive media + table containment — keeps oversized images, SVGs,
   and long words from forcing the page wider than the viewport. */
img, video { max-width: 100%; height: auto; }
table { max-width: 100%; }

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  position: relative;
  overflow-x: hidden;
}

/* Static teal gradient — concentrated at top, fades on long pages so long scrolls
   don't feel like every section floats in the same halo. */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 900px 650px at 10% 10%, rgba(13,138,124,0.14) 0%, transparent 60%),
    radial-gradient(ellipse 800px 550px at 85% 35%, rgba(45,212,191,0.10) 0%, transparent 60%),
    radial-gradient(ellipse 700px 550px at 35% 70%, rgba(13,138,124,0.06) 0%, transparent 60%);
  mask-image: linear-gradient(180deg, #000 0%, #000 60%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 60%, transparent 100%);
}

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

/* ===== NAV (Liquid Glass) ===== */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 max(24px, env(safe-area-inset-left));
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(40px) saturate(200%);
  -webkit-backdrop-filter: blur(40px) saturate(200%);
  border-bottom: 0.5px solid rgba(255,255,255,0.10);
  box-shadow:
    inset 0 0.5px 0 0 rgba(255,255,255,0.12),
    0 4px 24px rgba(0,0,0,0.4);
}

.nav-inner {
  width: 100%;
  max-width: 1024px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo-text {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* Logo img sizing moved out of inline styles */
.nav-logo img { border-radius: 5px; }
footer .nav-logo img { border-radius: 4px; }

.nav-logo-text span {
  font-weight: 400;
  color: var(--text-tertiary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links li {
  display: flex;
  align-items: center;
}

.nav-links a {
  display: flex;
  align-items: center;
  font-size: 13px;
  font-weight: 400;
  color: var(--text-secondary);
  transition: color 0.2s;
  padding: 6px 12px;
  border-radius: 4px;
  text-decoration: none;
  white-space: nowrap;
}

.nav-links a:hover { color: var(--text-primary); }

.nav-dropdown { position: relative; }
.nav-dropdown > a { gap: 3px; }
.nav-dropdown > a .nav-chevron { width: 10px; height: 10px; transition: transform 0.2s; flex-shrink: 0; opacity: 0.5; }
.nav-dropdown:hover > a .nav-chevron,
.nav-dropdown:focus-within > a .nav-chevron { transform: rotate(180deg); }
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  min-width: 200px;
  background: rgba(20,20,22,0.65);
  backdrop-filter: blur(40px) saturate(200%);
  -webkit-backdrop-filter: blur(40px) saturate(200%);
  border: 0.5px solid rgba(255,255,255,0.14);
  border-radius: 16px;
  padding: 4px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow:
    inset 0 0.5px 0 0 rgba(255,255,255,0.15),
    0 12px 40px rgba(0,0,0,0.55),
    0 2px 8px rgba(0,0,0,0.3);
  z-index: 200;
  overflow: hidden;
}
.nav-dropdown-menu::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 40%;
  background: linear-gradient(180deg, rgba(255,255,255,0.06) 0%, transparent 100%);
  pointer-events: none;
  border-radius: 16px 16px 0 0;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  /* :focus-within added 2026-06-09 so keyboard users can open the
     dropdowns (parity with styles-alt.css). */
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.nav-dropdown-menu::before { content: ''; position: absolute; top: -12px; left: 0; right: 0; height: 12px; z-index: 201; }
.nav-dropdown-menu a {
  display: block; padding: 8px 12px; font-size: 13px; font-weight: 400; color: var(--text-secondary);
  border-radius: 10px; transition: all 0.15s; position: relative; z-index: 2;
}
.nav-dropdown-menu a:hover { color: var(--text-primary); background: rgba(255,255,255,0.08); }
.nav-dropdown-menu .dd-divider { height: 0.5px; background: rgba(255,255,255,0.06); margin: 4px 8px; position: relative; z-index: 2; }

.nav-cta {
  font-size: 13px !important;
  font-weight: 500 !important;
  background: var(--teal) !important;  /* solid teal — matches primary CTA */
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  color: white !important;
  padding: 5px 14px !important;
  border-radius: 980px !important;
  transition: all 0.2s !important;
  border: 0.5px solid rgba(45,212,191,0.25) !important;
  box-shadow: inset 0 0.5px 0 0 rgba(255,255,255,0.2), 0 2px 8px rgba(13,138,124,0.3) !important;
}
.nav-cta:hover { background: #0a6e63 !important; }  /* matches primary CTA hover */

/* Plain nav link, used when the teal CTA slot is taken by Login */
.nav-links .nav-plain { color: var(--text-primary); }

/* ===== MOBILE MENU ===== */
.mobile-menu-btn {
  display: none;
  position: absolute; right: 20px; top: 50%;
  transform: translateY(-50%);
  background: none; border: none; cursor: pointer; padding: 8px; z-index: 101;
}
.mobile-menu-btn span {
  display: block; width: 16px; height: 1px;
  background: var(--text-secondary);
  transition: all 0.3s; transform-origin: center;
}
.mobile-menu-btn span:nth-child(1) { margin-bottom: 5px; }
.mobile-menu-btn span:nth-child(3) { margin-top: 5px; }
.mobile-menu-btn.active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-dropdown {
  display: none; position: fixed; top: 52px; left: 0; right: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(40px) saturate(200%);
  -webkit-backdrop-filter: blur(40px) saturate(200%);
  padding: 8px 24px 24px; z-index: 99; flex-direction: column;
  border-bottom: 0.5px solid rgba(255,255,255,0.08);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}
.mobile-dropdown.open { display: flex; }
.mobile-dropdown a {
  display: block; padding: 12px 0; font-size: 17px; font-weight: 600;
  color: var(--text-secondary); border-bottom: 0.5px solid rgba(255,255,255,0.06);
  transition: color 0.15s;
}
.mobile-dropdown a:last-child { border-bottom: none; }
.mobile-dropdown a:hover { color: var(--text-primary); }
.mobile-dropdown a.mobile-cta {
  margin-top: 12px; text-align: center;
  background: rgba(13,138,124,0.85); color: white;
  font-weight: 500; border-radius: 980px; border: 0.5px solid rgba(45,212,191,0.2);
  padding: 14px; font-size: 15px;
  box-shadow: inset 0 0.5px 0 0 rgba(255,255,255,0.15);
}
.mobile-solutions-sub { display: none; flex-direction: column; padding-left: 0; }
.mobile-solutions-sub.open { display: flex; }
.mobile-solutions-sub a { font-size: 15px !important; font-weight: 400 !important; color: var(--text-tertiary) !important; padding: 10px 0 10px 16px !important; }
.mobile-solutions-toggle { display: flex; align-items: center; justify-content: space-between; }
.mobile-solutions-toggle .mobile-chev { width: 14px; height: 14px; transition: transform 0.25s; margin-left: 8px; opacity: 0.4; }
.mobile-solutions-toggle.expanded .mobile-chev { transform: rotate(180deg); }

/* ===== PAGE HERO ===== */
.page-hero {
  padding: 140px 24px 80px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.page-hero h1 {
  font-size: clamp(40px, 5.5vw, 64px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin-bottom: 16px;
  opacity: 0; animation: fadeIn 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.15s forwards;
  will-change: opacity, transform;
}

.page-hero .hero-sub {
  font-size: clamp(17px, 2vw, 21px);
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.45;
  font-weight: 400;
  opacity: 0; animation: fadeIn 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.35s forwards;
  will-change: opacity, transform;
}

.page-hero .brand-hero-logo {
  height: 48px;
  width: auto;
  display: block;
  margin: 0 auto 24px;
  opacity: 0; animation: fadeIn 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0s forwards;
  will-change: opacity, transform;
}

/* =========================================================
   Text-based brand logos (BuildingPulse / BuildingRx)
   ========================================================= */
.txt-logo {
  font-family: var(--font);
  letter-spacing: -0.015em;
  display: inline-block;
  line-height: 1;
  white-space: nowrap;
}
.txt-logo .tl-b { font-weight: 700; color: #f5f5f7; }
.txt-logo .tl-physical { font-weight: 300; color: #9CAF88; }
.txt-logo .tl-pulse    { font-weight: 300; color: #e74c3c; }
.txt-logo .tl-rx       { font-weight: 300; color: #a78bfa; }
.txt-logo .tl-rx sub {
  font-size: 0.65em;
  vertical-align: baseline;
  position: relative;
  top: 0.2em;
  font-weight: 300;
}

/* Hero variant — replaces .brand-hero-logo image */
.page-hero .brand-hero-logo.txt-logo {
  height: auto;
  font-size: 52px;
  margin: 0 auto 24px;
  text-align: center;
}
/* Card variant — replaces .brand-logo image in solution cards */
.solution-card .brand-logo.txt-logo {
  font-size: 30px;
  display: block;
  margin-bottom: 16px;
}

@media (max-width: 720px) {
  .page-hero .brand-hero-logo.txt-logo { font-size: 36px; }
  .solution-card .brand-logo.txt-logo  { font-size: 26px; }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translate3d(0, 20px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

/* ===== SECTION SHARED ===== */
.section-divider {
  width: 100%;
  height: 0.5px;
  background: var(--border);
}

.section-header {
  max-width: 1024px;
  margin: 0 auto;
  text-align: center;
  margin-bottom: 60px;
}

.section-eyebrow {
  font-size: 13px;
  font-weight: 600;
  color: var(--teal-bright);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section-title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.section-desc {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.5;
  max-width: 560px;
  margin: 12px auto 0;
  font-weight: 400;
}

/* ===== LIQUID GLASS CARD ===== */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(var(--glass-saturation));
  -webkit-backdrop-filter: blur(20px) saturate(var(--glass-saturation));
  border: 0.5px solid var(--glass-border);
  border-radius: var(--glass-radius);
  padding: 32px;
  position: relative;
  overflow: hidden;
  box-shadow:
    inset 0 0.5px 0 0 rgba(255,255,255,0.15),
    0 8px 32px rgba(0,0,0,0.35),
    0 2px 8px rgba(0,0,0,0.2);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 45%;
  background: linear-gradient(180deg, rgba(255,255,255,0.05) 0%, transparent 100%);
  pointer-events: none;
  z-index: 1;
  border-radius: inherit;
}

.glass-card:hover {
  background: var(--glass-bg-hover);
  border-color: rgba(255,255,255,0.18);
  box-shadow:
    inset 0 0.5px 0 0 rgba(255,255,255,0.22),
    0 12px 40px rgba(0,0,0,0.45),
    0 4px 12px rgba(0,0,0,0.25);
  transform: translateY(-2px);
}

.glass-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
  position: relative;
  z-index: 2;
}

.glass-card h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  position: relative;
  z-index: 2;
}

.glass-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  position: relative;
  z-index: 2;
}

.glass-card .card-icon {
  font-size: 28px;
  margin-bottom: 12px;
  position: relative;
  z-index: 2;
}

.glass-card .card-icon-svg {
  margin-bottom: 14px;
  position: relative;
  z-index: 2;
  color: var(--teal-bright);
  opacity: 0.88;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.glass-card .card-icon-svg svg { display: block; }

.glass-card .card-eyebrow {
  font-size: 11px;
  color: var(--teal-bright);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 6px;
  position: relative;
  z-index: 2;
}

.glass-card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 14px;
  color: var(--teal-bright);
  margin-top: 12px;
  transition: gap 0.2s;
  position: relative;
  z-index: 2;
}

.glass-card .card-link:hover { gap: 6px; }

/* ===== BUTTONS (Liquid Glass) ===== */
.btn-primary {
  font-family: var(--font);
  font-size: 17px;
  font-weight: 700;
  background: rgba(13,138,124,0.8);
  color: white;
  padding: 12px 28px;
  border-radius: 980px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 0.5px solid rgba(45,212,191,0.3);
  cursor: pointer;
  display: inline-block;
  position: relative;
  box-shadow:
    inset 0 1px 0 0 rgba(255,255,255,0.2),
    0 4px 16px rgba(13,138,124,0.3),
    0 1px 3px rgba(0,0,0,0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.btn-primary:hover {
  background: rgba(16,160,143,0.9);
  box-shadow:
    inset 0 1px 0 0 rgba(255,255,255,0.25),
    0 6px 24px rgba(13,138,124,0.4),
    0 2px 6px rgba(0,0,0,0.2);
  transform: translateY(-1px);
}

.btn-link {
  font-family: var(--font);
  font-size: 17px;
  font-weight: 400;
  color: var(--teal-bright);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: gap 0.2s;
}

.btn-link:hover { gap: 7px; }

.btn-small {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 400;
  background: rgba(13,138,124,0.15);
  color: var(--teal-bright);
  padding: 8px 20px;
  border-radius: 980px;
  border: 0.5px solid rgba(45,212,191,0.2);
  cursor: pointer;
  transition: all 0.2s;
  display: inline-block;
  position: relative;
  z-index: 2;
  box-shadow: inset 0 0.5px 0 0 rgba(255,255,255,0.08);
}

.btn-small:hover {
  background: rgba(13,138,124,0.25);
  border-color: rgba(45,212,191,0.35);
}

/* ===== CTA SECTION (Liquid Glass panel) ===== */
.cta-section {
  padding: 0 24px 120px;
  text-align: center;
}

.cta-inner {
  max-width: 640px;
  margin: 0 auto;
  padding: 60px 48px;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
  border: 0.5px solid var(--glass-border);
  border-radius: 28px;
  position: relative;
  overflow: hidden;
  box-shadow:
    inset 0 0.5px 0 0 var(--glass-highlight),
    0 12px 48px var(--glass-shadow),
    0 4px 12px rgba(0,0,0,0.3);
}

.cta-inner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.06) 0%, transparent 100%);
  pointer-events: none;
  z-index: 0;
  border-radius: inherit;
}

.cta-inner::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 20%; right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(45,212,191,0.3), transparent);
  pointer-events: none;
}

.cta-inner h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  line-height: 1.1;
  position: relative;
  z-index: 1;
}

.cta-inner p {
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.5;
  position: relative;
  z-index: 1;
}

.cta-inner .btn-primary { position: relative; z-index: 1; }

.cta-phone {
  margin-top: 16px;
  font-size: 14px;
  color: var(--text-tertiary);
  position: relative;
  z-index: 1;
}

.cta-phone a { color: var(--teal-bright); }

/* ===== CONTENT SECTIONS ===== */
.content-section {
  padding: 100px 24px;
  max-width: 1024px;
  margin: 0 auto;
}

.content-section.centered { text-align: center; }

.content-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 48px;
}

.content-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.content-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

/* ===== FORM (Liquid Glass) ===== */
.glass-form {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
  border: 0.5px solid var(--glass-border);
  border-radius: 28px;
  padding: 48px;
  position: relative;
  overflow: hidden;
  box-shadow:
    inset 0 0.5px 0 0 rgba(255,255,255,0.15),
    0 8px 32px rgba(0,0,0,0.35);
}

.glass-form::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 40%;
  background: linear-gradient(180deg, rgba(255,255,255,0.04) 0%, transparent 100%);
  pointer-events: none;
  border-radius: inherit;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  position: relative;
  z-index: 2;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group.full-width { grid-column: 1 / -1; }

.form-group label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-group input,
.form-group textarea,
.form-group select {
  font-family: var(--font);
  font-size: 15px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.04);
  border: 0.5px solid rgba(255,255,255,0.10);
  border-radius: 12px;
  color: var(--text-primary);
  outline: none;
  transition: all 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(13,138,124,0.15);
  background: rgba(255,255,255,0.06);
}

.form-group textarea { min-height: 120px; resize: vertical; }
.form-group select { appearance: none; cursor: pointer; }
.form-submit { margin-top: 24px; position: relative; z-index: 2; }

/* ===== STATS BAR (Liquid Glass) ===== */
.stats-glass {
  display: flex;
  gap: 0;
  border-radius: var(--glass-radius);
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
  border: 0.5px solid var(--glass-border);
  box-shadow:
    inset 0 0.5px 0 0 var(--glass-highlight),
    0 8px 32px var(--glass-shadow);
  overflow: hidden;
  position: relative;
  padding: 28px 0;
  max-width: 720px;
  margin: 0 auto;
}

.stats-glass::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.06) 0%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

.stats-glass .stat {
  text-align: center;
  padding: 0 36px;
  position: relative;
  z-index: 2;
  flex: 1;
}

.stats-glass .stat + .stat {
  border-left: 0.5px solid rgba(255,255,255,0.08);
}

.stat-num {
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 12px;
  color: var(--text-tertiary);
  font-weight: 400;
}

.accent { color: var(--teal-bright); }

/* ===== PROSE CONTENT ===== */
.prose {
  max-width: 680px;
  margin: 0 auto;
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.prose strong { color: var(--text-primary); font-weight: 600; }
.prose p + p { margin-top: 16px; }
.prose h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin: 48px 0 16px;
}

/* ===== TIMELINE ===== */
.timeline {
  max-width: 680px;
  margin: 48px auto 0;
  position: relative;
  padding-left: 32px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0.5px;
  background: rgba(255,255,255,0.08);
}

.timeline-item {
  padding-bottom: 40px;
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -36px;
  top: 4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 8px rgba(13,138,124,0.4);
}

.timeline-item h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--teal-bright);
  margin-bottom: 6px;
}

.timeline-item p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ===== FAQ ===== */
.faq-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 48px;
}

.faq-tab {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 400;
  color: var(--text-secondary);
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 0.5px solid var(--glass-border);
  border-radius: 980px;
  padding: 8px 18px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: inset 0 0.5px 0 0 rgba(255,255,255,0.1);
}

.faq-tab:hover,
.faq-tab.active {
  background: rgba(13,138,124,0.2);
  border-color: rgba(45,212,191,0.3);
  color: var(--teal-bright);
}

.faq-group { display: none; }
.faq-group.active { display: block; }

.faq-item { border-bottom: 0.5px solid var(--border); padding: 20px 0; }

.faq-question {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  letter-spacing: -0.01em;
}

.faq-question::after {
  content: '+';
  font-size: 20px;
  font-weight: 300;
  color: var(--text-tertiary);
  flex-shrink: 0;
  transition: transform 0.3s;
}

.faq-item.open .faq-question::after { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.open .faq-answer { max-height: 300px; padding-top: 12px; }

.faq-answer p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ===== NUMBERED STEPS ===== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 48px;
}

.step-card { padding: 32px; text-align: center; }

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 20px;
  font-weight: 600;
  color: var(--teal-bright);
  background: rgba(45,212,191,0.10);
  border: 0.5px solid rgba(45,212,191,0.35);
  margin-bottom: 18px;
  position: relative;
  z-index: 2;
  box-shadow: inset 0 0.5px 0 0 rgba(255,255,255,0.12);
}

.step-card h3 { position: relative; z-index: 2; margin-bottom: 10px; }
.step-card p { position: relative; z-index: 2; }

/* ===== FOOTER ===== */
footer {
  max-width: 1024px;
  margin: 0 auto;
  padding: 48px 24px;
  border-top: 0.5px solid var(--border);
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
}

.footer-brand p {
  font-size: 12px;
  color: var(--text-tertiary);
  line-height: 1.6;
  margin-top: 14px;
  max-width: 240px;
}

.footer-col h4 {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { font-size: 12px; color: var(--text-tertiary); transition: color 0.15s; }
.footer-col a:hover { color: var(--text-primary); }

.footer-bottom {
  max-width: 1024px;
  margin: 0 auto;
  padding: 16px 24px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-bottom p { font-size: 11px; color: var(--text-tertiary); }

/* ===== SUCCESS STORY POLISH ===== */
.story-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 24px;
  margin: 16px auto 0;
  max-width: 680px;
  font-size: 13px;
  color: var(--text-tertiary);
}
.story-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.story-meta span::before {
  content: '';
  width: 3px; height: 3px;
  background: var(--teal-bright);
  border-radius: 50%;
  opacity: 0.7;
}
.story-meta span:first-child::before { display: none; }

.story-hero-image {
  max-width: 1024px;
  margin: 8px auto 0;
  padding: 0 24px;
}
.story-hero-image .placeholder {
  width: 100%;
  aspect-ratio: 16/7;
  border-radius: var(--glass-radius);
  background:
    linear-gradient(135deg, rgba(13,138,124,0.18) 0%, rgba(45,212,191,0.05) 100%),
    repeating-linear-gradient(
      45deg,
      rgba(255,255,255,0.02) 0,
      rgba(255,255,255,0.02) 2px,
      transparent 2px,
      transparent 12px
    );
  border: 0.5px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  box-shadow:
    inset 0 0.5px 0 0 rgba(255,255,255,0.10),
    0 8px 32px rgba(0,0,0,0.25);
}
.story-hero-image .placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,0.35) 100%);
  pointer-events: none;
}
.story-hero-image .placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
}

.story-section-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  color: var(--text-primary);
}

.story-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 32px;
}

.story-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 32px;
}
.story-stats .stat-card {
  padding: 24px;
  text-align: center;
}
.story-stats .stat-card .stat-num {
  font-size: 36px;
  color: var(--teal-bright);
}
.story-stats .stat-card .stat-label {
  font-size: 12px;
  margin-top: 4px;
}

@media (max-width: 768px) {
  .story-two-col { grid-template-columns: 1fr; gap: 16px; }
  .story-stats { grid-template-columns: 1fr; }
  .story-hero-image .placeholder { aspect-ratio: 16/10; }
}

/* ===== US PROJECT MAP (Contact Us) ===== */
.us-map-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 24px 40px;
}
.us-map-wrap {
  position: relative;
  border-radius: var(--glass-radius);
  overflow: hidden;
  border: 0.5px solid var(--glass-border);
  background: rgba(255,255,255,0.02);
  box-shadow:
    inset 0 0.5px 0 0 rgba(255,255,255,0.10),
    0 8px 32px rgba(0,0,0,0.25);
}
.us-map-wrap svg {
  display: block;
  width: 100%;
  height: auto;
}
.us-map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  margin-top: 18px;
  font-size: 12px;
  color: var(--text-tertiary);
}
.us-map-legend .legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.us-map-legend .swatch-star {
  width: 14px; height: 14px;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  background: var(--teal);
}
.us-map-legend .swatch-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: transparent;
  border: 1.5px solid var(--teal);
}

/* ===== IDEAL FOR CARD (BuildingPulse / BuildingRx) ===== */
.ideal-card h3 {
  margin-bottom: 10px;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.ideal-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-tertiary);
}

/* ===== MOCK DASHBOARD CAPTION ===== */
.mock-caption {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  text-align: center;
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}
.mock-caption .mock-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,0.35);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.06);
}

/* ===== CTA SUBTITLE ===== */
.cta-inner .cta-sub {
  max-width: 560px;
  margin: 14px auto 24px;
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.55;
  text-align: center;
}

/* ===== SOLUTIONS EMS POLISH ===== */
/* Integration card: title-as-link variant */
.card-link-title {
  color: inherit;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.18s, gap 0.18s;
}
.integration-card {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.24s cubic-bezier(0.25,0.46,0.45,0.94),
              border-color 0.24s ease,
              box-shadow 0.24s ease;
}
.integration-card:hover { transform: translateY(-2px); }
.integration-card:hover .card-link-title { color: var(--teal-bright); gap: 12px; }
.card-arrow {
  font-size: 18px;
  color: var(--teal);
  transition: transform 0.18s ease, color 0.18s ease;
}
.integration-card:hover .card-arrow { color: var(--teal-bright); transform: translateX(3px); }

/* ===== UTILITY INCENTIVES BAND ===== */
.incentive-band {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}
.incentive-band .incentive-inner {
  background: linear-gradient(135deg, rgba(13,138,124,0.14), rgba(45,212,191,0.05));
  border: 0.5px solid rgba(45,212,191,0.28);
  border-radius: 28px;
  padding: 48px;
  position: relative;
  overflow: hidden;
  box-shadow:
    inset 0 0.5px 0 0 rgba(255,255,255,0.12),
    0 12px 44px rgba(0,0,0,0.32);
}
.incentive-band .incentive-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 10%, rgba(45,212,191,0.18), transparent 55%),
    radial-gradient(circle at 10% 100%, rgba(13,138,124,0.12), transparent 55%);
  pointer-events: none;
}
.incentive-band .incentive-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: center;
}
.incentive-band .incentive-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.incentive-band .incentive-copy .section-eyebrow,
.incentive-band .incentive-copy .section-title {
  text-align: center !important;
}
.incentive-band .incentive-copy h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 14px;
}
.incentive-band .incentive-lede {
  font-size: 16.5px;
  color: var(--text-secondary);
  line-height: 1.62;
  margin: 0 auto 22px;
  max-width: 560px;
  text-align: center;
}
.incentive-band .incentive-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px;
}
.incentive-band .incentive-link {
  color: var(--teal-bright);
  text-decoration: none;
  font-weight: 500;
  font-size: 14.5px;
  transition: color 0.18s;
  text-align: center;
}
.incentive-band .incentive-link:hover { color: #7ee8d7; }

.incentive-logo-wrap {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: stretch;
}
.mass-save-logo {
  background: #fff;
  border-radius: 14px;
  padding: 22px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    inset 0 0 0 0.5px rgba(255,255,255,0.8),
    0 6px 22px rgba(0,0,0,0.24);
  min-height: 82px;
}
.mass-save-img { max-width: 220px; width: 100%; height: auto; display: block; }
.mass-save-wordmark {
  display: none; /* shown via onerror fallback */
  align-items: center;
  gap: 10px;
  color: #1a4d40;
  font-family: var(--font);
  font-size: 22px;
  letter-spacing: -0.01em;
}
.mass-save-wordmark .mss-mark {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2dd4bf, #0d8a7c);
  box-shadow: inset 0 1px 0 0 rgba(255,255,255,0.35);
}
.mass-save-wordmark .mss-text { color: #0d8a7c; font-weight: 500; }
.mass-save-wordmark .mss-text strong { color: #1a4d40; font-weight: 800; }
.mass-save-wordmark .mss-text sup { font-size: 0.48em; font-weight: 500; vertical-align: super; margin-left: 2px; }

.incentive-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.incentive-stat {
  background: rgba(255,255,255,0.03);
  border: 0.5px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 14px 16px;
  text-align: center;
}
.incentive-stat .stat-value {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--teal-bright);
  line-height: 1.2;
  margin-bottom: 4px;
}
.incentive-stat .stat-label {
  font-size: 11.5px;
  color: var(--text-tertiary);
  line-height: 1.35;
  letter-spacing: 0.02em;
}

@media (max-width: 860px) {
  .incentive-band .incentive-grid { grid-template-columns: 1fr; }
  .incentive-band .incentive-inner { padding: 32px 24px; }
  .incentive-logo-wrap { order: 2; }
}

/* ===== FLOOR PLAN HERO (EMS page) ===== */
.floorplan-hero {
  max-width: 1080px;
  margin: -20px auto 0;
  padding: 0 24px 30px;
}
.floorplan-hero .floorplan-stage {
  position: relative;
  border-radius: 24px;
  padding: 22px;
  background:
    radial-gradient(circle at 20% 10%, rgba(45,212,191,0.08), transparent 60%),
    rgba(255,255,255,0.025);
  border: 0.5px solid var(--glass-border);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
  box-shadow:
    inset 0 0.5px 0 0 rgba(255,255,255,0.10),
    0 16px 52px rgba(0,0,0,0.40);
}
.floorplan-svg,
.floorplan-render {
  display: block;
  width: 100%;
  height: auto;
  max-height: 540px;
  border-radius: 18px;
}
.floorplan-svg .fp-label text {
  font-family: var(--font);
  font-size: 10.5px;
  fill: rgba(255,255,255,0.72);
  font-weight: 500;
  letter-spacing: 0.02em;
  pointer-events: none;
}
.floorplan-svg .fp-legend text {
  font-family: var(--font);
  font-size: 11px;
  fill: rgba(255,255,255,0.62);
  letter-spacing: 0.01em;
}
.floorplan-caption {
  margin: 14px 0 0;
  text-align: center;
  font-size: 12px;
  color: var(--text-tertiary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
@media (max-width: 720px) {
  .floorplan-hero .floorplan-stage { padding: 14px; }
}

/* ===== SUCCESS STORY PROPERTY HERO ===== */
.story-hero-image {
  max-width: 1100px;
  margin: 8px auto 0;
  padding: 0 24px;
}
.story-hero-stage {
  position: relative;
  border-radius: 24px;
  background:
    radial-gradient(ellipse 520px 320px at 20% 20%, rgba(45,212,191,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 480px 280px at 82% 90%, rgba(13,138,124,0.12) 0%, transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.005));
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  overflow: hidden;
  padding: 28px;
  box-shadow: 0 12px 44px rgba(0,0,0,0.28);
}
.story-hero-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.05), transparent 40%);
  pointer-events: none;
}
.story-hero-stage svg.property-iso {
  display: block;
  width: 100%;
  height: auto;
  max-height: 420px;
  position: relative;
  z-index: 1;
}
.story-hero-stage--photo {
  padding: 0;
  aspect-ratio: 16 / 7;
  background: #0e1a1f;
}
.story-hero-stage--photo::after {
  background:
    radial-gradient(60% 80% at 18% 18%, rgba(45,212,191,0.10), transparent 58%),
    linear-gradient(180deg, rgba(0,0,0,0.02), rgba(0,0,0,0.26));
}
.story-hero-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 1;
}
.story-hero-stage svg.property-iso .prop-label {
  font-family: var(--font);
  font-size: 11px;
  fill: rgba(255,255,255,0.72);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.story-hero-stage svg.property-iso .prop-chip-title {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  fill: var(--text-primary);
}
.story-hero-stage svg.property-iso .prop-chip-sub {
  font-family: var(--font);
  font-size: 11px;
  fill: rgba(255,255,255,0.65);
}
.story-hero-stage svg.property-iso .prop-stat-value {
  font-family: var(--font);
  font-size: 22px;
  font-weight: 600;
  fill: var(--teal-bright);
  letter-spacing: -0.02em;
}
.story-hero-stage svg.property-iso .prop-stat-label {
  font-family: var(--font);
  font-size: 10px;
  fill: rgba(255,255,255,0.55);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.story-hero-caption {
  margin: 12px 0 0;
  text-align: center;
  font-size: 11.5px;
  color: var(--text-tertiary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}
@media (max-width: 720px) {
  .story-hero-stage { padding: 14px; }
  .story-hero-stage--photo { padding: 0; aspect-ratio: 16 / 10; }
}

/* ===== CONTACT US PAGE ===== */
.section-sub {
  margin: 10px auto 0;
  max-width: 720px;
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.55;
  text-align: center;
}

/* --- US Map Section --- */
.us-map-section {
  padding: 60px 24px 20px;
}
.us-map-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 36px 36px 30px;
  border-radius: 24px;
  background: var(--glass-bg);
  backdrop-filter: blur(30px) saturate(140%);
  -webkit-backdrop-filter: blur(30px) saturate(140%);
  border: 1px solid var(--glass-border);
  box-shadow: 0 10px 40px rgba(0,0,0,0.25);
  position: relative;
  overflow: hidden;
}
.us-map-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 500px 300px at 20% 10%, rgba(45,212,191,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 400px 280px at 80% 90%, rgba(13,138,124,0.10) 0%, transparent 60%);
  pointer-events: none;
}
.us-map-header {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: end;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.us-map-meta h3 {
  font-family: var(--font);
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  color: var(--text-primary);
}
.us-map-lede {
  margin: 0;
  color: var(--text-secondary);
  font-size: 15.5px;
  line-height: 1.5;
  max-width: 520px;
}
.us-map-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.usm-stat {
  padding: 12px 10px;
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  text-align: center;
}
.usm-stat-num {
  display: block;
  font-family: var(--font);
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 600;
  color: var(--teal-bright);
  letter-spacing: -0.02em;
  line-height: 1;
}
.usm-stat-lab {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}
.us-map-stage {
  position: relative;
  z-index: 1;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0));
  padding: 10px;
  overflow: hidden;
}
.us-map-svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 560px;
}
.us-map-svg .usm-state-path {
  fill: rgba(255,255,255,0.04);
  stroke: rgba(255,255,255,0.12);
  stroke-width: 1;
}
.us-map-svg .usm-grid line {
  stroke: rgba(255,255,255,0.035);
  stroke-width: 0.75;
}
.us-map-svg .usm-dot-national {
  fill: var(--teal-bright);
  opacity: 0.9;
}
.us-map-svg .usm-dot-ne {
  fill: rgba(45,212,191,0.55);
}
.us-map-svg .usm-hq-glow {
  fill: var(--teal-bright);
  opacity: 0.22;
  filter: blur(6px);
}
.us-map-svg .usm-hq-pin {
  fill: var(--teal-bright);
  stroke: rgba(255,255,255,0.9);
  stroke-width: 1.5;
}
.us-map-svg text.usm-label {
  font-family: var(--font);
  font-size: 10.5px;
  fill: rgba(255,255,255,0.7);
  font-weight: 500;
  letter-spacing: 0.02em;
}
.us-map-svg .usm-callout rect {
  fill: rgba(12,28,30,0.82);
  stroke: rgba(45,212,191,0.35);
  stroke-width: 1;
  rx: 8;
  ry: 8;
}
.us-map-svg .usm-callout text {
  font-family: var(--font);
  fill: var(--text-primary);
}
.us-map-svg .usm-callout .usm-callout-title {
  font-size: 11px;
  font-weight: 600;
  fill: var(--teal-bright);
  letter-spacing: 0.02em;
}
.us-map-svg .usm-callout .usm-callout-body {
  font-size: 10.5px;
  fill: rgba(255,255,255,0.78);
}
.us-map-svg .usm-callout .usm-callout-line {
  stroke: rgba(45,212,191,0.4);
  stroke-width: 1;
  fill: none;
}
.usm-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 26px;
  justify-content: center;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.06);
  position: relative;
  z-index: 1;
}
.usm-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}
.usm-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.usm-legend-dot.national { background: var(--teal-bright); }
.usm-legend-dot.ne { background: rgba(45,212,191,0.55); }
.usm-legend-dot.hq {
  background: var(--teal-bright);
  box-shadow: 0 0 0 2px rgba(255,255,255,0.9), 0 0 8px rgba(45,212,191,0.6);
}

/* --- Contact Info Stack --- */
.contact-info-stack {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 0 auto;
  max-width: 1100px;
  padding: 0 24px;
}
.contact-info-card {
  padding: 22px 22px 20px;
  border-radius: 16px;
  background: var(--glass-bg);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  border: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.contact-info-card:hover {
  transform: translateY(-2px);
  border-color: rgba(45,212,191,0.3);
}
.ci-icon {
  width: 28px;
  height: 28px;
  color: var(--teal-bright);
  margin-bottom: 2px;
}
.ci-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.contact-info-card h3 {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin: 0;
}
.contact-info-card p,
.contact-info-card a {
  margin: 0;
  font-size: 17px;
  line-height: 1.45;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.contact-info-card a:hover {
  color: var(--teal-bright);
}
.ci-sub {
  margin-top: 2px !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  color: var(--text-tertiary) !important;
  letter-spacing: 0 !important;
}

/* --- Department Grid --- */
.dept-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
}
.dept-card {
  position: relative;
  display: block;
  padding: 22px 22px 20px;
  border-radius: 16px;
  background: var(--glass-bg);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  border: 1px solid var(--glass-border);
  text-decoration: none;
  color: var(--text-primary);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
  overflow: hidden;
}
.dept-card::after {
  content: "›";
  position: absolute;
  top: 18px;
  right: 20px;
  font-size: 22px;
  color: var(--text-tertiary);
  transition: transform 0.25s ease, color 0.25s ease;
  font-family: var(--font);
  line-height: 1;
}
.dept-card:hover {
  transform: translateY(-2px);
  border-color: rgba(45,212,191,0.35);
  background: rgba(255,255,255,0.04);
}
.dept-card:hover::after {
  color: var(--teal-bright);
  transform: translateX(3px);
}
.dept-card--emph {
  border-color: rgba(45,212,191,0.28);
  background: linear-gradient(180deg, rgba(45,212,191,0.06), rgba(255,255,255,0.02));
}
.dept-card--emph .dept-icon {
  color: var(--teal-bright);
}
.dept-icon {
  width: 26px;
  height: 26px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 10px;
}
.dept-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.dept-card h3 {
  font-family: var(--font);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin: 0 0 6px;
}
.dept-card p {
  margin: 0 0 10px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
}
.dept-link {
  display: inline-block;
  color: var(--teal-bright);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
}
.dept-link:hover {
  text-decoration: underline;
}
.dept-note {
  padding: 22px;
  border-radius: 16px;
  background: rgba(255,255,255,0.02);
  border: 1px dashed rgba(255,255,255,0.14);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dept-note h3 {
  font-family: var(--font);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}
.dept-note p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translate3d(0, 20px, 0);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: opacity, transform;
}
.reveal.visible,
.reveal.active { opacity: 1; transform: translate3d(0, 0, 0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 860px) {
  .incentive-band .incentive-inner { grid-template-columns: 1fr; text-align: center; }
  .incentive-band .mass-save-logo { margin: 0 auto; }
  .us-map-header { grid-template-columns: 1fr; align-items: start; gap: 18px; }
  .contact-info-stack { grid-template-columns: 1fr; }
  .dept-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-menu-btn { display: block; }
  .page-hero { padding: 120px 24px 60px; }
  .page-hero h1 { font-size: 36px; }
  .page-hero .brand-hero-logo { height: 40px; }
  .content-section { padding: 60px 24px; }
  .content-grid { grid-template-columns: 1fr; }
  .content-grid.cols-3 { grid-template-columns: 1fr; }
  .content-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: 1fr; }
  .stats-glass { flex-wrap: wrap; padding: 20px 0; }
  .stats-glass .stat { padding: 12px 24px; flex: none; width: 50%; }
  .stats-glass .stat + .stat { border-left: none; }
  .form-grid { grid-template-columns: 1fr; }
  .glass-form { padding: 28px; }
  .cta-section { padding: 0 24px 80px; }
  .cta-inner { padding: 40px 28px; }
  footer { grid-template-columns: 1fr 1fr; padding: 40px 24px; }
  .footer-bottom { flex-direction: column; gap: 4px; text-align: center; }
  .faq-tabs { gap: 6px; }
  .us-map-wrap { padding: 20px 16px; }
  .us-map-stats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .usm-stat { padding: 8px 4px; }
  .dept-grid { grid-template-columns: 1fr; }
  body::after {
    background:
      radial-gradient(ellipse 400px 350px at 10% 20%, rgba(13,138,124,0.10) 0%, transparent 65%),
      radial-gradient(ellipse 350px 300px at 85% 50%, rgba(45,212,191,0.08) 0%, transparent 65%),
      radial-gradient(ellipse 300px 280px at 40% 80%, rgba(13,138,124,0.07) 0%, transparent 60%);
  }
}
