/* ============================================================
   MOON CHEMICAL PRODUCTS — Site Stylesheet
   Bright & clean — built around the blue/navy logo
   ============================================================ */

:root {
  --bg-0: #ffffff;
  --bg-1: #f3f7fc;
  --bg-2: #ffffff;
  --bg-navy: #0d2244;
  --line: rgba(13, 34, 68, 0.10);
  --line-strong: rgba(13, 34, 68, 0.18);
  --text-hi: #0d2244;
  --text-mid: #43556e;
  --text-low: #7c8ba0;
  --blue: #1a63e0;
  --blue-hi: #3b7ff2;
  --blue-deep: #0f47a8;
  --cyan: #0ea5c9;
  --pop: #ff9f1c;
  --card-shadow: 0 10px 34px rgba(13, 34, 68, 0.10);
  --card-shadow-hover: 0 22px 54px rgba(13, 34, 68, 0.16);
  --radius: 14px;
  --font-head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg-0);
  color: var(--text-mid);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-hi); }

.wrap { width: min(1180px, 92%); margin: 0 auto; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--text-hi);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

/* ---------- Utility ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 34px; height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.section { padding: 96px 0; position: relative; }
.section.alt { background: var(--bg-1); }

.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(34px, 4.5vw, 52px); margin-bottom: 16px; }
.section-head p { font-size: 17px; color: var(--text-mid); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 16px 30px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%);
  color: #ffffff;
  box-shadow: 0 10px 26px rgba(26, 99, 224, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(26, 99, 224, 0.45); color: #fff; }
/* On dark photo heroes / navy bands */
.btn-ghost {
  background: rgba(255,255,255,0.08);
  color: #ffffff;
  border-color: rgba(255,255,255,0.55);
  backdrop-filter: blur(4px);
}
.btn-ghost:hover { background: #ffffff; color: var(--text-hi); border-color: #ffffff; }
/* On light backgrounds */
.btn-outline {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}
.btn-outline:hover { background: var(--blue); color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: #ffffff;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px rgba(13, 34, 68, 0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand-logo {
  display: flex;
  align-items: center;
}
/* The logo file is a JPG on a white background — multiply blending makes
   the white disappear against the light header so it sits flush, no box */
.brand-logo img {
  height: 62px;
  width: auto;
  mix-blend-mode: multiply;
}
@media (max-width: 480px) {
  .brand-logo img { height: 50px; }
}
.brand-est {
  border-left: 1px solid var(--line-strong);
  padding-left: 14px;
  font-size: 11px;
  line-height: 1.6;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 700;
  white-space: nowrap;
}
@media (max-width: 560px) {
  .brand-est { display: none; }
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text .brand-name {
  font-family: var(--font-head);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-hi);
  text-transform: uppercase;
}
.brand-text .brand-sub {
  font-size: 10.5px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 700;
}

.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav > .nav-item { position: relative; }
.main-nav a.nav-link {
  display: block;
  padding: 10px 14px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-mid);
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.main-nav a.nav-link:hover,
.main-nav a.nav-link.active { color: var(--blue); background: rgba(26,99,224,0.08); }

.dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 240px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.22s ease;
  box-shadow: 0 24px 60px rgba(13, 34, 68, 0.18);
}
.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown a {
  display: block;
  padding: 11px 14px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--text-mid);
}
.dropdown a:hover { background: rgba(26,99,224,0.08); color: var(--blue); }

.header-cta { display: flex; align-items: center; gap: 14px; }
.header-phone {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-hi);
  white-space: nowrap;
}
.header-phone span { color: var(--blue); margin-right: 6px; }
.btn-header {
  padding: 12px 22px;
  font-size: 12.5px;
}

/* Mobile nav */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  width: 46px; height: 46px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 20px; height: 2px;
  background: var(--text-hi);
  transition: all 0.25s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1060px) {
  .header-phone { display: none; }
}
@media (max-width: 920px) {
  .nav-toggle { display: flex; }
  .header-cta .btn-header { display: none; }
  .main-nav {
    position: fixed;
    top: 84px; left: 0; right: 0;
    background: #ffffff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px rgba(13,34,68,0.12);
    flex-direction: column;
    align-items: stretch;
    padding: 18px 4vw 28px;
    gap: 2px;
    display: none;
    max-height: calc(100vh - 84px);
    overflow-y: auto;
  }
  .main-nav.open { display: flex; }
  .dropdown {
    position: static;
    opacity: 1; visibility: visible; transform: none;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 0 0 6px 16px;
    display: none;
  }
  .nav-item.open-sub .dropdown { display: block; }
  .main-nav a.nav-link { padding: 14px; font-size: 16px; }
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 84px;
}
.hero-media {
  position: absolute; inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.1s ease;
}
.hero-media video.on { opacity: 1; }
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(9, 24, 51, 0.92) 18%, rgba(13, 34, 68, 0.68) 50%, rgba(13, 34, 68, 0.25) 100%),
    linear-gradient(to top, rgba(9, 24, 51, 0.55) 0%, transparent 30%);
}
.hero-content { position: relative; z-index: 2; padding: 110px 0 150px; }
.hero h1 {
  font-size: clamp(46px, 7vw, 92px);
  max-width: 820px;
  margin-bottom: 24px;
  color: #ffffff;
}
.hero h1 .accent {
  background: linear-gradient(90deg, #5aa2ff, #35d0ef);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lede {
  font-size: clamp(16px, 2vw, 19px);
  max-width: 560px;
  color: rgba(255,255,255,0.88);
  margin-bottom: 40px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(6px);
  border-radius: 999px;
  padding: 8px 20px 8px 10px;
  margin-bottom: 30px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
}
.hero-badge .dot {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-hi), var(--cyan));
  color: #ffffff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 12px;
}

/* ---------- Stats bar ---------- */
.stats-bar {
  position: relative;
  z-index: 3;
  margin-top: -70px;
  margin-bottom: 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(13, 34, 68, 0.18);
}
.stat {
  padding: 34px 30px;
  border-right: 1px solid var(--line);
  position: relative;
}
.stat:last-child { border-right: none; }
.stat .num {
  font-family: var(--font-head);
  font-size: 44px;
  font-weight: 700;
  color: var(--text-hi);
  line-height: 1;
}
.stat .num em { color: var(--blue); font-style: normal; }
.stat .label {
  margin-top: 8px;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-low);
}
@media (max-width: 860px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); }
}

/* ---------- Intro split ---------- */
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}
.split.reverse { grid-template-columns: 0.95fr 1.05fr; }
.split-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--card-shadow-hover);
}
.split-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.split-media .media-tag {
  position: absolute;
  left: 20px; bottom: 20px;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 18px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-hi);
  box-shadow: 0 8px 22px rgba(13,34,68,0.15);
}
.split-media .media-tag strong { color: var(--blue); }
.split-body h2 { font-size: clamp(32px, 4vw, 46px); margin-bottom: 20px; }
.split-body p { margin-bottom: 18px; }
.checklist { list-style: none; margin: 26px 0 34px; }
.checklist li {
  position: relative;
  padding-left: 34px;
  margin-bottom: 14px;
  color: var(--text-mid);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 4px;
  width: 18px; height: 18px;
  border-radius: 5px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
}
.checklist li::after {
  content: "";
  position: absolute;
  left: 5px; top: 8px;
  width: 8px; height: 5px;
  border-left: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  transform: rotate(-45deg);
}
@media (max-width: 900px) {
  .split, .split.reverse { grid-template-columns: 1fr; gap: 36px; }
}

/* ---------- Industry cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.icard {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: var(--card-shadow);
}
.icard:hover {
  transform: translateY(-6px);
  border-color: rgba(26,99,224,0.45);
  box-shadow: var(--card-shadow-hover);
}
.icard .icard-media { height: 200px; overflow: hidden; position: relative; }
.icard .icard-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.icard:hover .icard-media img { transform: scale(1.06); }
.icard-body { padding: 24px 26px 28px; flex: 1; display: flex; flex-direction: column; }
.icard-body h3 { font-size: 24px; margin-bottom: 10px; }
.icard-body p { font-size: 14.5px; flex: 1; }
.icard-link {
  margin-top: 18px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.icard-link::after { content: "→"; transition: transform 0.25s; }
.icard:hover .icard-link::after { transform: translateX(5px); }
.icard-num {
  position: absolute;
  top: 14px; right: 18px;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text-hi);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(6px);
  border: 1px solid var(--line);
  padding: 4px 12px;
  border-radius: 999px;
  z-index: 2;
  box-shadow: 0 4px 14px rgba(13,34,68,0.14);
}
@media (max-width: 980px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .card-grid { grid-template-columns: 1fr; } }

/* ---------- Solutions cards ---------- */
.sol-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.sol-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
}
.sol-card:hover { transform: translateY(-5px); box-shadow: var(--card-shadow-hover); }
.sol-media { height: 175px; overflow: hidden; position: relative; }
.sol-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.sol-card:hover .sol-media img { transform: scale(1.05); }
.sol-media::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}
.sol-body { padding: 28px 30px 34px; flex: 1; }
.sol-card .step {
  font-family: var(--font-body);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  color: var(--blue);
  margin-bottom: 12px;
  text-transform: uppercase;
  font-weight: 700;
}
.sol-card h3 { font-size: 24px; margin-bottom: 12px; }
.sol-card ul { list-style: none; margin-top: 14px; }
.sol-card ul li {
  font-size: 14px;
  padding: 8px 0 8px 22px;
  position: relative;
  border-bottom: 1px dashed var(--line);
}
.sol-card ul li:last-child { border-bottom: none; }
.sol-card ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 15px;
  width: 8px; height: 8px;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
}
@media (max-width: 900px) { .sol-grid { grid-template-columns: 1fr; } }

/* ---------- Big CTA ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, var(--blue-deep) 0%, var(--bg-navy) 70%);
}
.cta-band::before {
  content: "";
  position: absolute;
  right: -140px; top: -140px;
  width: 520px; height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(53, 208, 239, 0.22) 0%, transparent 65%);
}
.cta-inner {
  padding: 90px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  position: relative;
}
.cta-inner h2 { font-size: clamp(32px, 4.4vw, 54px); max-width: 640px; color: #ffffff; }
.cta-inner h2 span {
  background: linear-gradient(90deg, #5aa2ff, #35d0ef);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.cta-inner p { margin-top: 12px; max-width: 520px; color: rgba(255,255,255,0.85); }
.cta-band .btn-primary {
  background: #ffffff;
  color: var(--blue-deep);
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}
.cta-band .btn-primary:hover { background: #f0f6ff; color: var(--blue-deep); }

/* ---------- Page hero (interior) ---------- */
.page-hero {
  position: relative;
  padding: 190px 0 110px;
  overflow: hidden;
  background: linear-gradient(120deg, var(--bg-navy) 0%, var(--blue-deep) 100%);
}
.page-hero .hero-media { position: absolute; inset: 0; }
.page-hero .hero-media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero .hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(9, 24, 51, 0.9) 25%, rgba(13, 34, 68, 0.55) 100%);
}
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero h1 { font-size: clamp(40px, 6vw, 72px); max-width: 760px; color: #ffffff; }
.page-hero p.lede { font-size: 18px; max-width: 620px; margin-top: 18px; color: rgba(255,255,255,0.88); }
.breadcrumb {
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 22px;
}
.breadcrumb a { color: rgba(255,255,255,0.6); }
.breadcrumb a:hover { color: #ffffff; }
.breadcrumb span { color: #5aa2ff; }

/* ---------- Product chips ---------- */
.chip-section h3 {
  font-size: 26px;
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.chip-section h3::before {
  content: "";
  width: 10px; height: 26px;
  background: linear-gradient(180deg, var(--blue), var(--cyan));
  border-radius: 3px;
}
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 46px; }
.chip {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-mid);
  transition: border-color 0.2s, color 0.2s, transform 0.2s, background 0.2s;
}
.chip:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: rgba(26,99,224,0.06);
  transform: translateY(-2px);
}

/* ---------- Feature rows ---------- */
.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.spec-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 32px;
  box-shadow: var(--card-shadow);
}
.spec-card h3 { font-size: 24px; margin-bottom: 14px; color: var(--blue); }
.spec-card ul { list-style: none; }
.spec-card ul li {
  padding: 9px 0 9px 24px;
  position: relative;
  font-size: 15px;
  border-bottom: 1px dashed var(--line);
}
.spec-card ul li:last-child { border-bottom: none; }
.spec-card ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 16px;
  width: 9px; height: 9px;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
}
.spec-card ul li strong { color: var(--text-hi); font-weight: 600; }
.spec-card .chips { margin-bottom: 0; }
@media (max-width: 820px) { .spec-grid { grid-template-columns: 1fr; } }

/* ---------- Timeline ---------- */
.timeline { position: relative; margin-top: 20px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 19px; top: 0; bottom: 0;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(to bottom, var(--blue), var(--cyan));
}
.tl-item {
  position: relative;
  padding: 0 0 44px 70px;
}
.tl-item:last-child { padding-bottom: 0; }
.tl-item .tl-dot {
  position: absolute;
  left: 8px; top: 2px;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: #ffffff;
  border: 4px solid var(--blue);
  box-shadow: 0 4px 12px rgba(26,99,224,0.3);
}
.tl-item .tl-year {
  font-family: var(--font-head);
  font-size: 30px;
  font-weight: 700;
  color: var(--blue);
  line-height: 1;
  margin-bottom: 8px;
}
.tl-item h3 { font-size: 21px; margin-bottom: 8px; }
.tl-item p { max-width: 640px; }

/* ---------- Team grid ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.member {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}
.member:hover { transform: translateY(-5px); box-shadow: var(--card-shadow-hover); }
.member .avatar {
  width: 58px; height: 58px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(26,99,224,0.12), rgba(14,165,201,0.12));
  border: 1px solid rgba(26,99,224,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 18px;
  letter-spacing: 0.04em;
}
.member h3 { font-size: 22px; margin-bottom: 4px; }
.member .role {
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
  font-weight: 700;
  margin-bottom: 14px;
}
.member a.email {
  font-size: 14px;
  color: var(--text-mid);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.member a.email:hover { color: var(--blue); }
@media (max-width: 900px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .team-grid { grid-template-columns: 1fr; } }

.member .avatar.photo { padding: 0; overflow: hidden; }
.member .avatar.photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Certifications ---------- */
.cert-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.cert {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  background: #ffffff;
  text-align: center;
  box-shadow: var(--card-shadow);
}
.cert .cert-icon {
  width: 62px; height: 62px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: rgba(26,99,224,0.1);
  border: 1px solid rgba(26,99,224,0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
}
.cert h3 { font-size: 20px; margin-bottom: 8px; }
.cert p { font-size: 14px; }
@media (max-width: 820px) { .cert-row { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 46px;
  align-items: start;
}
.contact-info-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px 36px;
  box-shadow: var(--card-shadow);
}
.contact-info-card h3 { font-size: 26px; margin-bottom: 24px; }
.info-line {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px dashed var(--line);
  align-items: flex-start;
}
.info-line:last-of-type { border-bottom: none; }
.info-line .ico {
  width: 42px; height: 42px;
  flex: none;
  border-radius: 10px;
  background: rgba(26,99,224,0.1);
  border: 1px solid rgba(26,99,224,0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.info-line .lbl {
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-low);
  margin-bottom: 2px;
  font-weight: 700;
}
.info-line .val { color: var(--text-hi); font-size: 15.5px; font-weight: 500; }
.info-line .val a { color: var(--text-hi); }
.info-line .val a:hover { color: var(--blue); }

.contact-form {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px 36px;
  box-shadow: var(--card-shadow);
}
.contact-form h3 { font-size: 26px; margin-bottom: 8px; }
.contact-form p.sub { font-size: 14.5px; margin-bottom: 28px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-low);
  margin-bottom: 8px;
  font-weight: 700;
}
.field input, .field textarea, .field select {
  width: 100%;
  background: var(--bg-1);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 14px 16px;
  color: var(--text-hi);
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color 0.2s, background 0.2s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--blue);
  background: #ffffff;
}
.field textarea { min-height: 140px; resize: vertical; }
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

.map-frame {
  margin-top: 60px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--card-shadow);
}
.map-frame iframe { display: block; width: 100%; height: 420px; border: 0; }

/* ---------- Footer (navy, flows with logo) ---------- */
.site-footer {
  background: var(--bg-navy);
  padding: 70px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 44px;
  padding-bottom: 54px;
}
/* Footer sits on navy, so the white JPG gets a clean intentional card */
.footer-brand .brand-logo {
  display: inline-flex;
  margin-bottom: 18px;
  background: #ffffff;
  border-radius: 10px;
  padding: 8px 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.footer-brand .brand-logo img { mix-blend-mode: normal; }
.footer-brand p { font-size: 14.5px; max-width: 300px; color: rgba(255,255,255,0.65); }
.site-footer h4 {
  font-size: 15px;
  letter-spacing: 0.16em;
  margin-bottom: 20px;
  color: #ffffff;
}
.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: 11px; }
.site-footer ul a { color: rgba(255,255,255,0.65); font-size: 14.5px; }
.site-footer ul a:hover { color: #5aa2ff; }
.footer-contact li {
  color: rgba(255,255,255,0.65);
  font-size: 14.5px;
  padding-left: 26px;
  position: relative;
}
.footer-contact li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: #5aa2ff;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   NEXT-LEVEL UPGRADES
   ============================================================ */

/* ---------- Trust badges ---------- */
.trust-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px 40px;
  flex-wrap: wrap;
  padding: 28px 0 0;
}
.trust {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mid);
}
.trust svg { width: 19px; height: 19px; flex: none; }

/* ---------- Moon divider ---------- */
.moon-divider {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 0 0 52px;
}
.moon-divider::before,
.moon-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.moon-divider span {
  color: var(--blue);
  font-size: 20px;
  line-height: 1;
  transform: rotate(-25deg);
}

/* ---------- Process stepper ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  position: relative;
}
.steps::before {
  content: "";
  position: absolute;
  top: 27px; left: 8%; right: 8%;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  opacity: 0.35;
}
.step-item { position: relative; text-align: center; padding: 0 6px; }
.step-item .step-num {
  width: 54px; height: 54px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(26,99,224,0.35);
  position: relative;
  z-index: 1;
  border: 4px solid var(--bg-1);
}
.step-item h3 { font-size: 21px; margin-bottom: 8px; }
.step-item p { font-size: 13.5px; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; gap: 30px; }
  .steps::before { display: none; }
  .step-item { display: grid; grid-template-columns: 54px 1fr; text-align: left; gap: 0 18px; }
  .step-item .step-num { margin: 0; grid-row: 1 / span 2; }
  .step-item h3, .step-item p { grid-column: 2; }
}

/* ---------- Hero caption + pause ---------- */
.hero-caption {
  position: absolute;
  right: 26px; bottom: 96px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-caption .hc-tag {
  background: rgba(9, 24, 51, 0.62);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.28);
  color: #fff;
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.hero-caption .hc-tag.show { opacity: 1; transform: translateY(0); }
.hero-caption button {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(9, 24, 51, 0.62);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.2s;
}
.hero-caption button:hover { background: rgba(9, 24, 51, 0.85); }
@media (max-width: 700px) {
  .hero-caption { right: 16px; bottom: 84px; }
  .hero-caption .hc-tag { font-size: 10.5px; padding: 7px 13px; }
}

/* ---------- Chemical finder ---------- */
.chem-finder {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.chem-finder input {
  flex: 1;
  min-width: 260px;
  background: #ffffff;
  border: 2px solid var(--line-strong);
  border-radius: 12px;
  padding: 17px 22px;
  font-size: 16px;
  font-family: var(--font-body);
  color: var(--text-hi);
  box-shadow: var(--card-shadow);
  transition: border-color 0.2s;
}
.chem-finder input:focus { outline: none; border-color: var(--blue); }
.chem-finder .chem-count {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-low);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.chip.hide { display: none; }
.spec-card.dimmed { opacity: 0.35; }
.spec-card { transition: opacity 0.3s; }

/* ---------- Footer moon line ---------- */
.moon-line {
  margin-top: 14px;
  font-size: 14px;
  font-style: italic;
  color: #7ea6e8 !important;
}

/* ---------- Sticky mobile call bar ---------- */
.mobile-cta-bar { display: none; }
@media (max-width: 700px) {
  .mobile-cta-bar {
    display: flex;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 998;
    box-shadow: 0 -8px 26px rgba(13,34,68,0.18);
  }
  .mobile-cta-bar a {
    flex: 1;
    text-align: center;
    padding: 16px 10px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }
  .mobile-cta-bar .mcb-call { background: #ffffff; color: var(--text-hi); }
  .mobile-cta-bar .mcb-quote {
    background: linear-gradient(135deg, var(--blue), var(--blue-deep));
    color: #ffffff;
  }
  body { padding-bottom: 54px; }
  .site-footer { padding-bottom: 12px; }
}

/* ---------- 404 / thanks pages ---------- */
.status-page {
  min-height: 72vh;
  display: flex;
  align-items: center;
  text-align: center;
  padding-top: 84px;
}
.status-page .glyph {
  font-size: 84px;
  color: var(--blue);
  display: inline-block;
  transform: rotate(-25deg);
  margin-bottom: 10px;
}
.status-page h1 { font-size: clamp(40px, 6vw, 70px); margin-bottom: 16px; }
.status-page p { max-width: 480px; margin: 0 auto 34px; }

/* ---------- Greg bio modal ---------- */
.bio-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(9, 24, 51, 0.6);
  backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.bio-modal.open { display: flex; }
.bio-panel {
  background: #ffffff;
  border-radius: var(--radius);
  max-width: 680px;
  max-height: 84vh;
  overflow-y: auto;
  padding: 44px 42px;
  position: relative;
  box-shadow: 0 40px 100px rgba(0,0,0,0.4);
}
.bio-panel h3 { font-size: 28px; margin-bottom: 18px; }
.bio-panel p { margin-bottom: 14px; font-size: 15px; }
.bio-close {
  position: absolute;
  top: 14px; right: 18px;
  background: none;
  border: none;
  font-size: 30px;
  color: var(--text-low);
  cursor: pointer;
  line-height: 1;
}
.bio-close:hover { color: var(--text-hi); }
