/* =========================================================
   MUSA Green - Design System
   Single shared stylesheet for all pages.
   ========================================================= */

:root {
  /* Brand palette (PRD §13) */
  --teal: #548e9b;
  --teal-600: #447a86;
  --teal-100: #e9edee;
  --ink: #062F41;
  --ink-900: #021a24;
  --ink-800: #062F41;
  --ink-700: #0B3E54;
  --ink-500: #355A6C;
  --ink-300: #6F8794;
  --ink-200: #A9BAC3;
  --line: #E4ECEC;
  --bg: #F7FAF9;
  --paper: #FFFFFF;

  /* Severity scale used in HUD + status pills */
  --good: #4FB04F;
  --warn: #F2B544;
  --alert: #E76A4A;

  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 2px rgba(6,47,65,.05), 0 1px 1px rgba(6,47,65,.04);
  --shadow-md: 0 8px 24px -8px rgba(6,47,65,.12), 0 2px 6px rgba(6,47,65,.05);
  --shadow-lg: 0 30px 60px -20px rgba(6,47,65,.25);

  --font-sans: "Open Sans", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --container: 1240px;
  --gutter: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ---- Type scale ---- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal-600);
  font-weight: 500;
}
h1, h2, h3, h4 { font-family: var(--font-sans); margin: 0; color: var(--ink); letter-spacing: -.01em; }
h1 { font-size: clamp(40px, 5vw, 64px); line-height: 1.05; font-weight: 700; letter-spacing: -.02em; }
h2 { font-size: clamp(28px, 3.2vw, 44px); line-height: 1.1; font-weight: 700; letter-spacing: -.015em; }
h3 { font-size: 22px; line-height: 1.25; font-weight: 600; }
h4 { font-size: 16px; line-height: 1.3; font-weight: 600; }
p  { margin: 0; }
.text-lead { font-size: 19px; line-height: 1.55; color: var(--ink-500); }
.text-muted { color: var(--ink-500); }
.text-mono { font-family: var(--font-mono); }

/* ---- Container & section ---- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 9vw, 120px); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.section--dark { background: var(--ink); color: #E6F0F2; }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }
.section--dark .eyebrow { color: #fff; }
.section--soft { background: var(--teal-100); }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head .eyebrow { display: inline-block; margin-bottom: 14px; }
.section-head h2 + p { margin-top: 16px; }

/* ---- Buttons ---- */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 999px;
  font-weight: 600; font-size: 15px; border: 1px solid transparent; transition: transform .15s ease, background .15s ease, color .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-600); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--teal-600); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-dark { background: #fff; color: var(--ink); }
.btn-dark:hover { background: var(--teal-100); }
.btn .fa, .btn .fas, .btn .far { font-size: 13px; }

/* ---- Top bar / navigation ---- */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.85); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line); }
.topbar--dark { background: rgba(6,47,65,.78); border-color: rgba(255,255,255,.08); color: #E6F0F2; }
.topbar--dark .nav a { color: #DCE7EB; }
.topbar--dark .nav a:hover { color: #fff; }
.topbar--dark .brand .mark-text { color: #fff; }
.topbar .row { display: flex; align-items: center; justify-content: space-between; gap: 32px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.brand-logo { height: 34px; width: auto; display: block; }
.footer .brand-logo { height: 32px; filter: brightness(0) invert(1); opacity: .9; }
.brand .mark { width: 28px; height: 28px; border-radius: 8px; background: var(--teal);
  position: relative; box-shadow: inset 0 -10px 0 rgba(255,255,255,.18); }
.brand .mark::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; border: 2px solid #fff; border-right-color: transparent; transform: rotate(-25deg); }
.brand .mark-text { letter-spacing: .04em; font-size: 17px; }
.brand .mark-text small { color: var(--teal-600); font-weight: 600; letter-spacing: .14em; font-size: 10px; display: block; line-height: 1; margin-top: 2px; text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav-item { position: relative; }
.nav a.nav-link { display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 8px; font-weight: 500; font-size: 15px; color: var(--ink); }
.nav a.nav-link:hover { background: var(--teal-100); }
.nav-item .chev { font-size: 10px; opacity: .6; }
.nav-item .dropdown { position: absolute; top: 100%; left: 0; min-width: 320px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-md);
  padding: 18px 10px 10px; display: none; }
.nav-item:hover .dropdown, .nav-item:focus-within .dropdown { display: block; }
.nav-item .dropdown a { display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding: 10px 12px; border-radius: 8px; color: var(--ink); align-items: start; }
.nav-item .dropdown a:hover { background: var(--teal-100); }
.nav-item .dropdown a i { color: var(--teal-600); padding-top: 3px; }
.nav-item .dropdown a span { font-size: 14px; line-height: 1.25; }
.nav-item .dropdown a span small { display: block; color: var(--ink-500); font-size: 12px; font-weight: 400; margin-top: 2px; }
.topbar .actions { display: flex; align-items: center; gap: 10px; }

/* ---- Hero ---- */
.hero { position: relative; background: #548e9b; color: #FFFFFF; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background:
  radial-gradient(800px 400px at 80% 10%, rgba(255,255,255,.16), transparent 60%),
  radial-gradient(600px 300px at 10% 80%, rgba(6,47,65,.20), transparent 70%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 2; padding-block: 88px; display: grid; grid-template-columns: 1fr 1.15fr; gap: 60px; align-items: start; }
.hero h1 { color: #fff; }
.hero h1 .accent { color: #062F41; }
.hero p.lead { color: rgba(255,255,255,.92); font-size: 19px; line-height: 1.55; margin-top: 22px; max-width: 540px; }
.hero .hero-cta { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero .micro { display: flex; flex-wrap: wrap; gap: 22px 32px; align-items: center; color: rgba(255,255,255,.72); font-size: 15px; }
.hero .micro b { color: #fff; font-weight: 900; }
.hero-grid-bg { position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 60px 60px; mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); }

/* 3D scene panel + micro wrapper */
.hero-right { display: flex; flex-direction: column; gap: 20px; margin-top: 36px; }
.scene-frame { position: relative; width: 100%; max-width: 760px; aspect-ratio: 5 / 4; margin-left: auto; border-radius: 18px; overflow: hidden;
  background: radial-gradient(120% 80% at 50% 0%, #0E4A63 0%, #062F41 70%);
  border: 1px solid rgba(255,255,255,.08); box-shadow: var(--shadow-lg); }
.scene-frame canvas { display: block; width: 100% !important; height: 100% !important; }
.scene-frame .scene-chrome { position: absolute; inset: 0; pointer-events: none; }
.scene-frame .scene-chrome::before { content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 40px 40px; mask-image: radial-gradient(ellipse at center, transparent 30%, #000 80%);
}
.scene-frame .scene-meta { position: absolute; top: 14px; left: 14px; right: 14px; display: flex; justify-content: space-between; align-items: center; font-family: var(--font-mono); font-size: 11px; color: #9BB9C2; }
.scene-frame .scene-meta .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 8px var(--good); margin-right: 6px; }
.scene-frame .scene-meta span { letter-spacing: .15em; text-transform: uppercase; }

.hud { position: absolute; background: rgba(7,29,40,.78); border: 1px solid rgba(84,142,155,.35); border-radius: 10px; padding: 10px 12px; color: #DCEFEC;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em; backdrop-filter: blur(6px); }
.hud b { color: #fff; font-size: 16px; font-family: var(--font-sans); font-weight: 700; letter-spacing: -.01em; display: block; margin-top: 2px; }
.hud .pill { display: inline-block; padding: 2px 6px; border-radius: 4px; font-size: 10px; margin-left: 4px; }
.hud .pill.good { background: rgba(79,176,79,.22); color: #B6F0B6; }
.hud .pill.warn { background: rgba(242,181,68,.22); color: #FFE2A6; }
.hud .pill.alert{ background: rgba(231,106,74,.25); color: #FFC9B6; }
.hud .label { color: #8FA9B1; }
.hud--tl { top: 44px; left: 18px; }
.hud--tr { top: 44px; right: 18px; text-align: right; }
.hud--bl { bottom: 18px; left: 18px; }
.hud--br { bottom: 18px; right: 18px; text-align: right; }

/* ---- Trust bar ---- */
.trust { background: var(--paper); border-block: 1px solid var(--line); }
.trust .row { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-block: 28px; flex-wrap: wrap; }
.trust .label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .15em; text-transform: uppercase; color: var(--ink-500); }
.trust ul { list-style: none; padding: 0; margin: 0; display: flex; gap: 36px 48px; flex-wrap: wrap; align-items: center; color: var(--ink-500); }
.trust li { font-weight: 600; font-size: 14px; letter-spacing: .03em; display: flex; align-items: center; gap: 8px; }
.trust li i { color: var(--teal-600); }

/* Client logos marquee */
.clients-marquee {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding-block: 36px;
  overflow: hidden;
  position: relative;
}
.clients-marquee::before,
.clients-marquee::after {
  content: "";
  position: absolute; top: 0; bottom: 0;
  width: 120px; z-index: 2; pointer-events: none;
}
.clients-marquee::before { left: 0; background: linear-gradient(90deg, var(--paper), transparent); }
.clients-marquee::after  { right: 0; background: linear-gradient(270deg, var(--paper), transparent); }
.clients-track {
  display: flex;
  width: max-content;
  gap: 64px;
  align-items: center;
  animation: clients-scroll 45s linear infinite;
}
.clients-marquee:hover .clients-track { animation-play-state: paused; }
.clients-track img {
  height: 44px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  filter: grayscale(100%) opacity(.65);
  transition: filter .25s ease;
  flex-shrink: 0;
}
.clients-track img:hover { filter: grayscale(0%) opacity(1); }
@keyframes clients-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (max-width: 640px) {
  .clients-track img { height: 34px; max-width: 140px; }
  .clients-track { gap: 44px; }
}

/* ============================================================
   TWEAKS — accent palette, hero atmosphere, visual rhythm
   ============================================================ */
:root {
  --accent-1: #FFAF7E;
  --accent-2: #FF7D3D;
  --accent-glow: rgba(255,175,126,.35);
}
/* Accent recolors the headline span (overrides inline color) + CTA glow + reg-badge */
.hero h1 span { color: var(--accent-1) !important; transition: color .35s ease; }
.cta-banner::before { background: radial-gradient(circle, var(--accent-glow), transparent 60%) !important; }

/* Atmosphere: HUD prominence + scene aura */
:root[data-atmosphere="calm"] .hud { opacity: 0.7; }
:root[data-atmosphere="calm"] .scene-frame { box-shadow: var(--shadow-md); }
:root[data-atmosphere="charged"] .hud {
  border-color: var(--accent-1);
  box-shadow: 0 0 18px var(--accent-glow);
}
:root[data-atmosphere="charged"] .hud b { color: #fff; }
:root[data-atmosphere="charged"] .scene-frame {
  box-shadow: var(--shadow-lg), 0 0 80px var(--accent-glow);
}
:root[data-atmosphere="charged"] .hero::before {
  background:
    radial-gradient(800px 400px at 80% 10%, var(--accent-glow), transparent 60%),
    radial-gradient(600px 300px at 10% 80%, rgba(6,47,65,.20), transparent 70%);
}

/* Visual rhythm — editorial vs standard vs dense */
:root[data-rhythm="editorial"] h1 { font-size: clamp(48px, 6.2vw, 80px); line-height: 1.02; letter-spacing: -.03em; font-weight: 800; }
:root[data-rhythm="editorial"] h2 { font-size: clamp(34px, 4.2vw, 58px); line-height: 1.06; letter-spacing: -.02em; }
:root[data-rhythm="editorial"] .text-lead { font-size: 22px; line-height: 1.5; }
:root[data-rhythm="editorial"] .section { padding-block: clamp(88px, 12vw, 160px); }
:root[data-rhythm="editorial"] .hero .container { padding-block: 120px; gap: 80px; }
:root[data-rhythm="editorial"] .section-head { margin-bottom: 64px; }
:root[data-rhythm="editorial"] .container { max-width: 1280px; }

:root[data-rhythm="dense"] h1 { font-size: clamp(30px, 3.8vw, 46px); line-height: 1.1; letter-spacing: -.015em; }
:root[data-rhythm="dense"] h2 { font-size: clamp(22px, 2.6vw, 32px); line-height: 1.15; }
:root[data-rhythm="dense"] h3 { font-size: 18px; }
:root[data-rhythm="dense"] .text-lead { font-size: 16px; line-height: 1.5; }
:root[data-rhythm="dense"] body { font-size: 14.5px; }
:root[data-rhythm="dense"] .section { padding-block: clamp(40px, 5vw, 72px); }
:root[data-rhythm="dense"] .hero .container { padding-block: 56px; gap: 40px; }
:root[data-rhythm="dense"] .section-head { margin-bottom: 32px; }
:root[data-rhythm="dense"] .container { max-width: 1180px; }
:root[data-rhythm="dense"] .sol-card { padding: 20px; min-height: 220px; }
:root[data-rhythm="dense"] .why-card { padding: 22px; }
:root[data-rhythm="dense"] .stats .cell { padding: 26px 22px; }
:root[data-rhythm="dense"] .stats .cell .num { font-size: 40px; }

/* ============================================================
   PLATFORM PREVIEW — interactive Air Quality Digital Twin mock
   ============================================================ */
.pm-wrap {
  background: var(--ink);
  border-radius: 22px;
  padding: 14px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.pm-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(800px 400px at 50% -20%, rgba(84,142,155,.25), transparent 70%);
  pointer-events: none;
}

/* View tabs above the panel */
.pm-view-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: rgba(255,255,255,.08);
  border-radius: 999px;
  margin: 0 auto 14px;
  width: max-content;
  position: relative;
  z-index: 2;
}
.pm-view-tabs button {
  appearance: none; border: 0; background: transparent;
  color: rgba(255,255,255,.7); cursor: pointer;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 13px; font-weight: 600;
  letter-spacing: .01em;
  display: inline-flex; align-items: center; gap: 8px;
  transition: background .15s ease, color .15s ease;
  position: relative; overflow: hidden;
}
.pm-view-tabs button i { font-size: 11px; }
.pm-view-tabs button:hover { color: #fff; }
.pm-view-tabs button.active { background: #fff; color: var(--ink); }

/* Auto-rotation progress bar on the active tab */
.pm-view-tabs button::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0;
  height: 3px;
  width: 0;
  background: var(--teal);
  border-radius: 0 0 999px 999px;
}
.pm-view-tabs button.active::after {
  animation: pm-tab-progress 5s linear forwards;
}
.pm-view-tabs.pm-tabs--paused button.active::after {
  animation: none;
  width: 0;
}
@keyframes pm-tab-progress {
  from { width: 0; }
  to   { width: 100%; }
}

.pm { background: #F4F6F7; border-radius: 14px; overflow: hidden; position: relative; z-index: 1; }
.pm.hidden { display: none; }
.pm-chrome {
  background: linear-gradient(180deg, #4f7d88, #406874);
  color: #fff;
  padding: 12px 20px;
  display: flex; align-items: center; gap: 14px;
  font-size: 13px;
}
.pm-chrome .pm-brand-logo {
  height: 24px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: .92;
  flex-shrink: 0;
}
.pm-chrome .pm-brand-divider {
  width: 1px; height: 24px;
  background: rgba(255,255,255,.18);
  margin-right: 4px;
  flex-shrink: 0;
}
.pm-chrome .pm-site { font-weight: 700; font-size: 15px; letter-spacing: -.005em; }
.pm-chrome .pm-site small { display: block; font-size: 10.5px; font-weight: 500; letter-spacing: .1em; opacity: .8; text-transform: uppercase; margin-top: 2px; }
.pm-chrome .pm-status {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(79,176,79,.22); border: 1px solid rgba(79,176,79,.5);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em;
}
.pm-chrome .pm-dot { width: 8px; height: 8px; border-radius: 50%; background: #65d265; box-shadow: 0 0 8px #65d265; animation: pm-pulse 1.8s ease-in-out infinite; }
@keyframes pm-pulse { 0%, 100% { opacity: 1 } 50% { opacity: .35 } }
.pm-chrome .pm-time { font-family: var(--font-mono); font-size: 12px; opacity: .85; }

.pm-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 10px;
  padding: 12px;
}
.pm-map-col { display: flex; flex-direction: column; gap: 10px; }
.pm-below-map { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pm-below-right { display: flex; flex-direction: column; gap: 10px; }
.pm-side { display: flex; flex-direction: column; gap: 10px; }
.pm-card {
  background: #fff;
  border-radius: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
}
.pm-card-h { font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-500); font-weight: 700; margin-bottom: 12px; display: flex; justify-content: space-between; align-items: baseline; }
.pm-card-h small { font-family: var(--font-sans); font-size: 11px; letter-spacing: 0; color: var(--ink-300); text-transform: none; font-weight: 500; }

/* ISPU card */
.pm-ispu { display: flex; align-items: baseline; justify-content: space-between; }
.pm-ispu-label { font-size: 24px; font-weight: 700; color: #4FB04F; letter-spacing: .02em; }
.pm-ispu-num { font-size: 36px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; line-height: 1; }
.pm-ispu-note { font-size: 11.5px; color: var(--ink-500); margin-top: 8px; line-height: 1.4; }
.pm-ispu-scale {
  margin-top: 12px; height: 6px; border-radius: 3px;
  background: linear-gradient(90deg, #4FB04F 0%, #4FB04F 10%, #F2B544 30%, #E76A4A 60%, #8B3A8B 85%, #5B1F4B 100%);
  position: relative;
}
.pm-ispu-scale::after {
  content: ""; position: absolute; left: 9%; top: -3px; width: 12px; height: 12px;
  border-radius: 50%; background: #fff; border: 2.5px solid var(--ink);
}

/* Contributor list */
.pm-contrib { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.pm-contrib li { display: grid; grid-template-columns: 24px 1fr auto; gap: 10px; align-items: center; font-size: 13px; }
.pm-contrib .pm-rank { width: 24px; height: 24px; border-radius: 6px; background: var(--teal-100); color: var(--teal-600); font-weight: 700; display: grid; place-items: center; font-size: 12px; }
.pm-contrib .pm-name { line-height: 1.3; font-weight: 600; }
.pm-contrib .pm-name small { display: block; color: var(--ink-500); font-size: 11px; font-weight: 500; margin-top: 2px; font-family: var(--font-mono); letter-spacing: .02em; }
.pm-contrib .pm-pct { font-weight: 700; color: var(--ink); font-size: 14px; }

/* CEMS list */
.pm-cems { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.pm-cems li {
  display: flex; align-items: center; gap: 10px;
  background: #F7FAF9;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px 12px;
  font-size: 12.5px;
  color: var(--ink-500);
}
.pm-cems li b { color: var(--ink); margin-right: 8px; font-weight: 700; font-family: var(--font-mono); letter-spacing: .02em; }
.pm-cems li.warn { background: rgba(242,181,68,.12); border-color: rgba(242,181,68,.5); }
.pm-cems li.alert { background: rgba(231,106,74,.12); border-color: rgba(231,106,74,.5); }
.pm-cems .pm-cems-stat { margin-left: auto; }
.pm-cems .pm-ok { color: #4FB04F; }
.pm-cems .pm-warn { color: #d9a13a; }
.pm-fine { display: block; margin-top: 10px; font-size: 11px; color: var(--ink-500); line-height: 1.45; }

/* Center: map / dispersion */
.pm-map {
  background: linear-gradient(180deg, #F2F4F2 0%, #E8EBE8 100%);
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  height: 300px;
  border: 1px solid var(--line);
}
.pm-map > svg { width: 100%; height: 100%; display: block; }
.pm-map svg polygon { stroke: rgba(6,47,65,.18); stroke-width: .5; vector-effect: non-scaling-stroke; }
.pm-map svg polygon[fill^="#5"], .pm-map svg polygon[fill^="#6"],
.pm-map svg polygon[fill^="#2"], .pm-map svg polygon[fill^="#3"],
.pm-map svg polygon[fill^="#4"] { stroke: rgba(6,47,65,.32); }
.pm-map svg { width: 100%; height: 100%; display: block; }
.pm-map-tabs {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  display: flex; gap: 4px;
  background: rgba(255,255,255,.9); backdrop-filter: blur(6px);
  border-radius: 8px; padding: 4px;
  border: 1px solid var(--line);
}
.pm-map-tabs button {
  appearance: none; border: 0; background: transparent;
  padding: 6px 11px; border-radius: 6px;
  font-size: 11px; font-weight: 600; color: var(--ink-500); letter-spacing: .03em;
}
.pm-map-tabs button.active { background: var(--ink); color: #fff; }
.pm-map-legend {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  background: rgba(255,255,255,.92); backdrop-filter: blur(6px);
  border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px;
  font-size: 10.5px; letter-spacing: .04em;
}
.pm-map-legend .pm-legend-h { font-family: var(--font-mono); font-size: 10px; color: var(--ink-500); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 6px; }
.pm-map-legend .pm-legend-h b { color: var(--ink); }
.pm-map-legend .pm-legend-scale { display: flex; height: 6px; border-radius: 3px; overflow: hidden; }
.pm-map-legend .pm-legend-scale span { flex: 1; }
.pm-map-legend .pm-legend-labels { display: flex; justify-content: space-between; margin-top: 4px; font-family: var(--font-mono); font-size: 9.5px; color: var(--ink-500); }
.pm-map-popup {
  position: absolute; top: 38%; left: 50%; transform: translate(-50%, -50%);
  z-index: 3;
  background: #fff;
  border-radius: 10px;
  border: 1px solid var(--line);
  box-shadow: 0 12px 32px -8px rgba(6,47,65,.25);
  padding: 12px 14px;
  min-width: 200px;
}
.pm-map-popup .pm-pop-id { font-family: var(--font-mono); font-size: 11px; font-weight: 700; color: var(--ink); letter-spacing: .04em; }
.pm-map-popup .pm-pop-name { font-size: 12.5px; font-weight: 600; color: var(--teal-600); margin-top: 2px; }
.pm-map-popup .pm-pop-sub { font-size: 11px; color: var(--ink-500); margin-top: 1px; }
.pm-map-popup .pm-pop-vals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; }
.pm-map-popup .pm-pop-vals div { background: #F4F6F7; border-radius: 6px; padding: 6px 8px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 1px; }
.pm-map-popup .pm-pop-vals small { display: block; font-family: var(--font-mono); font-size: 9.5px; color: var(--ink-500); letter-spacing: .06em; }
.pm-map-popup .pm-pop-vals b { display: block; font-size: 14px; font-weight: 700; color: var(--ink); line-height: 1; }
.pm-map-popup .pm-pop-vals i { font-style: normal; font-size: 9px; color: var(--ink-300); line-height: 1; }
.pm-map-popup .pm-pop-comply { display: inline-block; margin-top: 10px; padding: 3px 8px; background: rgba(79,176,79,.15); color: #357d35; border: 1px solid rgba(79,176,79,.4); border-radius: 4px; font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; }

.pm-aqms {
  position: absolute;
  display: flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 10px; font-weight: 600; color: var(--ink);
  background: rgba(255,255,255,.9); padding: 4px 8px; border-radius: 999px;
  border: 1px solid var(--line);
}
.pm-aqms::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #4FB04F; box-shadow: 0 0 6px #4FB04F; }

.pm-map-foot {
  position: absolute; bottom: 14px; left: 14px; right: 14px; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(255,255,255,.92); backdrop-filter: blur(6px);
  border: 1px solid var(--line); border-radius: 8px;
  padding: 8px 14px;
  font-family: var(--font-mono); font-size: 11px; color: var(--ink-500);
}
.pm-map-foot b { color: var(--ink); font-weight: 700; margin-right: 4px; }
.pm-map-foot .pm-foot-sep { color: var(--ink-300); margin: 0 10px; }

/* Right: capacity + trend + alerts */
.pm-cap-num { font-size: 44px; font-weight: 800; color: var(--ink); line-height: .95; letter-spacing: -.02em; }
.pm-cap-num small { font-size: 18px; color: var(--teal-600); margin-left: 2px; font-weight: 700; }
.pm-cap-note { font-size: 12px; color: var(--ink-500); margin-top: 8px; line-height: 1.45; }
.pm-cap-list { list-style: none; padding: 0; margin: 14px 0 0 0; display: flex; flex-direction: column; gap: 9px; }
.pm-cap-list li { display: grid; grid-template-columns: 50px 1fr 40px; gap: 10px; align-items: center; font-size: 12.5px; color: var(--ink-500); font-weight: 600; }
.pm-bar { height: 6px; border-radius: 3px; background: #E4ECEC; overflow: hidden; }
.pm-bar span { display: block; height: 100%; background: linear-gradient(90deg, #4FB04F, #65d265); border-radius: 3px; }
.pm-cap-list li b { font-family: var(--font-sans); font-weight: 700; color: var(--ink); font-size: 13px; text-align: right; }

.pm-trend svg { width: 100%; height: 70px; display: block; }
.pm-trend-legend { display: flex; justify-content: flex-start; gap: 14px; margin-top: 8px; font-size: 11.5px; color: var(--ink-500); font-weight: 600; }
.pm-trend-legend span::before { content: "● "; }
.pm-trend-legend span:nth-child(1)::before { color: #4FB04F; }
.pm-trend-legend span:nth-child(2)::before { color: #F2B544; }
.pm-trend-legend span:nth-child(3)::before { color: #548e9b; }

.pm-notif {
  font-size: 12.5px; line-height: 1.45;
  padding: 10px 12px; border-radius: 7px;
  margin-top: 8px;
  display: flex; align-items: flex-start; gap: 8px;
}
.pm-notif::before {
  flex-shrink: 0;
  font-family: "Font Awesome 5 Free"; font-weight: 900;
  font-size: 12px; line-height: 1.2;
}
.pm-notif.ok { background: rgba(79,176,79,.12); color: #2a5f2a; border: 1px solid rgba(79,176,79,.35); }
.pm-notif.ok::before { content: "\f058"; color: #4FB04F; }
.pm-notif.info { background: rgba(84,142,155,.12); color: var(--ink); border: 1px solid rgba(84,142,155,.35); }
.pm-notif.info::before { content: "\f05a"; color: var(--teal-600); }

/* ---- Wastewater view ---- */
.pm-water-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 12px;
  padding: 14px;
}
.pm-water-aside { display: flex; flex-direction: column; gap: 12px; }
.pm-water-main { display: flex; flex-direction: column; gap: 12px; }

/* pH headline gauge */
.pm-ph-card { padding: 18px 20px; }
.pm-ph-card .pm-card-h { margin-bottom: 14px; }
.pm-ph-readout { display: flex; align-items: baseline; gap: 10px; }
.pm-ph-readout .pm-ph-num { font-size: 56px; font-weight: 800; letter-spacing: -.025em; color: var(--ink); line-height: 1; }
.pm-ph-readout .pm-ph-sub { font-family: var(--font-mono); font-size: 12px; color: var(--ink-500); }
.pm-ph-stat { display: inline-block; margin-left: auto; padding: 4px 10px; border-radius: 999px; background: rgba(79,176,79,.15); color: #357d35; border: 1px solid rgba(79,176,79,.4); font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em; align-self: center; }
.pm-ph-scale {
  margin-top: 14px;
  height: 10px;
  border-radius: 5px;
  background: linear-gradient(90deg, #d44a3a 0%, #f2b544 15%, #4FB04F 30%, #4FB04F 70%, #f2b544 85%, #5b3a8b 100%);
  position: relative;
}
.pm-ph-scale .pm-ph-marker {
  position: absolute; top: -5px; width: 4px; height: 20px;
  border-radius: 2px; background: var(--ink); box-shadow: 0 0 0 3px rgba(255,255,255,.9);
}
.pm-ph-scale .pm-ph-bounds {
  position: absolute; top: -3px; bottom: -3px; border: 2px dashed rgba(6,47,65,.4); border-radius: 5px;
}
.pm-ph-axis { display: flex; justify-content: space-between; margin-top: 6px; font-family: var(--font-mono); font-size: 10px; color: var(--ink-500); }

/* Device health card */
.pm-health-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.pm-health-row > div { font-size: 12px; color: var(--ink-500); }
.pm-health-row b { display: block; font-family: var(--font-mono); font-size: 22px; font-weight: 700; color: var(--ink); letter-spacing: -.01em; margin-top: 2px; }
.pm-health-row .pm-health-warn b { color: #d9a13a; }
.pm-health-row .pm-health-err b { color: var(--alert); }
.pm-health-meta { display: flex; gap: 14px; margin-top: 12px; font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-500); }
.pm-health-meta b { color: var(--ink); font-family: var(--font-sans); font-weight: 700; }

/* Parameter chip grid */
.pm-params {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.pm-param {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  display: flex; flex-direction: column; gap: 2px;
  position: relative;
  transition: transform .15s ease, box-shadow .15s ease;
}
.pm-param:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.pm-param .pm-pkey { font-size: 13px; color: var(--ink-500); font-weight: 600; letter-spacing: .01em; }
.pm-param .pm-pval { font-size: 28px; font-weight: 700; color: var(--ink); letter-spacing: -.015em; line-height: 1.05; margin-top: 4px; display: flex; align-items: baseline; gap: 4px; }
.pm-param .pm-pval small { font-size: 12px; color: var(--ink-500); font-weight: 500; letter-spacing: .01em; }
.pm-param .pm-pmeta { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; font-size: 11px; color: var(--ink-500); font-weight: 600; }
.pm-param .pm-pmeta > span:first-child { font-family: var(--font-mono); letter-spacing: .02em; }
.pm-param .pm-ptag { padding: 2px 7px; border-radius: 4px; letter-spacing: .04em; }
.pm-param.alert { background: rgba(231,106,74,.10); border-color: rgba(231,106,74,.55); }
.pm-param.alert .pm-pval { color: var(--alert); }
.pm-param.alert .pm-ptag { background: rgba(231,106,74,.18); color: #a8442d; }
.pm-param.warn { background: rgba(242,181,68,.10); border-color: rgba(242,181,68,.55); }
.pm-param.warn .pm-pval { color: #b88a2a; }
.pm-param.warn .pm-ptag { background: rgba(242,181,68,.20); color: #8a6418; }
.pm-param.ok .pm-ptag { background: rgba(79,176,79,.15); color: #357d35; }

/* Outfall trend / pH chart */
.pm-chart-card { background: #fff; border-radius: 10px; border: 1px solid var(--line); padding: 16px 18px; }
.pm-chart-h { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; }
.pm-chart-title { font-size: 13px; font-weight: 700; color: var(--ink); }
.pm-chart-stat { font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-500); letter-spacing: .04em; }
.pm-chart svg { width: 100%; height: 130px; display: block; }

/* Outfall picker */
.pm-outfall-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.pm-outfall-tabs button {
  appearance: none; cursor: pointer;
  background: #fff; border: 1px solid var(--line);
  border-radius: 8px; padding: 8px 13px;
  font-size: 12.5px;
  color: var(--ink-500); font-weight: 600;
}
.pm-outfall-tabs button.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.pm-outfall-tabs button .pm-outfall-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }

@media (max-width: 1080px) {
  .pm-water-grid { grid-template-columns: 1fr; }
  .pm-params { grid-template-columns: repeat(2, 1fr); }
}

/* ---- Energy view ---- */
.pm-energy-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  padding: 14px;
}
.pm-kpi {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  display: flex; flex-direction: column; gap: 4px;
}
.pm-kpi .pm-kpi-ico {
  width: 36px; height: 36px;
  border-radius: 9px;
  background: var(--teal-100);
  color: var(--teal-600);
  display: grid; place-items: center;
  font-size: 16px;
  margin-bottom: 8px;
}
.pm-kpi .pm-kpi-label { font-size: 12.5px; color: var(--ink-500); font-weight: 600; }
.pm-kpi .pm-kpi-val { font-size: 30px; font-weight: 800; color: var(--ink); letter-spacing: -.025em; line-height: 1; margin-top: 6px; display: flex; align-items: baseline; gap: 5px; }
.pm-kpi .pm-kpi-val small { font-size: 13px; color: var(--ink-500); font-weight: 600; }
.pm-kpi .pm-kpi-delta { display: inline-flex; align-items: center; gap: 5px; margin-top: 8px; font-size: 11.5px; padding: 2px 8px; border-radius: 999px; font-weight: 700; width: max-content; }
.pm-kpi .pm-kpi-delta.up   { color: #a8442d; background: rgba(231,106,74,.13); }
.pm-kpi .pm-kpi-delta.down { color: #2b7a3f; background: rgba(79,176,79,.15); }
.pm-kpi .pm-kpi-delta.flat { color: var(--ink-500); background: rgba(6,47,65,.06); }

.pm-energy-body {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 12px;
  padding: 0 14px 14px;
}

.pm-energy-left { display: flex; flex-direction: column; gap: 12px; }
.pm-energy-chart { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px 14px; }
.pm-energy-chart .pm-chart-h { margin-bottom: 4px; }
.pm-energy-chart svg { width: 100%; height: 150px; display: block; }
.pm-energy-legend { display: flex; gap: 18px; margin-top: 6px; font-size: 12px; color: var(--ink-500); font-weight: 600; }
.pm-energy-legend span::before { content: "● "; }
.pm-energy-legend .l-cons::before { color: #548e9b; }
.pm-energy-legend .l-base::before { color: #c7d4d3; }
.pm-energy-legend .l-peak::before { color: #E76A4A; }

.pm-energy-side { display: flex; flex-direction: column; gap: 12px; }

/* Energy mix breakdown bars */
.pm-mix { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.pm-mix li { display: grid; grid-template-rows: auto auto; gap: 4px; }
.pm-mix .pm-mix-head { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--ink); font-weight: 600; }
.pm-mix .pm-mix-head b { font-family: var(--font-mono); font-size: 13px; font-weight: 700; }
.pm-mix .pm-mix-track { height: 8px; border-radius: 4px; background: #EEF1EF; overflow: hidden; }
.pm-mix .pm-mix-fill { height: 100%; border-radius: 4px; background: linear-gradient(90deg, #548e9b, #76b4c0); }
.pm-mix .pm-mix-fill.warn { background: linear-gradient(90deg, #F2B544, #ffc55c); }

/* Cost / carbon mini cards */
.pm-stack-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pm-stack-cards .pm-card { padding: 14px 16px; }
.pm-stack-cards .pm-card-num { font-size: 22px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; line-height: 1; margin-top: 4px; }
.pm-stack-cards .pm-card-num small { font-size: 11.5px; color: var(--ink-500); font-weight: 600; margin-left: 2px; }
.pm-stack-cards .pm-card-foot { font-size: 11px; color: var(--ink-500); margin-top: 6px; font-weight: 600; }

@media (max-width: 1080px) {
  .pm-energy-grid { grid-template-columns: repeat(2, 1fr); }
  .pm-energy-body { grid-template-columns: 1fr; }
  .pm-stack-cards { grid-template-columns: 1fr 1fr; }
}

/* Responsive: stack the platform mock on narrow screens */
@media (max-width: 1080px) {
  .pm-grid { grid-template-columns: 1fr; }
  .pm-below-map { grid-template-columns: 1fr; }
}

/* ============================================================
   FIELD DEPLOYMENTS — site installation photo strip
   ============================================================ */
.field-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.field-strip figure {
  margin: 0;
  background: var(--paper);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  transition: transform .25s ease, box-shadow .25s ease;
}
.field-strip figure:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.field-strip .field-photo {
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  background-color: var(--ink);
}
.field-strip figcaption {
  padding: 14px 16px 18px;
  font-size: 13.5px;
  color: var(--ink-500);
  line-height: 1.45;
}
.field-strip figcaption b { display: block; color: var(--ink); font-size: 14.5px; font-weight: 700; margin-bottom: 4px; }
@media (max-width: 1080px) {
  .field-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .field-strip { grid-template-columns: 1fr; }
}

/* ---- Stats strip ---- */
.stats { background: var(--paper); padding-block: 56px clamp(80px, 9vw, 110px); }
.stats .grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
}
.stats .cell {
  background: transparent;
  padding: 20px 4px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
  position: relative;
}
.stats .cell + .cell::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 10%;
  bottom: 10%;
  width: 1px;
  background: var(--line);
}
.stats .cell .stat-ico {
  width: auto;
  height: 56px;
  border-radius: 0;
  background: transparent;
  color: var(--teal-600);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.stats .cell .stat-ico svg { width: 56px; height: 56px; display: block; }
.stats .cell .stat-ico i.fas,
.stats .cell .stat-ico i.fa-solid {
  font-size: 44px;
  line-height: 1;
  color: var(--teal-600);
}
.stats .cell .num {
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--ink);
  line-height: .95;
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.stats .cell .num span { color: var(--teal-600); }
.stats .cell .num small { font-size: 18px; color: var(--ink-500); font-weight: 600; letter-spacing: 0; }
.stats .cell .lab {
  margin-top: 0;
  color: var(--ink-500);
  font-size: 14px;
  line-height: 1.45;
  max-width: 240px;
  text-align: center;
}

/* ---- Solutions grid ---- */
.solgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.sol-card { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 28px; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; display: flex; flex-direction: column; gap: 14px; min-height: 280px; }
.sol-card:hover { transform: translateY(-3px); border-color: var(--teal); box-shadow: var(--shadow-md); }
.sol-card .ico { width: 44px; height: 44px; border-radius: 10px; background: var(--teal-100); color: var(--teal-600); display: grid; place-items: center; font-size: 18px; }
.sol-card .reg { font-family: var(--font-mono); font-size: 11px; letter-spacing: .15em; text-transform: uppercase; color: var(--teal-600); }
.sol-card h3 { margin-top: 2px; }
.sol-card p { color: var(--ink-500); font-size: 14.5px; line-height: 1.5; }
.sol-card .link { margin-top: auto; color: var(--teal-600); font-weight: 600; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; }
.sol-card:hover .link { gap: 12px; }

/* ---- Pipeline (How it works) ---- */
.pipeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; position: relative; }
.pipeline .step {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  padding: 22px;
  position: relative;
  transition: transform .22s ease, background .22s ease, border-color .22s ease, box-shadow .22s ease;
  cursor: default;
}
.pipeline .step:hover {
  transform: translateY(-5px);
  background: rgba(84,142,155,.14);
  border-color: rgba(84,142,155,.5);
  box-shadow: 0 16px 40px -12px rgba(6,47,65,.5), 0 0 0 1px rgba(84,142,155,.18);
}
.pipeline .step .n { font-family: var(--font-mono); font-size: 11px; letter-spacing: .15em; color: var(--teal); margin-top: 14px; }
.pipeline .step h4 { color: #fff; margin-top: 6px; font-size: 17px; }
.pipeline .step p { color: #A6BFC7; font-size: 13.5px; margin-top: 8px; line-height: 1.5; }
.pipeline .step .proto { font-family: var(--font-mono); font-size: 11px; color: #7B97A0; margin-top: 14px; letter-spacing: .04em; }
.pipeline .arrow { position: absolute; top: 50%; right: -10px; transform: translateY(-50%); width: 20px; height: 20px; border-radius: 50%; background: var(--ink); border: 1px solid rgba(255,255,255,.15); color: var(--teal); display: grid; place-items: center; font-size: 10px; z-index: 2; }
.pipeline .step:last-child .arrow { display: none; }

/* Step icon — matches product dropdown icons */
.pipeline .step .step-ico {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: rgba(84,142,155,.15);
  border: 1px solid rgba(84,142,155,.28);
  color: var(--teal);
  display: grid;
  place-items: center;
  font-size: 18px;
  transition: background .22s ease, border-color .22s ease, color .22s ease, box-shadow .22s ease;
}
.pipeline .step:hover .step-ico {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
  box-shadow: 0 0 18px rgba(84,142,155,.45);
}

/* ---- Why us / feature cards ---- */
.whygrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.why-card { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 28px; }
.why-card .ico { width: 44px; height: 44px; border-radius: 10px; background: var(--teal); color: #fff; display: grid; place-items: center; font-size: 18px; margin-bottom: 16px; }
.why-card h3 { font-size: 18px; }
.why-card p { margin-top: 8px; color: var(--ink-500); font-size: 14.5px; line-height: 1.55; }

/* ---- Industries strip ---- */
.industries { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.ind-tile { aspect-ratio: 1 / 1.05; border-radius: 14px; border: 1px solid var(--line); background: var(--paper); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 16px; transition: transform .2s ease, background .2s ease, color .2s ease; }
.ind-tile:hover { background: var(--ink); color: #fff; transform: translateY(-2px); }
.ind-tile i { font-size: 36px; color: var(--teal-600); }
.ind-tile:hover i { color: var(--teal); }
.ind-tile span { font-size: 13px; font-weight: 600; text-align: center; }

/* ---- CTA banner ---- */
.cta-banner { background: var(--ink); color: #fff; border-radius: 22px; padding: 56px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; position: relative; overflow: hidden; }
.cta-banner::before { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(84,142,155,.35), transparent 60%); pointer-events: none; }
.cta-banner h2 { color: #fff; max-width: 520px; }
.cta-banner p { color: #B7CBD2; margin-top: 16px; max-width: 520px; }
.cta-banner .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-banner .actions { justify-self: end; }

/* ---- Footer ---- */
.footer { background: #051F2C; color: #B7CBD2; padding-block: 64px 32px; }
.footer h5 { font-family: var(--font-mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: #6E8C95; font-weight: 600; margin: 0 0 16px 0; }
.footer .grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer a { color: #B7CBD2; font-size: 14px; }
.footer a:hover { color: var(--teal); }
.footer .legal { border-top: 1px solid rgba(255,255,255,.08); margin-top: 48px; padding-top: 24px; display: flex; justify-content: space-between; font-size: 12.5px; color: #6E8C95; flex-wrap: wrap; gap: 16px; }
.footer .brand .mark-text { color: #fff; }
.footer .brand-blurb { color: #88A2AB; font-size: 14px; margin-top: 14px; max-width: 320px; line-height: 1.5; }
.footer .contact { display: flex; flex-direction: column; gap: 10px; }
.footer .contact a { display: inline-flex; align-items: center; gap: 10px; }
.footer .contact i { color: var(--teal); width: 16px; text-align: center; }

/* =========================================================
   PAGE TEMPLATES - Solution detail & Product detail
   ========================================================= */

/* ---- Page hero with breadcrumb ---- */
.page-hero { background: #548e9b; color: #FFFFFF; position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0;
  background: radial-gradient(800px 400px at 80% 10%, rgba(255,255,255,.16), transparent 60%),
              radial-gradient(600px 300px at 10% 80%, rgba(6,47,65,.20), transparent 70%);
  pointer-events: none;
}
.page-hero .container { padding-block: 72px; position: relative; z-index: 2; display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .15em; text-transform: uppercase; color: rgba(255,255,255,.65); margin-bottom: 18px; }
.breadcrumb a { color: #fff; }
.breadcrumb i { font-size: 8px; opacity: .5; }
.page-hero h1 { color: #fff; font-size: clamp(36px, 4.5vw, 56px); }
.page-hero .lead { color: rgba(255,255,255,.88); margin-top: 18px; max-width: 520px; font-size: 18px; }
.page-hero .reg-badge { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 999px;
  background: rgba(84,142,155,.15); border: 1px solid rgba(84,142,155,.4); color: var(--teal); font-family: var(--font-mono); font-size: 11px; letter-spacing: .15em; text-transform: uppercase; margin-bottom: 22px; }
.page-hero .actions { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }

/* Hero "screenshot" placeholder for solution + product pages */
.hero-shot { aspect-ratio: 4 / 3; border-radius: 16px; background: #0E4A63; border: 1px solid rgba(255,255,255,.08); box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.hero-shot .ph-stripes { position: absolute; inset: 0;
  background-image: repeating-linear-gradient(45deg, rgba(84,142,155,.08), rgba(84,142,155,.08) 12px, transparent 12px, transparent 24px);
}
.hero-shot .ph-label { position: absolute; bottom: 14px; left: 14px; right: 14px; font-family: var(--font-mono); font-size: 11px; color: #9BB9C2; letter-spacing: .1em; text-transform: uppercase; }
.hero-shot .ph-label::before { content: "▮ "; color: var(--teal); }

/* ---- Overview / two-column intro ---- */
.two-col { display: grid; grid-template-columns: 1fr 1.3fr; gap: 64px; align-items: start; }
.two-col aside .eyebrow { display: block; margin-bottom: 12px; }
.two-col aside h2 { font-size: clamp(28px, 3vw, 38px); }
.two-col .lead { font-size: 17px; color: var(--ink-500); }
.two-col .body p + p { margin-top: 18px; }
.two-col .body strong { color: var(--ink); }

/* ---- Benefits / icon list ---- */
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ben-card { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 28px; }
.ben-card .ico { width: 40px; height: 40px; border-radius: 10px; background: var(--teal-100); color: var(--teal-600); display: grid; place-items: center; font-size: 16px; margin-bottom: 14px; }
.ben-card h4 { font-size: 16px; }
.ben-card p { color: var(--ink-500); margin-top: 6px; font-size: 14px; line-height: 1.5; }

/* ---- Feature grid (large feature cards w/ shots) ---- */
.feat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.feat-card { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }
.feat-card .copy h3 { font-size: 20px; }
.feat-card .copy p { color: var(--ink-500); margin-top: 10px; font-size: 14.5px; }
.feat-card .copy ul { padding-left: 18px; margin-top: 12px; color: var(--ink-500); font-size: 14px; }
.feat-card .copy ul li { margin-block: 6px; }
.feat-card .shot { aspect-ratio: 4 / 3; border-radius: 12px; background: var(--teal-100); position: relative; overflow: hidden; }
.feat-card .shot .ph-stripes { position: absolute; inset: 0;
  background-image: repeating-linear-gradient(45deg, rgba(84,142,155,.18), rgba(84,142,155,.18) 10px, transparent 10px, transparent 20px); }
.feat-card .shot .ph-label { position: absolute; bottom: 10px; left: 10px; font-family: var(--font-mono); font-size: 10px; color: var(--ink-500); letter-spacing: .08em; text-transform: uppercase; }
.feat-card.feat-card--wide { grid-column: span 2; }

/* ---- Process steps (numbered) ---- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; counter-reset: step; }
.proc-step { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 28px; position: relative; }
.proc-step .num { font-family: var(--font-mono); font-size: 11px; letter-spacing: .15em; color: var(--teal-600); }
.proc-step h4 { margin-top: 8px; font-size: 17px; }
.proc-step p { margin-top: 8px; color: var(--ink-500); font-size: 13.5px; line-height: 1.5; }
.proc-step::before { content: ""; position: absolute; top: 0; left: 28px; right: 28px; height: 2px; background: linear-gradient(90deg, var(--teal), transparent); border-radius: 2px; }

/* ---- Spec table (Product detail) ---- */
.spec-table { width: 100%; border-collapse: collapse; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.spec-table tr + tr td { border-top: 1px solid var(--line); }
.spec-table td { padding: 16px 22px; font-size: 14.5px; vertical-align: top; }
.spec-table td:first-child { width: 32%; color: var(--ink-500); font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .04em; }
.spec-table td:last-child { color: var(--ink); }

/* ---- Related cards ---- */
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.rel-card { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.rel-card .ico { width: 38px; height: 38px; border-radius: 9px; background: var(--ink); color: var(--teal); display: grid; place-items: center; font-size: 15px; }
.rel-card h4 { font-size: 16px; }
.rel-card p { color: var(--ink-500); font-size: 13.5px; }
.rel-card a { margin-top: auto; color: var(--teal-600); font-weight: 600; display: inline-flex; gap: 8px; align-items: center; font-size: 13px; }

/* ---- Pipeline call-out (on solution page) ---- */
.pipe-callout { background: var(--ink); border-radius: 18px; padding: 36px; color: #DCEFEC; }
.pipe-callout .label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .15em; color: var(--teal); text-transform: uppercase; }
.pipe-callout h3 { color: #fff; margin-top: 8px; font-size: 22px; }
.pipe-callout .row { margin-top: 24px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; align-items: center; }
.pipe-callout .node { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: 10px; padding: 14px 12px; text-align: center; }
.pipe-callout .node.active { background: var(--teal); color: #062F41; border-color: var(--teal); }
.pipe-callout .node.active small { color: #06354B; }
.pipe-callout .node small { display: block; font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; color: #88A8B2; text-transform: uppercase; }
.pipe-callout .node b { font-weight: 600; font-size: 13px; display: block; margin-top: 4px; color: #fff; }
.pipe-callout .node.active b { color: #062F41; }
.pipe-callout .sep { color: var(--teal); text-align: center; font-size: 14px; }

/* ---- Tweaks panel overrides for theme switching ---- */
[data-density="compact"] .section { padding-block: clamp(40px, 6vw, 80px); }
[data-density="compact"] .hero .container { padding-block: 64px; }

/* ---- Mobile nav hamburger button (hidden on desktop, shown via @media block below) ---- */
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
  font-size: 16px;
  color: var(--ink);
}

/* ---- Responsive ---- */
@media (max-width: 1080px) {
  .hero .container, .page-hero .container, .cta-banner, .two-col { grid-template-columns: 1fr; gap: 36px; }
  .cta-banner .actions { justify-self: start; }
  .solgrid, .whygrid, .benefits, .related-grid { grid-template-columns: repeat(2, 1fr); }
  .industries { grid-template-columns: repeat(3, 1fr); }
  .pipeline, .process { grid-template-columns: repeat(2, 1fr); }
  .stats .grid { grid-template-columns: repeat(2, 1fr); }
  .pipeline .arrow { display: none; }
  .feat-card { grid-template-columns: 1fr; }
  .footer .grid { grid-template-columns: 1fr 1fr; }
}

/* ==========================================================
   HAMBURGER / MOBILE NAV
   ========================================================== */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  cursor: pointer;
  flex-shrink: 0;
  transition: background .15s ease;
}
.nav-toggle:hover { background: var(--teal-100); }
.nav-toggle i { font-size: 16px; pointer-events: none; }

/* full-screen overlay */
.mobile-nav-overlay {
  display: none;
  position: fixed; inset: 0;
  z-index: 200;
  background: rgba(6,47,65,.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.mobile-nav-overlay.open { display: block; }

/* sliding drawer */
.mobile-nav-panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(320px, 88vw);
  background: #fff;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-shadow: -8px 0 32px rgba(6,47,65,.18);
}
.mobile-nav-close {
  align-self: flex-end;
  appearance: none; border: 0; background: transparent;
  font-size: 20px; color: var(--ink-500);
  cursor: pointer; padding: 8px; line-height: 1;
  border-radius: 8px;
}
.mobile-nav-close:hover { background: var(--teal-100); }
.mobile-nav-section {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-300); padding: 14px 10px 6px;
}
.mobile-nav-panel a {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 10px; border-radius: 8px;
  font-size: 15px; font-weight: 600; color: var(--ink);
}
.mobile-nav-panel a:hover { background: var(--teal-100); }
.mobile-nav-panel a i { color: var(--teal-600); width: 18px; text-align: center; font-size: 14px; }
.mobile-nav-panel .mobile-nav-cta {
  margin-top: 12px; padding: 14px 10px;
  border-top: 1px solid var(--line);
}
.mobile-nav-panel .mobile-nav-cta .btn {
  display: flex; width: 100%; justify-content: center;
}

/* ==========================================================
   MOBILE — 768px and below
   ========================================================== */
@media (max-width: 768px) {
  /* Topbar */
  .nav-toggle { display: flex; }
  .nav { display: none !important; }
  .topbar .actions { display: none; }
  .topbar .row { height: 64px; gap: 12px; }

  /* Override hard-coded inline section-head widths */
  .section-head { max-width: 100% !important; width: auto !important; }

  /* Hero */
  .hero .container { padding-block: 56px 48px; gap: 32px; }
  .hero p.lead { font-size: 17px; margin-top: 16px; }
  .hero .hero-cta { flex-wrap: wrap; gap: 10px; }
  .hero-right { margin-top: 0; gap: 16px; }
  /* Hide the 4 HUD data overlays — they collide on small canvases */
  .hud { display: none; }
  .scene-frame { max-width: 100%; }
  .hero .micro { font-size: 13px; gap: 10px 20px; }

  /* Trust bar */
  .trust .row { flex-direction: column; align-items: flex-start; gap: 14px; padding-block: 20px; }
  .trust ul { gap: 14px 28px; }

  /* Stats */
  .stats .grid { grid-template-columns: repeat(2, 1fr); gap: 0; }
  .stats .cell { padding: 24px 16px; gap: 12px; }
  .stats .cell .num { font-size: 44px; }
  .stats .cell + .cell::before { display: none; }
  .stats .cell:nth-child(odd) { border-right: 1px solid var(--line); }
  .stats .cell:nth-child(-n+2) { border-bottom: 1px solid var(--line); }

  /* Solutions / Why / Benefits / Related */
  .solgrid, .whygrid, .benefits, .related-grid { grid-template-columns: 1fr; gap: 12px; }
  .sol-card { min-height: auto; padding: 22px; }
  .why-card { padding: 22px; }
  .ben-card { padding: 22px; }

  /* Platform preview — outer tab bar */
  .pm-view-tabs {
    width: 100%; border-radius: 12px; flex-wrap: nowrap;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    scrollbar-width: none; justify-content: flex-start;
  }
  .pm-view-tabs::-webkit-scrollbar { display: none; }
  .pm-view-tabs button { padding: 8px 16px; font-size: 12px; white-space: nowrap; flex-shrink: 0; }

  /* Chrome bar inside panel */
  .pm-chrome { flex-wrap: wrap; gap: 6px; padding: 10px 14px; }
  .pm-chrome .pm-time { display: none; }
  .pm-chrome .pm-site { font-size: 13px; }

  /* Air panel */
  .pm-grid { grid-template-columns: 1fr; gap: 8px; padding: 8px; }
  .pm-map { height: 220px; }
  .pm-map-popup { display: none; }
  .pm-map-tabs { top: 8px; left: 8px; }
  .pm-map-tabs button { padding: 4px 8px; font-size: 10px; }
  .pm-map-legend { top: 8px; right: 8px; padding: 7px 9px; }
  .pm-map-foot { left: 8px; right: 8px; bottom: 8px; flex-wrap: wrap; gap: 4px; font-size: 10px; }
  .pm-map-foot .pm-foot-sep { display: none; }
  .pm-below-map { grid-template-columns: 1fr; }
  .pm-side { gap: 8px; }
  .pm-ispu-num { font-size: 28px; }
  .pm-ispu-label { font-size: 18px; }
  .pm-cap-num { font-size: 36px; }

  /* Wastewater panel */
  .pm-water-grid { grid-template-columns: 1fr; padding: 8px; gap: 8px; }
  .pm-params { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .pm-param .pm-pval { font-size: 22px; }
  .pm-ph-readout .pm-ph-num { font-size: 44px; }

  /* Energy panel */
  .pm-energy-grid { grid-template-columns: repeat(2, 1fr); padding: 8px; gap: 8px; }
  .pm-energy-body { grid-template-columns: 1fr; padding: 0 8px 8px; gap: 8px; }
  .pm-kpi .pm-kpi-val { font-size: 22px; }
  .pm-stack-cards { grid-template-columns: 1fr 1fr; }

  /* Pipeline / process */
  .pipeline, .process { grid-template-columns: 1fr; gap: 10px; }
  .pipeline .arrow { display: none; }

  /* Industries */
  .industries { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .ind-tile { aspect-ratio: unset; padding: 18px 14px; min-height: 80px; }

  /* Field deployments */
  .field-strip { grid-template-columns: repeat(2, 1fr); gap: 10px; }

  /* CTA banner */
  .cta-banner { grid-template-columns: 1fr; padding: 28px 24px; gap: 22px; border-radius: 16px; }
  .cta-banner .actions { justify-self: start; }
  .cta-banner h2 { font-size: clamp(22px, 6vw, 34px); }

  /* Footer */
  .footer .grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer { padding-block: 48px 24px; }

  /* Buttons */
  .btn { padding: 11px 18px; font-size: 14px; }

  /* Pipe callout */
  .pipe-callout .row { grid-template-columns: 1fr; }
  .pipe-callout { padding: 24px; }

  /* Page-level hero (solution / product pages) */
  .page-hero .container { padding-block: 48px; gap: 28px; }

  /* Two-column text sections on inner pages */
  .two-col { grid-template-columns: 1fr; gap: 32px; }
  .feat-card { grid-template-columns: 1fr; padding: 22px; gap: 20px; }
  .feat-card.feat-card--wide { grid-column: span 1; }
  .feat-grid { grid-template-columns: 1fr; gap: 14px; }
}

/* ==========================================================
   MOBILE — 480px and below
   ========================================================== */
@media (max-width: 480px) {
  .topbar .row { height: 58px; }
  .brand-logo { height: 28px; }

  h1 { font-size: clamp(28px, 8vw, 38px); }
  h2 { font-size: clamp(22px, 7vw, 30px); }
  .text-lead { font-size: 16px; }

  .hero .container { padding-block: 44px 36px; gap: 28px; }
  .hero p.lead { font-size: 15px; }
  .hero .hero-cta .btn { width: 100%; justify-content: center; }

  .stats .grid { grid-template-columns: 1fr; }
  .stats .cell:nth-child(odd) { border-right: 0; }
  .stats .cell:nth-child(-n+2) { border-bottom: 0; }
  .stats .cell + .cell { border-top: 1px solid var(--line); }
  .stats .cell .num { font-size: 48px; }

  .pm-energy-grid { grid-template-columns: 1fr; }
  .pm-params { grid-template-columns: repeat(2, 1fr); }
  .pm-stack-cards { grid-template-columns: 1fr; }
  .pm-chrome .pm-status { display: none; }

  .cta-banner { padding: 22px 18px; border-radius: 14px; }
  .cta-banner .actions { flex-direction: column; align-items: stretch; }
  .cta-banner .actions .btn { justify-content: center; }

  .footer .grid { grid-template-columns: 1fr; }

  .field-strip { grid-template-columns: 1fr; }

  .industries { grid-template-columns: repeat(2, 1fr); }
  .ind-tile span { font-size: 12px; }

  .sol-card { padding: 18px; }
  .why-card, .ben-card { padding: 18px; }

  .section { padding-block: clamp(44px, 9vw, 80px); }
  .section--tight { padding-block: clamp(36px, 7vw, 60px); }
  .section-head { margin-bottom: 32px; }
}

/* ==========================================================
   MOBILE — 360px and below (smallest phones)
   ========================================================== */
@media (max-width: 360px) {
  .topbar .row { height: 54px; gap: 8px; }
  .brand-logo { height: 26px; }
  .nav-toggle { width: 36px; height: 36px; }

  h1 { font-size: 26px !important; }
  .hero .container { padding-block: 36px 28px; }
  .hero p.lead { font-size: 14px; }

  .pm-map { height: 180px; }
  .pm-map-tabs { display: none; }
  .pm-map-legend { display: none; }

  .btn { padding: 10px 16px; font-size: 13px; gap: 8px; }
}



