/* Jet Set Bio - Sophisticated Design System */
:root {
  /* Primary - Professional Blue */
  --primary: #1E40AF;          /* Professional blue */
  --primary-light: #3B82F6;    /* Lighter blue for interactions */
  --primary-dark: #1E3A8A;     /* Deep blue for depth */
  
  /* Secondary - Elegant Teal */
  --secondary: #0891B2;        /* Sophisticated teal */
  --secondary-light: #0EA5E9;  /* Light teal for highlights */
  
  /* Accent - Deep Purple */
  --accent: #7C3AED;           /* Sophisticated purple accent */
  --accent-light: #8B5CF6;     /* Light purple for highlights */
  
  /* Neutrals - Refined */
  --surface: #FFFFFF;          /* Pure white */
  --surface-elevated: #F8FAFC; /* Subtle elevation */
  --surface-muted: #F1F5F9;    /* Background sections */
  
  --text-primary: #1E293B;     /* Rich dark text */
  --text-secondary: #475569;   /* Medium gray */
  --text-muted: #64748B;       /* Light gray */
  
  /* Functional */
  --border: #E2E8F0;           /* Hairline borders */
  --border-strong: #CBD5E0;    /* Defined borders */
  --shadow-soft: 0 2px 4px rgba(30,64,175,0.08), 0 8px 16px rgba(30,64,175,0.04);
  --shadow-strong: 0 4px 12px rgba(30,64,175,0.12), 0 16px 32px rgba(30,64,175,0.08);
  
  /* Tighter Spacing System */
  --space-xs: 6px;
  --space-sm: 10px;
  --space-md: 16px;
  --space-lg: 20px;
  --space-xl: 24px;
  --space-2xl: 32px;
  --space-3xl: 48px;
  --space-4xl: 64px;
  --space-5xl: 80px;
  
  --radius: 6px;
}

/* Base */
html, body { height: 100%; }
body { 
  background: var(--surface); 
  color: var(--text-primary);
  font-family: 'Montserrat', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 18px;
  line-height: 1.65;
  font-weight: 400;
}
img { max-width: 100%; height: auto; display: block; }

/* Container System */
.container { max-width: 1200px; margin-inline: auto; padding-inline: var(--space-xl); }
.container-narrow { max-width: 768px; margin-inline: auto; padding-inline: var(--space-xl); }
.container-wide { max-width: 1440px; margin-inline: auto; padding-inline: var(--space-xl); }
.skip-link { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.skip-link:focus { left: 8px; top: 8px; width: auto; height: auto; background: #fff; padding: 8px 12px; border-radius: 6px; box-shadow: 0 4px 10px rgba(0,0,0,0.15); }

/* Screen reader only content */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Header - Fixed Position for Reliable Sticking */
header.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
  min-height: 60px;
}
header.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: var(--space-lg) 0;
  position: relative;
}
header.site-header.scrolled {
  background: rgba(255,255,255,0.98);
  box-shadow: var(--shadow-strong);
  border-bottom: 1px solid var(--border-strong);
}

/* Mobile hamburger menu */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 24px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 60;
}

.hamburger-line {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 1px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}

/* Hamburger animation */
.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}
.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
}
.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Desktop fixed header enhancements */
@media (min-width: 769px) {
  header.site-header {
    background: rgba(255,255,255,0.92);
  }
  
  header.site-header.scrolled {
    background: rgba(255,255,255,0.98);
    backdrop-filter: saturate(180%) blur(25px);
  }
  
  .site-header.scrolled .inner { 
    padding: 16px 0; 
  }
  
  /* Adjust body padding for desktop */
  body {
    padding-top: 85px; /* Slightly more padding for desktop */
  }
}

/* Navigation */
nav ul {
  display: flex;
  gap: var(--space-xl);
  list-style: none;
  margin: 0;
  padding: 0;
}
nav a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 16px;
  padding: var(--space-sm) var(--space-md);
  border-radius: 8px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
nav a:hover {
  color: var(--primary);
  background: var(--surface-elevated);
  text-decoration: none;
}

/* Badges */
.badges {
  background: var(--surface-elevated);
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}
.strip {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}
.badge {
  background: var(--surface);
  color: var(--text-secondary);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  border: 1px solid var(--border);
  white-space: nowrap;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.badge:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

/* Typography - Premium Hierarchy */
h1 {
  font-size: clamp(48px, 8vw, 72px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin: 0 0 var(--space-lg);
}
h2 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin: 0 0 var(--space-md);
}
h3 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-primary);
  margin: 0 0 var(--space-sm);
}

.body-large {
  font-size: 20px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.label {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

/* Sections - Generous Spacing */
.section { padding: 80px 0 120px; }
.section h2 { 
  position: relative;
  margin-bottom: var(--space-md);
  color: var(--primary);
}
.section h2::after { 
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: var(--primary);
  border-radius: var(--radius);
  margin-top: var(--space-md);
}
.sub { 
  font-size: 20px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0 0 60px;
  max-width: 800px;
}

/* Section backgrounds - Clean Industry Standard */
.section.what-we-do { 
  background: var(--surface);
}
.section.regulatory { 
  background: var(--surface-elevated);
}
.section.capabilities {
  background: var(--surface);
}
.section.contact { 
  background: var(--surface-elevated);
}
.section.proof { 
  background: var(--surface);
}

/* Hero Section - Clean & Professional */
.hero {
  position: relative;
  background: var(--surface);
  padding: 120px 0 140px;
  overflow: hidden;
  color: var(--text-primary);
}
.hero .container {
  position: relative;
  z-index: 2;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-4xl);
  align-items: center;
}
.hero .copy h1 {
  color: var(--text-primary);
  margin-bottom: 32px;
}
.hero .copy .body-large {
  margin-bottom: 48px;
  max-width: 600px;
  color: var(--text-secondary);
  font-size: 22px;
  line-height: 1.6;
}
.hero .actions {
  display: flex;
  gap: var(--space-lg);
  align-items: center;
}
.hero .art {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-strong);
  width: 100%;
  height: 450px;
  background: var(--surface-muted);
}
.hero .art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.hero .art:hover img {
  transform: scale(1.02);
}

/* Cards & Grids - Generous */
.grid { 
  display: grid; 
  gap: 40px; 
  margin-top: 60px;
}
.cards-3x2 { grid-template-columns: repeat(3, 1fr); }
.cards-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.card .product-list {
  margin-top: var(--space-md);
  padding: 0;
  list-style: none;
}

.card .product-list li {
  padding: var(--space-xs) 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 14px;
  color: var(--text-secondary);
  position: relative;
  padding-left: var(--space-md);
}

.card .product-list li:last-child {
  border-bottom: none;
}

.card .product-list li::before {
  content: '•';
  color: var(--primary);
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* Therapeutic Areas */
.therapeutic-areas {
  margin: var(--space-xl) 0;
  padding: var(--space-xl);
  background: var(--surface-elevated);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.therapeutic-areas h3 {
  text-align: center;
  margin-bottom: var(--space-lg);
  color: var(--text-primary);
}

.therapy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-md);
}

.therapy-area {
  padding: var(--space-md);
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  text-align: center;
  transition: all 0.3s ease;
}

.therapy-area:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.therapy-area strong {
  display: block;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.therapy-area span {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-strong);
  border-color: var(--primary-light);
}
.card:hover::before {
  transform: scaleX(1);
}

/* Card image container */
.card .thumb {
  width: 100%;
  height: 280px;
  overflow: hidden;
  background: var(--surface-muted);
  position: relative;
}
.card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.card:hover .thumb img {
  transform: scale(1.03);
}

/* Card content */
.card h3 {
  margin: 0;
  padding: 32px 32px 16px;
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}
.card p {
  margin: 0;
  padding: 0 32px 32px;
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 16px;
}
.card h3 .material-symbols-rounded {
  margin-right: var(--space-md);
  font-size: 24px;
  color: var(--primary);
  vertical-align: -3px;
}

/* Checklist - Premium */
.checklist {
  display: grid;
  gap: var(--space-md);
  padding-left: 0;
  list-style: none;
}
.checklist li {
  position: relative;
  padding-left: var(--space-xl);
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-secondary);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  box-shadow: var(--shadow-soft);
}
.checklist li::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 11px;
  width: 8px;
  height: 4px;
  border: 2px solid var(--surface);
  border-top: 0;
  border-right: 0;
  transform: rotate(-45deg);
}

/* Two column */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.icon-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.icon-list .material-symbols-rounded { display: inline-block; width: 22px; text-align: center; margin-right: 8px; vertical-align: -3px; color: var(--primary-dark); }
.cap-image { 
  margin: 0 0 60px; 
  border-radius: var(--radius); 
  overflow: hidden; 
  border: 1px solid var(--border);
  width: 100%;
  height: 400px;
  background: var(--surface-muted);
  box-shadow: var(--shadow-soft);
}
.cap-image img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
  display: block;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.cap-image:hover img {
  transform: scale(1.02);
}

/* Methods table */
.tiny { width: 100%; border-collapse: collapse; }
.tiny th, .tiny td { text-align: left; font-size: .95rem; padding: 8px 10px; border-bottom: 1px solid #E6ECF2; }
.tiny th { width: 140px; white-space: nowrap; color: var(--primary-dark); }

/* Testimonials - Bold */
.quotes {
  display: grid;
  gap: var(--space-xl);
  grid-template-columns: repeat(3, 1fr);
  margin-top: var(--space-xl);
}
.quotes blockquote {
  margin: 0;
  padding: var(--space-xl);
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.5;
  font-style: italic;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}
.quotes blockquote::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--primary) 0%, transparent 100%);
  opacity: 0.1;
}
.quotes blockquote:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-strong);
  border-left-color: var(--secondary);
}
.quote-author {
  margin-top: var(--space-md);
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-style: normal;
}

/* Contact - Premium */
.contact .field {
  display: grid;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}
.contact label {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 16px;
}
.contact input,
.contact select,
.contact textarea {
  font: inherit;
  padding: var(--space-md);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text-primary);
  font-size: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.contact input:focus,
.contact select:focus,
.contact textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(27, 54, 93, 0.1);
}
.contact .hint {
  color: var(--text-muted);
  font-size: 14px;
}
.contact .error {
  color: #DC2626;
  font-size: 14px;
  font-weight: 500;
  min-height: 1em;
}
.contact .note {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: var(--space-md);
}
.contact .success {
  color: #059669;
  font-weight: 600;
}
.contact .contact-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: var(--space-lg);
}
.contact .contact-list li {
  font-size: 18px;
  line-height: 1.6;
}
.contact .contact-list strong {
  color: var(--text-primary);
  font-weight: 600;
  display: block;
  margin-bottom: var(--space-xs);
}

/* Footer */
.site-footer {
  background: var(--surface-elevated);
  border-top: 1px solid var(--border);
  padding: var(--space-xl) 0;
  text-align: center;
  color: var(--text-secondary);
}

.site-footer .attribution {
  margin-top: var(--space-sm);
  font-size: 14px;
  color: var(--text-muted);
}

.site-footer .attribution a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.site-footer .attribution a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}
.site-footer p {
  margin: 0;
  font-size: 16px;
  position: relative;
  z-index: 1;
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary);
  color: white;
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 1000;
  font-weight: 600;
}
.skip-link:focus {
  top: 6px;
}

/* Buttons - Refined */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  min-height: 44px;
}
.btn-primary {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: var(--shadow-soft);
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-strong);
  text-decoration: none;
}
.btn-ghost {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
  padding: 10px 20px;
}
.btn-ghost:hover {
  background: var(--primary);
  color: white;
  text-decoration: none;
}

/* Scroll-triggered animations - Simplified and reliable */
.fade-in {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .fade-in {
    transition: opacity 0.3s ease;
    transform: none;
  }
  .fade-in.visible {
    transform: none;
  }
  
  .card:hover,
  .hero .art:hover img,
  .card:hover .thumb img {
    transform: none;
  }
  
  .btn:hover {
    transform: none;
  }
}

.slide-in-left {
  opacity: 1;
  transform: translateX(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.slide-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-right {
  opacity: 1;
  transform: translateX(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.slide-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.stagger-children.visible > * {
  opacity: 1;
  transform: translateY(0);
}
.stagger-children.visible > *:nth-child(1) { transition-delay: 0ms; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 100ms; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 200ms; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 300ms; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 400ms; }
.stagger-children.visible > *:nth-child(6) { transition-delay: 500ms; }

/* Enhanced micro-interactions */
.btn {
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}
.btn:active::after {
  width: 300px;
  height: 300px;
}

/* Sophisticated card interactions */
.card {
  cursor: pointer;
}
.card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  opacity: 0;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  border-radius: var(--radius);
}
.card:hover::after {
  opacity: 0.02;
}

/* Premium badge animations */
.badge {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: default;
}
.badge:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
  background: var(--primary);
  color: var(--surface);
}

/* Loading skeleton states */
.skeleton {
  background: linear-gradient(90deg, var(--surface-muted) 25%, var(--surface-elevated) 50%, var(--surface-muted) 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}
@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Removed conflicting header styles that override sticky positioning */

/* Parallax hero effect */
.hero {
  overflow: hidden;
}
.hero .art {
  transform: translateZ(0);
  will-change: transform;
}

/* Enhanced testimonials */
.quotes blockquote {
  position: relative;
  overflow: hidden;
}
.quotes blockquote::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-light) 100%);
  transform: scaleY(0);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.quotes blockquote:hover::after {
  transform: scaleY(1);
}

/* Mobile Responsive - Enhanced with Hamburger Menu */
@media (max-width: 768px) {
  /* Show hamburger menu */
  .mobile-menu-toggle {
    display: flex;
  }
  
  /* Hide desktop CTA button on mobile */
  .header-cta {
    display: none;
  }
  
  /* Mobile navigation */
  .main-nav {
    position: fixed;
    top: 80px; /* Position below fixed header */
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-soft);
    z-index: 999; /* Just below header */
  }
  
  .main-nav.mobile-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: var(--space-lg) 0;
  }
  
  .main-nav ul li {
    border-bottom: 1px solid var(--border);
  }
  
  .main-nav ul li:last-child {
    border-bottom: none;
  }
  
  .main-nav ul li a {
    display: block;
    padding: var(--space-md) var(--space-xl);
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s ease;
  }
  
  .main-nav ul li a:hover {
    background: var(--surface-elevated);
    color: var(--primary);
  }
  
  /* Mobile hero adjustments */
  .hero {
    padding: 60px 0 80px;
  }
  .hero .wrap { 
    grid-template-columns: 1fr; 
    gap: 40px; 
    text-align: center; 
  }
  .hero .art { 
    order: -1; 
    max-width: 400px; 
    margin: 0 auto; 
  }
  .hero .copy h1 {
    font-size: clamp(32px, 8vw, 48px);
  }
  .hero .copy .body-large {
    font-size: 18px;
  }
  
  .section {
    padding: 60px 0 80px;
  }
  
  .cards-3 { 
    grid-template-columns: 1fr; 
    gap: 24px;
  }
  .cards-3x2 { 
    grid-template-columns: 1fr; 
    gap: 24px;
  }
  .two-col { 
    grid-template-columns: 1fr; 
    gap: var(--space-lg); 
  }
  .quotes { 
    grid-template-columns: 1fr; 
    gap: 24px;
  }
  
  .container {
    padding-inline: 20px;
  }
  
  .card .thumb {
    height: 200px;
  }
  
  .cap-image {
    height: 250px;
  }
}

/* Responsive */
@media (max-width: 900px) {
  .cards-3x2, .cards-3 { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .quotes { grid-template-columns: 1fr; }
  
  /* Adjust hero layout on mobile */
  .hero .wrap {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }
  .hero .art {
    min-height: 300px;
    aspect-ratio: 16/9;
  }
  
  /* Reduce motion on mobile */
  .fade-in, .slide-in-left, .slide-in-right {
    transform: none;
    opacity: 1;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: var(--space-3xl) 0;
  }
  .hero .art {
    min-height: 250px;
  }
  .card .thumb {
    aspect-ratio: 3/2;
  }
}

/* Accessibility & motion */
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 4px; }
@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;
  }
  .fade-in, .slide-in-left, .slide-in-right, .stagger-children > * {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Material Symbols font adjustments */
.material-symbols-rounded {
  font-variation-settings: 'FILL' 0, 'wght' 500, 'GRAD' 0, 'opsz' 24;
  font-size: 20px;
  line-height: 1;
}

/* Enhanced focus styles for accessibility */
.btn:focus-visible,
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link:focus-visible {
  outline: 3px solid white;
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .card {
    border: 2px solid var(--text-primary);
  }
  
  .badge {
    border: 2px solid var(--text-primary);
    background: var(--surface);
    color: var(--text-primary);
  }
  
  .btn {
    border-width: 3px;
  }
  
  .site-header {
    border-bottom: 2px solid var(--text-primary);
  }
}

/* Performance optimizations - Removed will-change to fix display issues */

/* Ensure smooth scrolling with fixed header offset and proper positioning */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px; /* Account for fixed header height + margin */
  height: 100%;
}

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

body {
  margin: 0;
  padding: 0;
  padding-top: 80px; /* Account for fixed header height */
  min-height: 100%;
  position: static;
  overflow-x: hidden; /* Prevent horizontal scroll */
}
