:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-strong: #eef4f8;
  --ink: #17212b;
  --muted: #5e6b76;
  --line: #d9e2e9;
  --blue: #1e63b6;
  --teal: #008b8f;
  --green: #398153;
  --coral: #c95f50;
  --shadow: 0 18px 50px rgba(24, 44, 67, 0.13);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}

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

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 14px clamp(20px, 5vw, 72px);
  background: rgba(7, 18, 32, 0.42);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
  color: #0c1826;
  font-weight: 800;
  letter-spacing: 0;
}

.brand strong,
.brand small {
  display: block;
  white-space: nowrap;
}

.brand small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: rgba(255, 255, 255, 0.76);
  font-weight: 650;
}

.nav-links a:hover {
  color: #fff;
}

.nav-action,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border-radius: 8px;
  line-height: 1;
}

.nav-action {
  padding: 0 14px;
  color: #0d1a28;
  background: rgba(255, 255, 255, 0.94);
}

.button {
  padding: 0 18px;
  border: 1px solid var(--line);
  font-weight: 750;
}

.button.primary {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.8);
}

.hero .button.secondary {
  color: #0d1a28;
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(255, 255, 255, 0.72);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
}

.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 120px clamp(20px, 5vw, 72px) 88px;
  overflow: hidden;
  color: #fff;
  isolation: isolate;
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    radial-gradient(circle at 50% 42%, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.5) 58%),
    linear-gradient(180deg, rgba(4, 12, 22, 0.15), rgba(4, 12, 22, 0.72));
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.04) contrast(1.03);
}

.hero-copy {
  max-width: 980px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(70px, 12vw, 172px);
  line-height: 0.9;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.18;
  letter-spacing: 0;
}

.lead {
  max-width: 760px;
  margin-right: auto;
  margin-left: auto;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(17px, 1.65vw, 22px);
  line-height: 1.55;
}

.hero .eyebrow {
  color: rgba(210, 245, 245, 0.92);
}

.hero-subtitle {
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(24px, 3.4vw, 46px);
  font-weight: 750;
  letter-spacing: 0;
}

.hero-actions {
  justify-content: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.tag {
  color: var(--coral);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.scroll-cue {
  position: absolute;
  bottom: 26px;
  left: 50%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 1120px;
  margin: 0 auto 28px;
  padding: 42px clamp(20px, 5vw, 72px) 0;
  gap: 14px;
}

.stats div {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
}

.stats strong {
  display: block;
  margin-bottom: 6px;
  font-size: 28px;
}

.stats span {
  color: var(--muted);
}

.section {
  max-width: 1240px;
  margin: 0 auto;
  padding: 82px clamp(20px, 5vw, 72px);
}

.section-heading {
  max-width: 820px;
  margin-bottom: 32px;
}

.section-heading.split {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  max-width: none;
}

.direction-grid,
.project-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.direction {
  min-height: 280px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.direction svg {
  width: 34px;
  height: 34px;
  margin-bottom: 28px;
  color: var(--blue);
}

.direction p,
.project-body p,
.profile p,
.team-placeholder p,
.join p,
.lab-note p {
  color: var(--muted);
  line-height: 1.62;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.filter {
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  font-weight: 750;
}

.filter.active,
.filter:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

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

.project-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    opacity 160ms ease;
}

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

.project-card.is-hidden {
  display: none;
}

.project-card img {
  width: 100%;
  aspect-ratio: 1.9 / 1;
  object-fit: cover;
  background: var(--surface-strong);
}

.project-body {
  padding: 22px;
}

.project-body a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  color: var(--blue);
  font-weight: 800;
}

.lab-note {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 32px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.people-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
}

.profile,
.team-placeholder,
.join {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.profile {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 22px;
  padding: 26px;
}

.avatar {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(30, 99, 182, 0.9), rgba(0, 139, 143, 0.9)),
    var(--blue);
  color: #fff;
  font-size: 30px;
  font-weight: 850;
}

.photo-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.profile-links a {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--blue);
  font-weight: 750;
}

.team-placeholder {
  padding: 26px;
  background:
    linear-gradient(135deg, rgba(57, 129, 83, 0.1), transparent),
    var(--surface);
}

.join {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 56px;
  background:
    linear-gradient(120deg, rgba(30, 99, 182, 0.1), rgba(201, 95, 80, 0.08)),
    var(--surface);
}

.join p {
  max-width: 760px;
  margin-bottom: 0;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer div {
  display: flex;
  gap: 18px;
}

.site-footer a {
  font-weight: 750;
}

svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

@media (max-width: 980px) {
  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .nav-links {
    position: absolute;
    top: 76px;
    right: 20px;
    display: none;
    width: min(320px, calc(100vw - 40px));
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--ink);
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: grid;
  }

  .nav-action {
    width: 100%;
    color: #fff;
    background: var(--ink);
  }

  .hero {
    min-height: 100vh;
  }

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

  .section-heading.split,
  .lab-note,
  .people-layout {
    grid-template-columns: 1fr;
    display: grid;
  }

  .filters {
    justify-content: start;
  }

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

@media (max-width: 640px) {
  .site-header {
    min-height: 70px;
  }

  .brand small {
    display: none;
  }

  .nav-links {
    top: 70px;
  }

  .hero {
    padding-top: 110px;
  }

  h1 {
    font-size: 68px;
  }

  .direction-grid,
  .project-grid,
  .stats {
    grid-template-columns: 1fr;
  }

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

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