:root {
  /* Tailwind-ish palette */
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-200: #e5e7eb;
  --slate-50: #f8fafc;

  --blue-900: #1e3a8a;
  --blue-800: #1e40af;
  --blue-700: #1d4ed8;
  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --blue-400: #60a5fa;
  --blue-200: #bfdbfe;
  --blue-100: #dbeafe;
  --blue-50: #eff6ff;

  --bg: #ffffff;
  --text: var(--slate-900);
  --text-muted: var(--slate-600);
  --border: #e2e8f0;

  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1rem;

  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.08);
  --shadow-subtle: 0 10px 25px rgba(15, 23, 42, 0.04);

  /* layout */
  --page-max-width: 80rem;
  --page-side-padding: 1.5rem;
}

/* Reset-ish */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
    sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

/* General layout helpers */

.container {
  width: 100%;
  max-width: var(--page-max-width);
  margin: 0 auto;
  padding-inline: var(--page-side-padding);
}

.section {
  padding-block: 8rem; /* py-32 */
}

.section-alt {
  background-color: var(--slate-50);
}

.section-dark {
  background: linear-gradient(135deg, #020617, #0f172a);
  color: #e5e7eb;
}

/* Scroll offset for fixed nav */
section[id] {
  scroll-margin-top: 6rem;
}

/* Shared section typography */

.section-intro {
  margin-bottom: 4rem;
}

.section-tagline-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.section-line {
  width: 4rem;
  height: 0.25rem;
  border-radius: 999px;
  background-color: var(--blue-600);
}

.section-line-light {
  background-color: rgba(191, 219, 254, 0.9);
}

.section-tagline {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue-600);
}

.section-tagline-light {
  color: rgba(191, 219, 254, 0.9);
}

.section-title {
  margin: 0;
  font-weight: 800;
  line-height: 1.1;
  font-size: clamp(2.5rem, 4vw, 3.75rem);
}

.section-title-light {
  color: #f9fafb;
}

.section-text {
  margin: 0.25rem 0 0;
  font-size: 1.0625rem;
  color: var(--text-muted);
}

.section-text-large {
  font-size: 1.25rem;
  color: var(--text-muted);
}

.section-text-light {
  color: #cbd5f5;
}

.section-divider {
  border-top: 1px solid var(--border);
  margin-top: 3rem;
  padding-top: 2rem;
}

.section-divider-dark {
  border-color: rgba(148, 163, 184, 0.3);
}

.section-highlight {
  font-size: 1.1875rem;
  max-width: 52rem;
  color: var(--slate-700);
  margin: 0;
}

.section-highlight-light {
  color: #e5e7eb;
}

/* Nav */

.nav {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(226, 232, 240, 0.7);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(18px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.04em;
}

.logo-icon {
  width: 1.9rem;
  height: 1.9rem;
}

.logo-orbit {
  stroke: var(--blue-600);
}

.logo-core {
  fill: var(--blue-600);
}

.logo-node {
  fill: var(--blue-400);
}

.logo-text {
  position: relative;
  top: 0.04em;
}

.nav-links {
  display: none;
  gap: 2rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.nav-links a {
  color: var(--slate-900);
  text-decoration: none;
  padding-bottom: 0.2rem;
  position: relative;
  transition: color 0.18s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 0;
  background: var(--blue-600);
  transition: width 0.18s ease;
}

.nav-links a:hover {
  color: var(--blue-600);
}

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

/* Hero */

.hero {
  position: relative;
  min-height: 100vh;
  padding-top: 6rem; /* nav height */
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    var(--slate-50),
    rgba(219, 234, 254, 0.5),
    #ffffff
  );
  pointer-events: none;
}

.hero-circle {
  position: absolute;
  border-radius: 999px;
  filter: blur(48px);
  opacity: 0.8;
  pointer-events: none;
}

.hero-circle-1 {
  top: 5rem;
  right: 10%;
  width: 24rem;
  height: 24rem;
  background: rgba(191, 219, 254, 0.7);
}

.hero-circle-2 {
  bottom: 5rem;
  left: 10%;
  width: 20rem;
  height: 20rem;
  background: rgba(191, 219, 254, 0.6);
}

.hero-circle-3 {
  top: 50%;
  right: 25%;
  width: 16rem;
  height: 16rem;
  background: rgba(148, 163, 184, 0.7);
}

.protein-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  color: var(--slate-400);
  pointer-events: none;
}

.protein-pattern-svg {
  width: 100%;
  height: 100%;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-block: 4.5rem 4rem;
  display: flex;
  align-items: flex-start; /* keeps text on same left as logo inside .container */
}

.hero-text {
  max-width: 60rem;
  margin: 0;          /* ensure no auto-centering */
  text-align: left;
}

.hero-heading-block {
  margin-bottom: 1.5rem;
}

.hero-line {
  margin: 0.15em 0;
  font-weight: 800;
  letter-spacing: -0.06em;
  font-size: clamp(3.75rem, 8vw, 6.5rem);
  line-height: 0.9;
}

.hero-line-gradient {
  background-image: linear-gradient(90deg, var(--blue-600), var(--blue-900));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-bottom: 0.25rem;
}

.hero-line-last {
  margin-bottom: 0.5rem;
}

.hero-subtitle {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  color: var(--slate-600);
  max-width: 35rem;
  font-weight: 300;
}

.hero-scroll {
  margin-top: 1.75rem;
}

.hero-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  color: var(--slate-400);
  text-decoration: none;
  animation: bounce 1.5s infinite;
}

.chevron-icon {
  width: 2rem;
  height: 2rem;
}

/* Bounce animation */

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(7px);
  }
}

/* Motion */

@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeLeft {
  0% {
    opacity: 0;
    transform: translateX(-20px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.fade-in-up {
  opacity: 0;
  animation: fadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.fade-in-left {
  opacity: 0;
  animation: fadeLeft 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.fade-in-up:nth-of-type(2),
.fade-in-left:nth-of-type(2) {
  animation-delay: 0.15s;
}

.fade-in-up:nth-of-type(3),
.fade-in-left:nth-of-type(3) {
  animation-delay: 0.3s;
}

/* Grid helpers */

.grid-2 {
  display: grid;
  gap: 3rem;
  margin-top: 2.5rem;
}

/* Team */

.team-list {
  display: grid;
  gap: 4rem;
}

.team-member {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.team-photo-wrap {
  flex-shrink: 0;
}

.team-photo {
  width: 12rem;
  height: 12rem;
  border-radius: 1rem;
  overflow: hidden;
  background-color: var(--slate-100);
}

.team-photo-bg {
  background-color: var(--slate-100);
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.1) brightness(1.05);
}

.team-content {
  border-left: 4px solid var(--blue-600);
  padding-left: 2rem;
}

.team-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.team-name {
  margin: 0;
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--slate-900);
}

.team-role {
  margin: 0.4rem 0 0;
  font-size: 1.125rem;
  color: var(--blue-600);
  font-weight: 600;
}

.team-bio {
  margin: 0;
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 48rem;
}

.icon-link {
  color: var(--slate-400);
  text-decoration: none;
  transition: color 0.18s ease;
}

.icon-link:hover {
  color: var(--blue-600);
}

.icon-svg {
  width: 1.5rem;
  height: 1.5rem;
}

/* Research */

.section-text-large {
  margin-top: 0.5rem;
}

.research-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.research-card {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: 0.75rem;
  background-color: #f8fafc;
  transition: background-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.research-card p {
  margin: 0;
  color: var(--slate-800);
}

.research-card:hover {
  background-color: #e5f0ff;
  box-shadow: var(--shadow-subtle);
  transform: translateY(-2px);
}

.research-icon {
  flex-shrink: 0;
  margin-top: 0.1rem;
  color: var(--blue-600);
}

/* Pills / Research Program */

.section-subblock {
  margin-top: 3rem;
}

.section-subtitle {
  margin: 0 0 0.4rem;
  font-size: 1.5rem;
  font-weight: 700;
}

.pill-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.pill {
  padding: 1rem 1.2rem;
  border-radius: 0.75rem;
  border-left: 4px solid var(--blue-600);
  background-color: #f8fafc;
  font-weight: 600;
  color: var(--slate-800);
}

/* Approach */

.approach-grid {
  display: grid;
  gap: 1.75rem;
  margin-top: 3rem;
}

.approach-card {
  padding: 1.5rem 1.75rem;
  border-radius: 0.9rem;
  background: radial-gradient(circle at top left, #1e293b, #020617);
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.4);
}

.approach-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  color: #e5e7eb;
}

.approach-card p {
  margin: 0;
  font-size: 0.98rem;
  color: #cbd5f5;
}

/* Technology */

.tech-section {
  position: relative;
  overflow: hidden;
  background-color: #ffffff;
}

.tech-inner {
  position: relative;
  z-index: 1;
}

.tech-circle-1 {
  top: 5rem;
  right: 10%;
  width: 24rem;
  height: 24rem;
  background: rgba(191, 219, 254, 0.7);
}

.tech-circle-2 {
  bottom: 5rem;
  left: 10%;
  width: 20rem;
  height: 20rem;
  background: rgba(191, 219, 254, 0.6);
}

.tech-pattern {
  opacity: 0.03;
}

.tech-list {
  margin-top: 2.5rem;
  display: grid;
  gap: 1rem;
}

.tech-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.25rem 1.5rem;
  border-radius: 0.75rem;
  background: linear-gradient(to right, #f8fafc, #ffffff);
  border-left: 4px solid var(--blue-600);
}

.tech-item p {
  margin: 0;
  color: var(--slate-800);
  font-size: 1.0625rem;
}

.tech-dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 999px;
  background-color: var(--blue-600);
  flex-shrink: 0;
}

.tech-highlight {
  margin-top: 3rem;
  padding: 2.5rem;
  border-radius: 1.25rem;
  background-color: #020617;
  color: #e5e7eb;
  font-size: 1.0625rem;
  line-height: 1.7;
}

/* Collaborate */

.collaborate-section {
  background: linear-gradient(135deg, var(--blue-600), var(--blue-800));
  color: #eff6ff;
}

.collaborate-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.collaborate-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.collaborate-bullet {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  border: 1px solid rgba(239, 246, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.collaborate-bullet span {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background-color: #ffffff;
}

.collaborate-item p {
  margin: 0.25rem 0 0;
  font-size: 1.0625rem;
}

.collaborate-cta {
  margin-top: 3rem;
}

/* Button */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1.75rem;
  padding: 0.9rem 2rem;
  border-radius: 999px;
  border: none;
  background-color: #ffffff;
  color: var(--blue-600);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.45);
  transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

.btn-primary:hover {
  background-color: var(--blue-50);
  transform: translateY(-1px);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.55);
}

.btn-icon {
  display: inline-flex;
}

/* Footer */

.footer {
  padding-block: 4rem;
  background-color: #020617;
  color: #e5e7eb;
  border-top: 1px solid #111827;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: 1.6rem;
}

.logo-orbit-footer {
  stroke: var(--blue-400);
}

.logo-core-footer {
  fill: var(--blue-500);
}

.logo-node-footer {
  fill: var(--blue-400);
}

.footer-copy {
  font-size: 0.9rem;
  color: #9ca3af;
}

/* Responsive */

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

  .hero {
    padding-top: 7rem;
  }

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

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

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

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

  .team-member {
    flex-direction: row;
  }

  .footer-inner {
    flex-direction: row;
  }

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

@media (min-width: 1024px) {
  .hero-content {
    padding-block: 5rem 4rem;
  }

  .hero-text {
    max-width: 56rem;
  }
}