/* =============================================
   LEMENO AI — STYLESHEET
   ============================================= */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #6C63FF;
  --primary-dark: #5A52E0;
  --primary-light: #8B85FF;
  --accent: #FF6B6B;
  --bg: #0A0A0F;
  --bg-card: #12121A;
  --bg-card-hover: #1A1A28;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(108, 99, 255, 0.4);
  --text-primary: #F0F0FF;
  --text-secondary: #9090B0;
  --text-muted: #5A5A7A;
  --gradient: linear-gradient(135deg, #6C63FF 0%, #FF6B6B 100%);
  --gradient-subtle: linear-gradient(135deg, rgba(108,99,255,0.15) 0%, rgba(255,107,107,0.05) 100%);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* =============================================
   TYPOGRAPHY
   ============================================= */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.2;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* =============================================
   LAYOUT
   ============================================= */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary-light);
  background: rgba(108, 99, 255, 0.12);
  border: 1px solid rgba(108, 99, 255, 0.25);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.section-desc {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* =============================================
   BUTTONS
   ============================================= */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 20px rgba(108, 99, 255, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(108, 99, 255, 0.5);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary-light);
  background: rgba(108, 99, 255, 0.06);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding-left: 0;
}

.btn-ghost:hover {
  color: var(--text-primary);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
  border-radius: 6px;
  background: rgba(108, 99, 255, 0.12);
  color: var(--primary-light);
  border: 1px solid rgba(108, 99, 255, 0.25);
}

.btn-sm:hover {
  background: rgba(108, 99, 255, 0.2);
  border-color: var(--primary);
}

.full-width {
  width: 100%;
  justify-content: center;
}

/* =============================================
   NAVBAR
   ============================================= */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
}

.logo-mark {
  width: 36px;
  height: 36px;
  background: var(--gradient);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: white;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 8px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 6px;
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

.mobile-menu {
  display: none;
  background: rgba(10, 10, 15, 0.97);
  border-top: 1px solid var(--border);
  padding: 16px 24px;
}

.mobile-menu ul {
  list-style: none;
}

.mobile-menu a {
  display: block;
  padding: 12px 0;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 16px;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.mobile-menu a:hover {
  color: var(--primary-light);
}

.mobile-menu.open {
  display: block;
}

/* =============================================
   HERO SECTION
   ============================================= */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 120px 24px 80px;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

#particle-canvas {
  width: 100%;
  height: 100%;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(108,99,255,0.25) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 80% 60%, rgba(255,107,107,0.1) 0%, transparent 60%);
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 840px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 100px;
  margin-bottom: 28px;
}

.hero-title {
  font-size: clamp(40px, 7vw, 80px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: clamp(16px, 2.2vw, 20px);
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 40px;
  backdrop-filter: blur(10px);
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 32px;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 12px;
}

.scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg);
  animation: bounce 1.5s infinite;
}

@keyframes bounce {
  0%, 100% { transform: rotate(45deg) translateY(0); opacity: 1; }
  50% { transform: rotate(45deg) translateY(4px); opacity: 0.5; }
}

/* =============================================
   RESEARCH SECTION
   ============================================= */

.research-section {
  background: var(--bg);
}

.research-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--border));
}

.research-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.research-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
  cursor: default;
}

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

.research-card.featured {
  background: var(--gradient-subtle);
  border-color: rgba(108, 99, 255, 0.25);
}

.card-icon {
  font-size: 32px;
  margin-bottom: 16px;
  display: block;
}

.research-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.research-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

.card-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-light);
  text-decoration: none;
  transition: var(--transition);
}

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

/* =============================================
   ABOUT SECTION
   ============================================= */

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

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-content p {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 20px;
}

.about-values {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.value {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.value-icon {
  font-size: 24px;
  flex-shrink: 0;
  margin-top: 2px;
}

.value h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.value p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 0;
  line-height: 1.6;
}

.about-visual {
  position: relative;
}

.visual-card {
  background: #0D1117;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.visual-header {
  display: flex;
  gap: 6px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.02);
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot.red   { background: #FF5F57; }
.dot.yellow { background: #FFBD2E; }
.dot.green { background: #28CA41; }

.visual-code {
  padding: 24px;
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 13px;
  line-height: 1.8;
}

.code-line {
  white-space: pre;
}

.code-line.indent {
  padding-left: 24px;
}

.code-kw  { color: #FF79C6; }
.code-name { color: #8BE9FD; }
.code-fn  { color: #50FA7B; }
.code-str { color: #F1FA8C; }
.code-bool { color: #BD93F9; }
.code-comment { color: #6272A4; }
.code-output { color: var(--primary-light); font-style: italic; }

.location-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  box-shadow: var(--shadow-card);
}

.location-badge span:first-child {
  font-size: 24px;
}

.location-badge strong {
  display: block;
  font-weight: 600;
  font-size: 14px;
}

.location-badge span:last-child {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
}

/* =============================================
   PUBLICATIONS
   ============================================= */

.publications-section {
  background: var(--bg);
}

.publications-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pub-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
}

.pub-card:hover {
  border-color: var(--border-hover);
  transform: translateX(4px);
}

.pub-meta {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.pub-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255,255,255,0.06);
  color: var(--text-secondary);
}

.pub-tag.safety  { background: rgba(108,99,255,0.15); color: #A89CFF; }
.pub-tag.efficiency { background: rgba(80,250,123,0.12); color: #50FA7B; }
.pub-tag.multilingual { background: rgba(255,184,77,0.12); color: #FFB84D; }

.pub-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
  line-height: 1.4;
}

.pub-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.pub-authors {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-muted);
}

.pub-link {
  color: var(--primary-light);
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  transition: var(--transition);
}

.pub-link:hover {
  color: var(--primary);
}

.publications-cta {
  text-align: center;
  margin-top: 40px;
}

/* =============================================
   TEAM
   ============================================= */

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

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  transition: var(--transition);
}

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

.team-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: white;
  margin: 0 auto 16px;
}

.team-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.team-role {
  display: block;
  font-size: 12px;
  color: var(--primary-light);
  font-weight: 500;
  margin-bottom: 12px;
}

.team-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.team-links {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.team-links a {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  transition: var(--transition);
}

.team-links a:hover {
  background: rgba(108,99,255,0.15);
  border-color: var(--primary);
  color: var(--primary-light);
}

/* =============================================
   CAREERS
   ============================================= */

.careers-section {
  background: var(--bg);
}

.careers-hero {
  text-align: center;
  margin-bottom: 56px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.careers-hero p {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-top: 16px;
}

.jobs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.job-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: var(--transition);
}

.job-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.job-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.job-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
  line-height: 1.3;
}

.job-location {
  font-size: 12px;
  color: var(--text-muted);
}

.job-type {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
  background: rgba(80,250,123,0.12);
  color: #50FA7B;
  border: 1px solid rgba(80,250,123,0.2);
}

.job-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.job-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.job-tags span {
  font-size: 11px;
  padding: 3px 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-muted);
}

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

.careers-cta p {
  color: var(--text-secondary);
  margin-bottom: 16px;
}

/* =============================================
   CONTACT
   ============================================= */

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

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}

.contact-info p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-top: 16px;
  margin-bottom: 36px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-icon {
  font-size: 22px;
  flex-shrink: 0;
}

.contact-item strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.contact-item a,
.contact-item span {
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
  line-height: 1.5;
  display: block;
}

.contact-item a:hover {
  color: var(--primary-light);
}

/* Contact Form */
.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

input, select, textarea {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text-primary);
  transition: var(--transition);
  outline: none;
  resize: vertical;
}

input::placeholder, textarea::placeholder {
  color: var(--text-muted);
}

select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%239090B0' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
  padding-right: 36px;
}

select option {
  background: var(--bg-card);
}

input:focus, select:focus, textarea:focus {
  border-color: var(--primary);
  background: rgba(108, 99, 255, 0.05);
  box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.12);
}

.form-note {
  text-align: center;
  font-size: 13px;
  margin-top: 12px;
  color: #50FA7B;
  min-height: 20px;
}

/* =============================================
   FOOTER
   ============================================= */

.footer {
  background: #080810;
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}

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

.footer-brand p {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 14px;
  line-height: 1.6;
  max-width: 260px;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  transition: var(--transition);
}

.footer-social a:hover {
  background: rgba(108,99,255,0.15);
  border-color: var(--primary);
  color: var(--primary-light);
}

.footer-links h4 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 8px;
}

/* =============================================
   ANIMATIONS
   ============================================= */

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Stagger children */
.research-grid .research-card:nth-child(1) { transition-delay: 0s; }
.research-grid .research-card:nth-child(2) { transition-delay: 0.08s; }
.research-grid .research-card:nth-child(3) { transition-delay: 0.16s; }
.research-grid .research-card:nth-child(4) { transition-delay: 0.24s; }
.research-grid .research-card:nth-child(5) { transition-delay: 0.32s; }
.research-grid .research-card:nth-child(6) { transition-delay: 0.40s; }

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 1024px) {
  .research-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-actions .btn-outline {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .section {
    padding: 72px 0;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 24px;
    padding: 20px 24px;
  }

  .stat-divider {
    display: none;
  }

  .stat {
    padding: 0 16px;
    flex: 1 1 calc(50% - 32px);
  }

  .research-grid {
    grid-template-columns: 1fr;
  }

  .jobs-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .about-visual {
    padding-bottom: 40px;
  }

  .location-badge {
    bottom: 0;
    right: 0;
  }

  .pub-authors {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-cta .btn {
    text-align: center;
    justify-content: center;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }
}
