
/* ============================================================
   DESIGN SYSTEM & CSS TOKENS — Premium Redesign
   ============================================================ */
:root {
  --bg: #f8f9fc;
  --bg-gradient: 
    radial-gradient(ellipse at 0% 0%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 100% 0%, rgba(168, 85, 247, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 60% 100%, rgba(56, 189, 248, 0.06) 0%, transparent 50%);
  --surface: #ffffff;
  --surface-alt: #f1f5f9;
  --surface-hover: #e8ecf4;
  --text: #0c1222;
  --text-secondary: #374151;
  --muted: #6b7280;
  --muted-light: #9ca3af;
  
  --accent: #4f46e5;
  --accent-light: #818cf8;
  --accent-glow: rgba(79, 70, 229, 0.25);
  --accent-subtle: rgba(79, 70, 229, 0.07);
  --accent-warm: #d97706;
  --accent-warm-subtle: rgba(217, 119, 6, 0.08);
  --accent-sage: #059669;
  --accent-sage-subtle: rgba(5, 150, 105, 0.08);
  
  --card: #ffffff;
  --card-border: rgba(0, 0, 0, 0.06);
  --card-border-hover: rgba(79, 70, 229, 0.3);
  --glass: rgba(255, 255, 255, 0.82);
  --glass-card: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(255, 255, 255, 0.7);
  
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 28px;
  --radius-full: 9999px;
  
  --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  --shadow: 0 4px 24px -4px rgba(0, 0, 0, 0.07), 0 2px 8px -2px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 20px 50px -10px rgba(0, 0, 0, 0.12), 0 8px 20px -6px rgba(0, 0, 0, 0.06);
  --shadow-glow: 0 0 40px rgba(79, 70, 229, 0.18);
  
  --container: 1200px;
  --serif: 'Outfit', system-ui, sans-serif;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', 'Fira Code', monospace;
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-spring: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

[data-theme="dark"] {
  --bg: #0a0e1a;
  --bg-gradient: 
    radial-gradient(ellipse at 0% 0%, rgba(79, 70, 229, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 100% 0%, rgba(168, 85, 247, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 100%, rgba(56, 189, 248, 0.08) 0%, transparent 50%);
  --surface: #131829;
  --surface-alt: #1a2035;
  --surface-hover: #252d45;
  --text: #f1f5f9;
  --text-secondary: #c8d1de;
  --muted: #8b95a8;
  --muted-light: #5c6578;
  
  --accent: #818cf8;
  --accent-light: #a5b4fc;
  --accent-glow: rgba(129, 140, 248, 0.3);
  --accent-subtle: rgba(129, 140, 248, 0.1);
  --accent-warm: #fbbf24;
  --accent-warm-subtle: rgba(251, 191, 36, 0.12);
  --accent-sage: #34d399;
  --accent-sage-subtle: rgba(52, 211, 153, 0.12);
  
  --card: #151b2e;
  --card-border: rgba(255, 255, 255, 0.06);
  --card-border-hover: rgba(129, 140, 248, 0.35);
  --glass: rgba(10, 14, 26, 0.88);
  --glass-card: rgba(21, 27, 46, 0.85);
  --glass-border: rgba(255, 255, 255, 0.08);
  
  --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow: 0 4px 24px -4px rgba(0, 0, 0, 0.5), 0 2px 8px -2px rgba(0, 0, 0, 0.3);
  --shadow-hover: 0 20px 50px -10px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 40px rgba(129, 140, 248, 0.2);
}

/* ============================================================
   GLOBAL BASE & RESET
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  font-family: var(--sans);
  color: var(--text);
  background-color: var(--bg);
  background-image: var(--bg-gradient);
  background-attachment: fixed;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 15px;
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.3s ease;
}

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

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

::selection {
  background: var(--accent);
  color: #fff;
}

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
}

/* ============================================================
   HEADER & NAVIGATION
   ============================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  background: var(--glass);
  border-bottom: 1px solid var(--card-border);
  transition: all var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.75rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: inherit;
  transition: transform var(--transition);
}

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

.logo {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent) 0%, #7c3aed 100%);
  color: #ffffff;
  font-family: var(--sans);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.5px;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(79, 70, 229, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform var(--transition), box-shadow var(--transition);
}

[data-theme="dark"] .logo {
  background: linear-gradient(135deg, #818cf8 0%, #6366f1 100%);
  box-shadow: 0 4px 18px rgba(129, 140, 248, 0.35);
}

.brand:hover .logo {
  transform: scale(1.06) rotate(-2deg);
  box-shadow: 0 6px 24px rgba(79, 70, 229, 0.4);
}

.brand-text .name {
  font-family: var(--serif);
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text);
}

.brand-text .tagline {
  font-size: 0.73rem;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.02em;
}

nav.main-nav {
  margin-left: auto;
  display: flex;
  gap: 0.25rem;
  align-items: center;
}

nav.main-nav a {
  color: var(--muted);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 550;
  transition: all var(--transition);
  position: relative;
}

nav.main-nav a:hover {
  color: var(--accent);
  background: var(--accent-subtle);
}

nav.main-nav a.active {
  color: var(--accent);
  background: var(--accent-subtle);
}

.theme-btn {
  background: var(--surface);
  border: 1px solid var(--card-border);
  width: 38px;
  height: 38px;
  border-radius: 11px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all var(--transition);
  margin-left: 0.25rem;
  color: var(--muted);
  box-shadow: var(--shadow-xs);
}

.theme-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: rotate(15deg) scale(1.05);
  box-shadow: var(--shadow);
}

.theme-btn svg {
  width: 18px;
  height: 18px;
}

.nav-mobile-btn {
  display: none;
  background: var(--surface);
  border: 1px solid var(--card-border);
  width: 38px;
  height: 38px;
  border-radius: 11px;
  cursor: pointer;
  place-items: center;
  color: var(--text);
}

.nav-mobile-btn svg {
  width: 20px;
  height: 20px;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
  padding: 3.5rem 0 2rem;
}

@media(min-width: 960px) {
  .hero {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    padding: 4.5rem 0 2.5rem;
  }
}

.hero-text .status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  background: var(--accent-subtle);
  border: 1px solid rgba(79, 70, 229, 0.15);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.4rem;
  box-shadow: var(--shadow-xs);
  backdrop-filter: blur(8px);
}

[data-theme="dark"] .status-badge {
  border-color: rgba(129, 140, 248, 0.2);
}

.status-badge .pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-sage);
  position: relative;
}

.status-badge .pulse-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid var(--accent-sage);
  animation: pulse-ring 2s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.8); opacity: 0.9; }
  100% { transform: scale(2.5); opacity: 0; }
}

.hero-text h1 {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  line-height: 1.12;
  margin-bottom: 1.2rem;
  letter-spacing: -0.035em;
  color: var(--text);
  font-weight: 700;
}

.hero-text .lead {
  color: var(--text-secondary);
  max-width: 56ch;
  margin-bottom: 1.75rem;
  font-size: 1.05rem;
  line-height: 1.8;
}

.hero-text .lead strong {
  color: var(--text);
  font-weight: 700;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 1.5rem;
}

.hero-role {
  font-size: 0.88rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.hero-role svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
  flex-shrink: 0;
}

/* BUTTONS */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--accent) 0%, #7c3aed 100%);
  color: #ffffff !important;
  text-decoration: none;
  font-weight: 650;
  font-size: 0.9rem;
  transition: all var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  font-family: var(--sans);
  box-shadow: 0 4px 16px rgba(79, 70, 229, 0.3);
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .btn-primary {
  background: linear-gradient(135deg, #6366f1 0%, #818cf8 100%);
  box-shadow: 0 4px 20px rgba(129, 140, 248, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 28px rgba(79, 70, 229, 0.4);
}

.btn-primary:active {
  transform: translateY(0) scale(0.98);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1.5px solid var(--card-border);
  color: var(--text);
  text-decoration: none;
  font-weight: 650;
  font-size: 0.9rem;
  transition: all var(--transition);
  box-shadow: var(--shadow-xs);
  cursor: pointer;
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-subtle);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

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

/* CAROUSEL & PHOTO CARD */
.featured-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 0.6rem;
  box-shadow: var(--shadow-hover);
  position: relative;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.featured-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.15);
}

.photo-carousel {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--radius-lg) - 6px);
  height: 380px;
  background: var(--surface-alt);
}

.photo-track {
  display: flex;
  height: 100%;
  transition: transform 700ms cubic-bezier(0.22, 0.9, 0.3, 1);
}

.photo-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.photo-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 8s ease;
}

.photo-slide.active img {
  transform: scale(1.08);
}

.photo-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.7) 100%);
  pointer-events: none;
}

.slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem 1.5rem 1.2rem;
  color: #ffffff;
  z-index: 4;
}

.slide-caption strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.slide-caption span {
  font-size: 0.82rem;
  opacity: 0.9;
  display: block;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.photo-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 6;
}

.photo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  padding: 0;
}

.photo-dot.active {
  background: #ffffff;
  width: 28px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.carousel-nav {
  display: flex;
  justify-content: flex-end;
  gap: 0.4rem;
  padding: 0.6rem 0.15rem 0.15rem;
}

.car-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--card-border);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all var(--transition);
  box-shadow: var(--shadow-xs);
}

.car-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-subtle);
  transform: translateY(-1px);
}

.car-btn svg {
  width: 16px;
  height: 16px;
}

/* ============================================================
   STATS HIGHLIGHT ROW
   ============================================================ */
.stats-banner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin: 1rem 0 2.5rem;
}

.stat-box {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.stat-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), #7c3aed, var(--accent-light));
  opacity: 0;
  transition: opacity var(--transition);
}

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

.stat-box:hover::before {
  opacity: 1;
}

.stat-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--accent-subtle);
  color: var(--accent);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border: 1px solid rgba(79, 70, 229, 0.1);
}

.stat-icon svg {
  width: 22px;
  height: 22px;
}

.stat-value {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 550;
  margin-top: 0.15rem;
}

/* ============================================================
   COLLABORATION & HIRING BANNER
   ============================================================ */
.otw-banner {
  position: relative;
  margin: 2.5rem 0 1.5rem;
  padding: 2.5rem 2.5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 40%, #7c3aed 100%);
  color: #ffffff;
  box-shadow: 0 20px 50px -10px rgba(79, 70, 229, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .otw-banner {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4338ca 100%);
  border: 1px solid rgba(129, 140, 248, 0.2);
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.5);
}

.otw-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 10% 85%, rgba(168, 85, 247, 0.2) 0%, transparent 50%);
  pointer-events: none;
}

.otw-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: center;
}

.otw-content h3 {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 700;
  margin-bottom: 0.55rem;
  letter-spacing: -0.01em;
}

.otw-content p {
  opacity: 0.9;
  font-size: 0.98rem;
  line-height: 1.7;
  max-width: 64ch;
}

.opps-pills {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-top: 1.2rem;
}

.opps-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.95rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.otw-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.otw-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius);
  background: #ffffff;
  color: #4f46e5 !important;
  font-weight: 750;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  transition: all var(--transition);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  white-space: nowrap;
}

.otw-cta:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.otw-cta svg {
  width: 18px;
  height: 18px;
}

/* ============================================================
   SECTIONS & TYPOGRAPHY
   ============================================================ */
.section {
  padding: 4.5rem 0 0;
}

.section-header {
  margin-bottom: 2rem;
}

.section-header h2 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.5vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 0.5rem;
  color: var(--text);
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 40px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
}

.section-header p {
  color: var(--muted);
  font-size: 0.98rem;
  max-width: 68ch;
  line-height: 1.7;
  margin-top: 0.75rem;
}

.grid {
  display: grid;
  gap: 1.25rem;
}

@media(min-width: 720px) {
  .g2 { grid-template-columns: repeat(2, 1fr); }
  .g3 { grid-template-columns: repeat(3, 1fr); }
  .g4 { grid-template-columns: repeat(4, 1fr); }
}

/* ============================================================
   TABS & INTERACTIVE CARDS
   ============================================================ */
.tabs-container {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.tabs-header {
  display: flex;
  border-bottom: 1px solid var(--card-border);
  background: var(--surface-alt);
  padding: 0.4rem 0.4rem 0;
  gap: 0.3rem;
}

.tab-btn {
  flex: 1;
  padding: 0.85rem 1.2rem;
  border: none;
  background: transparent;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 650;
  color: var(--muted);
  cursor: pointer;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  position: relative;
  transition: all var(--transition);
}

.tab-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.5);
}

[data-theme="dark"] .tab-btn:hover {
  background: rgba(255, 255, 255, 0.04);
}

.tab-btn.active {
  color: var(--accent);
  background: var(--card);
  box-shadow: 0 -2px 8px rgba(0,0,0,0.04);
}

.tab-btn::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2.5px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  transform: scaleX(0);
  transition: transform var(--transition);
  border-radius: 3px 3px 0 0;
}

.tab-btn.active::after {
  transform: scaleX(1);
}

.tab-panel {
  display: none;
  padding: 1.75rem 2rem;
}

.tab-panel.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   RESEARCH PROFILE & ACO PILLARS
   ============================================================ */
.research-intro {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.85;
}

.research-highlight-group + .research-highlight-group {
  margin-top: 1.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--card-border);
}

.research-highlight-group h4 {
  font-size: 1.15rem;
  font-family: var(--serif);
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.research-highlight-group p {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.research-highlight-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

@media(max-width: 768px) {
  .research-highlight-grid {
    grid-template-columns: 1fr;
  }
}

.research-highlight-card {
  padding: 1.15rem 1.3rem;
  border-radius: var(--radius);
  background: var(--surface-alt);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-xs);
  transition: all var(--transition);
}

.research-highlight-card:hover {
  border-color: var(--card-border-hover);
  background: var(--surface);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.research-highlight-card.simple {
  display: flex;
  align-items: center;
}

.research-highlight-card.simple span {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
  font-weight: 600;
}

.research-skill-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.research-skill-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid var(--card-border);
  display: grid;
  place-items: center;
  color: var(--accent);
  flex-shrink: 0;
  box-shadow: var(--shadow-xs);
}

.research-skill-icon svg {
  width: 22px;
  height: 22px;
}

.research-skill-content {
  flex: 1;
  min-width: 0;
}

.research-skill-head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.25rem;
}

.research-skill-head strong {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

.research-skill-level {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  white-space: nowrap;
  border: 1px solid var(--card-border);
  background: var(--card);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.research-skill-level[data-level="expert"] {
  border-color: rgba(5, 150, 105, 0.25);
  background: var(--accent-sage-subtle);
  color: var(--accent-sage);
}

.research-skill-level[data-level="advanced"] {
  border-color: rgba(79, 70, 229, 0.2);
  background: var(--accent-subtle);
  color: var(--accent);
}

.research-skill-level[data-level="intermediate"] {
  border-color: rgba(217, 119, 6, 0.25);
  background: var(--accent-warm-subtle);
  color: var(--accent-warm);
}

.research-skill-note {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ============================================================
   PUBLICATIONS SECTION
   ============================================================ */
.pub-toolbar {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  align-items: center;
  justify-content: space-between;
}

.pub-filter-bar {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  align-items: center;
}

.pub-filter-btn {
  padding: 0.48rem 1.15rem;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--card-border);
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 650;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--sans);
  box-shadow: var(--shadow-xs);
}

.pub-filter-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-subtle);
}

.pub-filter-btn.active {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
}

.pub-search-box {
  position: relative;
  min-width: 220px;
}

.pub-search-input {
  width: 100%;
  padding: 0.5rem 1rem 0.5rem 2.3rem;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--card-border);
  background: var(--surface);
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.85rem;
  outline: none;
  transition: all var(--transition);
}

.pub-search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-subtle);
}

.pub-search-icon {
  position: absolute;
  left: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  width: 15px;
  height: 15px;
  pointer-events: none;
}

.pub-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pub-row {
  display: flex;
  gap: 1.25rem;
  padding: 1.4rem;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: all var(--transition);
  align-items: flex-start;
}

.pub-row:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--card-border-hover);
  transform: translateY(-3px);
}

.pub-row-num {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--accent);
  min-width: 24px;
  padding-top: 0.1rem;
  opacity: 0.6;
}

.pub-row-thumb {
  width: 100px;
  height: 100px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface-alt);
  flex-shrink: 0;
  border: 1px solid var(--card-border);
}

.pub-row-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pub-row-body {
  flex: 1;
  min-width: 0;
}

.pub-row-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.pub-row-title {
  font-family: var(--serif);
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
}

.pub-row-year {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.22rem 0.65rem;
  border-radius: var(--radius-full);
  background: var(--accent-subtle);
  color: var(--accent);
  white-space: nowrap;
  flex-shrink: 0;
  border: 1px solid rgba(79, 70, 229, 0.12);
}

.pub-row-authors {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.pub-row-authors strong {
  color: var(--accent);
  font-weight: 700;
}

.pub-row-venue {
  font-size: 0.88rem;
  color: var(--accent-warm);
  font-weight: 600;
  font-style: italic;
  margin-bottom: 0.5rem;
}

.pub-row-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 0.85rem;
}

.pub-row-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

/* ============================================================
   PROJECTS & CARDS
   ============================================================ */
.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.3rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), #7c3aed, var(--accent-light));
  opacity: 0;
  transition: opacity var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--card-border-hover);
  transform: translateY(-5px);
}

.card:hover::before {
  opacity: 1;
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.6rem;
}

.card-top h3 {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
}

.card-top .sub {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.2rem;
  font-weight: 500;
}

.tag {
  font-size: 0.72rem;
  font-weight: 750;
  padding: 0.24rem 0.65rem;
  border-radius: var(--radius-full);
  background: var(--accent-subtle);
  color: var(--accent);
  white-space: nowrap;
  flex-shrink: 0;
  border: 1px solid rgba(79, 70, 229, 0.1);
}

.card-media {
  border-radius: var(--radius-sm);
  overflow: hidden;
  height: 155px;
  background: var(--surface-alt);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.card:hover .card-media img {
  transform: scale(1.06);
}

.card-desc {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
  flex: 1;
}

.card-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: auto;
  align-items: center;
  flex-wrap: wrap;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--card-border);
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--sans);
  box-shadow: var(--shadow-xs);
}

.action-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-subtle);
  transform: translateY(-1px);
}

.action-btn svg {
  width: 15px;
  height: 15px;
}

/* ============================================================
   EXPERIENCE & EDUCATION TIMELINE
   ============================================================ */
.timeline-item {
  display: flex;
  gap: 1.25rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--card-border);
  align-items: flex-start;
  transition: background var(--transition);
}

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

.timeline-item:hover {
  padding-left: 0.5rem;
}

.tl-logo {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  background: var(--surface-alt);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-xs);
  transition: all var(--transition);
}

.timeline-item:hover .tl-logo {
  border-color: var(--card-border-hover);
  box-shadow: var(--shadow);
}

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

.tl-logo svg {
  width: 24px;
  height: 24px;
  color: var(--accent);
}

.tl-content {
  flex: 1;
}

.tl-content h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.15rem;
}

.tl-content .tl-org {
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 650;
  margin-bottom: 0.35rem;
}

.tl-content .tl-desc {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.65;
}

.tl-year {
  font-size: 0.78rem;
  font-weight: 750;
  color: var(--muted);
  white-space: nowrap;
  padding: 0.28rem 0.75rem;
  border-radius: var(--radius-full);
  background: var(--surface-alt);
  border: 1px solid var(--card-border);
}

/* ============================================================
   AWARDS & COMPACT CARDS
   ============================================================ */
.compact-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.15rem 1.3rem;
  box-shadow: var(--shadow);
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: all var(--transition);
  text-decoration: none;
  color: inherit;
}

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

.compact-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--surface-alt);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border: 1px solid var(--card-border);
  transition: all var(--transition);
}

.compact-card:hover .compact-icon {
  border-color: var(--card-border-hover);
  transform: scale(1.05);
}

.compact-icon svg {
  width: 22px;
  height: 22px;
}

.compact-body {
  flex: 1;
}

.compact-card h3 {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.15rem;
}

.compact-card .sub {
  font-size: 0.82rem;
  color: var(--muted);
}

.ext-arrow {
  color: var(--accent);
  transition: all var(--transition);
  flex-shrink: 0;
  margin-top: 0.2rem;
  opacity: 0.5;
}

.compact-card:hover .ext-arrow {
  opacity: 1;
  transform: translate(2px, -2px);
}

.ext-arrow svg {
  width: 17px;
  height: 17px;
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact-detail-actions {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(220px, 0.65fr);
  gap: 1.75rem;
  align-items: stretch;
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow);
}

.contact-top-list {
  list-style: none;
  display: grid;
  gap: 1rem;
}

.contact-top-item {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.contact-top-item .ci-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--surface-alt);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--accent);
  border: 1px solid var(--card-border);
}

.contact-top-item .ci-icon svg {
  width: 20px;
  height: 20px;
}

.ci-label {
  font-size: 0.7rem;
  color: var(--muted);
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.1rem;
}

.contact-value {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text);
}

.contact-value a {
  color: var(--accent);
  transition: opacity var(--transition);
}

.contact-value a:hover {
  text-decoration: underline;
}

.contact-action-column {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  align-items: stretch;
  justify-content: center;
  border-left: 1px solid var(--card-border);
  padding-left: 1.75rem;
}

.contact-profiles-buttons {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.contact-profiles-buttons .action-btn {
  padding: 0.65rem 1.15rem;
  border-radius: var(--radius);
  font-size: 0.88rem;
}

/* ============================================================
   MODALS, DEMO SWITCHER & FOOTER
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-overlay.open {
  display: flex;
}

.modal-bg {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.modal-box {
  position: relative;
  max-width: 840px;
  width: 100%;
  background: var(--card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.35);
  border: 1px solid var(--card-border);
  z-index: 10;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalEnter 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalEnter {
  from { opacity: 0; transform: scale(0.94) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 20;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--card-border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all var(--transition);
}

.modal-close:hover {
  background: var(--accent);
  color: #ffffff;
  transform: rotate(90deg);
  border-color: var(--accent);
}

.demo-switcher {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 140;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 180px;
  backdrop-filter: blur(12px);
}

.demo-switcher .demo-label {
  font-size: 0.7rem;
  color: var(--muted);
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.demo-switcher .demo-current {
  font-family: var(--serif);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--accent);
}

.footer {
  padding: 3rem 0 2rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
  border-top: 1px solid var(--card-border);
  margin-top: 5rem;
  background: var(--surface-alt);
}

.footer strong {
  color: var(--text);
}

/* FLOATING BACK TO TOP */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--surface);
  border: 1.5px solid var(--card-border);
  color: var(--accent);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  z-index: 90;
  backdrop-filter: blur(8px);
}

.back-to-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--accent);
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
  border-color: var(--accent);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}

/* ============================================================
   SCROLL REVEAL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.vis {
  opacity: 1;
  transform: none;
}

/* Staggered reveal for grid children */
.grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.grid .reveal:nth-child(3) { transition-delay: 0.16s; }
.grid .reveal:nth-child(4) { transition-delay: 0.24s; }
.grid .reveal:nth-child(5) { transition-delay: 0.32s; }
.grid .reveal:nth-child(6) { transition-delay: 0.4s; }

/* ============================================================
   RESPONSIVE DESIGN — Mobile-first refinements
   ============================================================ */
@media(max-width: 920px) {
  .demo-switcher {
    right: 12px;
    top: auto;
    bottom: 12px;
    transform: none;
  }
}

@media(max-width: 840px) {
  nav.main-nav {
    display: none;
  }
  
  nav.main-nav.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--glass);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid var(--card-border);
    padding: 1rem 1.5rem;
    gap: 0.4rem;
    box-shadow: var(--shadow-hover);
    animation: slideDown 0.25s ease;
  }
  
  @keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
  }
  
  nav.main-nav.mobile-open a {
    width: 100%;
    padding: 0.7rem 1rem;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
  }
  
  .nav-mobile-btn {
    display: grid;
    margin-left: auto;
  }
}

@media(max-width: 760px) {
  .section {
    padding: 3rem 0 0;
  }

  .contact-detail-actions {
    grid-template-columns: 1fr;
    padding: 1.25rem;
  }
  .contact-action-column {
    border-left: none;
    border-top: 1px solid var(--card-border);
    padding-left: 0;
    padding-top: 1.25rem;
  }
  .pub-row {
    flex-direction: column;
  }
  .pub-row-thumb {
    width: 100%;
    height: 170px;
  }
  .tabs-header {
    flex-direction: column;
    padding-bottom: 0.4rem;
  }
  .tab-btn {
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
  }
  .tab-panel {
    padding: 1.25rem 1.25rem;
  }
  .otw-inner {
    grid-template-columns: 1fr;
  }
  .otw-actions {
    justify-content: flex-start;
  }
  .otw-banner {
    padding: 2rem 1.5rem;
  }
  .hero {
    padding: 2.5rem 0 1.5rem;
  }
  .photo-carousel {
    height: 280px;
  }
  .stats-banner {
    grid-template-columns: 1fr;
  }
}

@media(max-width: 480px) {
  .hero-text h1 {
    font-size: 1.85rem;
  }
  .section-header h2 {
    font-size: 1.55rem;
  }
  .stat-box {
    padding: 1rem 1.1rem;
  }
  .brand-text .name {
    font-size: 1rem;
  }
  .brand-text .tagline {
    display: none;
  }
}
