/* ============================================
   OPTRONIX v3.0 - Main Stylesheet
   ============================================ */

:root {
  --primary: #7b7ef2;
  --primary-light: #a1a3ff;
  --primary-dark: #5a5dc7;
  --black: #010101;
  --gray: #545454;
  --muted: #8c8c8c;
  --bg: #0a0a0a;
  --white: #ffffff;
  --text: #ffffff;
  --text-light: #ffffff;
  --card: #121212;
  --card-hover: #1a1a1a;
  --border: rgba(255, 255, 255, 0.1);
  --border-hover: rgba(123, 126, 242, 0.3);
  --green: #7ed957;
  --green-light: #9cf77a;
  --shadow: rgba(0, 0, 0, 0.05);
  --shadow-hover: rgba(123, 126, 242, 0.15);
}

* {
  box-sizing: border-box;
  border: none;
  outline: none;
}

section::before,
section::after,
.container::before,
.container::after {
  display: none !important;
  content: none !important;
}

html {
  min-height: 100%;
}
body {
  min-height: 100%;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Google Sans", sans-serif;
  background: 
    /* Texture pattern - 30% less aggressive */
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(255, 255, 255, 0.035) 2px,
      rgba(255, 255, 255, 0.035) 4px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 2px,
      rgba(255, 255, 255, 0.035) 2px,
      rgba(255, 255, 255, 0.035) 4px
    ),
    /* Base color */
    var(--bg);
  background-size: 20px 20px, 20px 20px, 100% 100%;
  line-height: 1.5;
  overflow-x: hidden;
  font-size: 16px;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -3;
  background: 
    /* Noise texture - 30% less aggressive */
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.0105) 0px,
      transparent 1px,
      transparent 2px,
      rgba(255, 255, 255, 0.0105) 3px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.0105) 0px,
      transparent 1px,
      transparent 2px,
      rgba(255, 255, 255, 0.0105) 3px
    );
  background-size: 8px 8px;
  pointer-events: none;
}

/* VANTA Background */
#vanta-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  opacity: 0.4; /* Reduced to allow background texture to show through */
}

.bg-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: 
    /* Smoothed radial gradients - gradual fade to prevent visible lines */
    radial-gradient(ellipse 120% 70% at 50% 0%, rgba(123, 126, 242, 0.18) 0%, rgba(123, 126, 242, 0.12) 30%, rgba(123, 126, 242, 0.06) 50%, rgba(123, 126, 242, 0.02) 70%, transparent 90%),
    radial-gradient(ellipse 90% 60% at 50% 100%, rgba(123, 126, 242, 0.15) 0%, rgba(123, 126, 242, 0.10) 30%, rgba(123, 126, 242, 0.05) 50%, rgba(123, 126, 242, 0.01) 70%, transparent 90%),
    radial-gradient(ellipse 70% 50% at 20% 50%, rgba(126, 217, 87, 0.1) 0%, rgba(126, 217, 87, 0.07) 30%, rgba(126, 217, 87, 0.03) 50%, rgba(126, 217, 87, 0.01) 70%, transparent 90%),
    radial-gradient(ellipse 60% 40% at 80% 50%, rgba(123, 126, 242, 0.08) 0%, rgba(123, 126, 242, 0.05) 30%, rgba(123, 126, 242, 0.02) 50%, rgba(123, 126, 242, 0.005) 70%, transparent 90%);
  pointer-events: none;
  opacity: 1;
}

/* Header — subtle frosted glass lets site background show through */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 20px clamp(24px, 4vw, 64px);
  transition: background 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(10, 10, 12, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.25);
  /* Allow dropdowns to extend below header */
  overflow: visible;
}

header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(123, 126, 242, 0.14) 35%,
    rgba(123, 126, 242, 0.28) 50%,
    rgba(123, 126, 242, 0.14) 65%,
    transparent 100%
  );
  background-size: 220% 100%;
  opacity: 0.45;
  animation: headerScanline 16s linear infinite;
  pointer-events: none;
}

@keyframes headerScanline {
  0% { background-position: 0% 0%; }
  100% { background-position: 100% 0%; }
}

@media (prefers-reduced-motion: reduce) {
  header::after {
    animation: none !important;
  }
}

header.scrolled,
#site-header.scrolled {
  background: rgba(10, 10, 12, 0.6) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
  padding: 20px clamp(24px, 4vw, 64px) !important;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.25) !important;
  transition: background 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

header.header-hidden {
  transform: translateY(-100%) !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.header-container {
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.brand:hover {
  transform: scale(1.02);
}

.brand-img {
  height: 64px;
  width: auto;
  display: block;
  transition: opacity 0.3s ease;
}

/* Logo sizing */
header .brand-img {
  height: 80px; /* +25% from 64px */
}

footer .brand-img {
  height: 112px; /* +75% from 64px */
}

.brand:hover .brand-img {
  opacity: 0.9;
}

nav#primary-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: 1;
  justify-content: space-between;
}

nav ul.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 4px;
  align-items: center;
  flex: 1;
  justify-content: center;
}

nav ul:not(.nav-links) {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 8px;
  align-items: center;
}

nav li {
  position: relative;
}

nav li.has-dropdown > a::after {
  content: "▼" !important;
  font-size: 0.5rem !important;
  margin-left: 6px !important;
  display: inline-block !important;
  transition: transform 0.3s ease !important;
  opacity: 0.7 !important;
  vertical-align: middle !important;
  position: static !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  height: auto !important;
  width: auto !important;
  background: none !important;
  transform: none !important;
}

nav li.has-dropdown:hover > a::after {
  transform: rotate(180deg) !important;
  opacity: 1 !important;
}

/* Dropdown Menu */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  margin-top: 12px;
  background: rgba(18, 18, 18, 0.98);
  backdrop-filter: blur(24px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 20px;
  min-width: 600px;
  max-width: 800px;
  width: max-content;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
  z-index: 100;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  list-style: none;
  margin: 0;
  text-align: left;
}

.dropdown-menu.dropdown-menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.dropdown-menu.dropdown-menu-grid.services-dropdown {
  grid-template-columns: repeat(3, 1fr);
  min-width: 900px;
  max-width: 1100px;
}

.dropdown-menu.dropdown-menu-grid.solutions-dropdown {
  grid-template-columns: repeat(3, 1fr);
  min-width: 900px;
  max-width: 1100px;
}

.dropdown-menu.dropdown-menu-grid.industries-dropdown {
  grid-template-columns: repeat(3, 1fr);
  min-width: 900px;
  max-width: 1100px;
}

/* About dropdown – three cards in one row, same as Services */
.dropdown-menu.dropdown-menu-grid.about-dropdown {
  grid-template-columns: repeat(3, 1fr);
  min-width: 900px;
  max-width: 1100px;
}

.about-dropdown .dropdown-card {
  min-width: 0; /* allow flex item to shrink so text can wrap */
}

.about-dropdown .dropdown-card-content {
  min-width: 0;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.about-dropdown .dropdown-card-desc {
  white-space: normal;
  line-height: 1.35;
}

/* About page: hero and scroll-reveal animations */
.page-about .hero-card {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
body.about-loaded .page-about .hero-card {
  opacity: 1;
  transform: translateY(0);
}
.page-about .about-page-card.fade-in-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.page-about .about-page-card.fade-in-up[data-delay="0"] { transition-delay: 0ms; }
.page-about .about-page-card.fade-in-up[data-delay="50"] { transition-delay: 80ms; }
.page-about .about-page-card.fade-in-up[data-delay="100"] { transition-delay: 160ms; }
.page-about .about-page-card.fade-in-up[data-delay="150"] { transition-delay: 240ms; }
.page-about .page-cta.page-section.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* About page: 4x1 cards with accents, icons, depth, gradient */
.about-cards-section {
  padding-top: 0;
  padding-bottom: 32px;
  margin-top: 32px;
}
.about-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  width: 100%;
}
.about-page-card {
  display: block;
  text-decoration: none;
  color: inherit;
  position: relative;
  border-radius: 18px;
  padding: 32px 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(18, 18, 18, 0.92);
  background-image: radial-gradient(ellipse 120% 80% at 50% -20%, rgba(255, 255, 255, 0.04) 0%, transparent 50%);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: opacity 0.6s ease, transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
}
.about-page-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  opacity: 0.9;
  transition: opacity 0.35s ease;
}
/* 1) Per-card colour accents */
.about-page-card[data-card="why"] {
  border-color: rgba(123, 126, 242, 0.15);
}
.about-page-card[data-card="why"]::before {
  background: linear-gradient(90deg, transparent, rgba(123, 126, 242, 0.7), transparent);
}
.about-page-card[data-card="careers"] {
  border-color: rgba(59, 130, 246, 0.15);
}
.about-page-card[data-card="careers"]::before {
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.7), transparent);
}
.about-page-card[data-card="newsroom"] {
  border-color: rgba(126, 217, 87, 0.15);
}
.about-page-card[data-card="newsroom"]::before {
  background: linear-gradient(90deg, transparent, rgba(126, 217, 87, 0.6), transparent);
}
.about-page-card[data-card="partners"] {
  border-color: rgba(251, 191, 36, 0.2);
}
.about-page-card[data-card="partners"]::before {
  background: linear-gradient(90deg, transparent, rgba(251, 191, 36, 0.6), transparent);
}
/* 4) Stronger depth and hover */
.about-page-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.about-page-card[data-card="why"]:hover {
  border-color: rgba(123, 126, 242, 0.35);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35), 0 12px 40px rgba(123, 126, 242, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.about-page-card[data-card="careers"]:hover {
  border-color: rgba(59, 130, 246, 0.35);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35), 0 12px 40px rgba(59, 130, 246, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.about-page-card[data-card="newsroom"]:hover {
  border-color: rgba(126, 217, 87, 0.35);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35), 0 12px 40px rgba(126, 217, 87, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.about-page-card[data-card="partners"]:hover {
  border-color: rgba(251, 191, 36, 0.4);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35), 0 12px 40px rgba(251, 191, 36, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.about-card-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
  position: relative;
  z-index: 1;
}
/* 3) Icon */
.about-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  transition: transform 0.35s ease, background 0.35s ease, border-color 0.35s ease;
}
.about-card-icon svg {
  width: 24px;
  height: 24px;
  transition: color 0.35s ease;
}
.about-page-card[data-card="why"] .about-card-icon {
  background: rgba(123, 126, 242, 0.12);
  border: 1px solid rgba(123, 126, 242, 0.25);
}
.about-page-card[data-card="why"] .about-card-icon svg {
  color: rgba(161, 163, 255, 0.95);
}
.about-page-card[data-card="careers"] .about-card-icon {
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.25);
}
.about-page-card[data-card="careers"] .about-card-icon svg {
  color: rgba(147, 197, 253, 0.95);
}
.about-page-card[data-card="newsroom"] .about-card-icon {
  background: rgba(126, 217, 87, 0.12);
  border: 1px solid rgba(126, 217, 87, 0.25);
}
.about-page-card[data-card="newsroom"] .about-card-icon svg {
  color: rgba(156, 247, 122, 0.95);
}
.about-page-card[data-card="partners"] .about-card-icon {
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.3);
}
.about-page-card[data-card="partners"] .about-card-icon svg {
  color: rgba(251, 191, 36, 0.95);
}
.about-page-card:hover .about-card-icon {
  transform: scale(1.08);
}
.about-page-card[data-card="why"]:hover .about-card-icon {
  background: rgba(123, 126, 242, 0.2);
  border-color: rgba(123, 126, 242, 0.4);
}
.about-page-card[data-card="careers"]:hover .about-card-icon {
  background: rgba(59, 130, 246, 0.2);
  border-color: rgba(59, 130, 246, 0.4);
}
.about-page-card[data-card="newsroom"]:hover .about-card-icon {
  background: rgba(126, 217, 87, 0.2);
  border-color: rgba(126, 217, 87, 0.4);
}
.about-page-card[data-card="partners"]:hover .about-card-icon {
  background: rgba(251, 191, 36, 0.2);
  border-color: rgba(251, 191, 36, 0.5);
}
/* Unbold title */
.about-page-card-title {
  margin: 0 0 10px;
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.about-page-card-desc {
  margin: 0;
  font-size: 1rem;
  color: rgba(238, 240, 255, 0.7);
  line-height: 1.5;
}
@media (max-width: 940px) {
  .about-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 520px) {
  .about-cards-grid {
    grid-template-columns: 1fr;
  }
}

nav li.has-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Dropdown Cards */
.dropdown-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.dropdown-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: left;
}

.dropdown-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.dropdown-card:hover::before {
  transform: scaleX(1);
}

.dropdown-card-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(123, 126, 242, 0.1);
  border: 1px solid rgba(123, 126, 242, 0.2);
  border-radius: 10px;
  color: var(--primary);
  transition: all 0.2s ease;
}

.dropdown-card:hover .dropdown-card-icon {
  background: rgba(123, 126, 242, 0.15);
  border-color: rgba(123, 126, 242, 0.3);
  transform: scale(1.05);
}

.dropdown-card-icon svg {
  width: 24px;
  height: 24px;
}

.dropdown-card-content {
  flex: 1;
  min-width: 0;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.dropdown-card-title {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
  line-height: 1.4;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.dropdown-card-desc {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 0.8125rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.4;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.dropdown-card:hover .dropdown-card-title {
  color: var(--text);
}

.dropdown-card:hover .dropdown-card-desc {
  color: rgba(255, 255, 255, 0.75);
}

/* Services dropdown: Sustainable Energy card – green accent (last in list) */
.services-dropdown .dropdown-card-green::before {
  background: linear-gradient(90deg, var(--green), rgba(126, 217, 87, 0.8));
}
.services-dropdown .dropdown-card-green .dropdown-card-title {
  color: var(--green);
}
.services-dropdown .dropdown-card-green .dropdown-card-desc {
  color: rgba(126, 217, 87, 0.85);
}
.services-dropdown .dropdown-card-green .dropdown-card-icon {
  background: rgba(126, 217, 87, 0.12);
  border-color: rgba(126, 217, 87, 0.35);
  color: var(--green);
}
.services-dropdown .dropdown-card-green:hover {
  border-color: rgba(126, 217, 87, 0.3);
  box-shadow: 0 8px 24px rgba(126, 217, 87, 0.15);
}
.services-dropdown .dropdown-card-green:hover .dropdown-card-title {
  color: var(--green-light);
}
.services-dropdown .dropdown-card-green:hover::before {
  transform: scaleX(1);
}
.services-dropdown .dropdown-card-green:hover .dropdown-card-icon {
  background: rgba(126, 217, 87, 0.2);
  border-color: rgba(126, 217, 87, 0.5);
}

/* Legacy dropdown menu items (for backwards compatibility) */
.dropdown-menu li {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: left;
  width: 100%;
  display: block;
}

.dropdown-menu li a:not(.dropdown-card) {
  display: block;
  padding: 10px 14px;
  color: var(--text);
  text-decoration: none;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 0.875rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: -0.01em;
  border-radius: 6px;
  transition: all 0.2s ease;
  margin: 2px 0;
  width: 100%;
  text-align: left;
  box-sizing: border-box;
  white-space: nowrap;
  opacity: 0.85;
  line-height: 1.5;
}

.dropdown-menu li:first-child a:not(.dropdown-card) {
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: -0.01em;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: none;
  margin-bottom: 8px;
  opacity: 1;
}

.dropdown-menu li:first-child a:not(.dropdown-card):hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

.dropdown-menu a:not(.dropdown-card):hover {
  background: rgba(123, 126, 242, 0.15);
  color: var(--primary-light);
  transform: translateX(4px);
}

/* Mobile Dropdown Support */
@media (max-width: 900px) {
  .dropdown-menu:not(.dropdown-menu-grid) {
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    margin-top: 0 !important;
    margin-left: 20px !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 8px 0 !important;
    display: none !important;
    min-width: auto !important;
    max-width: none !important;
    width: auto !important;
    left: auto !important;
  }
  
  nav li.has-dropdown.active .dropdown-menu {
    display: grid !important;
  }

  nav li.has-dropdown > a {
    cursor: pointer;
  }
  
  .dropdown-card {
    padding: 12px;
    gap: 12px;
  }
  
  .dropdown-card-icon {
    width: 40px;
    height: 40px;
  }
}

nav a {
  color: var(--text);
  text-decoration: none;
  font-family: "Google Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 500;
  font-size: 0.9375rem;
  letter-spacing: -0.01em;
  text-transform: none;
  opacity: 0.9;
  position: relative;
  padding: 8px 12px;
  border-radius: 6px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  line-height: 1.5;
}

nav a:hover {
  opacity: 1;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

nav li:not(.has-dropdown) > a:not(.portal-link)::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 4px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

nav li:not(.has-dropdown) > a:not(.portal-link):hover::after {
  transform: scaleX(1);
}

/* Sustainability nav item – green */
nav a.nav-link-green {
  color: var(--green);
  opacity: 1;
}
nav a.nav-link-green:hover {
  color: var(--green-light);
  background: rgba(126, 217, 87, 0.1);
}
nav li > a.nav-link-green::after {
  background: linear-gradient(90deg, transparent, var(--green), transparent);
}
nav li > a.nav-link-green:hover::after {
  transform: scaleX(1);
  background: linear-gradient(90deg, transparent, var(--green-light), transparent);
}

/* Active link animation */
@keyframes activePulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(123, 126, 242, 0.0);
  }
  50% {
    box-shadow: 0 0 20px 0 rgba(123, 126, 242, 0.3);
  }
}

nav a.active {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--text);
  opacity: 1;
  font-weight: 500;
}
nav a.nav-link-green.active {
  color: var(--green);
  background: rgba(126, 217, 87, 0.12);
}
nav a.nav-link-green.active:hover {
  color: var(--green-light);
  background: rgba(126, 217, 87, 0.18);
}

/* Header Action Buttons */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.btn-header {
  padding: 10px 20px;
  border-radius: 9999px;
  font-family: "Google Sans", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
  letter-spacing: 0.01em;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-transform: none;
  line-height: 1.5;
}

.btn-header-primary {
  background: #ffffff;
  color: var(--primary);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.btn-header-primary:hover {
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.btn-header-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-header-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--text);
}

@media (max-width: 940px) {
  .nav-toggle {
    display: flex !important;
    z-index: 70;
    position: relative;
  }
  
  .header-actions {
    display: none;
  }
  
}

/* Portal & Sustainability Links — match CoreWeave-style buttons */
.portal-link {
  background: var(--primary) !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  padding: 8px 16px !important;
  border-radius: 9999px !important;
  border: 1px solid transparent !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2) !important;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease !important;
  opacity: 1 !important;
}

.portal-link.active {
  background: var(--primary-light) !important;
}

.portal-link::after {
  display: none !important;
}

.portal-link:hover {
  background: var(--primary-light) !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25) !important;
}

.portal-link:active {
  transform: translateY(0) !important;
}


@keyframes activePulseGreen {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(126, 217, 87, 0.0);
  }
  50% {
    box-shadow: 0 0 20px 0 rgba(126, 217, 87, 0.45);
  }
}

/* Layout */
.container {
  max-width: 1600px;
  margin-inline: auto;
  padding-inline: clamp(24px, 4vw, 64px);
}

/* Main content area - add padding for fixed header on all pages except homepage */
main {
  padding-top: 0;
  position: relative;
  z-index: 0; /* Keep all page content below fixed header (z-index: 50) */
}

/* On non-homepage pages, first section needs padding to account for fixed header */
main section:first-of-type:not(.hero-centered) {
  padding-top: 240px !important;
}

section {
  padding: 0;
  position: relative;
  margin-top: 100px;
}

section:first-of-type {
  margin-top: 0;
  padding-top: 0 !important;
  padding-bottom: 0;
}


/* Homepage: 50% more padding between each section */
main:has(.hero-home) section:not(:first-of-type) {
  margin-top: 150px; /* 50% more than base 100px */
}
main:has(.hero-home) .solutions2-section {
  padding-top: calc(90px + 1.5vh); /* 50% more than 60px + 1vh */
  padding-bottom: 263px; /* 50% more than 175px */
}
main:has(.hero-home) .trusted-above-footer {
  margin-top: 120px !important; /* 50% more than 80px */
  padding-top: 48px !important; /* 50% more than 32px */
  padding-bottom: 72px !important; /* 50% more than 48px */
}
main:has(.hero-home) .section-edge-to-edge {
  padding-top: 36px !important; /* 50% more than 24px */
  padding-bottom: 36px !important;
}
main:has(.hero-home) section[aria-label="Get in touch"].section-edge-to-edge {
  margin-top: 150px !important; /* 50% more than 100px */
  padding-top: 90px !important; /* 50% more than 60px */
}

/* Trusted section - override margin for homepage trusted section */
.section-edge-to-edge {
  margin-top: 0 !important;
}

/* Homepage contact CTA section spacing */
section[aria-label="Get in touch"].section-edge-to-edge {
  margin-top: 100px !important;
  padding-top: 60px !important;
}

/* Solutions2 - same clip-path as grid (trapezium top + trapezium cutout at bottom) */
.solutions2-section {
  position: relative;
  z-index: 1;
  pointer-events: none;
  width: 100vw;
  left: 50%;
  margin-left: -50vw;
  margin-right: 0;
  padding: calc(60px + 1vh) 0 2.5vh 0;
  padding-bottom: 175px !important;
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  box-sizing: border-box;
  overflow: visible;
  clip-path: polygon(
    calc(50% - min(240px, 21vw)) 0,
    calc(50% + min(240px, 21vw)) 0,
    calc(50% + min(320px, 28vw)) 60px,
    100% 60px,
    100% 100%,
    calc(50% + min(320px, 28vw)) 100%,
    calc(50% + min(240px, 21vw)) calc(100% - 60px),
    calc(50% - min(240px, 21vw)) calc(100% - 60px),
    calc(50% - min(320px, 28vw)) 100%,
    0 100%,
    0 60px,
    calc(50% - min(320px, 28vw)) 60px
  );
}

/* Wrapper: trapezium (in flow) + section; section stretches full width */
.solutions2-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

/* Background image grid: trapezium-shaped top (part of background, not separate element); 70% transparent */
.solutions2-bg-grid-wrap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  clip-path: polygon(
    calc(50% - min(240px, 21vw)) 0,
    calc(50% + min(240px, 21vw)) 0,
    calc(50% + min(320px, 28vw)) 60px,
    100% 60px,
    100% 100%,
    calc(50% + min(320px, 28vw)) 100%,
    calc(50% + min(240px, 21vw)) calc(100% - 60px),
    calc(50% - min(240px, 21vw)) calc(100% - 60px),
    calc(50% - min(320px, 28vw)) 100%,
    0 100%,
    0 60px,
    calc(50% - min(320px, 28vw)) 60px
  );
}
.solutions2-bg-grid {
  position: absolute;
  inset: 0;
  display: grid;
  gap: 5px;
  padding: 5px;
  opacity: 0.3;
}
.solutions2-bg-grid-cell {
  overflow: hidden;
  background: rgba(0, 0, 0, 0.2);
  min-height: 0;
  min-width: 0;
}
.solutions2-bg-grid-cell picture,
.solutions2-bg-grid-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


/* Position so title sits at bottom of viewport on load; hero height is calc'd to achieve this */
.solutions2-section > * {
  pointer-events: auto;
}
.solutions2-inner {
  max-width: 1600px;
  margin-inline: auto;
  padding-inline: clamp(24px, 4vw, 64px);
  position: relative;
  z-index: 1;
  margin-top: 0;
}

/* Solutions2 title: moved up; tagline below */
#solutions .section-title {
  font-size: clamp(0.65rem, 3vw, 4.5rem);
  font-weight: 400;
  text-align: center;
  padding-top: 0;
  padding-bottom: 0.5vh;
  margin-top: -140px !important;
}
#solutions .section-sub {
  text-align: center;
  margin-top: 0;
  margin-bottom: clamp(48px, 8vh, 96px) !important;
}

.solutions2-grid {
  margin-top: 0;
}

/* Solutions2 cards: same scroll-reveal animation as Industries */
#solutions .solutions2-grid .service-card {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
#solutions.revealed .solutions2-grid .service-card {
  opacity: 1;
  transform: translateY(0);
}
#solutions .solutions2-grid .service-card:nth-child(1) { transition-delay: 0ms; }
#solutions .solutions2-grid .service-card:nth-child(2) { transition-delay: 80ms; }
#solutions .solutions2-grid .service-card:nth-child(3) { transition-delay: 160ms; }
#solutions .solutions2-grid .service-card:nth-child(4) { transition-delay: 240ms; }
#solutions .solutions2-grid .service-card:nth-child(5) { transition-delay: 320ms; }
#solutions .solutions2-grid .service-card:nth-child(6) { transition-delay: 400ms; }

/* Double bottom padding inside Solutions2 solution cards (overrides generic .service-card in media queries) */
#solutions .service-card {
  padding-bottom: 56px !important;
}

/* Homepage: no extra margin on Solutions2 section (padding comes from .solutions2-section) */
.hero-centered + .solutions2-wrapper #solutions {
  margin-top: 0 !important;
}

.hero-centered + .solutions2-wrapper ~ #solutions,
.solutions2-wrapper + #solutions {
  padding-top: 48px;
}

.services2-grid {
  margin-top: 0;
}

/* Hero height so Solutions2 section starts at bottom of viewport: title peeks out on load */
main .hero-centered:first-of-type {
  min-height: calc(100vh - 60px - 1vh);
  height: calc(100vh - 60px - 1vh);
}

/* Certifications / trusted logos */
.trusted-above-footer {
  margin-top: 80px !important;
  padding-top: 32px !important;
  padding-bottom: 48px !important;
  margin-bottom: 0 !important;
}

/* Full-width sections that break out of container */
.section-full-width {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  padding: 24px 0;
  background: rgba(10, 10, 10, 0.7);
  backdrop-filter: blur(8px);
}

.section-full-width .container {
  max-width: 1600px;
  margin-inline: auto;
  padding-inline: clamp(24px, 4vw, 64px);
}

/* Section that is full width edge to edge with centered content */
.section-edge-to-edge {
  position: relative !important;
  width: 100vw !important;
  max-width: none !important;
  left: 50% !important;
  margin-left: -50vw !important;
  margin-right: 0 !important;
  padding: 24px 0 !important;
  box-sizing: border-box !important;
  background: transparent !important;
}

.section-edge-to-edge .panel {
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 24px clamp(24px, 4vw, 64px) !important;
  cursor: default !important;
  transition: none !important;
  background: rgba(18, 18, 18, 0.85) !important;
  backdrop-filter: blur(12px) !important;
  border-radius: 0 !important;
}

.section-edge-to-edge .panel:hover {
  background: rgba(18, 18, 18, 0.85) !important;
  box-shadow: none !important;
  transform: none !important;
}

/* Projects page: keep "Global Reach" content aligned to normal margins,
   while letting the panel background extend edge-to-edge */
.projects-global-reach.section-edge-to-edge {
  padding: 0 !important;
}

.projects-global-reach.section-edge-to-edge .panel.projects-global-reach__panel {
  padding: 0 !important;
  background: transparent !important;
}

.projects-global-reach.section-edge-to-edge .panel.projects-global-reach__panel:hover {
  background: transparent !important;
}

.projects-global-reach__inner {
  padding: 24px 24px 56px;
}

/* Projects page: auto-scrolling gallery (like homepage carousel) */
section.projects-gallery {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  padding: 0;
  max-width: none;
}

/* Override the section-edge-to-edge panel padding so images can be truly edge-to-edge */
.projects-gallery.section-edge-to-edge {
  padding: 0 !important;
}

.projects-gallery.section-edge-to-edge .panel.projects-gallery__panel {
  padding: 0 !important;
  border-radius: 0 !important;
  background: rgba(18, 18, 18, 0.25) !important;
}

.projects-gallery-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 18px 0;
  display: flex;
  align-items: center;
  /* Same soft fade edges as homepage */
  mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  touch-action: pan-y;
  position: relative;
  z-index: 0;
}

.projects-gallery-track {
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0; /* no gaps between images */
  will-change: transform;
  height: 234px; /* 30% taller */
  /* Animation will be set dynamically via JavaScript */
}

.projects-gallery-track:hover {
  animation-play-state: paused !important;
}

.projects-gallery-item {
  flex-shrink: 0;
  width: 180px;
  height: 234px; /* 30% taller */
  overflow: hidden;
  margin: 0;
  padding: 0;
  position: relative;
}

.projects-gallery-item::after {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  right: 0;
  width: 1px;
  /* Subtle on-brand seam (no-gap divider) */
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(123, 126, 242, 0.35) 25%,
    rgba(126, 217, 87, 0.25) 50%,
    rgba(123, 126, 242, 0.35) 75%,
    transparent 100%
  );
  opacity: 0.55;
  pointer-events: none;
  z-index: 2;
}

.projects-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  margin: 0;
  padding: 0;
  pointer-events: none; /* prevent right-click on the image itself */
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  /* default = slightly faded */
  opacity: 0.78;
  filter: saturate(0.9) contrast(0.97) brightness(0.98);
  transition: opacity 220ms ease, filter 220ms ease;
}

.projects-gallery-item:hover img {
  opacity: 1;
  filter: none;
}

@media (max-width: 640px) {
  .projects-gallery-track {
    height: 188px; /* 30% taller */
  }
  .projects-gallery-item {
    width: 144px;
    height: 188px; /* 30% taller */
  }
  .projects-gallery-item::after {
    top: 8px;
    bottom: 8px;
  }
}

.mt-header {
  margin-top: 0 !important;
  padding-top: 240px !important;
}

/* Homepage hero-centered - no extra padding on desktop, but needs it on mobile */
.mt-header.hero-centered {
  padding-top: 0 !important;
}

/* Hero stays viewport-centered on all screen sizes - no top padding */
@media (max-width: 940px) {
  .mt-header.hero-centered {
    padding-top: 0 !important;
  }
}

/* Hero */
.hero {
  min-height: auto;
  display: grid;
  align-items: start;
  padding-top: 0 !important;
  padding-bottom: 40px;
}

/* Hero centered on page - fills viewport so Industries starts just below fold (all screen sizes) */
.hero-centered {
  min-height: 100vh;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-block: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  position: relative;
  overflow: visible;
  box-sizing: border-box;
}

.hero-centered .hero-card {
  margin: 0;
  position: relative;
  z-index: 2;
}

/* Non-home hero: no transform so layout stays fixed; homepage hero uses transform for entrance animation */
.hero-centered:not(.hero-home) .hero-card {
  transform: none !important;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--text-light);
  letter-spacing: 0.2px;
  background: rgba(123, 126, 242, 0.12);
  backdrop-filter: blur(4px);
  margin-bottom: 16px;
}

.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--primary);
  box-shadow: 0 0 12px var(--primary);
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.1);
  }
}

.pulse {
  animation: pulse 2s ease-in-out infinite;
}

.hero-card {
  /* ORIGINAL: background: rgba(18, 18, 18, 0.75); */
  background: transparent;
  border: none;
  border-radius: 22px;
  padding-block: 64px;
  padding-inline: 0;
  /* ORIGINAL: backdrop-filter: blur(12px); */
  backdrop-filter: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: none;
  width: 100%;
  max-width: 100%;
}

.hero-card:hover {
  transform: none;
  box-shadow: none;
}

/* Blur card: hero title, subtext, and CTA buttons — same width as container/grid below */
.hero-title-blur-card {
  max-width: 1600px;
  margin-inline: auto;
  width: 100%;
  padding: clamp(32px, 5vw, 56px) clamp(24px, 4vw, 64px);
  background: rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-radius: 0;
  box-sizing: border-box;
  container-type: inline-size;
  container-name: hero-blur;
}

/* When pill or eyebrow is inside the card, give extra top padding so it sits comfortably inside */
.hero-title-blur-card:has(.eyebrow:first-child),
.hero-title-blur-card:has(.hero-pill:first-child) {
  padding-top: clamp(40px, 6vw, 64px);
  padding-bottom: clamp(40px, 6vw, 64px);
}

.hero-title-blur-card h1,
.hero-title-blur-card .sub {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  text-indent: 0;
}
.hero-title-blur-card .sub-highlight {
  color: var(--primary-light);
  font-weight: 500;
}

/* Hero headline: large and fills the card (scale with card width so it fits) */
.hero-title-blur-card h1 {
  margin-bottom: 8px !important;
  min-height: auto !important;
  font-size: clamp(1.25rem, 4.2cqw, 4.5rem) !important;
  line-height: 1.2 !important;
}

.hero-title-blur-card .sub {
  font-size: clamp(1rem, 1.4cqw, 1.25rem) !important;
}

/* Hero pill CTA — CoreWeave-style (e.g. "Podcast AI Cloud Essentials"): above headline */
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 14px;
  border-radius: 9999px;
  text-decoration: none;
  font-family: "Google Sans", sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: 18px;
  transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
  border: 1px solid transparent;
  align-self: flex-start;
}

.hero-pill-partnership {
  background: transparent;
  border: 1px solid var(--green);
  box-shadow: none;
}

.hero-pill-partnership:hover {
  background: rgba(126, 217, 87, 0.08);
  border-color: var(--green-light);
  box-shadow: 0 2px 8px rgba(126, 217, 87, 0.15);
  transform: translateY(-1px);
}

.hero-pill-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
}

.hero-pill-label {
  color: var(--text);
  opacity: 0.95;
}

.hero-pill-label-accent {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--green);
  margin-right: 4px;
}

.hero-pill-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 2px;
  color: var(--green-light);
}

.hero-pill:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.hero-pill-partnership:focus-visible {
  outline-color: var(--green);
}

.hero h1 {
  margin: 6px 0 20px;
  font-size: clamp(0.65rem, 3vw, 4.5rem);
  font-weight: 400;
  line-height: 1.15;
  width: 100%;
  letter-spacing: -0.02em;
  min-height: calc(clamp(0.65rem, 3vw, 4.5rem) * 1.15 * 2);
}

.hero-headline-oneline {
  white-space: nowrap;
  display: inline-block;
}

.hero h1 .optronix-brand {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-style: normal;
}

.hero h1 .bold {
  font-weight: 800;
  font-size: 1.1em;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline;
  vertical-align: baseline;
  line-height: inherit;
}

.sub {
  max-width: 100%;
  width: 100%;
  color: var(--text-light);
  opacity: 1;
  font-size: clamp(1.05rem, 1.2vw, 1.2rem);
  line-height: 1.7;
  margin-bottom: 8px;
  text-indent: 0;
}

/* Hero/intro panel subtext: full width of container, no indent (contact, services, solutions, etc.) */
.container.mt-header .panel > p,
.mt-header .panel > p {
  max-width: 100% !important;
  width: 100% !important;
  text-indent: 0 !important;
  box-sizing: border-box;
}

.cta-row {
  margin-top: 32px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Buttons — CoreWeave-style: clean, flat, confident (Optronix palette) */
.btn {
  appearance: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-family: "Google Sans", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 24px;
  border-radius: 9999px;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.01em;
}

.hero .btn {
  border-radius: 9999px;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  border: 1px solid transparent;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
  background: var(--primary-light);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  transform: translateY(-1px);
}

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

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: none;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--primary);
  color: var(--primary-light);
  transform: translateY(-1px);
}

.btn-ghost:active {
  transform: translateY(0);
}

.btn:active {
  transform: translateY(0);
}

.btn:focus-visible,
.btn-primary:focus-visible,
.btn-ghost:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.btn-header:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Typed Animation */
.typed-cursor {
  display: inline-block !important;
  width: 2px !important;
  height: 1em !important;
  background: var(--primary-light) !important;
  margin-left: 4px !important;
  animation: cursorBlink 0.5s step-end infinite !important;
  vertical-align: baseline !important;
  visibility: visible !important;
  position: relative !important;
  top: 0 !important;
}

@keyframes cursorBlink {
  0%, 49% {
    opacity: 1;
  }
  50%, 100% {
    opacity: 0;
  }
}

/* Sections */
.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  margin: 0 0 8px;
  font-weight: 800;
  line-height: 1.2;
}

.section-sub {
  margin: 0 0 20px;
  color: var(--text-light);
  opacity: 1;
  font-size: 1.05rem;
}

.section-subtitle {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  margin: 0 0 20px;
  font-weight: 600;
  color: var(--text-light);
  opacity: 0.9;
}

/* Panels */
.panel {
  background: rgba(18, 18, 18, 0.85);
  border: none;
  padding: 24px;
  border-radius: 18px;
  backdrop-filter: blur(12px);
  transition: all 0.3s ease;
  box-shadow: none;
}

.panel:hover {
  box-shadow: none;
  background: rgba(26, 26, 26, 0.9);
}

/* Partners hero: partnership pill inside the blur card (same box as "About Optronix"), bottom right */
.page-our-partners .hero-title-blur-card-has-pill {
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* keep "About Optronix" pill at top-left, not stretched */
}

.page-our-partners .hero-title-blur-card-has-pill .hero-card-pill {
  align-self: flex-end; /* only the bottom pill aligns right */
}

.page-our-partners .hero-card-pill {
  margin-top: auto;
  margin-bottom: 0;
}

/* 25px space above pill so it sits lower in the card */
.page-our-partners .hero-card-pill::before {
  content: "";
  display: block;
  height: 25px;
}

/* Partners grid – 2×3 same-size cards (Our Partners page only) */
.page-our-partners .partners-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 768px) {
  .page-our-partners .partners-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
}

/* GS partner card: top 40% white (logos), bottom 60% hero-style blur + subtext */
.page-our-partners .partners-grid .gs-partner-card {
  padding: 0 !important;
  background: transparent !important;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  overflow: hidden;
  border-radius: inherit;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.page-our-partners .partners-grid .gs-partner-card .gs-partner-card__top {
  flex: 0 0 40%;
  min-height: 0;
  background: #f5f5f2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 3vw, 40px) 24px;
}

.page-our-partners .partners-grid .gs-partner-card .gs-partner-card__bottom {
  flex: 1 1 60%;
  min-height: 0;
  background: rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  padding: clamp(20px, 3vw, 32px) 24px;
  display: flex;
  flex-direction: column;
}

/* Subtext in bottom: same style as hero .sub */
.page-our-partners .partners-grid .gs-partner-card .gs-partner-card__bottom .gs-partner-card__text {
  color: var(--text-light);
  font-size: clamp(1.05rem, 1.2vw, 1.2rem);
  line-height: 1.7;
  margin: 0;
  flex: 1;
  min-height: 0;
}

/* Logo area: fixed height, centred in top section */
.page-our-partners .partners-grid .gs-partner-card .gs-partner-card__logo-wrap {
  height: 80px;
  min-height: 80px;
  max-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  flex-shrink: 0;
  overflow: hidden;
}

.page-our-partners .partners-grid .gs-partner-card .gs-partner-card__logo-wrap picture,
.page-our-partners .partners-grid .gs-partner-card .gs-partner-card__logo-wrap img {
  max-height: 80px !important;
  max-width: 100% !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}
.page-our-partners .partners-grid .gs-partner-card .gs-partner-card__logo-wrap picture {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80px;
  max-height: 80px;
}
.page-our-partners .partners-grid .gs-partner-card .gs-partner-card__logo-wrap picture img {
  max-height: 80px !important;
  max-width: 100% !important;
  object-fit: contain;
}

/* Wesco Anixter: 20% bigger (card 4) */
.page-our-partners .partners-grid .gs-partner-card:nth-child(4) .gs-partner-card__logo-wrap img,
.page-our-partners .partners-grid .gs-partner-card:nth-child(4) .gs-partner-card__logo-wrap picture img {
  transform: scale(1.2);
  transform-origin: center center;
}
/* Trend Networks: 50% smaller (card 5) */
.page-our-partners .partners-grid .gs-partner-card:nth-child(5) .gs-partner-card__logo-wrap img,
.page-our-partners .partners-grid .gs-partner-card:nth-child(5) .gs-partner-card__logo-wrap picture img {
  transform: scale(0.5);
  transform-origin: center center;
}
/* SaaSyn: 20% bigger (card 6) */
.page-our-partners .partners-grid .gs-partner-card:nth-child(6) .gs-partner-card__logo-wrap img,
.page-our-partners .partners-grid .gs-partner-card:nth-child(6) .gs-partner-card__logo-wrap picture img {
  transform: scale(1.2);
  transform-origin: center center;
}

.gs-partner-card .gs-partner-card__logo {
  opacity: 1;
}

.gs-partner-card picture {
  display: block;
  margin-bottom: 24px;
}
.gs-partner-card picture .gs-partner-card__logo {
  margin-bottom: 0;
}
.gs-partner-card .gs-partner-card__logo {
  max-height: 120px;
  width: auto;
  max-width: 100%;
  margin-bottom: 24px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  object-fit: contain;
}
.gs-partner-card .gs-partner-card__logo-wrap .gs-partner-card__logo,
.gs-partner-card .gs-partner-card__logo-wrap picture {
  margin-bottom: 0;
}

.gs-partner-card .gs-partner-card__heading,
.gs-partner-card h3.gs-partner-card__heading {
  color: #1a1a1a !important;
  margin-top: 0;
  margin-bottom: 16px;
  font-weight: 600;
}

/* Our Partners page – gap above hero background = gap below hero (~165px); selector beats section:first-of-type and .mt-header overrides */
main.page-our-partners section.hero.mt-header:first-of-type {
  padding-top: 165px !important;
}

.page-our-partners .hero-card {
  padding-top: 0 !important;
  padding-bottom: 32px !important;
}

.page-our-partners .hero-title-blur-card {
  padding-top: clamp(20px, 3vw, 32px) !important;
  padding-bottom: clamp(10px, 1.5vw, 16px) !important;
}

.page-our-partners section {
  margin-top: 40px;
}

.page-our-partners section:first-of-type {
  margin-top: 0;
}

.page-our-partners section:nth-of-type(2) {
  margin-top: 10px;
  position: relative;
  z-index: 1;
}

.page-our-partners .hero {
  padding-bottom: 8px;
}

.page-our-partners .section-title {
  margin-bottom: 8px;
}

.page-our-partners .section-sub {
  margin-bottom: 24px;
}

/* Page load: hero fades in; partner cards slide in from left/right */
.page-our-partners .hero-card {
  opacity: 0;
  transition: opacity 1s ease 0.2s;
}

body.partners-loaded .page-our-partners .hero-card {
  opacity: 1;
}

.page-our-partners .partners-grid .gs-partner-card {
  opacity: 0;
  transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1), transform 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-our-partners .partners-grid .gs-partner-card:nth-child(odd) {
  transform: translateX(-48px);
}

.page-our-partners .partners-grid .gs-partner-card:nth-child(even) {
  transform: translateX(48px);
}

body.partners-loaded .page-our-partners .partners-grid .gs-partner-card {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0s;
}

/* ============================================
   Newsroom page – partners-style layout, expandable entry cards
   ============================================ */
/* Hero: fade-in on load */
.page-newsroom .hero-card {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  padding-top: 0 !important;
  padding-bottom: 32px !important;
}
body.newsroom-loaded .page-newsroom .hero-card {
  opacity: 1;
  transform: translateY(0);
}
.page-newsroom .hero-title-blur-card {
  padding-top: clamp(20px, 3vw, 32px) !important;
  padding-bottom: clamp(10px, 1.5vw, 16px) !important;
}
.page-newsroom section {
  margin-top: 40px;
}
.page-newsroom section:first-of-type {
  margin-top: 0;
}
/* Section title "Latest": scroll-reveal */
.page-newsroom .section-title.fade-in-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
/* Newsroom entries: staggered scroll-reveal */
.page-newsroom .newsroom-entry.fade-in-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.page-newsroom .newsroom-entry.fade-in-up[data-delay="50"] { transition-delay: 0ms; }
.page-newsroom .newsroom-entry.fade-in-up[data-delay="75"] { transition-delay: 60ms; }
.page-newsroom .newsroom-entry.fade-in-up[data-delay="100"] { transition-delay: 120ms; }
.page-newsroom .newsroom-entry.fade-in-up[data-delay="125"] { transition-delay: 180ms; }
.page-newsroom .newsroom-entry.fade-in-up[data-delay="150"] { transition-delay: 240ms; }
.page-newsroom .newsroom-entry.fade-in-up[data-delay="175"] { transition-delay: 300ms; }
.page-newsroom .newsroom-entry.fade-in-up[data-delay="200"] { transition-delay: 360ms; }
/* Media enquiry line and CTA: scroll-reveal */
.page-newsroom p.fade-in-up[data-delay="200"] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  transition-delay: 0ms;
}
.page-newsroom .page-cta.page-section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.page-newsroom section:nth-of-type(2) {
  margin-top: 10px;
  position: relative;
  z-index: 1;
}
.page-newsroom .section-title {
  margin-bottom: 8px;
  font-weight: 400;
}

/* Entry list: full container width, stacked cards */
.page-newsroom .newsroom-entries {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
}
.page-newsroom .newsroom-entry {
  padding: 0 !important;
  overflow: hidden;
  list-style: none;
}
.page-newsroom .newsroom-entry::-webkit-details-marker,
.page-newsroom .newsroom-entry::marker {
  display: none;
}

/* Summary row: title + date + chevron */
.page-newsroom .newsroom-entry-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px;
  cursor: pointer;
  list-style: none;
  transition: background 0.25s ease;
}
.page-newsroom .newsroom-entry-header::-webkit-details-marker {
  display: none;
}
.page-newsroom .newsroom-entry-header:hover {
  background: rgba(255, 255, 255, 0.04);
}
.page-newsroom .newsroom-entry[open] .newsroom-entry-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.page-newsroom .newsroom-entry-badge {
  display: inline-block;
  background: var(--green);
  color: var(--bg);
  font-size: 0.875rem;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 6px;
  margin-right: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}
.page-newsroom .newsroom-entry-title {
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text-light);
  flex: 1;
  min-width: 0;
}
.page-newsroom .newsroom-entry-date {
  font-size: 0.9rem;
  color: rgba(238, 240, 255, 0.65);
  flex-shrink: 0;
}
.page-newsroom .newsroom-entry-chevron {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-left: 8px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='rgba(238,240,255,0.7)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat center;
  transition: transform 0.3s ease;
}
.page-newsroom .newsroom-entry[open] .newsroom-entry-chevron {
  transform: rotate(180deg);
}

/* Renewable / sustainability entry: subtle green tint */
.page-newsroom .newsroom-entry--green {
  background: linear-gradient(180deg, rgba(126, 217, 87, 0.06) 0%, rgba(255, 255, 255, 0.06) 100%) !important;
  border-color: rgba(126, 217, 87, 0.2);
}
.page-newsroom .newsroom-entry--green:hover {
  background: linear-gradient(180deg, rgba(126, 217, 87, 0.08) 0%, rgba(255, 255, 255, 0.08) 100%) !important;
  border-color: rgba(126, 217, 87, 0.3);
}
.page-newsroom .newsroom-entry--green[open] .newsroom-entry-header {
  border-bottom-color: rgba(126, 217, 87, 0.15);
}

/* Expanded content: image left, text right; subtle fade when opening */
.page-newsroom .newsroom-entry-content {
  padding: 24px;
  animation: newsroomContentFade 0.35s ease forwards;
}
@keyframes newsroomContentFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.page-newsroom .newsroom-entry-content-inner {
  display: grid;
  grid-template-columns: minmax(200px, 42%) 1fr;
  gap: 32px;
  align-items: center;
}
/* Logos block: partner logo | purple divider | Optronix logo (background matches partners page logo area) */
.page-newsroom .newsroom-entry-logos {
  display: flex;
  align-items: center;
  gap: 24px;
  min-width: 0;
  padding: 20px;
  background: #f5f5f2;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.page-newsroom .newsroom-entry-partner-logo {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}
.page-newsroom .newsroom-entry-partner-logo img {
  max-width: 100%;
  height: 72px;
  width: auto;
  object-fit: contain;
  object-position: center;
}
.page-newsroom .newsroom-entry-partner-logo img.newsroom-entry-sustainable-icon {
  height: 144px;
}
.page-newsroom .newsroom-entry-partner-logo--label,
.page-newsroom .newsroom-entry-partner-logo--icon {
  justify-content: center;
}
.page-newsroom .newsroom-entry-partner-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #1a1a1a;
}
.page-newsroom .newsroom-entry-logos-divider {
  width: 2px;
  align-self: stretch;
  flex-shrink: 0;
  background: rgba(123, 126, 242, 0.6);
  border-radius: 1px;
}
.page-newsroom .newsroom-entry-optronix-logo {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: #1a1a1a;
  border-radius: 8px;
}
.page-newsroom .newsroom-entry-optronix-logo img {
  width: 128px;
  height: 128px;
  object-fit: contain;
}
.page-newsroom .newsroom-entry-text {
  margin: 0;
  color: var(--text-light);
  line-height: 1.7;
}
.page-newsroom .newsroom-entry-text p {
  margin: 0 0 16px;
}
.page-newsroom .newsroom-entry-text p:last-child {
  margin-bottom: 0;
}

@media (max-width: 700px) {
  .page-newsroom .newsroom-entry-header {
    flex-wrap: wrap;
    padding: 16px 20px;
  }
  .page-newsroom .newsroom-entry-title {
    font-size: 1rem;
    order: 1;
    flex: 1 1 100%;
  }
  .page-newsroom .newsroom-entry-date {
    order: 2;
  }
  .page-newsroom .newsroom-entry-chevron {
    order: 3;
    margin-left: auto;
  }
  .page-newsroom .newsroom-entry-content-inner {
    grid-template-columns: 1fr;
  }
  .page-newsroom .newsroom-entry-logos {
    padding: 16px;
    gap: 16px;
  }
  .page-newsroom .newsroom-entry-partner-logo img {
    height: 56px;
  }
  .page-newsroom .newsroom-entry-partner-logo img.newsroom-entry-sustainable-icon {
    height: 112px;
  }
  .page-newsroom .newsroom-entry-optronix-logo {
    padding: 12px;
  }
  .page-newsroom .newsroom-entry-optronix-logo img {
    width: 96px;
    height: 96px;
  }
  .page-newsroom .newsroom-entry-content {
    padding: 20px;
  }
}

.two-col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

@media (max-width: 900px) {
  .two-col-grid {
    grid-template-columns: 1fr;
  }
}

/* Cards */
.card {
  background: var(--card);
  border: none;
  padding: 22px;
  border-radius: 18px;
  position: relative;
  overflow: hidden;
  min-height: 200px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  box-shadow: none;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  transform: scaleX(0);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: none;
  background: var(--card-hover);
}

.card:hover::before {
  transform: scaleX(1);
}

.card-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(123, 126, 242, 0.15);
  border: 1px solid rgba(123, 126, 242, 0.3);
  margin-bottom: 16px;
  transition: all 0.3s ease;
}

.card:hover .card-icon {
  background: rgba(123, 126, 242, 0.25);
  border-color: rgba(123, 126, 242, 0.5);
  transform: scale(1.1) rotate(5deg);
}

.card h3 {
  margin: 12px 0 8px;
  font-size: 1.12rem;
  font-weight: 700;
}

.card p {
  margin: 0 0 16px;
  color: var(--text-light);
  opacity: 1;
  flex-grow: 1;
  line-height: 1.6;
}

.card-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.3s ease;
  margin-top: auto;
}

.card-link:hover {
  color: var(--primary-light);
  gap: 8px;
}

/* Solutions Grid */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 100%;
}

.solutions-grid .service-card {
  width: 100%;
  max-width: 100%;
}

/* ============================================
   Solution / Service detail page template
   ============================================ */

/* Page-detail: never create inner scroll – whole page scrolls, not sections */
main.page-detail,
main.page-detail section,
main.page-detail .container {
  overflow: visible;
}

/* Back link – subtle, above hero (fixed gap so hover doesn't reflow layout / trigger scrollbar change) */
.page-detail .page-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: color 0.25s ease;
}
.page-detail .page-back:hover {
  color: var(--primary-light);
}
.page-detail .page-back:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}
.page-detail .page-back svg {
  flex-shrink: 0;
  opacity: 0.8;
}
@media (prefers-reduced-motion: reduce) {
  .page-detail .page-back { transition: none; }
}

/* Nav row: back (left) + prev/next (right) on same line */
.page-detail .page-nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-bottom: 16px;
}
.page-detail .page-nav-adjacent {
  display: flex;
  align-items: center;
  gap: 20px;
}
.page-detail .page-nav-row .page-back:first-child {
  margin-bottom: 0;
}

/* Hero block – single panel with left accent */
.page-detail .page-hero {
  position: relative;
  padding-left: 20px;
  border-left: 3px solid rgba(123, 126, 242, 0.5);
}
.page-detail .page-hero-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.page-detail .page-hero-icon {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(123, 126, 242, 0.12);
  border: 1px solid rgba(123, 126, 242, 0.35);
  box-shadow: 0 0 24px rgba(123, 126, 242, 0.15);
  transition: all 0.35s ease;
}
.page-detail .page-hero:hover .page-hero-icon {
  background: rgba(123, 126, 242, 0.2);
  border-color: rgba(123, 126, 242, 0.5);
  box-shadow: 0 0 32px rgba(123, 126, 242, 0.2);
}
.page-detail .page-hero-title {
  margin: 0 0 10px;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 400;
  color: var(--text-light);
}
.page-detail .page-hero-tagline {
  max-width: 100%;
  width: 100%;
  margin: 0;
  color: #eef0ff;
  opacity: 0.96;
  font-size: 1.1rem;
  line-height: 1.5;
  text-indent: 0;
  box-sizing: border-box;
}

/* Page-detail: partners-style greyish blur (hero + panels + cards); rounded top, square bottom */
.page-detail .panel {
  background: rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px 12px 0 0;
}
.page-detail .panel:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
}

/* Intro body copy in two-col (no inline styles) */
.page-detail .page-body {
  margin-top: 16px;
  color: var(--text-light);
  opacity: 1;
  line-height: 1.7;
}

/* Why Optronix: body links = same colour as text, subtle underline only */
.page-why-optronix .page-body a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(255, 255, 255, 0.35);
}
.page-why-optronix .page-body a:hover {
  text-decoration-color: rgba(255, 255, 255, 0.6);
}

/* Consistent section spacing */
.page-detail .page-section {
  margin-top: 48px;
}
@media (min-width: 900px) {
  .page-detail .page-section {
    margin-top: 56px;
  }
}

/* Key benefits sidebar – vibrant purple + green accent so it pops; rounded top, square bottom (like partners) */
.page-detail .key-benefits-box {
  background: linear-gradient(135deg, rgba(123, 126, 242, 0.18) 0%, rgba(123, 126, 242, 0.08) 50%, rgba(126, 217, 87, 0.06) 100%);
  border: 1px solid rgba(123, 126, 242, 0.35);
  border-radius: 12px 12px 0 0;
  padding: 24px;
  margin-bottom: 24px;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 0 40px rgba(123, 126, 242, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.page-detail .key-benefits-box:hover {
  border-color: rgba(123, 126, 242, 0.45);
  box-shadow: 0 0 48px rgba(123, 126, 242, 0.16), 0 0 24px rgba(126, 217, 87, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.page-detail .key-benefits-box h3 {
  margin: 0 0 16px;
  color: var(--primary-light);
  font-size: 1.2rem;
  font-weight: 600;
}
.page-detail .key-benefits-box ul {
  margin: 0;
  padding-left: 20px;
  color: var(--text-light);
  line-height: 2;
}
.page-detail .key-benefits-box li::marker {
  color: var(--green);
}

/* Section title with accent line – normal weight */
.page-detail .page-section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 400;
  margin: 0 0 8px;
  color: var(--text-light);
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(123, 126, 242, 0.35);
  display: inline-block;
}

/* Cards in detail pages – partners-style grey blur; rounded top, square bottom */
.page-detail .solutions-grid .card,
.page-detail .grid .card,
.page-detail .industries-grid .card {
  background: rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px 12px 0 0;
}
.page-detail .solutions-grid .card:hover,
.page-detail .grid .card:hover,
.page-detail .industries-grid .card:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.14);
}
.page-detail .solutions-grid {
  margin-top: 24px;
}
.page-detail .solutions-grid .card .service-tagline {
  margin: 0 0 12px;
  color: var(--text-light);
  font-size: 0.95rem;
}
.page-detail .solutions-grid .card .service-links {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.page-detail .industries-grid .card h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
}
.page-detail .industries-grid .card .industry-tagline {
  margin: 0 0 12px;
  color: var(--primary-light);
}
.page-detail .industries-grid .card .industry-description {
  margin: 0 0 16px;
}
.page-detail .industries-grid .card .industry-features {
  margin-top: auto;
}
.page-detail .industries-grid .card .industry-features li {
  color: var(--primary-light);
}
.page-detail .industries-grid .card:hover .industry-features li {
  color: var(--text);
  opacity: 1;
}
.page-detail .industries-grid .card:hover .industry-features li::before {
  background: rgba(126, 217, 87, 0.25);
  border-color: rgba(126, 217, 87, 0.5);
}
/* Industries page: tick marks start white, then spin 360° and turn green over ~3s at staggered times */
@keyframes industries-tick-reveal {
  0% {
    color: rgba(255, 255, 255, 0.95);
    transform: rotate(0deg);
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
  }
  100% {
    color: var(--green);
    transform: rotate(360deg);
    background: rgba(126, 217, 87, 0.15);
    border-color: rgba(126, 217, 87, 0.3);
  }
}
.page-detail .industries-grid .card .industry-features li::before {
  color: rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  animation: industries-tick-reveal 0.5s ease forwards;
  /* Start after page load / card reveal (stagger ends ~900ms); base delay 1.2s */
  animation-delay: 1.2s;
}
.page-detail .industries-grid .card:nth-child(1) .industry-features li:nth-child(1)::before { animation-delay: calc(1.2s + 0.02s); }
.page-detail .industries-grid .card:nth-child(1) .industry-features li:nth-child(2)::before { animation-delay: calc(1.2s + 0.28s); }
.page-detail .industries-grid .card:nth-child(1) .industry-features li:nth-child(3)::before { animation-delay: calc(1.2s + 0.51s); }
.page-detail .industries-grid .card:nth-child(1) .industry-features li:nth-child(4)::before { animation-delay: calc(1.2s + 0.73s); }
.page-detail .industries-grid .card:nth-child(2) .industry-features li:nth-child(1)::before { animation-delay: calc(1.2s + 0.12s); }
.page-detail .industries-grid .card:nth-child(2) .industry-features li:nth-child(2)::before { animation-delay: calc(1.2s + 0.39s); }
.page-detail .industries-grid .card:nth-child(2) .industry-features li:nth-child(3)::before { animation-delay: calc(1.2s + 0.64s); }
.page-detail .industries-grid .card:nth-child(2) .industry-features li:nth-child(4)::before { animation-delay: calc(1.2s + 0.88s); }
.page-detail .industries-grid .card:nth-child(3) .industry-features li:nth-child(1)::before { animation-delay: calc(1.2s + 0.22s); }
.page-detail .industries-grid .card:nth-child(3) .industry-features li:nth-child(2)::before { animation-delay: calc(1.2s + 0.45s); }
.page-detail .industries-grid .card:nth-child(3) .industry-features li:nth-child(3)::before { animation-delay: calc(1.2s + 0.71s); }
.page-detail .industries-grid .card:nth-child(3) .industry-features li:nth-child(4)::before { animation-delay: calc(1.2s + 0.96s); }
.page-detail .industries-grid .card:nth-child(4) .industry-features li:nth-child(1)::before { animation-delay: calc(1.2s + 0.35s); }
.page-detail .industries-grid .card:nth-child(4) .industry-features li:nth-child(2)::before { animation-delay: calc(1.2s + 0.58s); }
.page-detail .industries-grid .card:nth-child(4) .industry-features li:nth-child(3)::before { animation-delay: calc(1.2s + 0.82s); }
.page-detail .industries-grid .card:nth-child(4) .industry-features li:nth-child(4)::before { animation-delay: calc(1.2s + 1.07s); }
.page-detail .industries-grid .card:nth-child(5) .industry-features li:nth-child(1)::before { animation-delay: calc(1.2s + 1.18s); }
.page-detail .industries-grid .card:nth-child(5) .industry-features li:nth-child(2)::before { animation-delay: calc(1.2s + 1.42s); }
.page-detail .industries-grid .card:nth-child(5) .industry-features li:nth-child(3)::before { animation-delay: calc(1.2s + 1.65s); }
.page-detail .industries-grid .card:nth-child(5) .industry-features li:nth-child(4)::before { animation-delay: calc(1.2s + 1.91s); }
.page-detail .industries-grid .card:nth-child(6) .industry-features li:nth-child(1)::before { animation-delay: calc(1.2s + 1.55s); }
.page-detail .industries-grid .card:nth-child(6) .industry-features li:nth-child(2)::before { animation-delay: calc(1.2s + 1.79s); }
.page-detail .industries-grid .card:nth-child(6) .industry-features li:nth-child(3)::before { animation-delay: calc(1.2s + 2.04s); }
.page-detail .industries-grid .card:nth-child(6) .industry-features li:nth-child(4)::before { animation-delay: calc(1.2s + 2.28s); }
@media (prefers-reduced-motion: reduce) {
  .page-detail .industries-grid .card .industry-features li::before {
    animation: none;
    color: var(--green);
    background: rgba(126, 217, 87, 0.15);
    border-color: rgba(126, 217, 87, 0.3);
  }
}

/* Why Optronix: card icon – 360° flip then grow + turn green on hover */
@keyframes page-why-optronix-icon-hover {
  0%   { transform: rotate(0deg) scale(1); }
  45%  { transform: rotate(360deg) scale(1); }
  100% { transform: rotate(360deg) scale(1.28); }
}
.page-why-optronix .card .card-icon {
  transition: transform 0.35s ease, color 0.25s ease 0.18s, background 0.25s ease 0.18s, border-color 0.25s ease 0.18s, box-shadow 0.25s ease 0.18s;
}
.page-why-optronix .card:hover .card-icon {
  animation: page-why-optronix-icon-hover 0.55s ease forwards;
  color: var(--green);
  background: rgba(126, 217, 87, 0.28);
  border-color: rgba(126, 217, 87, 0.55);
  box-shadow: 0 0 20px rgba(126, 217, 87, 0.25);
}
.page-why-optronix .card:hover .card-icon svg {
  color: inherit;
}
@media (prefers-reduced-motion: reduce) {
  .page-why-optronix .card:hover .card-icon {
    animation: none;
    transform: scale(1.15);
  }
}

/* Card number (solutions/services): go green on card hover */
.page-detail .solutions-grid .card .card-number {
  transition: background 0.25s ease, -webkit-background-clip 0.25s ease, background-clip 0.25s ease;
}
.page-detail .solutions-grid .card:hover .card-number {
  background: linear-gradient(135deg, rgba(126, 217, 87, 0.95), rgba(126, 217, 87, 0.55));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Stagger children when parent is revealed */
.page-detail .reveal .solutions-grid .card,
.page-detail .reveal .grid .card,
.page-detail .reveal .industries-grid .card {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}
.page-detail .reveal.revealed .solutions-grid .card,
.page-detail .reveal.revealed .grid .card,
.page-detail .reveal.revealed .industries-grid .card {
  opacity: 1;
  transform: translateY(0);
}
.page-detail .reveal .solutions-grid .card:nth-child(1),
.page-detail .reveal .grid .card:nth-child(1),
.page-detail .reveal .industries-grid .card:nth-child(1) { transition-delay: 0ms; }
.page-detail .reveal .solutions-grid .card:nth-child(2),
.page-detail .reveal .grid .card:nth-child(2),
.page-detail .reveal .industries-grid .card:nth-child(2) { transition-delay: 80ms; }
.page-detail .reveal .solutions-grid .card:nth-child(3),
.page-detail .reveal .grid .card:nth-child(3),
.page-detail .reveal .industries-grid .card:nth-child(3) { transition-delay: 160ms; }
.page-detail .reveal .solutions-grid .card:nth-child(4),
.page-detail .reveal .grid .card:nth-child(4),
.page-detail .reveal .industries-grid .card:nth-child(4) { transition-delay: 240ms; }
.page-detail .reveal .solutions-grid .card:nth-child(5),
.page-detail .reveal .grid .card:nth-child(5),
.page-detail .reveal .industries-grid .card:nth-child(5) { transition-delay: 320ms; }
.page-detail .reveal .solutions-grid .card:nth-child(6),
.page-detail .reveal .grid .card:nth-child(6),
.page-detail .reveal .industries-grid .card:nth-child(6) { transition-delay: 400ms; }
@media (prefers-reduced-motion: reduce) {
  .page-detail .reveal .solutions-grid .card,
  .page-detail .reveal .grid .card,
  .page-detail .reveal .industries-grid .card {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Key benefits list – optional stagger on reveal */
.page-detail .key-benefits-box li {
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.page-detail .reveal.revealed .key-benefits-box li {
  opacity: 1;
  transform: translateX(0);
}
.page-detail .key-benefits-box li:nth-child(1) { transition-delay: 50ms; }
.page-detail .key-benefits-box li:nth-child(2) { transition-delay: 100ms; }
.page-detail .key-benefits-box li:nth-child(3) { transition-delay: 150ms; }
.page-detail .key-benefits-box li:nth-child(4) { transition-delay: 200ms; }
.page-detail .key-benefits-box li:nth-child(5) { transition-delay: 250ms; }
.page-detail .key-benefits-box li:nth-child(6) { transition-delay: 300ms; }
.page-detail .key-benefits-box li:nth-child(7) { transition-delay: 350ms; }
.page-detail .key-benefits-box li:nth-child(8) { transition-delay: 400ms; }
@media (prefers-reduced-motion: reduce) {
  .page-detail .key-benefits-box li {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* CTA block – same grey blur, rounded top, square bottom (service pages + homepage) */
.page-detail .page-cta,
main .panel.page-cta {
  text-align: center;
  background: rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px 12px 0 0;
  padding: 40px 32px !important;
}
.page-detail .page-cta:hover,
main .panel.page-cta:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
}
.page-detail .page-cta .page-section-title,
main .panel.page-cta .page-section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 400;
  margin: 0 0 8px;
  color: var(--text-light);
  padding-bottom: 0;
  border-bottom: none;
  display: inline-block;
}
.page-detail .page-cta p,
main .panel.page-cta p {
  margin: 16px auto 24px;
  max-width: 700px;
  color: var(--text-light);
  opacity: 1;
  line-height: 1.6;
}
.page-detail .page-cta .cta-buttons,
main .panel.page-cta .cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Page-detail lists (How we hire, What we value, etc.) */
.page-detail .page-detail-list {
  margin: 0 0 0 20px;
  padding-left: 4px;
  color: var(--text-light);
  line-height: 2;
}
.page-detail .page-detail-list li {
  margin-bottom: 4px;
}
.page-detail .page-detail-list li::marker {
  color: rgba(123, 126, 242, 0.8);
}

/* ============================================
   Careers page – Why Optronix-style layout, role cards
   ============================================ */
.careers-role-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}
.careers-role-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.25s ease, box-shadow 0.3s ease;
}
.careers-role-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(123, 126, 242, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}
.careers-role-card-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(123, 126, 242, 0.15);
  border: 1px solid rgba(123, 126, 242, 0.3);
  color: var(--primary-light);
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
.page-careers .careers-role-card .careers-role-card-icon {
  transition: transform 0.35s ease, color 0.25s ease 0.18s, background 0.25s ease 0.18s, border-color 0.25s ease 0.18s, box-shadow 0.25s ease 0.18s;
}
.page-careers .careers-role-card:hover .careers-role-card-icon {
  animation: page-why-optronix-icon-hover 0.55s ease forwards;
  color: var(--green);
  background: rgba(126, 217, 87, 0.28);
  border-color: rgba(126, 217, 87, 0.55);
  box-shadow: 0 0 20px rgba(126, 217, 87, 0.25);
}
.page-careers .careers-role-card:hover .careers-role-card-icon svg {
  color: inherit;
}
@media (prefers-reduced-motion: reduce) {
  .page-careers .careers-role-card:hover .careers-role-card-icon {
    animation: none;
    transform: scale(1.15);
  }
}
.careers-role-card:hover .careers-role-card-icon {
  background: rgba(123, 126, 242, 0.25);
  border-color: rgba(123, 126, 242, 0.5);
}
.careers-role-card-body {
  flex: 1;
  min-width: 0;
  margin-left: 10px;
}
.careers-role-title {
  margin: 0 0 4px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-light);
}
.careers-role-location {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(238, 240, 255, 0.7);
}
.careers-role-apply {
  flex-shrink: 0;
  pointer-events: none;
}
@media (max-width: 640px) {
  .careers-role-card {
    flex-wrap: wrap;
    gap: 14px;
  }
  .careers-role-apply {
    width: 100%;
    justify-content: center;
  }
}

/* Careers: How we hire + What we value in one panel, vertical divider */
.page-careers-hire-value-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: start;
}
.page-careers-hire-value-col {
  padding: 0 8px 0 0;
  padding-left: 28px;
  border-left: 2px solid rgba(123, 126, 242, 0.35);
}
.page-careers-hire-value-col-right {
  padding-left: 28px;
  padding-right: 0;
  border-left: 2px solid rgba(123, 126, 242, 0.35);
}
@media (max-width: 700px) {
  .page-careers-hire-value-grid {
    grid-template-columns: 1fr;
  }
  .page-careers-hire-value-col {
    padding: 0;
    border-left: none;
  }
  .page-careers-hire-value-col-right {
    padding-left: 0;
    padding-top: 24px;
    margin-top: 24px;
    border-left: none;
    border-top: 2px solid rgba(123, 126, 242, 0.35);
  }
}

/* ============================================
   Service detail pages – similar to solutions, distinct styling
   ============================================ */

/* Panels: slightly smaller radius, softer border */
.page-services .panel {
  border-radius: 8px 8px 0 0;
  border-color: rgba(255, 255, 255, 0.06);
}
.page-services .panel:hover {
  border-color: rgba(255, 255, 255, 0.1);
}

/* Key benefits: left-border accent (primary only), no gradient – cleaner service look */
.page-services .key-benefits-box {
  background: rgba(123, 126, 242, 0.08);
  border: 1px solid rgba(123, 126, 242, 0.25);
  border-left: 4px solid var(--primary);
  border-radius: 8px 8px 0 0;
  box-shadow: 0 0 24px rgba(123, 126, 242, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.page-services .key-benefits-box:hover {
  border-color: rgba(123, 126, 242, 0.35);
  border-left-color: var(--primary-light);
  box-shadow: 0 0 32px rgba(123, 126, 242, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.page-services .key-benefits-box h3 {
  color: var(--primary-light);
}
.page-services .key-benefits-box li::marker {
  color: var(--primary);
}

/* Section titles: green accent line (invert from solutions’ purple) */
.page-services .page-section-title {
  border-bottom-color: rgba(126, 217, 87, 0.4);
}

/* Cards: 8px top radius, subtle cyan tint on hover */
.page-services .solutions-grid .card,
.page-services .grid .card {
  border-radius: 8px 8px 0 0;
  border-color: rgba(255, 255, 255, 0.06);
}
.page-services .solutions-grid .card:hover,
.page-services .grid .card:hover {
  border-color: rgba(34, 211, 238, 0.2);
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.08);
}

/* CTA: top border accent to match hero */
.page-services .page-cta {
  border-radius: 8px 8px 0 0;
  border-top: 2px solid rgba(34, 211, 238, 0.25);
}

/* ============================================
   Sustainability page – green accent throughout (strong)
   ============================================ */
.page-sustainability .page-hero {
  border-left-color: var(--green);
  border-left-width: 5px;
  background: linear-gradient(90deg, rgba(126, 217, 87, 0.12) 0%, rgba(255, 255, 255, 0.06) 25%, transparent 100%);
}
.page-sustainability .page-hero-title {
  color: var(--text-light);
}
.page-sustainability .page-hero-tagline {
  color: rgba(226, 255, 210, 0.95);
}
.page-sustainability .page-back {
  color: rgba(126, 217, 87, 0.9);
}
.page-sustainability .page-back:hover {
  color: var(--green-light);
  background: rgba(126, 217, 87, 0.12);
}
.page-sustainability .page-back:focus-visible {
  outline-color: var(--green);
}
.page-sustainability .panel {
  border-color: rgba(126, 217, 87, 0.22);
  background: linear-gradient(180deg, rgba(126, 217, 87, 0.05) 0%, rgba(255, 255, 255, 0.06) 100%);
}
.page-sustainability .panel:hover {
  border-color: rgba(126, 217, 87, 0.35);
  background: linear-gradient(180deg, rgba(126, 217, 87, 0.08) 0%, rgba(255, 255, 255, 0.08) 100%);
  box-shadow: 0 0 40px rgba(126, 217, 87, 0.08);
}
.page-sustainability .page-section-title {
  border-bottom-color: rgba(126, 217, 87, 0.6);
  color: var(--text-light);
}
.page-sustainability .page-body {
  color: rgba(230, 248, 220, 0.95);
}
.page-sustainability .key-benefits-box {
  background: linear-gradient(135deg, rgba(126, 217, 87, 0.22) 0%, rgba(126, 217, 87, 0.12) 40%, rgba(126, 217, 87, 0.06) 100%);
  border: 1px solid rgba(126, 217, 87, 0.5);
  border-left: 5px solid var(--green);
  box-shadow: 0 0 36px rgba(126, 217, 87, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.page-sustainability .key-benefits-box:hover {
  border-color: rgba(126, 217, 87, 0.6);
  border-left-color: var(--green-light);
  box-shadow: 0 0 48px rgba(126, 217, 87, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  background: linear-gradient(135deg, rgba(126, 217, 87, 0.26) 0%, rgba(126, 217, 87, 0.14) 40%, rgba(126, 217, 87, 0.08) 100%);
}
.page-sustainability .key-benefits-box h3 {
  color: var(--green-light);
}
.page-sustainability .key-benefits-box ul {
  color: rgba(230, 248, 220, 0.95);
}
.page-sustainability .key-benefits-box li::marker {
  color: var(--green);
}
.page-sustainability .solutions-grid .card,
.page-sustainability .grid .card {
  border-color: rgba(126, 217, 87, 0.28);
  background: linear-gradient(180deg, rgba(126, 217, 87, 0.06) 0%, rgba(255, 255, 255, 0.06) 100%);
}
.page-sustainability .solutions-grid .card:hover,
.page-sustainability .grid .card:hover {
  background: linear-gradient(180deg, rgba(126, 217, 87, 0.12) 0%, rgba(255, 255, 255, 0.09) 100%);
  border-color: rgba(126, 217, 87, 0.55);
  box-shadow: 0 0 36px rgba(126, 217, 87, 0.28), 0 8px 24px rgba(0, 0, 0, 0.2);
}
/* Sustainability cards use .card-number (01, 02…) – same transition/hover as other pages via .page-detail .solutions-grid .card .card-number */
.page-sustainability .card h3 {
  color: rgba(230, 248, 220, 0.98);
}
.page-sustainability .card p {
  color: rgba(220, 242, 208, 0.9);
}
.page-sustainability .page-cta {
  border-top: 3px solid rgba(126, 217, 87, 0.6);
  border-color: rgba(126, 217, 87, 0.2);
  background: linear-gradient(180deg, rgba(126, 217, 87, 0.14) 0%, rgba(126, 217, 87, 0.06) 50%, rgba(255, 255, 255, 0.06) 100%);
}
.page-sustainability .page-cta:hover {
  border-color: rgba(126, 217, 87, 0.4);
  background: linear-gradient(180deg, rgba(126, 217, 87, 0.18) 0%, rgba(126, 217, 87, 0.1) 50%, rgba(255, 255, 255, 0.08) 100%);
  box-shadow: 0 0 48px rgba(126, 217, 87, 0.12);
}
.page-sustainability .page-cta p {
  color: rgba(230, 248, 220, 0.95);
}
.page-sustainability .page-cta .btn-primary {
  background: linear-gradient(135deg, var(--green), rgba(126, 217, 87, 0.9));
  border: 1px solid rgba(126, 217, 87, 0.6);
  color: var(--bg);
  box-shadow: 0 4px 20px rgba(126, 217, 87, 0.3);
}
.page-sustainability .page-cta .btn-primary:hover {
  background: linear-gradient(135deg, var(--green-light), var(--green));
  border-color: var(--green-light);
  box-shadow: 0 6px 28px rgba(126, 217, 87, 0.4);
  color: var(--bg);
}
.page-sustainability .page-cta .btn-ghost {
  border-color: rgba(126, 217, 87, 0.4);
  color: var(--green-light);
}
.page-sustainability .page-cta .btn-ghost:hover {
  border-color: rgba(126, 217, 87, 0.6);
  color: var(--green-light);
  background: rgba(126, 217, 87, 0.15);
  box-shadow: 0 0 20px rgba(126, 217, 87, 0.15);
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  max-width: 100%;
}

/* Solutions section - 3x2 grid on desktop */
#solutions .services-grid {
  grid-template-columns: repeat(3, 1fr);
}

/* Homepage solutions section – same look as Services/CTA panel; more opaque so cards read on busy bg */
#solutions .service-card {
  background: rgba(18, 18, 24, 0.92);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px 12px 0 0;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  padding: 32px 28px;
  position: relative;
  z-index: 1;
}
#solutions .service-card::before,
#solutions .service-card::after {
  display: none;
}
#solutions .service-card:hover {
  background: rgba(24, 24, 32, 0.94);
  border-color: rgba(255, 255, 255, 0.2);
  transform: none;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}
#solutions .service-card:hover .service-icon {
  transform: none;
  box-shadow: none;
}
#solutions .service-icon {
  display: none;
}

/* Homepage services section – same look as "Ready to Deploy" CTA panel (page-cta) */
#services .service-card {
  background: rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px 12px 0 0;
  box-shadow: none;
  padding: 32px 28px;
}
#services .service-card::before {
  display: none;
}
#services .service-card::after {
  display: none;
}
#services .service-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  transform: none;
  box-shadow: none;
}
#services .service-card:hover .service-icon {
  transform: none;
  box-shadow: none;
  background: linear-gradient(135deg, rgba(123, 126, 242, 0.2), rgba(126, 217, 87, 0.15));
  border-color: rgba(123, 126, 242, 0.4);
}
#services .service-card .service-icon {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
}
#services .service-card .service-icon::before {
  display: none;
}
#services .service-icon {
  display: none;
}

/* Solutions listing page – same card styling as services.html, 2x3 grid */
#solutions-list .service-card {
  background: rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px 12px 0 0;
  box-shadow: none;
  padding: 32px 28px;
}
#solutions-list .service-card::before,
#solutions-list .service-card::after {
  display: none;
}
#solutions-list .service-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  transform: none;
  box-shadow: none;
}
#solutions-list .service-card .service-icon {
  display: none;
}
#solutions-list .services-grid.solutions-grid {
  grid-template-columns: repeat(2, 1fr);
}

/* Solutions listing: tick and bullet text – same as industries.html */
#solutions-list .service-card ul {
  margin-top: auto;
}
#solutions-list .service-card ul li {
  color: var(--primary-light);
  transition: color 0.3s ease, opacity 0.3s ease;
}
#solutions-list .service-card:hover ul li {
  color: var(--text);
  opacity: 1;
  transform: none;
}
#solutions-list .service-card ul li::before {
  color: rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  animation: industries-tick-reveal 0.5s ease forwards;
  animation-delay: 1.2s;
}
#solutions-list .service-card:hover ul li::before {
  background: rgba(126, 217, 87, 0.25);
  border-color: rgba(126, 217, 87, 0.5);
}
/* Staggered tick reveal (2x3 grid: cards 1–6, up to 7 list items each) */
#solutions-list .service-card:nth-child(1) ul li:nth-child(1)::before { animation-delay: calc(1.2s + 0.02s); }
#solutions-list .service-card:nth-child(1) ul li:nth-child(2)::before { animation-delay: calc(1.2s + 0.28s); }
#solutions-list .service-card:nth-child(1) ul li:nth-child(3)::before { animation-delay: calc(1.2s + 0.51s); }
#solutions-list .service-card:nth-child(1) ul li:nth-child(4)::before { animation-delay: calc(1.2s + 0.73s); }
#solutions-list .service-card:nth-child(1) ul li:nth-child(5)::before { animation-delay: calc(1.2s + 0.95s); }
#solutions-list .service-card:nth-child(1) ul li:nth-child(6)::before { animation-delay: calc(1.2s + 1.18s); }
#solutions-list .service-card:nth-child(1) ul li:nth-child(7)::before { animation-delay: calc(1.2s + 1.40s); }
#solutions-list .service-card:nth-child(2) ul li:nth-child(1)::before { animation-delay: calc(1.2s + 0.12s); }
#solutions-list .service-card:nth-child(2) ul li:nth-child(2)::before { animation-delay: calc(1.2s + 0.39s); }
#solutions-list .service-card:nth-child(2) ul li:nth-child(3)::before { animation-delay: calc(1.2s + 0.64s); }
#solutions-list .service-card:nth-child(2) ul li:nth-child(4)::before { animation-delay: calc(1.2s + 0.88s); }
#solutions-list .service-card:nth-child(2) ul li:nth-child(5)::before { animation-delay: calc(1.2s + 1.12s); }
#solutions-list .service-card:nth-child(2) ul li:nth-child(6)::before { animation-delay: calc(1.2s + 1.35s); }
#solutions-list .service-card:nth-child(2) ul li:nth-child(7)::before { animation-delay: calc(1.2s + 1.58s); }
#solutions-list .service-card:nth-child(3) ul li:nth-child(1)::before { animation-delay: calc(1.2s + 0.22s); }
#solutions-list .service-card:nth-child(3) ul li:nth-child(2)::before { animation-delay: calc(1.2s + 0.45s); }
#solutions-list .service-card:nth-child(3) ul li:nth-child(3)::before { animation-delay: calc(1.2s + 0.71s); }
#solutions-list .service-card:nth-child(3) ul li:nth-child(4)::before { animation-delay: calc(1.2s + 0.96s); }
#solutions-list .service-card:nth-child(3) ul li:nth-child(5)::before { animation-delay: calc(1.2s + 1.20s); }
#solutions-list .service-card:nth-child(3) ul li:nth-child(6)::before { animation-delay: calc(1.2s + 1.43s); }
#solutions-list .service-card:nth-child(3) ul li:nth-child(7)::before { animation-delay: calc(1.2s + 1.66s); }
#solutions-list .service-card:nth-child(4) ul li:nth-child(1)::before { animation-delay: calc(1.2s + 0.35s); }
#solutions-list .service-card:nth-child(4) ul li:nth-child(2)::before { animation-delay: calc(1.2s + 0.58s); }
#solutions-list .service-card:nth-child(4) ul li:nth-child(3)::before { animation-delay: calc(1.2s + 0.82s); }
#solutions-list .service-card:nth-child(4) ul li:nth-child(4)::before { animation-delay: calc(1.2s + 1.07s); }
#solutions-list .service-card:nth-child(4) ul li:nth-child(5)::before { animation-delay: calc(1.2s + 1.31s); }
#solutions-list .service-card:nth-child(4) ul li:nth-child(6)::before { animation-delay: calc(1.2s + 1.54s); }
#solutions-list .service-card:nth-child(4) ul li:nth-child(7)::before { animation-delay: calc(1.2s + 1.77s); }
#solutions-list .service-card:nth-child(5) ul li:nth-child(1)::before { animation-delay: calc(1.2s + 0.48s); }
#solutions-list .service-card:nth-child(5) ul li:nth-child(2)::before { animation-delay: calc(1.2s + 0.72s); }
#solutions-list .service-card:nth-child(5) ul li:nth-child(3)::before { animation-delay: calc(1.2s + 0.97s); }
#solutions-list .service-card:nth-child(5) ul li:nth-child(4)::before { animation-delay: calc(1.2s + 1.21s); }
#solutions-list .service-card:nth-child(5) ul li:nth-child(5)::before { animation-delay: calc(1.2s + 1.45s); }
#solutions-list .service-card:nth-child(5) ul li:nth-child(6)::before { animation-delay: calc(1.2s + 1.68s); }
#solutions-list .service-card:nth-child(5) ul li:nth-child(7)::before { animation-delay: calc(1.2s + 1.92s); }
#solutions-list .service-card:nth-child(6) ul li:nth-child(1)::before { animation-delay: calc(1.2s + 0.62s); }
#solutions-list .service-card:nth-child(6) ul li:nth-child(2)::before { animation-delay: calc(1.2s + 0.86s); }
#solutions-list .service-card:nth-child(6) ul li:nth-child(3)::before { animation-delay: calc(1.2s + 1.11s); }
#solutions-list .service-card:nth-child(6) ul li:nth-child(4)::before { animation-delay: calc(1.2s + 1.35s); }
#solutions-list .service-card:nth-child(6) ul li:nth-child(5)::before { animation-delay: calc(1.2s + 1.58s); }
#solutions-list .service-card:nth-child(6) ul li:nth-child(6)::before { animation-delay: calc(1.2s + 1.82s); }
#solutions-list .service-card:nth-child(6) ul li:nth-child(7)::before { animation-delay: calc(1.2s + 2.05s); }
@media (prefers-reduced-motion: reduce) {
  #solutions-list .service-card ul li::before {
    animation: none;
    color: var(--green);
    background: rgba(126, 217, 87, 0.15);
    border-color: rgba(126, 217, 87, 0.3);
  }
}

@media (max-width: 940px) {
  #solutions-list .services-grid.solutions-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Sustainable Energy card – green styling */
#services .service-card.service-card--green {
  background: rgba(126, 217, 87, 0.08);
  border-color: rgba(126, 217, 87, 0.25);
}
#services .service-card.service-card--green:hover {
  background: rgba(126, 217, 87, 0.12);
  border-color: rgba(126, 217, 87, 0.4);
  box-shadow: 0 8px 24px rgba(126, 217, 87, 0.12);
}
#services .service-card.service-card--green h3 {
  color: rgba(230, 248, 220, 0.98);
}
#services .service-card.service-card--green .service-tagline {
  color: rgba(200, 235, 180, 0.85);
}
#services .service-card.service-card--green .service-link-pill:hover {
  border-color: rgba(126, 217, 87, 0.5);
  color: var(--green-light);
  background: rgba(126, 217, 87, 0.15);
}

/* Services - 3x5 grid, centred title */
#services .section-title {
  font-size: clamp(0.65rem, 3vw, 4.5rem);
  font-weight: 400;
  text-align: center;
  padding-top: 0;
  padding-bottom: 0.5vh;
  margin: 0 0 0.5vh 0;
}
#services .section-sub {
  text-align: center;
  margin: 0 0 clamp(48px, 8vh, 96px) 0;
}

@media (max-width: 940px) {
  #solutions .services-grid {
    grid-template-columns: 1fr !important;
  }
  #services .services-grid {
    grid-template-columns: 1fr !important;
  }
}

.service-card {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 28px;
  border-radius: 18px;
  backdrop-filter: blur(12px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--primary), var(--green), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(123, 126, 242, 0.08), transparent);
  transition: left 0.6s ease;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover::after {
  left: 100%;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: 0 16px 48px rgba(123, 126, 242, 0.25);
  background: var(--card-hover);
}

/* Services page: Sustainable Energy card – green accent (last in list) */
#services .services-grid .service-card-green::before {
  background: linear-gradient(90deg, transparent, var(--green), rgba(126, 217, 87, 0.6), transparent);
}
#services .services-grid .service-card-green:hover {
  border-color: rgba(126, 217, 87, 0.4);
  box-shadow: 0 16px 48px rgba(126, 217, 87, 0.2);
}
#services .services-grid .service-card-green:hover .service-icon {
  background: linear-gradient(135deg, rgba(126, 217, 87, 0.25), rgba(126, 217, 87, 0.2));
  border-color: rgba(126, 217, 87, 0.5);
  box-shadow: 0 8px 24px rgba(126, 217, 87, 0.25);
}

.service-badge {
  display: inline-block;
  background: var(--green);
  color: var(--bg);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.service-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(123, 126, 242, 0.2), rgba(126, 217, 87, 0.15));
  border: 1px solid rgba(123, 126, 242, 0.4);
  margin-bottom: 20px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.service-card:hover .service-icon {
  background: linear-gradient(135deg, rgba(123, 126, 242, 0.3), rgba(126, 217, 87, 0.25));
  border-color: rgba(123, 126, 242, 0.6);
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 8px 24px rgba(123, 126, 242, 0.3);
}

.service-card:hover .service-icon::before {
  opacity: 1;
}

.service-icon::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, rgba(123, 126, 242, 0.2), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.service-icon svg {
  width: 32px;
  height: 32px;
  color: var(--primary);
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}

.service-card:hover .service-icon svg {
  color: var(--primary-light);
  transform: scale(1.1);
}

.service-tagline {
  margin: 0 0 16px;
  font-size: 0.95rem;
  font-weight: 500;
  opacity: 1;
  color: var(--primary-light);
  line-height: 1.5;
}

.service-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 12px;
}

.service-card h3 {
  margin: 0 0 12px;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
  background: linear-gradient(135deg, var(--text), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.service-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.3s ease;
}

.service-link:hover {
  color: var(--primary-light);
  gap: 8px;
}

/* Card pill buttons – same style as "About Optronix" eyebrow on our-partners hero */
.service-link-pill {
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  background: rgba(123, 126, 242, 0.12);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  color: var(--text-light);
  gap: 6px;
}
.service-link-pill:hover {
  background: rgba(123, 126, 242, 0.2);
  border-color: rgba(123, 126, 242, 0.45);
  color: var(--primary-light);
  gap: 8px;
}

/* Contact pill – same shape, green accent (distinct from Read more) */
.service-link-pill-contact {
  padding: 8px 14px;
  border: 1px solid rgba(126, 217, 87, 0.5);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  background: rgba(126, 217, 87, 0.08);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  color: var(--green);
  gap: 6px;
}
.service-link-pill-contact:hover {
  background: rgba(126, 217, 87, 0.15);
  border-color: var(--green-light);
  color: var(--green-light);
  box-shadow: 0 2px 8px rgba(126, 217, 87, 0.2);
  gap: 8px;
}

.service-card ul {
  list-style: none;
  padding: 0;
  margin: 16px 0 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-card ul li {
  position: relative;
  padding-left: 24px;
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.6;
  opacity: 1;
  transition: all 0.3s ease;
}

.service-card ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
  font-size: 1rem;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(126, 217, 87, 0.15);
  border-radius: 4px;
  border: 1px solid rgba(126, 217, 87, 0.3);
}

.service-card:hover ul li {
  color: var(--text);
  opacity: 1;
  transform: translateX(4px);
}

.service-card:hover ul li::before {
  background: rgba(126, 217, 87, 0.25);
  border-color: rgba(126, 217, 87, 0.5);
  transform: scale(1.1);
}

/* Industries Grid */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
  max-width: 100%;
}

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

.industry-card {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 28px;
  border-radius: 18px;
  backdrop-filter: blur(12px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
}

.industry-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--primary), var(--green), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.industry-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(123, 126, 242, 0.08), transparent);
  transition: left 0.6s ease;
}

.industry-card:hover::before {
  transform: scaleX(1);
}

.industry-card:hover::after {
  left: 100%;
}

.industry-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: 0 16px 48px rgba(123, 126, 242, 0.25);
  background: var(--card-hover);
}

.industry-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(123, 126, 242, 0.2), rgba(126, 217, 87, 0.15));
  border: 1px solid rgba(123, 126, 242, 0.4);
  margin-bottom: 20px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.industry-icon::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(123, 126, 242, 0.3), rgba(126, 217, 87, 0.2));
  opacity: 0;
  transition: opacity 0.4s ease;
}

.industry-card:hover .industry-icon {
  background: linear-gradient(135deg, rgba(123, 126, 242, 0.3), rgba(126, 217, 87, 0.25));
  border-color: rgba(123, 126, 242, 0.6);
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 8px 24px rgba(123, 126, 242, 0.3);
}

.industry-card:hover .industry-icon::before {
  opacity: 1;
}

.industry-icon svg {
  width: 32px;
  height: 32px;
  color: var(--primary);
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}

.industry-card:hover .industry-icon svg {
  color: var(--primary-light);
  transform: scale(1.1);
}

.industry-card h3 {
  margin: 0 0 12px;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
  background: linear-gradient(135deg, var(--text), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.industry-tagline {
  margin: 0 0 16px;
  font-size: 0.95rem;
  font-weight: 500;
  opacity: 1;
  color: var(--primary-light);
  line-height: 1.5;
}

.industry-description {
  margin: 0 0 20px;
  color: var(--text-light);
  opacity: 1;
  font-size: 0.95rem;
  line-height: 1.7;
  flex-grow: 1;
}

.industry-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.industry-features li {
  position: relative;
  padding-left: 24px;
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.6;
  opacity: 1;
  transition: all 0.3s ease;
}

.industry-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
  font-size: 1rem;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(126, 217, 87, 0.15);
  border-radius: 4px;
  border: 1px solid rgba(126, 217, 87, 0.3);
}

.industry-card:hover .industry-features li {
  color: var(--text);
  opacity: 1;
  transform: translateX(4px);
}

.industry-card:hover .industry-features li::before {
  background: rgba(126, 217, 87, 0.25);
  border-color: rgba(126, 217, 87, 0.5);
  transform: scale(1.1);
}

/* Global Presence (homepage) – left 1/3: title, sub, small map; right 2/3: background */
.global-presence {
  display: flex;
  width: 100%;
  min-height: 720px;
}
.global-presence-left {
  width: 33.333%;
  flex-shrink: 0;
  background: color-mix(in srgb, #f5f5f2 10%, transparent);
  color: #0a0a0a;
  padding: clamp(48px, 6vh, 80px) clamp(24px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  text-align: left;
}
.global-presence-left .section-title {
  font-size: clamp(0.65rem, 3vw, 4.5rem);
  font-weight: 400;
  margin: 0 0 1rem 0;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(123, 126, 242, 0.55);
  text-align: left;
  color: #ffffff !important;
}
.global-presence-left .section-sub {
  margin: 0 0 1.5rem 0;
  color: #ffffff !important;
  opacity: 1;
  text-align: left;
}

.global-presence-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0 0;
}

.global-presence-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  color: var(--primary-light);
  line-height: 1.6;
  transition: color 0.3s ease, opacity 0.3s ease;
}

/* Where We Work bullets: purple checkmark by default, white text + green checkmark with delayed animation on hover (like solutions.html) */
.global-presence-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.15em;
  font-weight: 700;
  font-size: 1rem;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(123, 126, 242, 0.95);
  background: rgba(123, 126, 242, 0.25);
  border: 1px solid rgba(123, 126, 242, 0.5);
  border-radius: 4px;
  transition: color 0.3s ease, background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.global-presence-left:hover .global-presence-list li {
  color: rgba(255, 255, 255, 0.98);
  opacity: 1;
}

@keyframes global-presence-tick-reveal {
  0% {
    color: rgba(255, 255, 255, 0.95);
    transform: rotate(0deg);
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
  }
  100% {
    color: var(--green);
    transform: rotate(360deg);
    background: rgba(126, 217, 87, 0.25);
    border-color: rgba(126, 217, 87, 0.5);
  }
}

.global-presence-left:hover .global-presence-list li::before {
  animation: global-presence-tick-reveal 0.5s ease forwards;
}

.global-presence-left:hover .global-presence-list li:nth-child(1)::before { animation-delay: 0.05s; }
.global-presence-left:hover .global-presence-list li:nth-child(2)::before { animation-delay: 0.22s; }
.global-presence-left:hover .global-presence-list li:nth-child(3)::before { animation-delay: 0.39s; }
.global-presence-left:hover .global-presence-list li:nth-child(4)::before { animation-delay: 0.56s; }
.global-presence-left:hover .global-presence-list li:nth-child(5)::before { animation-delay: 0.73s; }

@media (prefers-reduced-motion: reduce) {
  .global-presence-left:hover .global-presence-list li::before {
    animation: none;
    color: var(--green);
    background: rgba(126, 217, 87, 0.25);
    border-color: rgba(126, 217, 87, 0.5);
  }
}

.global-presence-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 24px;
  margin-bottom: clamp(20px, 3vh, 28px);
}

.global-presence-metric {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.global-presence-metric__number {
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  font-weight: 700;
  color: var(--green);
  line-height: 1;
}

.global-presence-metric__label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.3;
}

.global-presence-map-wrap {
  flex: 1;
  min-height: 280px;
  width: 100%;
  margin-top: 0;
}
.global-presence-map-wrap .global-presence-map {
  height: 100%;
  min-height: 260px;
  max-height: 360px;
  border-radius: 12px;
}
.global-presence-right {
  width: 66.667%;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2vh, 24px);
  background: color-mix(in srgb, #0a0a0a 10%, transparent);
  padding: clamp(48px, 6vh, 80px) clamp(24px, 4vw, 48px);
}
.global-presence-right .global-presence-locations {
  flex-shrink: 0;
}
.global-presence-right .global-presence-map-wrap {
  flex: 1;
  min-height: 280px;
}
.global-presence-right .global-presence-map-wrap .global-presence-map {
  max-height: none;
  min-height: 280px;
}

/* Metric cards in right column */
.global-presence-metrics-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(16px, 2vw, 24px);
  max-width: 480px;
}

.global-presence-metric-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: clamp(16px, 2vw, 24px);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.global-presence-metric-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

.global-presence-metric-card__number {
  font-size: clamp(1.75rem, 2.5vw, 2.5rem);
  font-weight: 700;
  color: var(--green);
  line-height: 1;
}

.global-presence-metric-card__label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.35;
}

/* Locations grid in left column – compact pill-style, city only */
.global-presence-left .locations-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin-bottom: clamp(20px, 3vh, 28px);
}
.global-presence-right .locations-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 6px 12px;
  margin-bottom: 0;
}
.global-presence-right .locations-grid .dropdown-card {
  padding: 4px 10px 4px 6px;
  gap: 6px;
  align-items: center;
  border-radius: 9999px;
  flex-direction: row;
}
.global-presence-right .locations-grid .dropdown-card::before {
  display: none;
}
.global-presence-right .locations-grid .dropdown-card-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border-radius: 9999px;
}
.global-presence-right .locations-grid .dropdown-card-icon .fi {
  width: 16px;
  height: 12px;
}
.global-presence-right .locations-grid .dropdown-card-title {
  font-size: 1.125rem; /* 50% larger than 0.75rem */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.global-presence-left .locations-grid .dropdown-card {
  padding: 3px 8px 3px 5px;
  gap: 4px;
  align-items: center;
  border-radius: 9999px;
  flex-direction: row;
}

.global-presence-left .locations-grid .dropdown-card::before {
  display: none;
}

.global-presence-left .locations-grid .dropdown-card-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border-radius: 9999px;
}

.global-presence-left .locations-grid .dropdown-card-icon .fi {
  width: 14px;
  height: 10px;
}

.global-presence-left .locations-grid .dropdown-card-title {
  font-size: 0.65rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 768px) {
  .global-presence {
    flex-direction: column;
    min-height: auto;
  }
  .global-presence-left,
  .global-presence-right {
    width: 100%;
  }
  .global-presence-right .locations-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .global-presence-map-wrap .global-presence-map {
    max-height: 320px;
    min-height: 240px;
  }
}

/* Industries test – title + Xbox 360–style blades (fade-in-up like Suppliers section) */
.industries-test {
  width: 100%;
  min-height: 42vh;
  background: rgba(10, 10, 12, 0.25);
  padding: 0 0 clamp(48px, 6vh, 64px) 0;
  overflow: hidden;
  position: relative;
}
.industries-test .industries-test-inner.fade-in-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
/* Industries title: equal space above and below (section has no top padding; header defines both) */
.industries-test-header {
  max-width: 1600px;
  margin: 0 auto;
  padding: clamp(32px, 5vh, 56px) clamp(24px, 4vw, 64px);
  text-align: center;
}
.industries-test-header .section-title {
  font-size: clamp(0.65rem, 3vw, 4.5rem);
  font-weight: 400;
  text-align: center;
  padding: 0;
  margin: 0;
}
.industries-test-blades {
  display: flex;
  width: 100%;
  height: 42vh;
  min-height: 36vh;
  max-height: 42vh;
  list-style: none;
  margin: 0;
  padding: 0;
}
.industries-test-blade {
  flex: 0 0 5%;
  min-width: 0;
  min-height: 0;
  height: 100%;
  display: flex;
  align-items: stretch;
  padding: 0;
  margin: 0;
  border: none;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  font-family: inherit;
  color: var(--text-light);
  transition: flex 0.65s cubic-bezier(0.33, 1, 0.68, 1);
  text-align: left;
  overflow: hidden;
  position: relative;
  container-type: size;
  container-name: blade;
}
.industries-test-blade:last-of-type {
  border-right: none;
}
.industries-test-blade:hover {
  color: #fff;
}
.industries-test-blade.expanded {
  flex: 0 0 75%;
  flex-direction: column;
  align-items: flex-start;
  overflow: hidden;
}
.industries-test-blade-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  opacity: 0.25;
  pointer-events: none;
}
.industries-test-blade-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(135deg, rgba(10, 10, 12, 0.25) 0%, rgba(10, 10, 12, 0.12) 45%, rgba(10, 10, 12, 0.06) 100%);
  pointer-events: none;
}
.industries-test-blade-v,
.industries-test-blade-content {
  position: relative;
  z-index: 2;
}
/* Easing for title transitions */
.industries-test-blade-v,
.industries-test-blade-h {
  --industries-title-ease: cubic-bezier(0.33, 1, 0.68, 1);
  --industries-title-dur: 0.5s;
}
.industries-test-blade-v {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(0deg);
  transform-origin: left center;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  align-self: flex-start;
  padding: clamp(8px, 1vw, 14px) clamp(6px, 0.8vw, 12px);
  /* Scale with blade height so minimised title fills space (longest ~24 chars; 100/24 ≈ 4.2cqh) */
  font-size: max(0.7rem, min(2rem, 5cqh));
  font-weight: 600;
  flex-shrink: 0;
  pointer-events: none;
  max-height: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  transition: transform var(--industries-title-dur) var(--industries-title-ease);
}
@supports not (container-type: size) {
  .industries-test-blade-v {
    font-size: clamp(0.8rem, 2.4vmin, 1.65rem);
  }
}
.industries-test-blade:not(.expanded) .industries-test-blade-v {
  opacity: 0.6;
}
/* Expanded: vertical title swings out only (no fade); hidden when expanded’t */
.industries-test-blade.expanded .industries-test-blade-v {
  position: absolute;
  left: clamp(8px, 1vw, 16px);
  top: clamp(12px, 1.5vw, 20px);
  opacity: 0;
  transform: rotate(-18deg);
  visibility: visible;
}
/* Horizontal title: no fade, appears instantly when expanded */
.industries-test-blade-h {
  position: relative;
  z-index: 2;
  font-size: clamp(1.5rem, 4vmin, 3.25rem);
  font-weight: 600;
  color: inherit;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  padding: clamp(24px, 3vh, 32px) clamp(24px, 3vw, 48px) 0;
  width: 100%;
  box-sizing: border-box;
  opacity: 0;
}
.industries-test-blade.expanded .industries-test-blade-h {
  display: block;
  opacity: 1;
}
/* Collapsed: horizontal title out of flow so it doesn’t take space */
.industries-test-blade:not(.expanded) .industries-test-blade-h {
  position: absolute;
  left: clamp(24px, 3vw, 48px);
  top: clamp(24px, 3vh, 32px);
  opacity: 0;
  pointer-events: none;
}
.industries-test-blade-content {
  flex: 1;
  min-width: 0;
  display: none;
  flex-direction: column;
  justify-content: center;
  padding: clamp(24px, 3vh, 40px) clamp(24px, 3vw, 48px);
  opacity: 0;
  transition: opacity 0.55s cubic-bezier(0.33, 1, 0.68, 1);
}
.industries-test-blade.expanded .industries-test-blade-content {
  display: flex;
  opacity: 1;
  justify-content: flex-start;
  padding-top: clamp(12px, 1.5vh, 20px);
  width: 100%;
  box-sizing: border-box;
}
.industries-test-blade-content p {
  margin: 0 0 20px;
  font-size: clamp(1rem, 1.2vw + 0.5rem, 1.25rem);
  color: var(--text-light);
  line-height: 1.6;
  max-width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}
.industries-test-blade-content .btn {
  align-self: flex-start;
}
.industries-test-blade-content a.btn {
  pointer-events: auto;
}
/* Industry blade pills – solutions/services links toward bottom of slide */
.industries-test-blade-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin-bottom: 20px;
  margin-top: auto;
}
.industries-test-blade-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
a.industries-test-blade-pill {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
a.industries-test-blade-pill:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.5);
}
.industries-test-blade.expanded .industries-test-blade-pill {
  border-color: rgba(126, 217, 87, 0.4);
  background: rgba(126, 217, 87, 0.08);
  color: rgba(255, 255, 255, 0.98);
}
.industries-test-blade.expanded a.industries-test-blade-pill:hover {
  background: rgba(126, 217, 87, 0.2);
  border-color: rgba(126, 217, 87, 0.65);
}
/* Dot bar along bottom */
.industries-test-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(10px, 1.5vw, 18px);
  margin-top: clamp(20px, 3vh, 32px);
  padding: 0 16px;
  flex-wrap: wrap;
}
.industries-test-dot {
  width: clamp(8px, 1.2vw, 12px);
  height: clamp(8px, 1.2vw, 12px);
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.4s cubic-bezier(0.33, 1, 0.68, 1), border-color 0.4s cubic-bezier(0.33, 1, 0.68, 1), transform 0.4s cubic-bezier(0.33, 1, 0.68, 1);
  -webkit-appearance: none;
  appearance: none;
}
.industries-test-dot:hover {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.2);
}
.industries-test-dot.active {
  background: var(--primary);
  border-color: var(--primary-light);
  transform: scale(1.15);
}
.industries-test-dot:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}
@media (max-width: 900px) {
  .industries-test-blades {
    flex-direction: column;
    min-height: auto;
  }
  .industries-test-blade {
    flex: 0 0 auto;
    min-height: 0;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    min-height: 56px;
  }
  .industries-test-blade.expanded {
    flex: 0 0 auto;
    min-height: 200px;
  }
  .industries-test-blade-v {
    writing-mode: vertical-rl;
    transform: rotate(0deg);
    /* Mobile: vertical stack; keep responsive size */
    font-size: max(0.7rem, min(1.5rem, 5cqh));
  }
  @supports not (container-type: size) {
    .industries-test-blade-v {
      font-size: clamp(0.8rem, 2.4vmin, 1.65rem);
    }
  }
  .industries-test-blade-pill {
    font-size: 0.75rem;
    padding: 6px 12px;
  }
}

/* Industries we serve (homepage) - full-bleed 2x3 grid, checkerboard, scroll-in */
.industries-serve {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  padding: 0;
  margin-top: 48px;
  margin-bottom: 160px;
  overflow: hidden;
}

.industries-serve-header {
  max-width: 800px;
  margin: 0 auto;
  padding: 64px clamp(24px, 4vw, 64px) 48px;
  text-align: center;
}

.industries-serve-header .section-title {
  font-size: clamp(0.65rem, 3vw, 4.5rem);
  font-weight: 400;
  text-align: center;
  margin: 0 0 0.5vh 0;
  padding-bottom: 0.5vh;
}

.industries-serve-header .section-sub {
  margin: 0 0 clamp(48px, 8vh, 96px) 0;
  color: var(--text-light);
  opacity: 0.9;
  text-align: center;
}

.industries-serve-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(3, 1fr);
  gap: 10px;
  width: 100%;
  background: rgba(40, 40, 50, 0.3);
}

.industries-serve-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(32px, 5vw, 56px) clamp(24px, 4vw, 48px);
  min-height: 220px;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.5s ease, transform 0.5s ease, background-color 0.2s ease;
  opacity: 0;
  transform: translateY(30px);
  border: none;
  position: relative;
}

/* Cards 1, 4, 5 = black; 2, 3, 6 = purple */
.industries-serve-card:nth-child(1),
.industries-serve-card:nth-child(4),
.industries-serve-card:nth-child(5) {
  background: rgba(10, 10, 12, 0.85);
}

.industries-serve-card:nth-child(2),
.industries-serve-card:nth-child(3),
.industries-serve-card:nth-child(6) {
  background: rgba(28, 26, 42, 0.85);
}

.industries-serve.revealed .industries-serve-card {
  opacity: 1;
  transform: translateY(0);
}

.industries-serve-card:nth-child(1) { transition-delay: 0ms; }
.industries-serve-card:nth-child(2) { transition-delay: 80ms; }
.industries-serve-card:nth-child(3) { transition-delay: 160ms; }
.industries-serve-card:nth-child(4) { transition-delay: 240ms; }
.industries-serve-card:nth-child(5) { transition-delay: 320ms; }
.industries-serve-card:nth-child(6) { transition-delay: 400ms; }

.industries-serve-card:nth-child(1):hover,
.industries-serve-card:nth-child(4):hover,
.industries-serve-card:nth-child(5):hover {
  background: rgba(18, 18, 22, 0.85) !important;
}

.industries-serve-card:nth-child(2):hover,
.industries-serve-card:nth-child(3):hover,
.industries-serve-card:nth-child(6):hover {
  background: rgba(38, 36, 55, 0.85) !important;
}

.industries-serve-card:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.industries-serve-card .industries-serve-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin-bottom: 24px;
  color: var(--primary);
  background: linear-gradient(135deg, rgba(123, 126, 242, 0.25), rgba(123, 126, 242, 0.1));
  border: 1px solid rgba(123, 126, 242, 0.5);
  border-radius: 16px;
  box-shadow: 0 0 24px rgba(123, 126, 242, 0.2);
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.industries-serve-card .industries-serve-icon::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(123, 126, 242, 0.25), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.industries-serve-card:hover .industries-serve-icon {
  background: linear-gradient(135deg, rgba(123, 126, 242, 0.35), rgba(123, 126, 242, 0.15));
  border-color: rgba(123, 126, 242, 0.7);
  box-shadow: 0 0 32px rgba(123, 126, 242, 0.35);
  transform: scale(1.08) rotate(3deg);
}

.industries-serve-card:hover .industries-serve-icon::before {
  opacity: 1;
}

.industries-serve-card .industries-serve-icon svg {
  width: 36px;
  height: 36px;
  position: relative;
  z-index: 1;
  transition: color 0.3s ease, transform 0.3s ease;
}

.industries-serve-card:hover .industries-serve-icon svg {
  color: var(--primary-light);
  transform: scale(1.05);
}

.industries-serve-card h3 {
  margin: 0 0 10px;
  font-size: clamp(1.15rem, 2.5vw, 1.4rem);
  font-weight: 700;
  color: var(--text);
}

.industries-serve-card p {
  margin: 0;
  max-width: 320px;
  font-size: clamp(0.9rem, 2vw, 1rem);
  color: var(--text-light);
  opacity: 0.85;
  line-height: 1.55;
}

@media (max-width: 600px) {
  .industries-serve-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(6, auto);
  }

  .industries-serve-card {
    min-height: 180px;
  }

  .industries-serve-card .industries-serve-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
  }

  .industries-serve-card .industries-serve-icon svg {
    width: 32px;
    height: 32px;
  }

  .industries-serve-header {
    padding: 48px 24px 32px;
  }
}

/* Metrics Section - appears after trusted section */
.hero-centered ~ section[aria-label="Metrics"] {
  margin-top: 100px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  /* Ensure it doesn't overlap with hero/trusted sections when zooming */
  position: relative;
  z-index: 1;
  /* Clear any absolute positioning from above */
  clear: both;
}

/* Metrics Section */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  margin: 32px 0;
}

.metric-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 20px;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.metric-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(123, 126, 242, 0.1), transparent);
  transition: left 0.5s ease;
}

.metric-card:hover::before {
  left: 100%;
}

.metric-card:hover {
  transform: translateY(-4px);
  box-shadow: none;
  background: var(--card-hover);
}

.metric-number {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 8px;
  display: inline-block;
}


.metric-label {
  color: var(--text-light);
  font-size: 0.9rem;
  font-weight: 500;
  margin-top: 8px;
  opacity: 1;
}

/* Trusted Logos Carousel */
.trusted-logos-title {
  text-align: center;
  margin: 0 0 16px;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 400;
  color: var(--text-light);
  opacity: 0.95;
  letter-spacing: 0.02em;
}

.trusted-logos-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 20px 0;
  display: flex;
  align-items: center;
  mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  touch-action: pan-y;
}

.trusted-logos-track {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 64px;
  will-change: transform;
  height: 60px;
  /* Animation will be set dynamically via JavaScript */
}

.trusted-logos-track:hover {
  animation-play-state: paused !important;
}

.trusted-logo {
  flex-shrink: 0;
  opacity: 0.85;
  transition: all 0.3s ease;
  filter: grayscale(30%) brightness(1.2);
  width: 150px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}

.trusted-logo img {
  max-width: 100%;
  max-height: 60px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0;
  pointer-events: none; /* prevent right-click on the image itself */
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.trusted-logo:hover {
  opacity: 1;
  filter: grayscale(0%) brightness(1.3);
  transform: scale(1.1);
}

/* Animation keyframes will be dynamically generated by JavaScript */

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.testimonial-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: 0 12px 32px rgba(123, 126, 242, 0.15);
  background: var(--card-hover);
}

.testimonial-quote {
  flex-grow: 1;
  margin-bottom: 20px;
}

.testimonial-quote p {
  color: var(--text-light);
  font-size: 1rem;
  line-height: 1.7;
  margin: 0;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.testimonial-author-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.testimonial-author-info strong {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 700;
}

.testimonial-author-info span {
  color: var(--text-light);
  font-size: 0.85rem;
  opacity: 1;
}

/* News Section */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.news-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: 0 12px 32px rgba(123, 126, 242, 0.15);
  background: var(--card-hover);
}

.news-date {
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.news-card h3 {
  margin: 0 0 12px;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.news-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 16px;
  flex-grow: 1;
}

.news-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.3s ease;
}

.news-link:hover {
  color: var(--primary-light);
  gap: 8px;
}

.text-center {
  text-align: center;
}

/* Projects */
.case-studies-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.case-study-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 32px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.case-study-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: 0 12px 32px rgba(123, 126, 242, 0.15);
  background: var(--card-hover);
}

.case-study-header {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.case-study-badge {
  display: inline-block;
  background: var(--primary);
  color: var(--bg);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.case-study-industry {
  display: inline-block;
  background: rgba(123, 126, 242, 0.15);
  color: var(--primary-light);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid rgba(123, 126, 242, 0.3);
}

.case-study-card h2 {
  margin: 0 0 12px;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.case-study-summary {
  color: var(--text-light);
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0 0 24px;
  opacity: 1;
}

.case-study-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 20px;
  margin: 32px 0;
  padding: 24px;
  background: rgba(123, 126, 242, 0.08);
  border: 1px solid rgba(123, 126, 242, 0.2);
  border-radius: 14px;
}

.case-metric {
  text-align: center;
}

.case-metric-value {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 8px;
}

.case-metric-label {
  color: var(--text-light);
  font-size: 0.85rem;
  font-weight: 500;
  opacity: 1;
}

.case-study-content {
  margin-top: 32px;
}

.case-study-content h3 {
  margin: 24px 0 12px;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
}

.case-study-content p {
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 16px;
  opacity: 1;
}

.case-study-content ul {
  list-style: none;
  padding-left: 0;
  margin: 16px 0;
}

.case-study-content ul li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  color: var(--text-light);
  line-height: 1.6;
}

.case-study-content ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

/* Locations Grid */
.locations-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 10px;
  margin-bottom: 32px;
}

.locations-grid .dropdown-card {
  cursor: default;
  pointer-events: none;
  padding: 10px 12px;
  gap: 10px;
}

.locations-grid .dropdown-card.location-card {
  cursor: pointer;
  pointer-events: auto;
}

.locations-grid .dropdown-card.contact-card {
  cursor: pointer;
  pointer-events: auto;
  background: var(--primary);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: none;
  color: #0b0b12;
}

/* Remove generic dropdown-card animated top border on this CTA tile */
.locations-grid .dropdown-card.contact-card::before {
  display: none !important;
}

.locations-grid .dropdown-card:hover {
  transform: translateY(-2px);
  cursor: default;
}

.locations-grid .dropdown-card.location-card:hover {
  cursor: pointer;
}

.locations-grid .dropdown-card.contact-card:hover {
  cursor: pointer;
  background: var(--primary-light);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: none;
  transform: none;
}

.locations-grid .dropdown-card-icon {
  font-size: 0;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  width: 36px;
  height: 36px;
}

.locations-grid .dropdown-card-icon .fi {
  width: 28px;
  height: 20px;
  border-radius: 4px;
  display: block;
  object-fit: cover;
}

.locations-grid .dropdown-card:hover .dropdown-card-icon {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  transform: scale(1.05);
}

.locations-grid .dropdown-card.contact-card .dropdown-card-icon {
  background: rgba(0, 0, 0, 0.12);
  border-color: rgba(0, 0, 0, 0.18);
  color: #0b0b12;
}

.locations-grid .dropdown-card-title {
  font-size: 0.85rem;
  margin-bottom: 0;
  line-height: 1.3;
}

.locations-grid .dropdown-card.contact-card .dropdown-card-title {
  font-weight: 500;
  letter-spacing: 0;
}

.locations-grid .dropdown-card-desc {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.3;
  margin-top: 2px;
}

@media (max-width: 1200px) {
  .locations-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

@media (max-width: 900px) {
  .locations-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 600px) {
  .locations-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  
  .locations-grid .dropdown-card {
    padding: 10px;
    gap: 8px;
  }
  
  .locations-grid .dropdown-card-icon {
    width: 32px;
    height: 32px;
  }
  
  .locations-grid .dropdown-card-icon .fi {
    width: 24px;
    height: 18px;
  }
  
  .locations-grid .dropdown-card-title {
    font-size: 0.8rem;
  }
}

/* Project Details Modal */
.project-details-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 20px;
  pointer-events: none;
}

.project-details-modal.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.project-details-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
}

.project-details-panel {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transform: scale(0.95);
  transition: transform 0.3s ease;
  z-index: 1;
}

/* Custom scrollbar for modal */
.project-details-panel::-webkit-scrollbar {
  width: 8px;
}

.project-details-panel::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

.project-details-panel::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.project-details-panel::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

.project-details-modal.active .project-details-panel {
  transform: scale(1);
}

.project-details-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10;
}

.project-details-close:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-hover);
  color: var(--primary-light);
  transform: rotate(90deg);
}

.project-details-content {
  padding: 48px;
}

.project-details-title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin: 0 0 24px;
  font-weight: 700;
  color: var(--text-light);
}

.project-details-body {
  color: var(--text);
  line-height: 1.7;
}

.project-details-body p {
  margin: 0 0 16px;
}

.project-details-body p:last-child {
  margin-bottom: 0;
}

@media (max-width: 600px) {
  .project-details-panel {
    max-height: 95vh;
  }
  
  .project-details-content {
    padding: 32px 24px;
  }
  
  .project-details-close {
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    font-size: 20px;
  }
}

/* Projects Map */
.projects-map-container {
  width: 100%;
  height: 600px;
  border-radius: 18px;
  overflow: hidden;
  background: var(--card);
  position: relative;
  margin-top: 24px;
}

.projects-map-container .leaflet-container {
  background: var(--bg);
  height: 100%;
  width: 100%;
  border-radius: 18px;
}

.projects-map-container .leaflet-tile-container img {
  filter: brightness(1.8) contrast(1.2) saturate(0.4);
}

.projects-map-container .leaflet-control-zoom {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(18, 18, 18, 0.9);
  backdrop-filter: blur(12px);
}

.projects-map-container .leaflet-control-zoom a {
  background: rgba(18, 18, 18, 0.9);
  color: var(--text);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.2s ease;
}

.projects-map-container .leaflet-control-zoom a:hover {
  background: rgba(26, 26, 26, 0.95);
  color: var(--green);
}

.projects-map-container .leaflet-control-zoom a:active {
  background: rgba(26, 26, 26, 0.95);
}

.projects-map-container .leaflet-control-zoom-in,
.projects-map-container .leaflet-control-zoom-out {
  font-size: 18px;
  line-height: 26px;
}

/* Map Pin Styling */
.map-pin-wrapper {
  background: transparent !important;
  border: none !important;
  position: relative;
  cursor: pointer;
}

.map-pin-container {
  position: relative;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-pin-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px rgba(126, 217, 87, 0.8), 0 0 24px rgba(126, 217, 87, 0.4);
  position: relative;
  z-index: 3;
  animation: mapPinPulse 2s ease-in-out infinite;
}

.map-pin-glow {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--green);
  opacity: 0.4;
  z-index: 1;
  animation: mapPinGlow 2s ease-in-out infinite;
}

.map-pin-pulse {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--green);
  z-index: 2;
  animation: mapPinRipple 2s ease-out infinite;
}

@keyframes mapPinPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 12px rgba(126, 217, 87, 0.8), 0 0 24px rgba(126, 217, 87, 0.4);
  }
  50% {
    transform: scale(1.1);
    box-shadow: 0 0 16px rgba(126, 217, 87, 1), 0 0 32px rgba(126, 217, 87, 0.6);
  }
}

@keyframes mapPinGlow {
  0%, 100% {
    transform: scale(1);
    opacity: 0.4;
  }
  50% {
    transform: scale(1.3);
    opacity: 0.2;
  }
}

@keyframes mapPinRipple {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  100% {
    transform: scale(2.5);
    opacity: 0;
  }
}

/* Map Popup Styling */
.map-popup .leaflet-popup-content-wrapper {
  background: rgba(18, 18, 18, 0.98);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 12px 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  color: var(--text);
}

.map-popup .leaflet-popup-content {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.9rem;
  line-height: 1.4;
}

.map-popup .leaflet-popup-tip {
  background: rgba(18, 18, 18, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: none;
  border-left: none;
  box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.map-popup .leaflet-popup-close-button {
  color: var(--text-light);
  opacity: 0.7;
  font-size: 20px;
  padding: 8px;
  transition: all 0.2s ease;
}

.map-popup .leaflet-popup-close-button:hover {
  opacity: 1;
  color: var(--green);
}

/* Mobile Responsive */
@media (max-width: 940px) {
  .projects-map-container {
    height: 500px;
    margin-top: 20px;
  }
}

@media (max-width: 600px) {
  .projects-map-container {
    height: 400px;
    border-radius: 14px;
  }
  
  .projects-map-container .leaflet-container {
    border-radius: 14px;
  }
  
  .map-pin-dot {
    width: 10px;
    height: 10px;
  }
  
  .map-pin-glow,
  .map-pin-pulse {
    width: 16px;
    height: 16px;
  }
}

/* Accessibility - Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  .map-pin-dot,
  .map-pin-glow,
  .map-pin-pulse {
    animation: none;
  }
  
  .map-pin-dot {
    box-shadow: 0 0 8px rgba(126, 217, 87, 0.6);
  }
}

/* Resources */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.resource-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.resource-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(123, 126, 242, 0.1), transparent);
  transition: left 0.5s ease;
}

.resource-card:hover::before {
  left: 100%;
}

.resource-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: 0 12px 32px rgba(123, 126, 242, 0.15);
  background: var(--card-hover);
}

.resource-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(123, 126, 242, 0.15);
  border: 1px solid rgba(123, 126, 242, 0.3);
  color: var(--primary);
  margin-bottom: 16px;
  transition: all 0.3s ease;
}

.resource-card:hover .resource-icon {
  background: rgba(123, 126, 242, 0.25);
  border-color: rgba(123, 126, 242, 0.5);
  transform: scale(1.1) rotate(5deg);
}

.resource-badge {
  display: inline-block;
  background: rgba(126, 217, 87, 0.2);
  color: var(--green);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid rgba(126, 217, 87, 0.3);
  width: fit-content;
}

.resource-card h3 {
  margin: 0 0 12px;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.resource-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 20px;
  opacity: 1;
  flex-grow: 1;
}

.resource-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.3s ease;
  margin-top: auto;
}

.resource-link:hover {
  color: var(--primary-light);
  gap: 8px;
}

/* Partners */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 32px;
  align-items: center;
  justify-items: center;
}

.partner-logo {
  opacity: 0.5;
  transition: all 0.3s ease;
  filter: grayscale(100%) brightness(0.8);
}

.partner-logo:hover {
  opacity: 0.9;
  filter: grayscale(50%) brightness(1.1);
  transform: scale(1.05);
}

.partner-logo img {
  max-width: 100%;
  height: auto;
  max-height: 60px;
  object-fit: contain;
}

/* Lifecycle Timeline */
.lifecycle-quick-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  padding: 0;
}

.lifecycle-nav-item {
  padding: 10px 18px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
}

.lifecycle-nav-item:hover {
  background: var(--card-hover);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

/* Vertical Interactive Timeline - Osborne Clarke Style */
.lifecycle-timeline-section {
  position: relative;
  width: 100%;
  padding: 80px 0;
  margin-top: 60px;
}

.lifecycle-timeline-container {
  position: relative;
  width: 100%;
  max-width: 90vw;
  margin: 0 auto;
  padding: 0 clamp(24px, 4vw, 64px);
}

/* Track - Vertical gray line (absolute, centered) */
.lifecycle-circuit-line {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: rgba(31, 41, 55, 1);
  pointer-events: none;
  z-index: 1;
}

/* Laser - Vertical green line (uses scaleY transform) */
.lifecycle-circuit-line-filler {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #7ed957;
  transform-origin: top;
  transform: scaleY(0);
  transition: transform 0.1s linear;
}

/* Stage Row - Grid layout with 3 columns */
.lifecycle-stage-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  margin-bottom: 4rem;
  position: relative;
}

/* Center Node - Glowing dot */
.lifecycle-stage-node {
  grid-column: 2;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(75, 85, 99, 0.8);
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 12px rgba(126, 217, 87, 0);
  z-index: 3;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.lifecycle-stage-node.active {
  background: #7ed957;
  border-color: #7ed957;
  box-shadow: 0 0 20px rgba(126, 217, 87, 0.8);
}

/* Connector Arm - Horizontal line between card and center */
.lifecycle-connector-arm {
  height: 1px;
  background: rgba(55, 65, 81, 1);
  transition: background 0.3s ease;
  z-index: 2;
  position: relative;
}

/* Left side: connector spans from card right edge to center */
.lifecycle-stage-left .lifecycle-connector-arm {
  grid-column: 1 / 2;
  grid-row: 1;
  align-self: center;
}

/* Right side: connector spans from center to card left edge */
.lifecycle-stage-right .lifecycle-connector-arm {
  grid-column: 2 / 3;
  grid-row: 1;
  align-self: center;
}

.lifecycle-stage-row.active .lifecycle-connector-arm {
  background: #7ed957;
}

/* Card Container - Wide and short, flex row */
.lifecycle-stage-card {
  position: relative;
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 20px 24px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
}

/* Left side card */
.lifecycle-stage-left .lifecycle-stage-card {
  grid-column: 1;
  justify-self: stretch;
}

/* Right side card */
.lifecycle-stage-right .lifecycle-stage-card {
  grid-column: 3;
  justify-self: stretch;
}

/* Number Circle - Fixed width on left */
.lifecycle-stage-card .lifecycle-stage-number {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  min-width: 60px;
  border-radius: 50%;
  background: rgba(123, 126, 242, 0.15);
  border: 1px solid rgba(123, 126, 242, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 700;
}

/* Content - Flexible on right */
.lifecycle-stage-card .lifecycle-stage-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.lifecycle-stage-card .lifecycle-stage-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
  display: flex;
  align-items: center;
  gap: 10px;
}

.lifecycle-stage-card .lifecycle-stage-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.9;
}

.lifecycle-stage-card .lifecycle-stage-subtitle {
  margin: 0;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
}

.lifecycle-stage-card .lifecycle-stage-list {
  list-style: none;
  padding: 0;
  margin: 4px 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lifecycle-stage-card .lifecycle-stage-list li {
  padding-left: 18px;
  position: relative;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
  font-size: 0.875rem;
}

.lifecycle-stage-card .lifecycle-stage-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: rgba(123, 126, 242, 0.8);
  font-weight: 700;
  font-size: 0.9rem;
}

.lifecycle-stage-card .lifecycle-stage-list li strong {
  color: #ffffff;
  font-weight: 600;
  display: block;
  margin-bottom: 2px;
  font-size: 0.9rem;
}

/* Mobile Responsive */
@media (max-width: 900px) {
  .lifecycle-timeline-container {
    max-width: 100%;
  }

  .lifecycle-stage-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .lifecycle-circuit-line {
    left: 24px;
    transform: none;
  }

  .lifecycle-stage-node {
    grid-column: 1;
    position: absolute;
    left: 18px;
    top: 0;
  }

  .lifecycle-stage-left .lifecycle-stage-card,
  .lifecycle-stage-right .lifecycle-stage-card {
    grid-column: 1;
    margin-left: 48px;
  }

  .lifecycle-connector-arm {
    display: none;
  }

  .lifecycle-stage-card {
    padding: 16px;
    flex-direction: column;
    align-items: flex-start;
  }

  .lifecycle-stage-card .lifecycle-stage-number {
    width: 48px;
    height: 48px;
    font-size: 1.25rem;
  }
}

/* Lifecycle Timeline Navigation (v2) - Horizontal Navigation Bar Style */
.lifecycle-timeline-nav-container {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 clamp(24px, 4vw, 64px);
}

.lifecycle-timeline-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  padding: 24px 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  backdrop-filter: blur(12px);
}

.lifecycle-timeline-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  text-decoration: none;
  color: var(--text-light);
  transition: all 0.3s ease;
  position: relative;
  flex: 1;
  min-width: 120px;
  max-width: 180px;
}

.lifecycle-timeline-item:hover {
  color: var(--primary);
}

.lifecycle-timeline-item.active {
  color: var(--primary);
}

.lifecycle-timeline-item.active .lifecycle-timeline-dot {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(123, 126, 242, 0.2);
}

.lifecycle-timeline-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: transparent;
  border: 2px solid var(--border);
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
}

.lifecycle-timeline-item:hover .lifecycle-timeline-dot {
  border-color: var(--primary);
  background: rgba(123, 126, 242, 0.3);
}

.lifecycle-timeline-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.lifecycle-timeline-connector {
  flex: 1;
  height: 2px;
  background: var(--border);
  min-width: 20px;
  max-width: 60px;
  position: relative;
  transition: all 0.3s ease;
}

.lifecycle-timeline-item.active ~ .lifecycle-timeline-connector,
.lifecycle-timeline-item:hover ~ .lifecycle-timeline-connector,
.lifecycle-timeline-item.active + .lifecycle-timeline-connector {
  background: var(--primary);
  opacity: 0.5;
}

/* Lifecycle Stage Content */
.lifecycle-stage-content {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 40px;
  margin-bottom: 40px;
  transition: all 0.3s ease;
  backdrop-filter: blur(12px);
}

.lifecycle-stage-content:hover {
  border-color: var(--border-hover);
  box-shadow: 0 8px 24px rgba(123, 126, 242, 0.15);
}

.lifecycle-stage-content:target {
  border-color: var(--primary);
  box-shadow: 0 8px 24px rgba(123, 126, 242, 0.25);
}

.lifecycle-stage-header {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 24px;
}

.lifecycle-stage-number {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(123, 126, 242, 0.3);
}

.lifecycle-stage-title {
  margin: 0 0 8px;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.lifecycle-stage-subtitle {
  margin: 0;
  color: var(--text-light);
  font-size: 1rem;
  line-height: 1.5;
  opacity: 1;
}

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

.lifecycle-stage-list li {
  padding-left: 24px;
  position: relative;
  color: var(--text-light);
  line-height: 1.6;
  font-size: 0.95rem;
}

.lifecycle-stage-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
  font-size: 1.1rem;
}

.lifecycle-stage-list li strong {
  color: var(--text);
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
  font-size: 1rem;
}

@media (max-width: 1200px) {
  .lifecycle-timeline-nav {
    padding: 20px 12px;
  }

  .lifecycle-timeline-item {
    min-width: 100px;
    padding: 10px 12px;
  }

  .lifecycle-timeline-label {
    font-size: 0.7rem;
  }

  .lifecycle-timeline-connector {
    max-width: 40px;
  }
}

@media (max-width: 900px) {
  .lifecycle-timeline-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .lifecycle-timeline-item {
    flex-direction: row;
    justify-content: flex-start;
    max-width: 100%;
    padding: 16px;
    border-bottom: 1px solid var(--border);
  }

  .lifecycle-timeline-item:last-child {
    border-bottom: none;
  }

  .lifecycle-timeline-connector {
    display: none;
  }

  .lifecycle-timeline-dot {
    margin-right: 12px;
  }

  .lifecycle-timeline-label {
    text-align: left;
    font-size: 0.85rem;
  }

  .lifecycle-stage-content {
    padding: 32px 24px;
  }

  .lifecycle-stage-header {
    flex-direction: column;
    gap: 16px;
  }
}

@media (max-width: 600px) {
  .lifecycle-timeline-label {
    font-size: 0.75rem;
  }

  .lifecycle-stage-content {
    padding: 24px 20px;
  }

  .lifecycle-stage-title {
    font-size: 1.5rem;
  }
}

/* Lifecycle Circular Interactive Diagram (v3) */
.lifecycle-circular-wrapper {
  position: relative;
  width: 100%;
  max-width: 900px;
  height: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lifecycle-circular-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  box-shadow: 0 8px 32px rgba(123, 126, 242, 0.4);
  border: 4px solid var(--bg);
}

.lifecycle-center-content {
  text-align: center;
  color: var(--bg);
}

.lifecycle-center-content svg {
  width: 60px;
  height: 60px;
  display: block;
  margin: 0 auto;
}

.lifecycle-circular-connections {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.lifecycle-circular-stage {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(var(--angle)) translateY(-280px) rotate(calc(var(--angle) * -1));
  transform-origin: center;
  z-index: 5;
  width: 280px;
}

.lifecycle-circular-node {
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  transform-origin: center;
  backdrop-filter: blur(12px);
}

.lifecycle-circular-node:hover {
  border-color: var(--primary);
  box-shadow: 0 12px 32px rgba(123, 126, 242, 0.3);
  transform: scale(1.05);
  z-index: 20;
}

.lifecycle-circular-node.active {
  border-color: var(--primary);
  background: rgba(123, 126, 242, 0.1);
  box-shadow: 0 16px 40px rgba(123, 126, 242, 0.4);
  transform: scale(1.1);
  z-index: 25;
}

.lifecycle-circular-number {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(123, 126, 242, 0.4);
  z-index: 2;
}

.lifecycle-circular-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: rgba(123, 126, 242, 0.15);
  border: 1px solid rgba(123, 126, 242, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin: 12px auto 16px;
  transition: all 0.3s ease;
}

.lifecycle-circular-node:hover .lifecycle-circular-icon,
.lifecycle-circular-node.active .lifecycle-circular-icon {
  background: rgba(123, 126, 242, 0.25);
  border-color: var(--primary);
  transform: scale(1.1) rotate(5deg);
}

.lifecycle-circular-title {
  margin: 0 0 12px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.lifecycle-circular-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease;
  opacity: 0;
}

.lifecycle-circular-node.active .lifecycle-circular-details {
  max-height: 1000px;
  opacity: 1;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.lifecycle-circular-subtitle {
  margin: 0 0 12px;
  color: var(--text-light);
  font-size: 0.85rem;
  line-height: 1.5;
  opacity: 1;
}

.lifecycle-circular-list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lifecycle-circular-list li {
  padding-left: 18px;
  position: relative;
  color: var(--text-light);
  line-height: 1.5;
  font-size: 0.85rem;
}

.lifecycle-circular-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
  font-size: 1.2rem;
}

.lifecycle-circular-list li strong {
  color: var(--text);
  font-weight: 600;
  display: block;
  margin-bottom: 2px;
  font-size: 0.9rem;
}

/* Mobile: Convert to vertical stack */
@media (max-width: 768px) {
  .lifecycle-circular-wrapper {
    height: auto;
    padding: 40px 0;
    max-width: 100%;
  }

  .lifecycle-circular-center {
    position: static;
    transform: none;
    margin: 0 auto 40px;
    width: 120px;
    height: 120px;
  }

  .lifecycle-center-content svg {
    width: 48px;
    height: 48px;
  }

  .lifecycle-center-content h2 {
    font-size: 1rem;
    margin-top: 8px;
  }

  .lifecycle-circular-connections {
    display: none;
  }

  .lifecycle-circular-stage {
    position: static;
    transform: none;
    margin: 0 auto 24px;
    width: 100%;
    max-width: 400px;
  }

  .lifecycle-circular-node {
    padding: 20px;
  }

  .lifecycle-circular-node.active .lifecycle-circular-details {
    max-height: 2000px;
  }
}

/* Footer */
footer {
  padding: 48px 0;
  color: var(--text-light);
  background: transparent;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 48px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 24px;
}

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

.foot-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.foot-note {
  color: var(--text-light);
  font-size: 0.95rem;
  margin: 8px 0;
  opacity: 1;
}

.foot-col h4 {
  margin: 0 0 10px;
  font-size: 1rem;
  font-weight: 700;
}

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

.footer-nav li {
  margin: 2px 0;
}

.footer-nav a {
  display: inline-block;
  color: var(--text-light);
  text-decoration: none;
  opacity: 1;
  font-size: 0.95rem;
  line-height: 1.4;
  transition: all 0.2s ease;
}

.footer-nav a:hover {
  opacity: 1;
  color: var(--primary);
  transform: translateX(4px);
}

.footer-nav .btn-header {
  margin-top: 0.75rem;
  display: inline-block;
}

.footer-bottom {
  margin-top: 24px;
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-light);
  margin: 0;
  opacity: 1;
}

.footer-bottom a {
  color: var(--text-light);
  text-decoration: underline;
  transition: color 0.2s ease;
}

.footer-bottom a:hover {
  color: var(--primary);
  opacity: 1;
}

/* Footer Contact Links */
.foot-col a {
  color: var(--text-light);
  text-decoration: none;
  opacity: 1;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  display: inline-block;
  margin-bottom: 8px;
}

.foot-col a:hover {
  color: var(--primary-light);
  opacity: 1;
  transform: translateX(2px);
}

/* Email link style (same as footer info@) – e.g. partnerships@ on partners page */
.email-link {
  color: var(--text-light);
  text-decoration: none;
  opacity: 1;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  display: inline;
}

.eyebrow .email-link {
  font-size: inherit;
  margin: 0;
  padding: 0;
}

.email-link:hover {
  color: var(--primary-light);
  opacity: 1;
  transform: translateX(2px);
}

.partnerships-contact {
  color: var(--text-light);
  opacity: 0.9;
  margin-top: 32px;
  margin-bottom: 0;
}

.link-inline {
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-light) !important;
  opacity: 1;
  margin-top: 8px;
}

.link-inline:hover {
  color: var(--primary-light) !important;
  opacity: 1;
}

.icon.linkedin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon.linkedin svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: currentColor;
  opacity: 0.9;
  transition: all 0.2s ease;
}

.link-inline:hover .icon.linkedin svg {
  opacity: 1;
  transform: scale(1.1);
}

/* Contact Grid */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 28px;
  width: 100%;
  max-width: 100%;
  align-items: start;
}

@media (max-width: 1200px) {
  .contact-grid {
    grid-template-columns: 1fr 350px;
  }
}

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

/* Contact page: gap between hero and form/details cards = same as gap between the two cards (28px) */
/* 1) First section must not add bottom padding (global section rules use padding: 40px 0 or 32px 0 in MQs) */
main.page-contact section:first-of-type {
  padding-bottom: 0 !important;
}

/* 2) Second section: only 28px top margin, no extra padding-top */
.page-contact main section.container + section.container {
  margin-top: 28px !important;
  padding-top: 0 !important;
}

.page-contact .container + .container .contact-grid {
  margin-top: 0;
}

.page-contact .contact-grid .panel.page-section {
  margin-top: 0;
}

/* Contact page: Our details (no inner box; email matches footer) */
.page-contact .contact-details {
  margin-top: 8px;
}

.page-contact .contact-details-heading {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-light);
}

.page-contact .contact-details-text {
  margin: 0 0 20px;
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
}

.page-contact .contact-details-text:last-child {
  margin-bottom: 0;
}

.page-contact .contact-details a {
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.page-contact .contact-details a:hover {
  color: var(--primary-light);
  transform: translateX(2px);
}

/* Contact form: topic selection cards (Solutions, Services, Something else) */
.contact-topics {
  margin-bottom: 24px;
}

.contact-topics-intro {
  margin: 0 0 20px;
  font-size: 0.95rem;
  color: var(--text-light);
  opacity: 0.95;
  text-align: left;
}

.contact-topics-block {
  margin-top: 20px;
}

.contact-topics-block:first-of-type {
  margin-top: 0;
}

/* When expanded: one border around heading + options */
.contact-topics-block:has(.contact-topic-cards-wrap:not(.contact-topic-cards-wrap-collapsed)) {
  border: 1px solid rgba(123, 126, 242, 0.35);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(18, 18, 24, 0.25);
}

.contact-topics-block:has(.contact-topic-cards-wrap:not(.contact-topic-cards-wrap-collapsed)) .contact-topics-heading {
  border-radius: 0;
  border: none;
  border-bottom: 1px solid rgba(123, 126, 242, 0.2);
}

.contact-topics-block:has(.contact-topic-cards-wrap:not(.contact-topic-cards-wrap-collapsed)) .contact-topic-cards-wrap {
  padding: 0 14px 14px;
}

.contact-topics-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0;
  padding: 14px 16px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  background: linear-gradient(135deg, rgba(80, 70, 140, 0.35) 0%, rgba(60, 50, 110, 0.45) 50%, rgba(50, 45, 100, 0.4) 100%);
  border: 1px solid rgba(123, 126, 242, 0.25);
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, border-radius 0.2s ease, border 0.2s ease;
  text-align: center;
  font-family: inherit;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  position: relative;
}

.contact-topics-heading .contact-topics-chevron {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
}

.contact-topics-heading[aria-expanded="false"] .contact-topics-chevron {
  transform: translateY(-50%) rotate(-90deg);
}

.contact-topics-heading:hover {
  background: linear-gradient(135deg, rgba(90, 80, 150, 0.4) 0%, rgba(70, 60, 130, 0.5) 50%, rgba(60, 55, 120, 0.45) 100%);
  border-color: rgba(123, 126, 242, 0.4);
  box-shadow: 0 0 24px rgba(123, 126, 242, 0.12);
}

.contact-topics-chevron {
  flex-shrink: 0;
  transition: transform 0.45s cubic-bezier(0.33, 1, 0.68, 1);
  opacity: 0.9;
}

.contact-topic-cards-wrap {
  max-height: 2000px;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.33, 1, 0.68, 1), opacity 0.4s cubic-bezier(0.33, 1, 0.68, 1), margin-top 0.5s cubic-bezier(0.33, 1, 0.68, 1), padding-top 0.5s cubic-bezier(0.33, 1, 0.68, 1);
}

.contact-topic-cards-wrap-collapsed {
  max-height: 0 !important;
  opacity: 0;
  margin-top: 0 !important;
  padding-top: 0 !important;
  pointer-events: none;
  transition: max-height 0.5s cubic-bezier(0.33, 1, 0.68, 1), opacity 0.35s cubic-bezier(0.33, 1, 0.68, 1), margin-top 0.5s cubic-bezier(0.33, 1, 0.68, 1), padding-top 0.5s cubic-bezier(0.33, 1, 0.68, 1);
}

.contact-topic-cards-wrap .contact-topic-cards {
  margin-top: 12px;
}

.contact-topic-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}

.contact-topic-card {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 14px;
  background: rgba(18, 18, 24, 0.92);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  text-align: center;
}

.contact-topic-card:hover {
  background: rgba(24, 24, 32, 0.94);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.contact-topic-card .contact-topic-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

.contact-topic-card .contact-topic-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-light);
  line-height: 1.3;
  text-align: center;
}

.contact-topic-card.selected,
.contact-topic-card:has(.contact-topic-input:checked) {
  background: rgba(24, 24, 36, 0.96);
  border-color: rgba(123, 126, 242, 0.45);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(123, 126, 242, 0.25);
}

.contact-topic-card.selected .contact-topic-label,
.contact-topic-card:has(.contact-topic-input:checked) .contact-topic-label {
  color: var(--primary-light);
}

.contact-topic-card-green.selected .contact-topic-label,
.contact-topic-card-green:has(.contact-topic-input:checked) .contact-topic-label {
  color: var(--green-light);
}

.contact-topic-card-green.selected,
.contact-topic-card-green:has(.contact-topic-input:checked) {
  background: rgba(18, 18, 24, 0.95);
  border-color: rgba(126, 217, 87, 0.5);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(126, 217, 87, 0.25);
}

.contact-topic-card-green:hover {
  background: rgba(24, 24, 32, 0.94);
  border-color: rgba(126, 217, 87, 0.3);
}

/* Utility Classes */
.text-center {
  text-align: center;
}

/* Mobile Navigation */
.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
  border-radius: 10px;
  transition: background 0.2s ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

.nav-toggle span {
  position: absolute;
  left: 9px;
  right: 9px;
  height: 2px;
  background: var(--text);
  transition: transform 0.25s ease, opacity 0.2s ease, top 0.25s ease;
}

.nav-toggle span:nth-child(1) {
  top: 12px;
}

.nav-toggle span:nth-child(2) {
  top: 19px;
}

.nav-toggle span:nth-child(3) {
  top: 26px;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  top: 19px;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  top: 19px;
  transform: rotate(-45deg);
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  z-index: 45;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
}

.nav-backdrop[hidden] {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

@media (max-width: 940px) {
  header nav#primary-nav {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: none !important;
    background: rgba(18, 18, 18, 0.98) !important;
    backdrop-filter: blur(12px) !important;
    border-bottom: 1px solid var(--border) !important;
    transform: translateY(-100%) !important;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    padding-top: 84px !important;
    padding-bottom: 20px !important;
    z-index: 60 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5) !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    overflow-y: auto !important;
    max-height: calc(100vh - 0px) !important;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  header nav#primary-nav .nav-links {
    flex-direction: column;
    gap: 0;
    padding: 0;
    overflow-y: auto;
    max-height: calc(100vh - 100px);
    width: 100%;
  }
  
  header nav#primary-nav .header-actions {
    display: flex !important;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: auto;
  }

  header nav#primary-nav .header-actions .btn-header {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  header nav#primary-nav ul:not(.nav-links) {
    flex-direction: column;
    gap: 0;
    padding: 0;
  }

  header nav#primary-nav ul li {
    width: 100%;
    margin: 0;
  }

  header nav#primary-nav ul li a {
    padding: 16px 20px;
    font-size: 1.05rem;
    font-weight: 500;
    width: 100%;
    display: block;
    border-radius: 0;
    transition: background 0.2s ease, color 0.2s ease;
    color: var(--text);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  header nav#primary-nav ul li a:hover,
  header nav#primary-nav ul li a:focus {
    background: rgba(123, 126, 242, 0.1);
    color: var(--primary-light);
  }

  header nav#primary-nav ul li a.nav-link-green {
    color: var(--green);
  }
  header nav#primary-nav ul li a.nav-link-green:hover,
  header nav#primary-nav ul li a.nav-link-green:focus {
    background: rgba(126, 217, 87, 0.12);
    color: var(--green-light);
  }

  header nav#primary-nav ul li:last-child a {
    border-bottom: none;
  }

  /* Dropdown menus on mobile - completely disabled */
  header nav#primary-nav .dropdown-menu {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    position: absolute !important;
    pointer-events: none !important;
  }

  header nav#primary-nav .has-dropdown.active .dropdown-menu,
  header nav#primary-nav .has-dropdown:hover .dropdown-menu,
  header nav#primary-nav .has-dropdown:focus-within .dropdown-menu {
    display: none !important;
    visibility: hidden !important;
  }
  
  /* Hide dropdown arrows on mobile */
  header nav#primary-nav .has-dropdown > a::after {
    display: none !important;
  }

  /* Dropdown items completely hidden on mobile - no styling needed */

  /* Dropdown arrows hidden on mobile - removed arrow rotation */

  .nav-toggle {
    display: flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
  }

  body.menu-open header nav#primary-nav {
    transform: translateY(0) !important;
    visibility: visible !important;
    opacity: 1 !important;
    display: flex !important;
  }

  body.menu-open .nav-backdrop {
    display: block !important;
    opacity: 1 !important;
    pointer-events: all !important;
    touch-action: none !important;
  }

  body.menu-open header {
    background: rgba(10, 10, 12, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    right: 0;
  }

  body.menu-open {
    overflow: hidden;
  }
}

/* ============================================
   MOBILE OPTIMIZATIONS
   ============================================ */

/* Prevent horizontal scroll */
html, body {
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  width: 100%;
  max-width: 100vw;
}

/* Ensure all images and media are responsive */
img, svg, video, iframe {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Fix for all pages - ensure proper spacing */
main {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

/* Ensure panels and cards don't overflow */
.panel, .card, .service-card, .metric-card {
  max-width: 100%;
  box-sizing: border-box;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Tablet and below */
@media (max-width: 940px) {
  header {
    right: 0;
  }

  /* Homepage hero - keep centered in viewport at all screen sizes */
  .hero-centered {
    min-height: 100vh !important;
    padding-block: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    display: flex !important;
  }

  /* Homepage hero: Solutions2 section starts at bottom of viewport, title peeks out */
  main .hero-centered:first-of-type {
    min-height: calc(100vh - 60px - 1vh) !important;
    height: calc(100vh - 60px - 1vh) !important;
  }

  .mt-header.hero-centered {
    padding-top: 0 !important;
  }

  .hero-centered .hero-card {
    margin: 0 !important;
    padding-block: 32px !important;
    padding-inline: 0 !important;
    width: 100%;
    max-width: 100%;
    position: relative;
    z-index: 1;
  }

  .hero h1 {
    font-size: clamp(0.85rem, 2.5vw, 2rem) !important;
    line-height: 1.2 !important;
    min-height: auto !important;
    margin-bottom: 16px !important;
  }

  .hero-pill {
    padding: 6px 14px 6px 12px;
    font-size: 0.85rem;
    gap: 8px;
    margin-bottom: 14px;
  }

  .hero-pill-icon svg {
    width: 14px;
    height: 14px;
  }

  .hero-pill-arrow svg {
    width: 12px;
    height: 12px;
  }

  .sub {
    font-size: clamp(1rem, 4vw, 1.25rem) !important;
    line-height: 1.6 !important;
    margin-bottom: 24px !important;
  }

  .cta-row {
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
  }

  .btn {
    width: 100%;
    padding: 14px 20px;
    font-size: 0.95rem;
    justify-content: center;
  }

  .section-edge-to-edge .panel {
    padding: 20px 16px !important;
    border-radius: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
  }

  .section-title {
    font-size: clamp(1.5rem, 6vw, 2rem) !important;
    margin-bottom: 24px !important;
  }

  /* Trusted logos carousel mobile */
  .trusted-logos-carousel {
    padding: 12px 0;
    min-height: 60px;
    display: block !important;
    visibility: visible !important;
  }

  .trusted-logos-track {
    gap: 48px;
    display: flex !important;
    visibility: visible !important;
    min-height: 50px;
  }

  .trusted-logo {
    width: 120px !important;
    height: 50px !important;
    display: flex !important;
    visibility: visible !important;
    opacity: 0.85 !important;
  }

  .trusted-logo img {
    max-height: 50px !important;
    max-width: 120px !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .trusted-logos-carousel {
    mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  }

  /* Metrics section */
  section[aria-label="Metrics"] {
    margin-top: 60px !important;
    padding-top: 40px !important;
    padding-bottom: 40px !important;
    clear: both;
  }

  .metrics-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px;
    margin: 24px 0 !important;
    width: 100%;
    max-width: 100%;
  }

  .metric-card {
    padding: 20px 16px !important;
    background: rgba(18, 18, 18, 0.75) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    position: relative !important;
    display: block !important;
  }

  .metric-number {
    font-size: clamp(2rem, 8vw, 2.5rem) !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: transparent !important;
    background: linear-gradient(135deg, var(--primary), var(--primary-light)) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
  }

  .metric-label {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: var(--text-light) !important;
  }

  /* Sections spacing - prevent overlaps */
  section {
    margin-top: 60px !important;
    padding: 40px 0 !important;
    position: relative !important;
    z-index: 1;
    clear: both;
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  section:first-of-type {
    margin-top: 0 !important;
  }

  /* Prevent any section from overlapping */
  section + section {
    margin-top: 60px !important;
  }

  main.page-contact section + section {
    margin-top: 28px !important;
  }

  /* Specific spacing for homepage sections - normal flow like other pages */
  .hero-centered {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }

  .trusted-above-footer {
    margin-top: 60px !important;
    padding-top: 24px !important;
    padding-bottom: 32px !important;
  }

  /* Homepage: 50% more padding between sections (tablet) */
  main:has(.hero-home) section:not(:first-of-type) {
    margin-top: 90px !important; /* 50% more than 60px */
  }
  main:has(.hero-home) .trusted-above-footer {
    margin-top: 90px !important;
    padding-top: 36px !important;
    padding-bottom: 48px !important;
  }
  main:has(.hero-home) section.container {
    margin-top: 75px !important; /* 50% more than 50px */
  }
  main:has(.hero-home) section.container + section.container {
    margin-top: 75px !important;
  }

  section[aria-label="Metrics"] {
    margin-top: 60px !important;
    padding-top: 40px !important;
  }

  /* Homepage sections - normal flow like other pages */
  .hero-centered {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }

  .hero-centered ~ section[aria-label="Metrics"] {
    margin-top: 60px !important;
    padding-top: 40px !important;
    padding-bottom: 40px !important;
    clear: both;
    position: relative;
    z-index: 1;
  }

  /* Container padding */
  .container {
    padding-inline: clamp(16px, 4vw, 24px) !important;
  }

  /* Panel padding */
  .panel {
    padding: 24px 20px !important;
  }

  /* Grid layouts */
  .services-grid {
    grid-template-columns: 1fr !important;
    gap: 20px;
    width: 100%;
    max-width: 100%;
  }

  .solutions-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    width: 100%;
    max-width: 100%;
  }

  .solutions-grid .service-card {
    width: 100% !important;
    max-width: 100% !important;
  }

  .service-card {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 24px 20px !important;
    margin: 0 !important;
  }

  .two-col-grid {
    grid-template-columns: 1fr !important;
    gap: 24px;
  }

  /* All pages - fix first section padding */
  main section:first-of-type:not(.hero-centered) {
    padding-top: 120px !important;
    margin-top: 0 !important;
  }

  .mt-header {
    padding-top: 120px !important;
  }

  main.page-our-partners section.hero.mt-header:first-of-type {
    padding-top: 165px !important;
  }

  /* Homepage hero stays viewport-centered */
  .hero-centered.mt-header {
    padding-top: 0 !important;
  }

  /* Ensure all sections have proper spacing */
  section.container {
    margin-top: 50px !important;
    padding: 32px 0 !important;
    clear: both;
    display: block;
    width: 100%;
    box-sizing: border-box;
  }

  section.container:first-of-type {
    margin-top: 0 !important;
  }

  section.container + section.container {
    margin-top: 50px !important;
  }

  /* Homepage: 50% more (tablet) */
  main:has(.hero-home) section.container {
    margin-top: 75px !important;
    padding: 48px 0 !important;
  }
  main:has(.hero-home) section.container + section.container {
    margin-top: 75px !important;
  }

  /* Contact page: keep small gap between hero and cards (match gap between the two cards) */
  main.page-contact section.container + section.container {
    margin-top: 28px !important;
    padding-top: 0 !important;
  }

  /* Footer */
  footer {
    padding: 40px 20px 24px;
  }

  .footer-content {
    flex-direction: column;
    gap: 32px;
  }

  .footer-section {
    width: 100%;
  }

  /* Header adjustments */
  header {
    padding: 12px 16px;
  }

  .brand-img {
    height: 44px;
  }

  /* Logo sizing (mobile) */
  header .brand-img {
    height: 55px; /* +25% from 44px */
  }

  footer .brand-img {
    height: 77px; /* +75% from 44px */
  }
}

/* Small mobile devices */
@media (max-width: 520px) {
  .container {
    padding-inline: 16px !important;
  }

  .hero-card {
    padding-block: 24px !important;
    padding-inline: 0 !important;
    border-radius: 16px;
  }

  .hero-pill {
    padding: 6px 12px 6px 10px;
    font-size: 0.8rem;
    gap: 6px;
    margin-bottom: 12px;
  }

  .hero-pill-icon svg {
    width: 13px;
    height: 13px;
  }

  .hero-pill-arrow svg {
    width: 11px;
    height: 11px;
  }

  .hero h1 {
    font-size: clamp(0.7rem, 3vw, 1.1rem) !important;
    margin-bottom: 12px !important;
  }

  .sub {
    font-size: clamp(0.95rem, 4vw, 1.1rem) !important;
    margin-bottom: 20px !important;
  }

  .cta-row {
    gap: 10px;
    margin-top: 20px;
  }

  .btn {
    padding: 12px 18px;
    font-size: 0.9rem;
  }

  .hero-centered {
    padding-bottom: 0 !important;
  }

  .trusted-above-footer {
    margin-top: -100px !important;
    padding-top: 132px !important;
    padding-bottom: 28px !important;
  }

  .hero-centered ~ section[aria-label="Metrics"] {
    margin-top: 50px !important;
    padding-top: 32px !important;
    padding-bottom: 32px !important;
    clear: both;
  }

  .section-edge-to-edge .panel {
    padding: 16px 12px !important;
  }

  .trusted-logo {
    width: 100px;
    height: 45px;
  }

  .trusted-logos-track {
    gap: 32px;
  }

  .trusted-logos-carousel {
    mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
  }

  /* Metrics small mobile */
  .metrics-grid {
    grid-template-columns: 1fr !important;
    gap: 12px;
    margin: 20px 0 !important;
  }

  .metric-card {
    padding: 16px 12px !important;
    background: rgba(18, 18, 18, 0.75) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    display: block !important;
  }

  .metric-number {
    font-size: clamp(1.75rem, 7vw, 2.25rem) !important;
    display: block !important;
    visibility: visible !important;
  }

  .metric-label {
    display: block !important;
    visibility: visible !important;
  }

  /* Sections */
  section {
    margin-top: 40px !important;
    padding: 32px 0 !important;
    clear: both;
    display: block;
    width: 100%;
  }

  /* Contact page: same small gap at 520px and below */
  main.page-contact section:first-of-type {
    padding-bottom: 0 !important;
  }
  main.page-contact section + section {
    margin-top: 28px !important;
  }
  main.page-contact section.container + section.container {
    margin-top: 28px !important;
    padding-top: 0 !important;
  }

  .trusted-above-footer {
    margin-top: 40px !important;
    padding-top: 16px !important;
    padding-bottom: 24px !important;
  }

  /* Homepage: 50% more padding between sections (small mobile); trusted keeps overlap layout */
  main:has(.hero-home) section {
    margin-top: 60px !important;
    padding: 48px 0 !important;
  }

  .hero-centered ~ section[aria-label="Metrics"] {
    margin-top: 50px !important;
  }

  /* Service cards */
  .service-card {
    padding: 20px 16px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
  }

  .service-card h3 {
    font-size: clamp(1.25rem, 5vw, 1.5rem) !important;
  }

  .service-tagline {
    font-size: clamp(0.9rem, 3vw, 1rem) !important;
  }

  /* Panel */
  .panel {
    padding: 20px 16px !important;
    border-radius: 16px;
  }

  /* Footer small mobile */
  footer {
    padding: 32px 16px 20px;
    font-size: 0.9rem;
  }

  .footer-nav {
    flex-direction: column;
    gap: 16px;
  }
}

/* Very small devices */
@media (max-width: 360px) {
  .hero-card {
    padding-block: 20px !important;
    padding-inline: 0 !important;
  }

  .hero h1 {
    font-size: clamp(0.65rem, 3.2vw, 1rem) !important;
  }

  .trusted-logo {
    width: 80px !important;
    height: 40px !important;
  }

  .trusted-logo img {
    max-height: 40px !important;
    max-width: 80px !important;
  }

  .trusted-logos-track {
    gap: 24px;
  }

  .container {
    padding-inline: 12px !important;
  }

  .panel {
    padding: 16px 12px !important;
  }

  .metric-card {
    padding: 14px 10px !important;
  }

  .service-card {
    padding: 18px 14px !important;
  }
}

/* Ensure logos are visible even if animation fails */
.trusted-logos-track {
  display: flex !important;
  visibility: visible !important;
}

.trusted-logo {
  display: flex !important;
  visibility: visible !important;
}

.trusted-logo img {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Fix for metrics showing as plain text */
.metric-number {
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  -webkit-background-clip: text !important;
}

/* Ensure all text is visible */
.metric-label,
.section-title,
h1, h2, h3, h4, h5, h6 {
  color: var(--text-light) !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Form inputs - prevent iOS zoom on focus */
input, textarea, select {
  font-size: 16px;
  -webkit-appearance: none;
  border-radius: 8px;
}

/* Touch targets - ensure minimum 44x44px for mobile */
@media (max-width: 940px) {
  a, button, .btn {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* Non-homepage pages mobile padding */
  main section:first-of-type:not(.hero-centered) {
    padding-top: 120px !important;
  }

  .mt-header {
    padding-top: 120px !important;
  }

  main.page-our-partners section.hero.mt-header:first-of-type {
    padding-top: 165px !important;
  }

  /* Service cards mobile */
  .service-card {
    padding: 24px 20px;
  }

  .service-icon {
    width: 48px;
    height: 48px;
  }

  /* Cards mobile */
  .card {
    padding: 20px 16px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .card h3 {
    font-size: clamp(1.1rem, 4vw, 1.3rem) !important;
  }

  .card p {
    font-size: clamp(0.9rem, 3vw, 1rem) !important;
  }

  /* Forms mobile */
  form {
    width: 100%;
  }

  input[type="text"],
  input[type="email"],
  input[type="tel"],
  textarea,
  select {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
  }

  /* Footer mobile */
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

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

/* Hero headline first line kept on one line via .hero-headline-oneline; no balance */

/* Large screen optimizations */
@media (min-width: 1400px) {
  .container {
    padding-inline: clamp(48px, 5vw, 80px);
  }
  
  .hero-card {
    max-width: 100%;
  }
  
  
  .two-col-grid {
    gap: 48px;
  }
}

@media (min-width: 1800px) {
  .container {
    padding-inline: clamp(64px, 6vw, 120px);
  }
  
  .hero-card {
    max-width: 100%;
  }
}

/* ============================================
   CONTACT PAGE: Hero-to-cards gap (last in file to win cascade)
   ============================================ */
main.page-contact section:first-of-type,
main.page-contact section.container.mt-header {
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}
main.page-contact section.container + section.container,
main.page-contact section + section {
  margin-top: 28px !important;
  padding-top: 0 !important;
}
main.page-contact .container + .container .contact-grid {
  margin-top: 0 !important;
}
main.page-contact .contact-grid .panel {
  margin-top: 0 !important;
}

/* ============================================
   MOBILE HOMEPAGE FIXES (≤940px)
   Ensures hero wrap, solutions transparent, industries stacked.
   Duplicated here so they always win the cascade.
   ============================================ */
@media (max-width: 940px) {
  /* Hero: full message visible, no cut-off */
  .hero-headline-oneline {
    white-space: normal !important;
    display: block !important;
  }
  .hero-centered .hero-card,
  .hero-centered .hero-title-blur-card {
    overflow: visible !important;
    min-height: 0 !important;
  }
  .hero-centered {
    overflow: visible !important;
    align-items: flex-start !important;
    padding-top: 1rem !important;
    padding-bottom: 1.5rem !important;
  }
  .hero-title-blur-card h1,
  main .hero-centered h1 {
    font-size: min(1.75rem, 4.5vw + 1rem) !important;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  .hero-title-blur-card .sub,
  main .hero-centered .sub {
    font-size: min(1rem, 2.5vw + 0.8rem) !important;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  /* Solutions section: transparent background on mobile */
  .solutions2-section {
    background: transparent !important;
  }
  .solutions2-bg-grid-wrap {
    opacity: 0.15;
  }

  /* Industries: stacked cards instead of slideshow */
  .industries-test-blades {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    flex-direction: column !important;
    gap: 0;
  }
  .industries-test-blade {
    flex: 0 0 auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    border-right: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    cursor: default;
    background: rgba(18, 18, 22, 0.85);
  }
  .industries-test-blade:last-of-type {
    border-bottom: none;
  }
  .industries-test-blade .industries-test-blade-v {
    display: none !important;
  }
  .industries-test-blade .industries-test-blade-h {
    display: block !important;
    opacity: 1 !important;
    position: relative !important;
    left: 0 !important;
    top: 0 !important;
    font-size: 1.35rem;
    padding: 1rem 1.25rem 0.5rem;
  }
  .industries-test-blade .industries-test-blade-content {
    display: flex !important;
    opacity: 1 !important;
    padding: 0 1.25rem 1.25rem;
    padding-top: 0.5rem;
  }
  .industries-test-blade .industries-test-blade-bg {
    opacity: 0;
  }
  .industries-test-blade .industries-test-blade-overlay {
    display: none;
  }
  .industries-test-blade-content p {
    font-size: 0.95rem;
  }
  .industries-test-blade-pills {
    margin-bottom: 12px;
  }
  .industries-test-blade-pill {
    font-size: 0.75rem;
    padding: 6px 12px;
  }
  .industries-test-dots {
    display: none !important;
  }
}

