/* MtoZ Biolabs — clinical / minimalist content palette + MS hero */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Roboto:wght@500;700;800&display=swap");

:root {
  --science-blue: #003366;
  --science-blue-mid: #004080;
  --science-blue-bright: #0066cc;
  --cyan: #00d4ff;
  --cyan-bright: #00e5ff;
  --accent-green: #2ecc71;
  --accent-green-hover: #00c853;
  --ice: #e8f4fc;
  --bg: #f0f4f8;
  --surface: #ffffff;
  --text: #333333;
  --muted: #555555;
  --primary: var(--science-blue);
  --primary-2: #004a8c;
  --border: rgba(0, 212, 255, 0.22);
  --shadow: 0 12px 40px rgba(0, 59, 115, 0.12);
  --glass-bg: rgba(255, 255, 255, 0.14);
  --glass-border: rgba(0, 229, 255, 0.35);
  --header-h: 72px;
  --hero-banner-image: url("/theme6/image/hero-banner.png");
  --font: "Inter", "Open Sans", "Lato", "Segoe UI", Arial, system-ui, -apple-system, sans-serif;
  --font-heading: "Roboto", "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background-color: var(--bg);
  background-image: radial-gradient(circle at 1px 1px, rgba(0, 51, 102, 0.06) 1px, transparent 0);
  background-size: 28px 28px;
  line-height: 1.6;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
}

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

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

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

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: linear-gradient(180deg, rgba(0, 35, 70, 0.97) 0%, rgba(0, 59, 115, 0.92) 100%);
  color: #fff;
  border-bottom: 1px solid rgba(0, 229, 255, 0.2);
  box-shadow: 0 4px 24px rgba(0, 20, 50, 0.35);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: var(--header-h);
  gap: 12px;
  flex-wrap: nowrap;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(0, 229, 255, 0.35);
  border-radius: 10px;
  background: rgba(0, 51, 102, 0.48);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

body.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

body.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

body.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.brand {
  flex-shrink: 0;
  line-height: 0;
}

.brand-logo-link {
  display: inline-block;
  line-height: 0;
}

.brand-logo-img {
  height: 44px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  object-position: left center;
  vertical-align: middle;
}

.nav-search {
  position: relative;
  flex: 0 1 220px;
  min-width: 0;
  max-width: 240px;
  margin: 0 0 0 auto;
  display: flex;
  align-items: stretch;
  border-radius: 10px;
  border: 1px solid rgba(0, 229, 255, 0.28);
  background: rgba(0, 20, 50, 0.45);
  overflow: hidden;
  order: 3;
}

.nav-search__label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  border: 0;
  white-space: nowrap;
}

.nav-search__input {
  flex: 1;
  min-width: 0;
  width: 100%;
  border: 0;
  background: transparent;
  color: #fff;
  padding: 8px 8px 8px 12px;
  font-size: 0.88rem;
  font-family: inherit;
  outline: none;
}

.nav-search__input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.nav-search__submit {
  flex-shrink: 0;
  width: 40px;
  border: 0;
  border-left: 1px solid rgba(0, 229, 255, 0.2);
  background: rgba(0, 229, 255, 0.12);
  color: var(--cyan-bright);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-search__submit:hover {
  background: rgba(0, 229, 255, 0.22);
  color: #fff;
}

.nav {
  display: flex;
  gap: 4px;
  align-items: center;
  flex-wrap: nowrap;
  justify-content: flex-end;
  margin-left: 0;
  min-width: 0;
  order: 2;
}

.nav a {
  padding: 8px 9px;
  border-radius: 10px;
  font-size: 0.86rem;
  font-weight: 600;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.92);
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.nav a:hover,
.nav a.active {
  background: rgba(0, 229, 255, 0.18);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(0, 229, 255, 0.25);
}

.nav-item {
  position: relative;
}

@media (max-width: 1180px) and (min-width: 901px) {
  .nav a {
    padding: 8px 6px;
    font-size: 0.8rem;
  }


  .nav-search {
    flex-basis: 150px;
    max-width: 180px;
  }

  .brand-logo-img {
    max-width: 180px;
    height: 40px;
  }
}

/* Services mega menu (left categories + right links) */
.nav-item--mega>a::after {
  content: "";
  display: inline-block;
  margin-left: 6px;
  border: 4px solid transparent;
  border-top-color: rgba(255, 255, 255, 0.82);
  vertical-align: middle;
  transform: translateY(1px);
}

.nav-mega {
  --mega-sidebar-w: 420px;
  --mega-panel-w: 390px;
  /* 贴靠父级菜单项左下角定位 */
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  transform: none;
  margin-top: 0;
  /* 默认只占左侧分类栏宽度；右侧面板按需绝对定位展开 */
  width: min(var(--mega-sidebar-w), calc(100vw - 28px));
  background: #fff;
  border-radius: 14px;
  border: 1px solid rgba(0, 59, 115, 0.12);
  box-shadow: 0 24px 52px rgba(0, 35, 70, 0.2);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 90;
}

/* 仅在移入/聚焦“有子级”的父项时，扩展成“二级+三级”连体宽度 */
.nav-mega:has(.nav-mega__row--has-children:hover),
.nav-mega:has(.nav-mega__row--has-children:focus-within) {
  width: min(calc(var(--mega-sidebar-w) + var(--mega-panel-w)), calc(100vw - 28px));
}

/* Bridge header → panel so hover is not lost in the gap */
.nav-mega::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 14px;
  top: -14px;
  pointer-events: auto;
}

.nav-item--mega:hover .nav-mega,
.nav-item--mega:focus-within .nav-mega {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.nav-mega__inner {
  display: flex;
  align-items: flex-start;
  min-height: 0;
  position: relative;
}

.nav-mega__sidebar {
  list-style: none;
  margin: 0;
  padding: 12px 0;
  width: var(--mega-sidebar-w);
  flex-shrink: 0;
  border-right: 1px solid rgba(0, 59, 115, 0.1);
  box-sizing: border-box;
  overflow-x: hidden;
  min-width: 0;
}

.nav-mega__row {
  position: static;
}

/* Mega links live inside .nav — override .nav a { white-space: nowrap } so left column can wrap */
.nav .nav-mega .nav-mega__cat,
.nav .nav-mega .nav-mega__link {
  white-space: normal;
}

.nav-mega__cat {
  display: block;
  padding: 11px 18px 11px 16px;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--science-blue) !important;
  border-left: 3px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
  max-width: 100%;
}

.nav-mega__row--has-children .nav-mega__cat {
  position: relative;
  padding-right: 30px;
}

.nav-mega__row--has-children .nav-mega__cat::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-50%) rotate(-45deg);
  opacity: 0.65;
}

.nav-mega__cat:hover,
.nav-mega__row:hover .nav-mega__cat,
.nav-mega__row:focus-within .nav-mega__cat {
  background: rgba(0, 102, 204, 0.08) !important;
  border-left-color: var(--science-blue-bright);
  box-shadow: none !important;
}

.nav-mega__panel {
  position: absolute;
  left: var(--mega-sidebar-w);
  width: min(var(--mega-panel-w), calc(100vw - 28px - var(--mega-sidebar-w)));
  top: 0;
  bottom: auto;
  padding: 18px 22px 16px;
  overflow: visible;
  max-height: none;
  background: #fff;
  border-left: 1px solid rgba(0, 59, 115, 0.1);
  border-radius: 0 14px 14px 0;
  display: none;
  z-index: 0;
}

/* 仅在当前行有三级内容并被移入/聚焦时展示右侧面板 */
.nav-mega__row--has-children:hover .nav-mega__panel,
.nav-mega__row--has-children:focus-within .nav-mega__panel {
  display: block;
  z-index: 2;
}

.nav-mega__hint {
  margin: 0 0 14px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--science-blue-mid);
}

.nav-mega__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.nav-mega__link {
  display: block;
  padding: 12px 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-2) !important;
  line-height: 1.35;
  border-radius: 8px;
  border: 1px solid transparent;
  border-bottom-color: rgba(0, 59, 115, 0.1);
}

.nav-mega__grid>.nav-mega__link:last-child {
  border-bottom-color: transparent;
}

.nav-mega__link:hover {
  color: var(--science-blue-bright) !important;
  background: rgba(0, 102, 204, 0.06) !important;
  box-shadow: none !important;
  text-decoration: none;
  border-color: rgba(0, 102, 204, 0.16);
}

/* —— Hero — every page uses banner image + overlay —— */
.hero {
  position: relative;
  padding: 96px 0 80px;
  color: #fff;
  overflow: hidden;
}

.hero--banner {
  background-color: #003366;
  background-image: var(--hero-banner-image);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  animation: hero-breathe 14s ease-in-out infinite alternate;
}

.hero--banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg,
      rgba(0, 35, 70, 0.62) 0%,
      rgba(0, 51, 102, 0.42) 42%,
      rgba(0, 85, 170, 0.30) 100%);
  pointer-events: none;
}

@keyframes hero-breathe {
  0% {
    background-position: center 38%;
  }

  100% {
    background-position: center 32%;
  }
}

.hero--banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 70% 40%, rgba(0, 229, 255, 0.12) 0%, transparent 55%);
  pointer-events: none;
}

/* Inner pages: same banner, slightly shorter band */
.hero--sm {
  padding: 64px 0 52px;
}

.hero--sm .hero__title {
  font-size: clamp(1.35rem, 3.2vw, 2.15rem);
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1,
.hero .hero__title {
  margin: 0 0 14px;
  max-width: none;
  width: 100%;
  font-size: clamp(1.35rem, 3.4vw, 2.35rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}

/* Inner pages: shorter titles stay one line; Home (#hero) may wrap naturally */
@media (min-width: 1024px) {

  .hero:not(#hero) h1,
  .hero:not(#hero) .hero__title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* Home: slightly tighter type to reduce awkward wraps */
#hero .hero__title {
  font-size: clamp(1.25rem, 2.85vw, 2.05rem);
}

.hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1rem, 1.4vw, 1.08rem);
  line-height: 1.65;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

.hero-list {
  margin: 22px 0;
  padding-left: 22px;
  color: rgba(225, 245, 254, 0.95);
}

.hero-list li {
  margin-bottom: 8px;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 12px;
  padding: 12px 24px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, border-color 0.22s ease, color 0.22s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #fff;
  background: #ff7a00;

}
.btn-operation {
  color: rgb(255, 255, 255);
  box-shadow: rgba(46, 204, 113, 0.35) 0px 8px 28px;
  background: linear-gradient(180deg, var(--accent-green) 0%, var(--accent-green-hover) 100%);
}
.btn-operation:hover {
  box-shadow: rgba(46, 204, 113, 0.5) 0px 12px 32px;
}
.btn-primary:hover {
  background: #fff;
  color: #ff7a00;
}

.btn-outline {
  color: #e8f4fc;

  border: 2px solid rgba(255,255,255,.25);
  /* backdrop-filter: blur(6px); */

}

.btn-outline:hover {
  background: #ff7a00;
  color: #fff;
border-color:#ff7a00 ;
}

.btn-ghost {
  color: var(--science-blue);
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.btn-ghost:hover {
  border-color: var(--cyan);
  color: var(--primary-2);
}

/* —— Stats —— */
.stats-strip {
  position: relative;
  margin-top: -28px;
  margin-bottom: 6px;
  z-index: 2;
}

.stats-strip .container {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.stat-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid rgba(0, 59, 115, 0.12);
  border-radius: 14px;
  padding: 16px 14px;
  text-align: center;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px rgba(0, 59, 115, 0.1);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 212, 255, 0.42);
  box-shadow: 0 14px 30px rgba(0, 59, 115, 0.14);
}

.stat-card__value {
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 800;
  background: linear-gradient(90deg, var(--science-blue) 0%, var(--cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.1;
}

.stat-card__label {
  margin-top: 0;
  font-size: clamp(0.9rem, 1.1vw, 1.08rem);
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.22;
  color: var(--science-blue-mid);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.65);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* —— Sections —— */
.section {
  padding: 30px 0;
  position: relative;
}

.section--alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72) 0%, rgba(240, 244, 248, 0.95) 100%);
  border-block: 1px solid rgba(0, 51, 102, 0.06);
}

.section--tight-top {
  padding-top: 48px;
}

#capabilities.section--tight-top {
  padding-top: 34px;
}

.section--soft-bg {
  background: linear-gradient(180deg, #fff 0%, var(--bg) 100%);
}

/* Subpages (not home): 100px visual gap between stacked sections (50px + 50px) */
body.subpage section.section {
  padding-top: 50px;
  padding-bottom: 50px;
}

body.subpage section.section--tight-top {
  padding-top: 50px;
}

/* Tighter bottom spacing before the next section (Services / Solutions intros) */
body.subpage section.section#what-is,
body.subpage section.section#overview {
  padding-bottom: 30px;
}

.section-head {
  max-width: min(68rem, 100%);
  margin-bottom: 1.25rem;
  text-align: left;
}

.section-head h1,
.section-head h2 {
  position: relative;
  display: block;
  width: 100%;
}

.section h2,
.section-head h1,
.section-head h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.025em;
  line-height: 1.15;
}

/* Block section titles (not in cards): accent rule */
.section-head h1::after,
.section-head h2::after {
  content: "";
  display: block;
  width: 3rem;
  height: 3px;
  margin-top: 0.65rem;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--science-blue) 0%, var(--cyan) 100%);
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.35);
}

.section--capabilities .section-head h2::after {
  background: linear-gradient(90deg, var(--science-blue) 0%, var(--cyan) 100%);
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.35);
}

.section-intro {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.68;
  letter-spacing: normal;
  word-break: normal;
  overflow-wrap: break-word;
  text-align: left;
}



/* Exception: keep intro visible on Services "What Is Proteomics Service" */
body.subpage #what-is .section-head .section-intro {
  display: block;
}

/* Exception: keep intro visible on Solutions "Proteomics Solutions at MtoZ Biolabs" */
body.subpage #solution-list .section-head .section-intro {
  display: block;
}

/* Increase gap above the summary line under solution cards */
#solution-list>.container>.section-intro.prose-merged--follow {
  margin-top: 1.4rem;
}

/* Tight copy: avoid “double paragraph” vertical gap */
.section-head .section-intro+.section-intro,
.section .section-intro+.section-intro {
  margin-top: 0.5rem;
}

.prose-merged {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.68;
  max-width: min(68rem, 100%);
  letter-spacing: normal;
  word-break: normal;
  overflow-wrap: break-word;
  text-align: left;
}

.text-tight-after {
  margin-bottom: 0.45rem !important;
}

.prose-merged--follow {
  margin-top: 0.65rem;
}

.link-row-right {
  text-align: right;
  margin-top: 1rem;
}

.link-row-right--tight {
  text-align: right;
  margin-top: 6px;
}

.grid {
  display: grid;
  gap: 20px;
  align-items: stretch;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* —— Cards —— */
.card {
  background: var(--surface);
  border: 1px solid rgba(0, 59, 115, 0.1);
  border-radius: 16px;
  padding: 22px 22px 18px;
  box-shadow: 0 10px 30px rgba(0, 59, 115, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card__media {
  margin: -22px -22px 14px;
  height: 150px;
  border-radius: 16px 16px 0 0;
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid rgba(0, 59, 115, 0.1);
}

.card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 35, 70, 0.02) 0%, rgba(0, 35, 70, 0.18) 100%);
  pointer-events: none;
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Home / Technology Platform: show full image without cropping */
#platform .card__media {
  background: #000;
}

#platform .card__media img {
  object-fit: contain;
  object-position: center;
}

/* Photo strip replaces redundant icon */
.card:has(.card__media)>.card__icon {
  display: none;
}

.card--glass .card__media {
  margin: -22px -22px 14px;
  border-bottom-color: rgba(255, 255, 255, 0.2);
}

.card:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: 0 22px 48px rgba(0, 59, 115, 0.2);
  border-color: rgba(0, 212, 255, 0.45);
}

.card--glass {
  background: var(--glass-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 16px 48px rgba(0, 30, 60, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  color: #fff;
}

.card--glass:hover {
  border-color: rgba(0, 229, 255, 0.65);
  box-shadow: 0 22px 56px rgba(0, 40, 80, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.card--glass .card__cta {
  color: var(--cyan-bright);
}

.section--capabilities {
  position: relative;
  overflow: hidden;
  color: var(--text);
}

.section--capabilities .container {
  position: relative;
  z-index: 1;
}

.section--capabilities .section-head {
  max-width: none;
}

.section--capabilities h2 {
  color: var(--primary);
}

.section--capabilities .section-intro {
  color: var(--muted);
}

/* Capabilities switched to light background: make glass cards readable and compact */
#capabilities .card.card--glass {
  background: var(--surface);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1px solid rgba(0, 59, 115, 0.1);
  box-shadow: 0 10px 30px rgba(0, 59, 115, 0.1);
  color: var(--text);
}

#capabilities .card.card--glass:hover {
  border-color: rgba(0, 212, 255, 0.45);
  box-shadow: 0 22px 48px rgba(0, 59, 115, 0.2);
}

#capabilities .card.card--glass h3 {
  color: var(--primary-2);
}

#capabilities .card.card--glass p,
#capabilities .card.card--glass li {
  color: var(--muted);
}

#capabilities .card.card--glass .card__cta,
#capabilities .card.card--glass .card__cta:hover,
#capabilities .card.card--glass .card__cta:hover .card__arrow {
  color: var(--science-blue);
}

#capabilities .card.card--glass .card__cta {
  border-top-color: rgba(0, 51, 102, 0.12);
}

#capabilities .card.card--glass .card__icon {
  background: linear-gradient(145deg, rgba(0, 212, 255, 0.14) 0%, rgba(0, 59, 115, 0.2) 100%);
  border: 1px solid rgba(0, 229, 255, 0.28);
  color: var(--science-blue-mid);
}

/* Capabilities cards: align title, description, and CTA rows */
#capabilities .grid {
  align-items: stretch;
}

#capabilities .card {
  display: flex;
  flex-direction: column;
}

#capabilities .card h3 {
  min-height: 2.9em;
  margin-bottom: 10px;
}

#capabilities .card .card__body {
  min-height: 8.6em;
  margin-bottom: 14px;
}

#capabilities .card .card__body p {
  margin: 0;
}

#capabilities .card .card__cta {
  margin-top: auto;
}

.card__icon {
  display: inline-flex;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  background: linear-gradient(145deg, rgba(0, 229, 255, 0.2) 0%, rgba(0, 59, 115, 0.35) 100%);
  border: 1px solid rgba(0, 229, 255, 0.35);
  color: var(--cyan-bright);
  flex-shrink: 0;
}

.card--glass .card__icon {
  background: rgba(0, 229, 255, 0.12);
}

.card__icon svg {
  width: 26px;
  height: 26px;
}

.card h3 {
  margin: 0 0 12px;
  font-size: 1.12rem;
  color: var(--primary-2);
  line-height: 1.3;
}

.card__title-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.card__title-link:hover {
  color: var(--science-blue-bright);
  border-bottom-color: rgba(0, 102, 204, 0.35);
}

.card__body {
  flex: 1 1 auto;
  margin-bottom: 16px;
  min-width: 0;
}

.card__body p:last-child {
  margin-bottom: 0;
}

.support-grid .card {
  min-height: 100%;
}

.support-list {
  display: grid;
  gap: 8px;
}

.support-item {
  padding-bottom: 8px;
  border-bottom: 1px dashed rgba(0, 59, 115, 0.14);
}

.support-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.support-item p {
  margin: 0;
}

.section--portfolio-compact {
  padding-top: 44px;
  padding-bottom: 42px;
}

.section--portfolio-compact .section-head {
  margin-bottom: 0.8rem;
}

.section--portfolio-compact .list-check {
  margin-top: 10px;
  margin-bottom: 8px;
}

.section--portfolio-compact .prose-merged--follow {
  margin-top: 0.5rem;
}

.section--apps-cards-compact {
  padding-top: 40px;
}

.section--apps-cards-compact .grid {
  gap: 14px;
}

.section--apps-cards-compact .card {
  border-radius: 14px;
  padding: 18px 18px 14px;
}

.section--apps-cards-compact .card__icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  margin-bottom: 10px;
}

.section--apps-cards-compact .card__media {
  margin: -18px -18px 12px;
  height: 130px;
}

.section--apps-cards-compact .card__icon svg {
  width: 22px;
  height: 22px;
}

.section--apps-cards-compact .card h3 {
  font-size: 1.02rem;
  margin-bottom: 9px;
}

.section--apps-cards-compact .card p {
  font-size: 0.92rem;
  line-height: 1.6;
}

.section--apps-cards-compact .card__body {
  margin-bottom: 10px;
}

.section--apps-cards-compact .card__cta {
  font-size: 0.88rem;
  padding-top: 10px;
}

.card p,
.card li {
  color: var(--muted);
  margin-top: 0;
  font-size: 0.96rem;
  line-height: 1.68;
  letter-spacing: normal;
  word-break: normal;
  overflow-wrap: break-word;
}

/* Glass cards: .card h3 / .card p share specificity with .card--glass rules; later rules were winning — lock light text */
.card.card--glass h3 {
  color: #fff;
}

.card.card--glass .card__body {
  width: 100%;
  min-width: 0;
}

.card.card--glass p,
.card.card--glass li {
  color: rgba(236, 252, 255, 0.94);
}

.card.card--glass .card__cta {
  border-top-color: rgba(255, 255, 255, 0.2);
}

.card.card--glass .card__arrow {
  color: var(--cyan-bright);
}

/* Learn more — right aligned, same row height across grid */
.card__cta {
  margin-top: auto;
  padding-top: 4px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--science-blue);
  border-top: 1px solid rgba(0, 51, 102, 0.12);
  padding-top: 14px;
  transition: color 0.2s ease;
}

.card__cta:hover {
  color: var(--science-blue-mid);
}

.card__arrow {
  display: inline-block;
  transition: transform 0.22s ease;
  color: var(--science-blue-mid);
  font-weight: 400;
}

.card__cta:hover .card__arrow {
  transform: translateX(5px);
}

.card.card--glass .card__cta:hover,
.card.card--glass .card__cta:hover .card__arrow {
  color: #fff;
}

.card__cta--inline {
  display: inline-flex;
  border-top: 0;
  padding-top: 0;
  margin-top: 0;
}

/* —— Workflow track —— */
.workflow {
  margin-top: 8px;
}

.workflow-panel {
  padding: 28px 20px 32px;
}

.workflow-panel--compact {
  padding: 28px 16px 32px;
}

.workflow__track {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: space-between;
  gap: 0;
  position: relative;
}

.workflow__step {
  flex: 1 1 140px;
  min-width: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 8px 20px;
  position: relative;
}

.workflow__step::after {
  content: "";
  position: absolute;
  top: 28px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan) 0%, rgba(0, 212, 255, 0.15) 100%);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.55);
  z-index: 0;
  transform: translateY(-50%);
}

.workflow__step:last-child::after {
  display: none;
}

.workflow__node {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  margin: 0 0 12px;
  border-radius: 50%;
  background: linear-gradient(160deg, #fff 0%, var(--ice) 100%);
  border: 2px solid var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--science-blue);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.35);
  animation: pulse-ring 3.5s ease-in-out infinite;
}

.workflow__step:nth-child(even) .workflow__node {
  animation-delay: -1.2s;
}

@keyframes pulse-ring {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(0, 229, 255, 0.35);
  }

  50% {
    box-shadow: 0 0 0 10px rgba(0, 229, 255, 0);
  }
}

.workflow__title {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--primary);
  margin: 0 0 6px;
  align-self: stretch;
  text-align: center;
}

.workflow__desc {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.45;
  align-self: stretch;
  text-align: center;
}

/* Workflow lives inside .workflow.card; override .card p { overflow-wrap: break-word } so phrases like DIA/DDA/targeted don’t break mid-word */
.workflow.card .workflow__desc {
  overflow-wrap: normal;
  word-break: normal;
}

@media (max-width: 768px) {
  .workflow__track {
    flex-direction: column;
  }

  .workflow__step::after {
    display: none;
  }

  .workflow__step {
    border-left: 3px solid var(--cyan);
    align-items: flex-start;
    padding-left: 16px;
  }

  .workflow__node {
    margin: 0 0 12px 0;
  }
}

/* Featured workflow sections (home + services + solutions) */
.section--workflow-band .section-head,
.section--workflow-band .section-intro {
  text-align: left;
}

#workflow-home .section-head h2 {
  text-align: center;
}

#workflow-home .workflow__title {
  align-self: center;
  text-align: left;
  width: min(100%, 170px);
  margin-left: 60px;
}

#workflow-home .workflow__desc {
  align-self: center;
  text-align: left;
  width: min(100%, 170px);
  margin-left: 60px;
}

/* Services workflow: shift title/description to the right */
#workflow .workflow__title,
#workflow .workflow__desc {
  margin-left: 40px;
}

#workflow-sol .workflow__title,
#workflow-sol .workflow__desc {
  margin-left: 50px;
}

.section--workflow-band .section-head h2::after {
  width: 4rem;
  height: 4px;
  margin-top: 0.75rem;
  box-shadow: 0 0 18px rgba(0, 212, 255, 0.5);
}

.section--workflow-band .workflow.card {
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

.section--workflow-band .workflow.card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--science-blue) 0%, var(--cyan) 100%);
  border-radius: 16px 0 0 16px;
  pointer-events: none;
  z-index: 1;
}

.section--workflow-band .workflow.card .workflow__track {
  position: relative;
  z-index: 2;
}

.section--workflow-band .workflow.card:hover {
  box-shadow: 0 22px 52px rgba(0, 51, 102, 0.18);
  border-color: rgba(0, 212, 255, 0.38);
}

.section--workflow-band .workflow__step {
  border-radius: 12px;
  transition: background 0.25s ease, transform 0.25s ease;
}

.section--workflow-band .workflow__step:hover {
  background: rgba(0, 212, 255, 0.09);
  transform: translateY(-3px);
}

.section--workflow-band .workflow__step:hover .workflow__node {
  border-color: var(--cyan-bright);
}

.section--workflow-band .workflow.reveal:not(.is-visible) .workflow__step {
  opacity: 0;
  transform: translateY(14px);
}

.section--workflow-band .workflow.reveal.is-visible .workflow__step {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.48s ease, transform 0.48s ease;
}

.section--workflow-band .workflow.reveal.is-visible .workflow__step:nth-child(1) {
  transition-delay: 0.05s;
}

.section--workflow-band .workflow.reveal.is-visible .workflow__step:nth-child(2) {
  transition-delay: 0.12s;
}

.section--workflow-band .workflow.reveal.is-visible .workflow__step:nth-child(3) {
  transition-delay: 0.19s;
}

.section--workflow-band .workflow.reveal.is-visible .workflow__step:nth-child(4) {
  transition-delay: 0.26s;
}

.section--workflow-band .workflow.reveal.is-visible .workflow__step:nth-child(5) {
  transition-delay: 0.33s;
}

.section--workflow-band .workflow.reveal.is-visible .workflow__step:nth-child(6) {
  transition-delay: 0.4s;
}

.section--workflow-band .workflow.reveal.is-visible .workflow__step:nth-child(7) {
  transition-delay: 0.47s;
}

.section--workflow-band .workflow.reveal.is-visible .workflow__step:nth-child(8) {
  transition-delay: 0.54s;
}

@media (prefers-reduced-motion: reduce) {
  .section--workflow-band .workflow.reveal .workflow__step {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .section--workflow-band .workflow__step:hover {
    transform: none;
  }
}

/* —— Why list with icons —— */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.why-item {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(0, 59, 115, 0.08);
  box-shadow: 0 8px 28px rgba(0, 59, 115, 0.06);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.why-item:hover {
  border-color: rgba(0, 212, 255, 0.4);
  transform: translateY(-2px);
}

.why-item__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(0, 212, 255, 0.12);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--science-blue-mid);
}

.why-item strong {
  display: block;
  color: var(--primary);
  margin-bottom: 6px;
}

.why-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.list-check {
  padding-left: 20px;
}

.list-check li {
  margin-bottom: 8px;
}

/* About page: What We Focus On / Technology Platforms — point cards */
.about-card-grid {
  margin-top: 1.25rem;
}

.about-point-card .card__body {
  margin-bottom: 0;
}

.about-point-card .card__body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.95rem;
}

/* What We Focus On — soft gradient cards, circular icon wells, lift hover */
#focus .about-point-card--focus.card {
  background: linear-gradient(165deg, #eef6fb 0%, #ffffff 55%);
  border: 1px solid rgba(0, 59, 115, 0.09);
  border-radius: 18px;
  box-shadow: 0 6px 22px rgba(0, 59, 115, 0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

#focus .about-point-card--focus.card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 212, 255, 0.45);
  box-shadow: 0 20px 44px rgba(0, 59, 115, 0.12), 0 0 0 1px rgba(0, 229, 255, 0.18);
}

#focus .about-point-card--focus .card__icon {
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(0, 102, 204, 0.12), rgba(0, 212, 255, 0.2));
  border: 1px solid rgba(0, 102, 204, 0.22);
  color: var(--science-blue-mid);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

#focus .about-point-card--focus .card__body p {
  color: #4a5568;
}

/* Technology Platforms — navy icon tile, flat white card, scale + glow hover */
#platforms .about-point-card--platforms.card {
  background: #fff;
  border: 1px solid rgba(0, 51, 102, 0.14);
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 40, 80, 0.09);
  transition: transform 0.22s cubic-bezier(0.34, 1.25, 0.64, 1), box-shadow 0.22s ease, border-color 0.22s ease;
}

#platforms .about-point-card--platforms.card:hover {
  transform: translateY(-5px) scale(1.03);
  border-color: rgba(0, 59, 115, 0.3);
  box-shadow: 0 16px 40px rgba(0, 59, 115, 0.15);
}

#platforms .about-point-card--platforms .card__icon {
  border-radius: 11px;
  background: linear-gradient(165deg, #022954 0%, #064080 100%);
  border: 1px solid rgba(0, 229, 255, 0.32);
  color: var(--cyan-bright);
  box-shadow: 0 4px 14px rgba(0, 25, 50, 0.28);
  transition: border-color 0.22s ease, box-shadow 0.22s ease;
}

#platforms .about-point-card--platforms.card:hover .card__icon {
  border-color: rgba(0, 245, 255, 0.55);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.32), 0 4px 14px rgba(0, 25, 50, 0.28);
}

@media (prefers-reduced-motion: reduce) {

  #focus .about-point-card--focus.card,
  #platforms .about-point-card--platforms.card {
    transition: none;
  }

  #focus .about-point-card--focus.card:hover,
  #platforms .about-point-card--platforms.card:hover {
    transform: none;
  }

  #platforms .about-point-card--platforms .card__icon {
    transition: none;
  }
}

@media (max-width: 1100px) {
  .about-card-grid.grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Services catalog: list items are links (href placeholder until real URLs) */
#catalog .list-check a {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
}

#catalog .list-check a:hover {
  color: var(--science-blue-mid);
  text-decoration: underline;
}

.process {
  padding-left: 22px;
}

.process li {
  margin-bottom: 10px;
}

/* —— FAQ —— */
.faq-item {
  margin-bottom: 12px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(0, 59, 115, 0.1);
  background: #fff;
  box-shadow: 0 4px 16px rgba(0, 59, 115, 0.05);
}

.faq-toggle {
  width: 100%;
  text-align: left;
  border: 0;
  background: #fff;
  color: var(--primary);
  font-weight: 700;
  padding: 16px 20px;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  transition: background 0.2s ease;
  position: relative;
  padding-right: 44px;
}

.faq-toggle::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--science-blue-mid);
}

.faq-item.open .faq-toggle::after {
  content: "-";
}

.faq-toggle:hover {
  background: rgba(0, 212, 255, 0.06);
}

.faq-content {
  display: none;
  padding: 0 20px 18px;
  color: var(--muted);
  line-height: 1.68;
  word-break: normal;
  overflow-wrap: break-word;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.faq-item.open .faq-content {
  display: block;
}

/* —— Form —— */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

input,
textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(0, 59, 115, 0.18);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.2);
}

textarea {
  min-height: 130px;
  grid-column: 1 / -1;
  resize: vertical;
}

/* —— Footer — deep navy, logo + tagline | Quick Links | Contact (reference layout) —— */
.footer {
  background: linear-gradient(180deg, #05162a 0%, #001a33 40%, #001428 100%);
  color: rgba(255, 255, 255, 0.9);
  padding: 56px 0 64px;
  border-top: 1px solid rgba(0, 180, 230, 0.22);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.45fr) minmax(140px, 0.75fr) minmax(200px, 1fr);
  gap: clamp(32px, 6vw, 56px);
  align-items: start;
}

.footer-col--brand {
  padding-right: 12px;
}

.footer-logo-link {
  display: inline-block;
  line-height: 0;
  margin-bottom: 18px;
}

.footer-logo-img {
  height: auto;
  max-height: 56px;
  width: auto;
  max-width: min(300px, 100%);
  object-fit: contain;
  object-position: left center;
}

.footer-tagline {
  margin: 0;
  max-width: 28rem;
  font-size: 0.94rem;
  line-height: 1.68;
  color: rgba(255, 255, 255, 0.88);
}

.footer-links-title {
  margin: 0 0 14px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

.footer-links-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links-list li {
  margin-bottom: 10px;
}

.footer-links-list a {
  color: #33b5e5;
  font-size: 0.94rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links-list a:hover {
  color: #7dd8fc;
}

.footer .footer-heading {
  margin: 0 0 12px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

.footer-contact-email {
  margin: 0;
}

.footer-contact-email a {
  color: #33b5e5;
  font-size: 0.94rem;
  font-weight: 500;
  text-decoration: none;
  word-break: break-all;
}

.footer-contact-email a:hover {
  color: #7dd8fc;
}

/* —— Resource page extras —— */
.note-prototype {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0.5rem 0 0;
}

code {
  font-size: 0.88em;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(0, 59, 115, 0.08);
  color: var(--primary-2);
}

.tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(0, 229, 255, 0.2);
  color: var(--cyan-bright);
  margin-bottom: 12px;
}

@media (max-width: 900px) {
  .pcNav {
    display: none !important;
  }

  .grid-4,
  .grid-3,
  .grid-2,
  .footer-grid,
  .form-grid,
  .stats-strip .container,
  .why-grid {
    grid-template-columns: 1fr;
  }

  .stats-strip {
    margin-top: 18px;
    margin-bottom: 2px;
  }

  .stats-strip .container {
    gap: 10px;
  }

  .stat-card {
    min-height: 62px;
    padding: 14px 12px;
    border-radius: 12px;
  }

  .stat-card__label {
    font-size: 1rem;
  }

  #capabilities .card h3,
  #capabilities .card .card__body {
    min-height: 0;
  }

  .nav {
    position: absolute;
    top: calc(var(--header-h) + 8px);
    left: 4%;
    width: min(320px, 92vw);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 10px;
    border-radius: 12px;
    background: rgba(0, 35, 70, 0.98);
    border: 1px solid rgba(0, 229, 255, 0.24);
    box-shadow: 0 14px 28px rgba(0, 20, 50, 0.45);
  }

  body.nav-open .nav {
    display: flex;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-wrap {
    flex-wrap: wrap;
  }

  .nav-wrap:has(.nav-toggle)>.nav-search {
    order: 3;
    max-width: none;
    margin-top: 4px;
    flex: 0 1 50%;
  }

  .nav-wrap:not(:has(.nav-toggle))>.nav-search {
    flex: 1 1 auto;
    max-width: min(220px, 46vw);
  }

  .nav a {
    padding: 10px 12px;
    font-size: 0.92rem;
  }

  .nav-item {
    width: 100%;
  }

  .nav-mega {
    position: static;
    transform: none;
    width: 100%;
    margin-top: 6px;
    margin-left: 0;
    border: 0;
    border-radius: 10px;
    background: rgba(0, 20, 45, 0.35);
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-item--mega:hover .nav-mega,
  .nav-item--mega:focus-within .nav-mega {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-mega__inner {
    flex-direction: column;
    min-height: 0;
  }

  .nav-mega__row {
    display: flex;
    flex-direction: column;
  }

  .nav-mega__sidebar {
    width: 100%;
    border-right: 0;
    border-bottom: 1px solid rgba(0, 229, 255, 0.2);
    padding: 8px 0;
  }

  .nav-mega__panel {
    position: static;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    padding: 10px 12px 14px;
    display: block !important;
    border-top: 1px solid rgba(0, 229, 255, 0.12);
  }

  .nav-mega__hint {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.72rem;
  }

  .nav-mega__cat {
    color: rgba(255, 255, 255, 0.95) !important;
    border-left-width: 2px;
  }

  .nav-mega__cat:hover,
  .nav-mega__row:hover .nav-mega__cat,
  .nav-mega__row:focus-within .nav-mega__cat {
    background: rgba(0, 229, 255, 0.12) !important;
  }

  .nav-mega__grid {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .nav-mega__link {
    color: rgba(255, 255, 255, 0.9) !important;
    padding: 6px 8px;
    font-size: 0.86rem;
  }

  .nav-mega__link:hover {
    color: #fff !important;
    background: rgba(0, 229, 255, 0.1) !important;
    text-decoration: none;
  }

  .container {
    width: min(1180px, 94%);
  }

  .hero {
    padding: 86px 0 62px;
  }

  .section--portfolio-compact {
    padding-top: 36px;
    padding-bottom: 34px;
  }

  .section--apps-cards-compact {
    padding-top: 32px;
  }

  .hero h1,
  .hero .hero__title {
    font-size: clamp(1.35rem, 6vw, 2rem);
  }

  .section-head,
  .prose-merged {
    max-width: 100%;
  }

  .card {
    padding: 20px 16px 16px;
  }

  .card__media {
    margin: -20px -16px 12px;
    height: 128px;
  }

  .card__body {
    margin-bottom: 14px;
  }

  .support-list {
    gap: 7px;
  }

  .support-item {
    padding-bottom: 7px;
  }
}

/* —— Standalone 404 (optional file; configure on server — not linked from main nav) —— */
.page-404 {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-404__main {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 48px 0 56px;
}

.page-404__inner {
  width: 100%;
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}

.page-404__code {
  font-family: var(--font-heading);
  font-size: clamp(4rem, 12vw, 6.5rem);
  font-weight: 800;
  line-height: 1;
  margin: 0 0 12px;
  letter-spacing: -0.03em;
  color: var(--primary);
  text-shadow: 0 0 36px rgba(0, 212, 255, 0.22);
}

.page-404__main h1 {
  margin: 0 0 14px;
  font-size: clamp(1.35rem, 3.5vw, 1.75rem);
  font-weight: 700;
  color: var(--primary);
}

.page-404__main .section-intro {
  margin-left: auto;
  margin-right: auto;
  max-width: 42ch;
}

.page-404__main .cta-group {
  justify-content: center;
  margin-top: 8px;
}

.page-404__footer {
  margin-top: auto;
}


/* —— Shipping & Contact Us (static content + home inquiry form) —— */
/* Same .container width as #contact-form; first subheading follows hero banner */
.page-doc>.container>.page-doc__h2:first-child {
  margin-top: 0;
}

.page-doc__h2 {
  margin: 28px 0 14px;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--science-blue-mid);
}

.shipping-table-wrap {
  overflow-x: auto;
  margin: 0 0 8px;
  border-radius: 12px;
  border: 1px solid rgba(0, 59, 115, 0.14);
  background: #fff;
  box-shadow: 0 6px 24px rgba(0, 59, 115, 0.06);
}

.shipping-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.shipping-table th,
.shipping-table td {
  text-align: center;
  padding: 12px 10px;
  border: 1px solid rgba(0, 59, 115, 0.12);
  vertical-align: middle;
}

.shipping-table thead th {
  background: #c5dff5;
  font-weight: 700;
  color: var(--primary);
}

.shipping-table tbody tr:nth-child(odd) {
  background: #f7fbfe;
}

.shipping-table tbody tr:nth-child(even) {
  background: #fff;
}

.page-doc__list {
  margin: 0;
  padding-left: 1.35rem;
  color: var(--text);
  max-width: 52rem;
}

.page-doc__list li {
  margin-bottom: 10px;
}

.contact-page__email-line {
  margin: 0 0 28px;
  color: var(--science-blue-bright);
  font-size: 1rem;
  font-weight: 500;
}

.contact-page__email-line a {
  color: inherit;
  text-decoration: underline;
  font-weight: 600;
}

.contact-page__email-line a:hover {
  color: var(--science-blue-mid);
}

.contact-page__social {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-page__social-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: #5ab3e0;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-page__social-link:hover {
  color: var(--science-blue-bright);
}

.contact-page__social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
}

.contact-page__social-icon svg {
  display: block;
  width: 40px;
  height: 40px;
}

/* —— Resource page: tabbed downloads (Brochures / Solution / Sample Guideline) —— */
.resource-main {
  margin-top: 0;
}

.resource-main__head {
  margin-bottom: 1.25rem;
}

.resource-main__head .resource-main__title {
  margin-bottom: 0;
}

.resource-main-panel[hidden] {
  display: none !important;
}

.resource-tabs {
  margin-top: 8px;
}

.resource-tablist {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-items: center;
  justify-content: center;
  padding: 0 0 4px;
  margin: 0 0 28px;
  border-bottom: 2px solid rgba(0, 59, 115, 0.12);
}

.resource-tablist [role="tab"] {
  margin: 0;
  padding: 10px 6px 14px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: none;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
  margin-bottom: -2px;
}

.resource-tablist [role="tab"]:hover {
  color: var(--science-blue-mid);
}

.resource-tablist [role="tab"][aria-selected="true"] {
  color: var(--science-blue-bright);
  border-bottom-color: var(--science-blue-bright);
}

.resource-tablist [role="tab"]:focus-visible {
  outline: 2px solid var(--cyan-bright);
  outline-offset: 4px;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 28px);
}

@media (max-width: 900px) {
  .resource-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .resource-grid {
    grid-template-columns: 1fr;
  }
}

.resource-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: center;
  padding: 0 0 18px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(0, 59, 115, 0.1);
  background: #fff;
  box-shadow: 0 8px 28px rgba(0, 59, 115, 0.07);
}

.resource-card__media {
  margin: 0;
  aspect-ratio: 16 / 9;

  overflow: hidden;
}

.resource-card__media img {
  width: 100%;
  height: 100%;

  display: block;
}

.resource-card__title {
  margin: 14px 12px 12px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.45;
  flex: 1;
}

.resource-card__btn {
  align-self: center;
  margin-top: auto;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 0.88rem;
}

/* Resource FAQ: 承接后台富文本，仅同步模板样式 */
#resource-hub .resource-faq {
  max-width: none;
  width: 100%;
  margin: 0;
  box-sizing: border-box;
  padding: clamp(20px, 3vw, 28px);
  background: #fff;
  border: 1px solid rgba(0, 59, 115, 0.1);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 59, 115, 0.08);
}

.resource-faq--richtext> :first-child {
  margin-top: 0;
}

.resource-faq--richtext h1,
.resource-faq--richtext h2,
.resource-faq--richtext h3,
.resource-faq--richtext h4 {
  margin: 0 0 12px;
  color: var(--science-blue-bright);
  line-height: 1.35;
}

.resource-faq--richtext h2,
.resource-faq--richtext h3,
.resource-faq--richtext h4 {
  font-size: 1.05rem;
  font-weight: 800;
}

.resource-faq--richtext p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.65;
}

.resource-faq--richtext ul,
.resource-faq--richtext ol {
  margin: 0 0 14px;
  padding-left: 1.25rem;
  color: var(--muted);
}

.resource-faq--richtext li {
  margin: 0 0 6px;
  line-height: 1.6;
}

.resource-faq--richtext a {
  color: var(--science-blue-bright);
  font-weight: 600;
  text-decoration: none;
}

.resource-faq--richtext a:hover {
  text-decoration: underline;
}

.resource-faq--richtext table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 16px;
}

.resource-faq--richtext th,
.resource-faq--richtext td {
  border: 1px solid rgba(0, 59, 115, 0.14);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}

/* Breadcrumb (standalone / inner pages) */
.page-breadcrumb {
  padding: 10px 0;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.page-breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
  font-size: 0.96rem;
  line-height: 1.45;
  color: var(--primary);
  letter-spacing: 0.01em;
}

.page-breadcrumb__list li {
  display: inline-flex;
  align-items: center;
}

.page-breadcrumb__list li+li::before {
  content: "/";
  margin: 0 0.5rem;
  color: rgba(0, 51, 102, 0.6);
  font-weight: 600;
  user-select: none;
}

.page-breadcrumb__list a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.15s ease;
}

.page-breadcrumb__list a:hover {
  color: var(--science-blue-bright);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-breadcrumb__list li[aria-current="page"] {
  color: var(--primary);
  font-weight: 700;
}

/* Standalone long-form service page (no card grid) */
.standalone-article {
  padding-top: 1rem;
  padding-bottom: 3rem;
}

/* Title block: same .section-head + gradient rule as “Submit Inquiry”; width matches form column */
.standalone-article__page-title {
  max-width: min(68rem, 100%);
}

.standalone-article__inner {
  max-width: min(68rem, 100%);
  margin: 0;
}

.standalone-article h2 {
  font-size: 1.25rem;
  color: var(--science-blue);
  margin: 2.25rem 0 0.85rem;
  padding-top: 0.25rem;
  border-top: 1px solid rgba(0, 59, 115, 0.12);
}

.standalone-article h2:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.standalone-article p.prose-merged+p.prose-merged {
  margin-top: 0.85rem;
}

.standalone-article ol.standalone-list {
  margin: 0.75rem 0 0;
  padding-left: 1.35rem;
  color: var(--muted);
  line-height: 1.68;
}

.standalone-article ol.standalone-list li+li {
  margin-top: 0.5rem;
}

.standalone-article ul.standalone-list--unordered {
  margin: 0.75rem 0 0;
  padding-left: 1.35rem;
  list-style: disc;
  color: var(--muted);
}

.standalone-article ul.standalone-list--unordered li+li {
  margin-top: 1rem;
}

.standalone-article ul.standalone-list--unordered strong {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--text);
  font-family: var(--font-heading);
}

.standalone-article ul.standalone-list--unordered .prose-merged {
  margin-top: 0;
}

.standalone-article .standalone-subhead {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin: 1.5rem 0 0.5rem;
  font-family: var(--font-heading);
}

.standalone-article .standalone-tagline {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(0, 59, 115, 0.15);
  font-weight: 600;
  color: var(--science-blue);
  font-size: 0.95rem;
}

.standalone-article+.section#contact-form {
  padding-top: 0;
}

/* Standalone page + left accordion sidenav (banner-aligned categories) */
.standalone-page-layout {
  display: grid;
  grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2.25rem);
  align-items: start;
  padding-bottom: 2.5rem;
}

.standalone-page-layout__main {
  min-width: 0;
}

.standalone-page-layout__main .standalone-article__page-title,
.standalone-page-layout__main .standalone-article__inner {
  max-width: 100%;
}

.standalone-sidenav {
  position: sticky;
  top: calc(var(--header-h, 72px) + 12px);
  align-self: start;
  max-height: calc(100vh - var(--header-h, 72px) - 24px);
  overflow-y: auto;
}

.standalone-sidenav__title {
  margin: 0 0 10px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  font-family: var(--font-heading);
  letter-spacing: 0.02em;
}

.standalone-sidenav__box {
  border: 1px solid rgba(0, 59, 115, 0.14);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 4px 18px rgba(0, 59, 115, 0.04);
  overflow: hidden;
}

.standalone-sidenav__link {
  display: flex;
  align-items: center;
  padding: 12px 14px;
  font-size: 0.9rem;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 59, 115, 0.1);
  transition: color 0.15s ease, background 0.15s ease;
}

.standalone-sidenav__link:hover {
  color: var(--science-blue-mid);
  background: rgba(0, 59, 115, 0.04);
}

.standalone-sidenav__details {
  border-bottom: 1px solid rgba(0, 59, 115, 0.1);
}

.standalone-sidenav__details:last-child {
  border-bottom: 0;
}

.standalone-sidenav__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}

.standalone-sidenav__summary-label {
  flex: 1 1 auto;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.standalone-sidenav__summary-label:hover {
  color: var(--science-blue-mid);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.standalone-sidenav__summary-label[aria-current="page"] {
  font-weight: 700;
  color: var(--science-blue-bright);
}

.standalone-sidenav__toggle {
  width: 24px;
  height: 24px;
  border: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: inherit;
  cursor: pointer;
  border-radius: 6px;
}

.standalone-sidenav__toggle:hover {
  background: rgba(0, 59, 115, 0.08);
}

.standalone-sidenav__toggle-icon {
  font-size: 0.72rem;
  line-height: 1;
  transform: rotate(0deg);
  opacity: 0.7;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.standalone-sidenav__toggle-icon.is-open {
  transform: rotate(90deg);
  opacity: 1;
}

.standalone-sidenav__details:has(.standalone-sidenav__toggle-icon.is-open)>.standalone-sidenav__summary {
  color: var(--science-blue-mid);
  background: rgba(0, 59, 115, 0.05);
}

.standalone-sidenav__summary:hover {
  color: var(--science-blue-mid);
  background: rgba(0, 59, 115, 0.04);
}

.standalone-sidenav__subwrap {
  padding: 0 0 8px;
  background: rgba(248, 250, 252, 0.85);
}

.standalone-sidenav__details--nested {
  border-bottom: 0;
}

.standalone-sidenav__details--nested+.standalone-sidenav__details--nested {
  border-top: 1px solid rgba(0, 59, 115, 0.08);
}

.standalone-sidenav__summary--nested {
  padding: 10px 14px 10px 18px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #5a6570;
}

.standalone-sidenav__details--nested:has(.standalone-sidenav__toggle-icon.is-open)>.standalone-sidenav__summary--nested {
  color: var(--science-blue-bright);
}

.standalone-sidenav__sublinks {
  margin: 0;
  padding: 0 10px 10px 22px;
  list-style: none;
}

/* 三级菜单（嵌套组内）增加递进缩进，和二级形成层级差 */
.standalone-sidenav__details--nested>.standalone-sidenav__sublinks {
  padding-left: 34px;
}

.standalone-sidenav__sublinks li+li {
  margin-top: 2px;
}

.standalone-sidenav__sublinks a {
  display: block;
  padding: 5px 6px 5px 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--science-blue-mid);
  text-decoration: none;
}

.standalone-sidenav__sublinks a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.standalone-sidenav__sublinks a[aria-current="page"] {
  font-weight: 700;
  color: var(--science-blue-bright);
}

.standalone-sidenav__sublinks--flat {
  padding-top: 6px;
}

@media (max-width: 960px) {
  .standalone-page-layout {
    grid-template-columns: 1fr;
  }

  .standalone-sidenav {
    position: relative;
    top: auto;
    max-height: none;
    overflow: visible;
  }
}

/* Standalone search results page */
.search-results-page {
  padding-top: 38px;
  padding-bottom: 52px;
}

.search-results-page__inner {
  max-width: min(74rem, 100%);
}

.search-results-page__query,
.search-results-page__count {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.search-results-page__count {
  margin-top: 0.35rem;
  margin-bottom: 1rem;
}

.search-results-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
}

.search-results-item {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(0, 59, 115, 0.12);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 6px 20px rgba(0, 59, 115, 0.05);
}

.search-results-item__title {
  font-size: 1.03rem;
  font-weight: 700;
  color: var(--science-blue-mid);
  text-decoration: none;
}

.search-results-item__title:hover {
  color: var(--science-blue-bright);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Standalone Submit Inquiry page */
.inquiry-standalone {
  padding-top: 34px;
  padding-bottom: 52px;
}

.inquiry-standalone__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.95fr);
  gap: clamp(26px, 4vw, 54px);
  align-items: start;
}

.inquiry-standalone__title {
  margin: 0 0 14px;
  font-size: 1.05rem;
  font-weight: 500;
  color: #222;
}

.inquiry-form.card {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.inquiry-form__label {
  display: block;
  margin: 14px 0 6px;
  color: #222;
  font-size: 1.02rem;
  font-weight: 400;
}

.inquiry-form__label span {
  color: #bf2d2d;
}

.inquiry-form input,
.inquiry-form textarea {
  border: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.22);
  border-radius: 0;
  background: transparent;
  padding: 10px 6px;
  font-size: 1rem;
  color: #1f2937;
}

.inquiry-form input::placeholder,
.inquiry-form textarea::placeholder {
  color: rgba(34, 34, 34, 0.36);
}

.inquiry-form input:focus,
.inquiry-form textarea:focus {
  box-shadow: none;
  border-bottom-color: var(--science-blue-bright);
}

.inquiry-form textarea {
  margin-top: 6px;
  min-height: 104px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 0;
  padding: 10px 10px;
}

.inquiry-form__submit {
  margin-top: 14px;
  border-radius: 3px;
  padding: 8px 18px;
  background: #0e1a2f;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
}

.inquiry-form__submit:hover {
  background: #142746;
}

.inquiry-side-note {
  padding-top: 34px;
  color: #2f2f2f;
  font-size: 0.97rem;
  line-height: 1.8;
}

.inquiry-side-note p {
  margin: 0;
}

.inquiry-side-note a {
  color: #bf2d2d;
  text-decoration: none;
}

.inquiry-side-note a:hover {
  text-decoration: underline;
}

.inquiry-side-note__email {
  margin-top: 28px !important;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: #303030;
}

.inquiry-side-note__icon {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(0, 0, 0, 0.45);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(0, 0, 0, 0.55);
}

.inquiry-side-note__icon svg {
  width: 20px;
  height: 20px;
}

.order-steps {
  margin-top: 26px;
}

.order-steps h2 {
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.28);
  font-size: clamp(1.65rem, 3.2vw, 2.1rem);
  color: #121212;
}

.order-steps__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px;
  align-items: center;
}

.order-steps__item {
  position: relative;
  min-height: 70px;
  padding: 10px 14px;
  border: 2px solid rgba(0, 0, 0, 0.34);
  border-radius: 15px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 600;
  color: #5c5c5c;
  line-height: 1.25;
}

.order-steps__item:not(:last-child)::after {
  content: ">";
  position: absolute;
  right: -18px;
  top: 50%;
  transform: translateY(-50%);
  color: #8a8a8a;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
}

@media (max-width: 1024px) {
  .inquiry-standalone__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .inquiry-side-note {
    padding-top: 0;
  }

  .order-steps__list {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .order-steps__item:not(:last-child)::after {
    content: "";
  }
}