/* ==========================================================================
   Cross Corporation - Design System & Master Stylesheet
   Version: 1.0.0
   Strict Constraint: Browser-native Vanilla CSS. Zero Node/npm build dependencies.
   Palette: Deep Obsidian, Royal Pharma Blue, Scientific Amber, Crisp Slate
   ========================================================================== */

/* Font families Inter & Outfit are loaded in parallel via HTML <link> tags with preconnect */

/* --- CSS Variables & Design Tokens --- */
:root {
  /* Color System - Lighter, Illuminated Executive Slate & Sapphire */
  --bg-darkest: #1a253c;
  --bg-primary: #223252;
  --bg-secondary: #2c3f66;
  --bg-tertiary: #384e7c;
  --bg-card: rgba(44, 63, 102, 0.75);
  --bg-card-hover: rgba(56, 80, 126, 0.88);
  --bg-card-solid: #2b3e64;
  --bg-glass: rgba(38, 55, 88, 0.68);
  --bg-glass-blur: blur(16px);
  
  /* Accent Colors */
  --accent-blue: #3b82f6;
  --accent-blue-light: #93c5fd;
  --accent-blue-glow: rgba(59, 130, 246, 0.42);
  --accent-gold: #eab308;
  --accent-gold-light: #fcd34d;
  --accent-gold-glow: rgba(234, 179, 8, 0.35);
  --accent-cyan: #22d3ee;
  --accent-emerald: #34d399;
  
  /* Text Colors */
  --text-primary: #ffffff;
  --text-secondary: #e2e8f0;
  --text-muted: #a0aec0;
  --text-inverse: #0f172a;
  
  /* Borders & Dividers */
  --border-subtle: rgba(255, 255, 255, 0.16);
  --border-medium: rgba(255, 255, 255, 0.28);
  --border-accent: rgba(59, 130, 246, 0.5);
  --border-gold: rgba(234, 179, 8, 0.45);
  
  /* Typography */
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4.5rem;
  --space-4xl: 6rem;
  
  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 32px var(--accent-blue-glow);
  --shadow-glow-gold: 0 0 32px var(--accent-gold-glow);
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-medium: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Base & Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-secondary);
  background-color: var(--bg-primary);
  background-image: 
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(59, 130, 246, 0.28), transparent 70%),
    radial-gradient(ellipse 60% 45% at 85% 50%, rgba(234, 179, 8, 0.12), transparent 60%),
    linear-gradient(180deg, #223252 0%, #18253d 100%);
  background-attachment: fixed;
  overflow-x: hidden;
  max-width: 100%;
  min-height: 100vh;
  padding-top: 74px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--text-primary);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.005em;
  word-spacing: 0.16em;
}

h1 {
  font-size: clamp(2.4rem, 5vw + 1rem, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  word-spacing: 0.22em;
}

h2 {
  font-size: clamp(1.8rem, 3.2vw + 0.5rem, 2.8rem);
  letter-spacing: -0.01em;
  word-spacing: 0.18em;
}

h3 {
  font-size: clamp(1.3rem, 1.8vw + 0.2rem, 1.75rem);
  word-spacing: 0.14em;
}

h4 {
  font-size: 1.2rem;
}

p {
  margin-bottom: 1rem;
}

p.lead {
  font-size: clamp(1.05rem, 1.2vw + 0.5rem, 1.25rem);
  color: var(--text-secondary);
  line-height: 1.7;
}

a {
  color: var(--accent-blue-light);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

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

/* Accessible focus ring */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--accent-blue-light);
  outline-offset: 3px;
}

/* --- Layout Containers --- */
.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1.25rem, 3vw, 2.5rem);
  padding-right: clamp(1.25rem, 3vw, 2.5rem);
}

.container-wide {
  max-width: 1400px;
}

.container-narrow {
  max-width: 880px;
}

.section {
  position: relative;
  padding-top: clamp(4rem, 7vw, 7rem);
  padding-bottom: clamp(4rem, 7vw, 7rem);
  overflow: hidden;
}

.section-hero {
  padding-top: clamp(3.5rem, 6vw, 5.5rem);
  padding-bottom: clamp(3.5rem, 6vw, 5.5rem);
  min-height: calc(85vh - 75px);
  display: flex;
  align-items: center;
  position: relative;
}

.page-hero {
  padding-top: clamp(3rem, 5vw, 4.5rem) !important;
  padding-bottom: clamp(2.5rem, 4vw, 3.5rem) !important;
  min-height: auto !important;
}

/* --- Badges & Tags --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.38rem 0.9rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  background: rgba(29, 89, 209, 0.12);
  color: #60a5fa;
  border: 1px solid rgba(29, 89, 209, 0.3);
  backdrop-filter: blur(8px);
  margin-bottom: 1.25rem;
  width: fit-content;
}

.badge-gold {
  background: rgba(217, 155, 38, 0.14);
  color: #fbbf24;
  border-color: rgba(217, 155, 38, 0.35);
}

.badge-emerald {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.3);
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}

/* --- Section Headers --- */
.section-header {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

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

.section-header.text-center .badge {
  margin-left: auto;
  margin-right: auto;
}

.section-header h2 {
  margin-bottom: 1rem;
  word-spacing: 0.18em;
}

.section-header p {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.text-gradient {
  background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 50%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-blue {
  background: linear-gradient(135deg, #ffffff 10%, #60a5fa 60%, #1d59d1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-gold {
  background: linear-gradient(135deg, #ffffff 15%, #fbbf24 60%, #d99b26 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --- Buttons & CTAs --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-medium);
  text-decoration: none;
  position: relative;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #1d59d1, #1345ab);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 20px rgba(29, 89, 209, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #2563eb, #1d59d1);
  box-shadow: 0 6px 28px rgba(29, 89, 209, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  color: #ffffff;
}

.btn-gold {
  background: linear-gradient(135deg, #d99b26, #b47814);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 20px rgba(217, 155, 38, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-gold:hover {
  background: linear-gradient(135deg, #f59e0b, #d99b26);
  box-shadow: 0 6px 28px rgba(217, 155, 38, 0.6);
  transform: translateY(-2px);
  color: #ffffff;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border-color: var(--border-subtle);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-icon {
  width: 20px;
  height: 20px;
  transition: transform var(--transition-fast);
}

.btn:hover .btn-icon {
  transform: translateX(3px);
}

/* --- Cards & Bento Grid System --- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
}

.bento-card {
  position: relative;
  background: var(--bg-card);
  backdrop-filter: var(--bg-glass-blur);
  -webkit-backdrop-filter: var(--bg-glass-blur);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: clamp(1.5rem, 2.5vw, 2.25rem);
  transition: all var(--transition-medium);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.bento-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  pointer-events: none;
}

.bento-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-medium);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md), 0 0 30px rgba(29, 89, 209, 0.12);
}

.bento-card.border-gold:hover {
  border-color: var(--border-gold);
  box-shadow: var(--shadow-md), 0 0 30px rgba(217, 155, 38, 0.12);
}

/* Col spans */
.col-12 { grid-column: span 12; }
.col-8  { grid-column: span 8; }
.col-7  { grid-column: span 7; }
.col-6  { grid-column: span 6; }
.col-5  { grid-column: span 5; }
.col-4  { grid-column: span 4; }
.col-3  { grid-column: span 3; }

/* Card Elements */
.card-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(29, 89, 209, 0.14);
  border: 1px solid rgba(29, 89, 209, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #60a5fa;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}

.card-icon-wrap.gold {
  background: rgba(217, 155, 38, 0.14);
  border-color: rgba(217, 155, 38, 0.3);
  color: #fbbf24;
}

.card-icon-wrap.cyan {
  background: rgba(6, 182, 212, 0.14);
  border-color: rgba(6, 182, 212, 0.3);
  color: #22d3ee;
}

.card-icon-wrap.emerald {
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(16, 185, 129, 0.3);
  color: #34d399;
}

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

.card-title {
  margin-bottom: 0.75rem;
}

.card-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--accent-blue-light);
  margin-top: auto;
}

.card-link svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-fast);
}

.card-link:hover svg {
  transform: translateX(4px);
}

/* --- Header & Navigation --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(22, 33, 56, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.75rem 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
  transition: all var(--transition-medium);
}

.site-header.scrolled {
  background: rgba(18, 27, 46, 0.98);
  border-bottom-color: rgba(59, 130, 246, 0.4);
  padding: 0.65rem 0;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.28);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  transition: transform var(--transition-fast);
}

.brand-logo:hover {
  transform: translateY(-1px);
}

.brand-emblem {
  height: 48px;
  width: 48px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.4));
  flex-shrink: 0;
}

.brand-text-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.03em;
  color: #ffffff;
  line-height: 1.05;
  margin: 0;
  padding: 0;
  white-space: nowrap;
}

.brand-motto {
  font-family: var(--font-body);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #93c5fd;
  font-weight: 700;
  margin-top: 2px;
  line-height: 1.05;
  white-space: nowrap;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link:hover, .nav-link.active {
  color: #ffffff;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-blue-light), var(--accent-gold));
  border-radius: var(--radius-full);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-mobile-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-mobile-toggle svg {
  width: 22px;
  height: 22px;
}

/* Mobile Nav Drawer */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 85%;
  max-width: 340px;
  height: 100vh;
  background: rgba(26, 38, 64, 0.98);
  backdrop-filter: blur(24px);
  border-left: 1px solid var(--border-medium);
  z-index: 1050;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  transform: translateX(105%);
  visibility: hidden;
  transition: transform var(--transition-medium), visibility var(--transition-medium);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
}

.mobile-nav-drawer.open {
  transform: translateX(0);
  visibility: visible;
}

.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 1040;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-medium);
}

.mobile-nav-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2.5rem;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.mobile-nav-links .nav-link {
  font-size: 1.15rem;
  padding: 0.5rem 0;
}

/* --- 3D Canvas Styles --- */
.three-canvas-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.three-canvas-container canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

/* 2.5D Fallback Graphic for No-WebGL */
.webgl-fallback-mesh {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 75% 35%, rgba(29, 89, 209, 0.22) 0%, transparent 50%),
    radial-gradient(circle at 25% 65%, rgba(217, 155, 38, 0.12) 0%, transparent 45%);
  pointer-events: none;
  display: none;
}

.no-webgl .webgl-fallback-mesh {
  display: block;
}

/* --- Hero Section Elements --- */
.hero-content {
  position: relative;
  z-index: 10;
  max-width: 660px;
}

.hero-content h1,
.section-hero h1 {
  color: #ffffff;
  text-shadow: 0 2px 14px rgba(10, 16, 28, 0.9), 0 0 32px rgba(15, 23, 42, 0.7);
  letter-spacing: -0.01em;
  word-spacing: 0.24em;
  margin-bottom: 1.25rem;
  line-height: 1.18;
}

.hero-content p.lead,
.section-hero p.lead,
.hero-content p,
.section-hero p {
  color: #e2e8f0;
  text-shadow: 0 1px 8px rgba(10, 16, 28, 0.8);
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  margin-bottom: 2.5rem;
}

.hero-stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 2.5vw, 2.5rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
  display: flex;
  align-items: baseline;
  gap: 0.15rem;
}

.stat-number .stat-suffix {
  color: #60a5fa;
  font-size: 1.4rem;
}

.stat-number.gold .stat-suffix {
  color: #fbbf24;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
  font-weight: 500;
}

/* --- Stats Highlight Grid (Bento) --- */
.stats-banner {
  background: linear-gradient(180deg, rgba(38, 56, 92, 0.65) 0%, rgba(26, 38, 64, 0.9) 100%);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 3rem 0;
}

/* --- Therapeutic Areas Grid --- */
.therapeutic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.therapeutic-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.therapeutic-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(29, 89, 209, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.therapeutic-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(29, 89, 209, 0.12);
  color: #60a5fa;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.therapeutic-card h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #ffffff;
}

.therapeutic-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 0;
}

/* --- Dosage Forms Showcase --- */
.dosage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.dosage-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  transition: all var(--transition-fast);
}

.dosage-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-gold);
  transform: translateY(-3px);
}

.dosage-icon-box {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background: rgba(217, 155, 38, 0.12);
  color: #fbbf24;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dosage-info h4 {
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}

.dosage-info p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 0;
  line-height: 1.5;
}

/* --- Facility & Tour Cards --- */
.facility-tour-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}

.facility-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-medium);
}

.facility-card:hover {
  border-color: var(--border-medium);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.facility-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #1c2a44;
}

.facility-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.facility-card:hover .facility-image-wrap img {
  transform: scale(1.05);
}

.facility-step-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(28, 42, 70, 0.9);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #60a5fa;
  backdrop-filter: blur(8px);
}

.facility-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.facility-body h4 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.facility-body p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 0;
}

/* --- World Map / Global Network --- */
.global-map-card {
  background: radial-gradient(circle at 50% 50%, rgba(48, 70, 112, 0.5) 0%, rgba(28, 42, 70, 0.92) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: clamp(2rem, 4vw, 3.5rem);
  position: relative;
  overflow: hidden;
}

.regions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.region-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.region-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #60a5fa;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.region-countries {
  list-style: none;
  font-size: 0.82rem;
  color: var(--text-secondary);
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.75rem;
}

.region-countries li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.region-countries li::before {
  content: '▸';
  color: var(--accent-gold);
  font-size: 0.75rem;
}

/* --- Founder / Leadership Feature --- */
.founder-card {
  background: linear-gradient(135deg, rgba(42, 62, 100, 0.88) 0%, rgba(28, 42, 70, 0.96) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: grid;
  grid-template-columns: 380px 1fr;
  box-shadow: var(--shadow-lg);
}

.founder-photo-wrap {
  position: relative;
  background: #1a2742;
  overflow: hidden;
}

.founder-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.founder-badge-overlay {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  background: rgba(30, 45, 75, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-gold);
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-md);
}

.founder-badge-overlay .f-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: #ffffff;
}

.founder-badge-overlay .f-title {
  font-size: 0.78rem;
  color: #fbbf24;
  font-weight: 500;
}

.founder-content {
  padding: clamp(2rem, 3.5vw, 3rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.founder-credentials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.f-cred-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
}

.f-cred-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.f-cred-value {
  font-size: 0.92rem;
  font-weight: 600;
  color: #ffffff;
  margin-top: 0.2rem;
}

/* --- Secondary IT Section Banner --- */
.it-secondary-section {
  background: radial-gradient(ellipse 70% 50% at 50% 50%, rgba(6, 182, 212, 0.12), transparent 70%),
              linear-gradient(180deg, rgba(38, 56, 92, 0.75) 0%, rgba(25, 37, 62, 0.95) 100%);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

/* --- Forms & Contact Page --- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 2.5rem;
}

.contact-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-detail-row {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.contact-detail-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(29, 89, 209, 0.12);
  color: #60a5fa;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-detail-content h4 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.contact-detail-content p, .contact-detail-content a {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 0;
}

.manufacturing-units-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 0.5rem;
}

.unit-item {
  background: rgba(255, 255, 255, 0.02);
  border-left: 3px solid var(--accent-blue);
  padding: 0.75rem 1rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.unit-item strong {
  color: #ffffff;
  font-size: 0.88rem;
  display: block;
}

.unit-item span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Contact Form */
.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
  box-shadow: var(--shadow-lg);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.25rem;
}

.form-group.full-width {
  grid-column: span 2;
}

.form-label {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  padding: 0.85rem 1.1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: #ffffff;
  background: rgba(32, 48, 78, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-blue-light);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
  background: rgba(42, 62, 100, 0.92);
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

textarea.form-control {
  min-height: 140px;
  resize: vertical;
}

/* Anti-spam honeypot */
.hidden-field {
  display: none !important;
  visibility: hidden !important;
}

.form-status {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  display: none;
}

.form-status.success {
  display: block;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.form-status.error {
  display: block;
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* --- Footer --- */
.site-footer {
  background: #16223a;
  border-top: 1px solid var(--border-subtle);
  padding: 4.5rem 0 2rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.3fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand p {
  margin-top: 1rem;
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 320px;
}

.footer-col h5 {
  font-family: var(--font-display);
  font-size: 1rem;
  color: #ffffff;
  margin-bottom: 1.25rem;
  letter-spacing: 0.02em;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
}

/* --- Responsive Breakpoints (Mobile, Tablet, Desktop) --- */
@media (max-width: 1080px) {
  .bento-grid .col-8, .bento-grid .col-7, .bento-grid .col-6, .bento-grid .col-5, .bento-grid .col-4 {
    grid-column: span 12;
  }
  
  .founder-card {
    grid-template-columns: 1fr;
  }
  
  .founder-photo-wrap {
    aspect-ratio: 16 / 9;
    max-height: 420px;
  }
  
  .contact-layout {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .nav-desktop {
    gap: 1.25rem;
  }
}

@media (max-width: 992px) {
  .nav-desktop, .header-cta {
    display: none;
  }
  
  .nav-mobile-toggle {
    display: flex;
  }
  
  .hero-content {
    max-width: 100%;
  }
  
  .three-canvas-container {
    opacity: 0.55;
  }
}

@media (max-width: 768px) {
  body {
    padding-top: 60px;
  }

  .site-header {
    padding: 0.65rem 0;
  }

  .container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
  
  .brand-emblem {
    height: 38px;
    width: 38px;
  }
  
  .brand-logo {
    gap: 0.55rem;
  }
  
  .brand-name {
    font-size: 1.05rem;
  }
  
  .brand-motto {
    font-size: 0.54rem;
    letter-spacing: 0.12em;
  }
  
  h1, .hero-content h1, .section-hero h1 {
    font-size: clamp(1.85rem, 6vw, 2.35rem);
    line-height: 1.2;
    word-spacing: 0.16em;
    overflow-wrap: break-word;
    word-break: normal;
  }

  h2 {
    font-size: clamp(1.4rem, 4vw, 1.85rem);
    word-spacing: 0.14em;
  }

  .page-hero {
    padding-top: 2.25rem;
    padding-bottom: 2.75rem;
  }
  
  .bento-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .bento-grid > [class*="col-"] {
    grid-column: span 12 !important;
  }
  
  .hero-stats-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .form-group.full-width {
    grid-column: span 1;
  }
  
  .section-hero {
    min-height: auto;
    padding-top: 2.5rem;
    padding-bottom: 3rem;
  }
  
  .three-canvas-container {
    opacity: 0.38;
  }
}

@media (max-width: 600px) {
  .hero-stats-strip {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-cta-group .btn {
    width: 100%;
    justify-content: center;
  }
  
  .therapeutic-grid,
  .capability-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .founder-credentials-grid {
    grid-template-columns: 1fr;
  }
  
  .facility-tour-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .brand-emblem {
    height: 35px;
    width: 35px;
  }
  
  .brand-logo {
    gap: 0.45rem;
  }
  
  .brand-name {
    font-size: 0.95rem;
    letter-spacing: 0.02em;
  }
  
  .brand-motto {
    font-size: 0.48rem;
    letter-spacing: 0.09em;
  }

  .nav-mobile-toggle {
    width: 38px;
    height: 38px;
  }

  .nav-mobile-toggle svg {
    width: 20px;
    height: 20px;
  }
  
  h1, .hero-content h1, .section-hero h1 {
    font-size: clamp(1.55rem, 6.8vw, 1.95rem);
    line-height: 1.22;
    word-spacing: 0.14em;
  }
  
  .hero-badge, .section-badge {
    font-size: 0.7rem;
    padding: 0.32rem 0.8rem;
  }

  .hero-interactive-badge {
    display: none;
  }
  
  .hero-stats-strip {
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
  }

  .stat-number {
    font-size: 1.55rem;
  }

  .stat-label {
    font-size: 0.78rem;
  }
}

@media (max-width: 360px) {
  .brand-name {
    font-size: 0.88rem;
  }
  
  .brand-motto {
    font-size: 0.44rem;
  }
  
  h1, .hero-content h1, .section-hero h1 {
    font-size: 1.45rem;
  }
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .three-canvas-container {
    opacity: 0.6;
  }
}
