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

/* Global styles */
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #111827;
  background-color: #f9fafb;
  line-height: 1.6;
}

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

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

ul {
  list-style: none;
}

/* Layout helpers */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header & nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(249, 250, 251, 0.95);
  border-bottom: 1px solid #e5e7eb;
  backdrop-filter: blur(10px);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 3.75rem;
}

.logo a {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.03em;
}

.nav {
  display: flex;
  gap: 1.1rem;
  font-size: 0.9rem;
}

.nav a {
  padding: 0.25rem 0;
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.2rem;
  height: 2px;
  width: 0;
  background-color: #2563eb;
  transition: width 0.2s ease;
}

.nav a:hover::after {
  width: 100%;
}

/* Hero section */
.hero {
  padding: 4.5rem 0 3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.6fr);
  gap: 2.5rem;
  align-items: center;
}

.eyebrow {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #6b7280;
  margin-bottom: 0.75rem;
}

.hero-title {
  font-size: clamp(2.1rem, 3vw, 2.6rem);
  font-weight: 750;
  margin-bottom: 0.75rem;
}

.highlight {
  color: #2563eb;
}

.hero-subtitle {
  font-size: 1rem;
  color: #4b5563;
  margin-bottom: 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.hero-meta {
  font-size: 0.9rem;
  color: #6b7280;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-meta span {
  background-color: #e5e7eb;
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
}

/* Hero photo */
.hero-photo-wrapper {
  display: flex;
  justify-content: center;
}

.hero-photo-circle {
  width: 220px;
  height: 220px;
  border-radius: 999px;
  padding: 6px;
  background: radial-gradient(circle at 0% 0%, #4f46e5, #0ea5e9);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-photo {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  object-fit: cover;
  border: 4px solid #f9fafb;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  font-size: 0.9rem;
  font-weight: 500;
  color: #111827;
  background-color: #f9fafb;
  cursor: pointer;
  transition: background-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

.btn.primary {
  background: linear-gradient(135deg, #2563eb, #4f46e5);
  color: #f9fafb;
  border-color: transparent;
}

.btn:hover {
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
  background-color: #f3f4f6;
}

.btn.primary:hover {
  background: linear-gradient(135deg, #1d4ed8, #4338ca);
}

/* Sections */
.section {
  padding: 3rem 0;
}

.section-alt {
  background-color: #f3f4f6;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.section-lead {
  font-size: 0.98rem;
  color: #4b5563;
  margin-bottom: 1.5rem;
}

/* Cards */
.card-list {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.25rem;
}

.cards-two-column {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  background-color: #ffffff;
  border-radius: 0.9rem;
  padding: 1.2rem 1.3rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.03);
}

.section-alt .card {
  background-color: #f9fafb;
}

.project-card {
  display: flex;
  flex-direction: column;
  min-height: 540px; /* ensures consistent height so actions can sit at bottom */
}

.project-card .project-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 0.6rem;
  margin-bottom: 0.75rem;
  background-color: #e5e7eb; /* placeholder when image missing */
}

.project-actions {
  margin-top: auto; /* push actions to bottom */
  display: flex;
  gap: 0.5rem;
}

.card-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.card-header h3 {
  font-size: 1rem;
  font-weight: 600;
}

.card-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

/* Research logos appear as a separate row above each research card title */
.research-logo-wrap {
  margin-bottom: 0.4rem;
}

.research-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
  display: block;
}

.card-subtitle {
  font-size: 0.9rem;
  color: #6b7280;
  margin-bottom: 0.4rem;
}

.tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #4b5563;
  background-color: #e5e7eb;
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  white-space: nowrap;
}

.tag-group {
  display: flex;
  gap: 0.4rem;
  flex-basis: 100%;      /* move tag group to a new line under the title */
  flex-wrap: wrap;       /* allow multiple tags to wrap if needed */
  margin-top: 0.15rem;   /* small spacing from title */
}

.tag-accent {
  background-color: #dbeafe; /* blue-100 */
  color: #1d4ed8;            /* blue-700 */
  border: 1px solid #bfdbfe; /* blue-200 */
}

.card-list-items {
  padding-left: 1.1rem;
}

.card-list-items li {
  position: relative;
  font-size: 0.92rem;
  color: #374151;
  margin-bottom: 0.35rem;
}

.card-list-items li::before {
  content: "•";
  position: absolute;
  left: -0.95rem;
  color: #9ca3af;
}

/* Pills & contact */
.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.pill-list li {
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background-color: #e5e7eb;
  font-size: 0.85rem;
  color: #374151;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
  gap: 2rem;
  align-items: flex-start;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.icon-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.9rem;
}

.icon-links a {
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background-color: #ffffff;
}

.icon-links a:hover {
  background-color: #e5e7eb;
}

/* Footer */
.site-footer {
  border-top: 1px solid #e5e7eb;
  padding: 1rem 0 1.2rem;
  background-color: #f9fafb;
  font-size: 0.85rem;
  color: #6b7280;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
}

/* Responsive */
@media (max-width: 800px) {
  .nav {
    display: none;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    text-align: left;
  }

  .hero-photo-wrapper {
    order: -1;
    margin-bottom: 1.5rem;
  }

  .hero-photo-circle {
    width: 180px;
    height: 180px;
  }

  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

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

