/* ════════════════════════════════════════════════════════════════════
   Vyoma Group — Research page (Anthropic-style)
   Loaded after the global style.css
   ════════════════════════════════════════════════════════════════════ */

:root {
  --r-orange:       #e8622a;
  --r-orange-deep:  #c14d1a;
  --r-ink:          #1a1714;
  --r-ink-soft:     #3a3530;
  --r-muted:        #6b6560;
  --r-bg:           #fdf8ef;
  --r-cream:        #f7eedf;
  --r-cream-soft:   #f4e6d0;
  --r-border:       #e0d5c2;
  --r-border-soft:  #ece2cf;
  --font-serif:     'Playfair Display', Georgia, serif;
  --font-body:      'DM Sans', system-ui, sans-serif;
}

body { background: var(--r-bg); }

/* Make active nav link visible */
.nav-link.active { color: var(--r-orange); }

/* ─── HERO ─────────────────────────────────────────────────────────── */
.research-hero {
  padding: 120px 32px 56px;
  background: var(--r-bg);
}
.research-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.research-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(72px, 9vw, 120px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--r-ink);
  margin: 0;
}
.research-hero-side { padding-top: 24px; }
.research-hero-desc {
  font-family: var(--font-serif);
  font-size: clamp(18px, 1.6vw, 22px);
  font-style: italic;
  line-height: 1.5;
  color: var(--r-ink-soft);
  margin: 0 0 32px;
}
.research-hero-teams {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--r-muted);
}
.research-teams-label {
  color: var(--r-muted);
  margin-right: 6px;
}
.research-team-link {
  color: var(--r-ink);
  text-decoration: underline;
  text-decoration-color: rgba(232, 98, 42, 0.4);
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
  font-weight: 500;
}
.research-team-link:hover {
  color: var(--r-orange);
  text-decoration-color: var(--r-orange);
}
.dot-sep {
  color: var(--r-muted);
  opacity: 0.5;
  margin: 0 6px;
}

/* ─── DIVIDER ──────────────────────────────────────────────────────── */
.research-divider {
  max-width: 1200px;
  margin: 0 auto;
  border: none;
  border-top: 1px solid var(--r-border);
}

/* ─── TEAM CARDS ───────────────────────────────────────────────────── */
.research-teams-section { padding: 56px 32px; }
.research-teams-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.research-team-card { scroll-margin-top: 100px; }
.research-team-name {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--r-ink);
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.research-team-desc {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.55;
  color: var(--r-muted);
  margin: 0;
}

/* ─── FEATURED ─────────────────────────────────────────────────────── */
.research-featured {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 32px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 56px;
  align-items: center;
}
.research-featured-art {
  position: relative;
  aspect-ratio: 16 / 11;
  background: var(--r-cream-soft);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.research-featured-art[data-team="ai-methods"]     { background: #ebe0c8; }
.research-featured-art[data-team="clinical"]       { background: #f4e6d0; }
.research-featured-art[data-team="lifestyle"]      { background: #f0dec0; }
.research-featured-art[data-team="public-health"]  { background: #e8dab8; }
.research-featured-art[data-team="safety"]         { background: #efe3cb; }
.research-featured-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.research-featured-art-svg {
  display: none;
  width: 75%;
  max-width: 500px;
  height: auto;
}
/* When the <img> errors out (handled by inline onerror), the SVG sibling
   gets display:flex via JS attribute */
.research-featured-art-svg svg { width: 100%; height: 100%; display: block; }
.research-featured-meta {}
.research-featured-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.4vw, 38px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--r-ink);
  margin: 14px 0 14px;
}
.research-featured-blurb {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--r-ink-soft);
  margin: 0 0 22px;
}
.research-featured-link {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--r-orange);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color 0.2s ease;
}
.research-featured-link:hover { border-bottom-color: var(--r-orange); }

/* Common meta line */
.research-meta-line {
  font-family: var(--font-body);
  font-size: 12.5px;
  color: var(--r-muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.research-team-tag {
  color: var(--r-orange-deep);
  font-weight: 600;
  letter-spacing: 0.01em;
}
.research-meta-dot {
  width: 3px;
  height: 3px;
  background: var(--r-muted);
  border-radius: 50%;
  opacity: 0.5;
}

/* ─── LIST + FILTERS ───────────────────────────────────────────────── */
.research-list-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 32px 72px;
}
.research-list-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 22px;
  gap: 16px;
  flex-wrap: wrap;
}
.research-list-title {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--r-ink);
  margin: 0;
}
.research-list-count {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--r-muted);
}

.research-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--r-border);
}
.research-chip {
  padding: 6px 14px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid var(--r-border);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--r-ink-soft);
  cursor: pointer;
  transition: all 0.2s ease;
}
.research-chip:hover {
  border-color: var(--r-orange);
  color: var(--r-orange);
}
.research-chip.active {
  background: var(--r-ink);
  color: #fff;
  border-color: var(--r-ink);
}

/* ─── ENTRY GRID ───────────────────────────────────────────────────── */
.research-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px 28px;
}
.research-card {
  display: flex;
  flex-direction: column;
  cursor: default;
  transition: transform 0.25s ease;
}
.research-card.hidden { display: none; }
.research-card-art {
  position: relative;
  aspect-ratio: 16 / 11;
  background: var(--r-cream-soft);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  transition: transform 0.25s ease;
}
.research-card-art[data-team="ai-methods"]     { background: #ebe0c8; }
.research-card-art[data-team="clinical"]       { background: #f4e6d0; }
.research-card-art[data-team="lifestyle"]      { background: #f0dec0; }
.research-card-art[data-team="public-health"]  { background: #e8dab8; }
.research-card-art[data-team="safety"]         { background: #efe3cb; }
.research-card:hover .research-card-art { transform: translateY(-2px); }
.research-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.research-card-art-svg {
  display: none;
  width: 70%;
  max-width: 220px;
  height: auto;
}
.research-card-art-svg svg { width: 100%; height: 100%; display: block; }
.research-card-body {}
.research-card-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -0.01em;
  color: var(--r-ink);
  margin: 10px 0 8px;
}
.research-card-blurb {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.55;
  color: var(--r-muted);
  margin: 0;
}

/* ─── RESPONSIVE ───────────────────────────────────────────────────── */
@media (max-width: 1000px) {
  .research-teams-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .research-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 22px; }
  .research-featured { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 768px) {
  .research-hero { padding: 90px 20px 36px; }
  .research-hero-inner { grid-template-columns: 1fr; gap: 24px; }
  .research-hero-title { font-size: clamp(56px, 14vw, 80px); }
  .research-hero-desc { font-size: 17px; }
  .research-teams-section { padding: 36px 20px; }
  .research-teams-grid { grid-template-columns: 1fr; gap: 24px; }
  .research-featured { padding: 36px 20px; }
  .research-featured-title { font-size: 26px; }
  .research-list-section { padding: 20px 20px 48px; }
  .research-list-title { font-size: 26px; }
  .research-grid { grid-template-columns: 1fr; gap: 28px; }
  .research-card-title { font-size: 19px; }
  .research-filters { gap: 6px; }
  .research-chip { font-size: 12.5px; padding: 5px 12px; }
}
@media (max-width: 480px) {
  .research-hero-title { font-size: 56px; }
}
