:root {
  color-scheme: dark;
  --bg: #050812;
  --bg-2: #08111f;
  --text: #ecf7ff;
  --muted: #9bb2c8;
  --line: rgba(140, 206, 255, 0.18);
  --cyan: #58e1ff;
  --blue: #6c8dff;
  --green: #6dffbc;
  --rose: #ff5fa2;
  --panel: rgba(9, 23, 42, 0.72);
  --panel-strong: rgba(12, 33, 58, 0.88);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 8%, rgba(39, 122, 255, 0.2), transparent 32rem),
    radial-gradient(circle at 86% 16%, rgba(46, 255, 183, 0.14), transparent 28rem),
    linear-gradient(180deg, #050812 0%, #07101d 44%, #03050d 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
  z-index: 0;
}

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

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

#agent-field {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.62;
  pointer-events: none;
  z-index: 0;
}

.page-shell {
  position: relative;
  z-index: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid rgba(123, 196, 255, 0.12);
  background: rgba(4, 8, 18, 0.76);
  backdrop-filter: blur(18px);
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(88, 225, 255, 0.62);
  border-radius: 8px;
  object-fit: cover;
  background: rgba(4, 8, 18, 0.88);
  box-shadow: inset 0 0 24px rgba(88, 225, 255, 0.16);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 16px;
  line-height: 1.1;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

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

.nav-links a {
  padding: 9px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #cfe5f4;
  font-size: 14px;
}

.nav-links a:hover {
  border-color: rgba(88, 225, 255, 0.28);
  background: rgba(88, 225, 255, 0.08);
}

.section-band {
  width: min(1180px, calc(100% - 40px));
  max-width: calc(100% - 40px);
  margin: 0 auto;
  padding: 84px 0;
}

.hero {
  position: relative;
  display: grid;
  min-height: calc(100vh - 78px);
  grid-template-columns: minmax(0, 1.03fr) minmax(360px, 0.82fr);
  align-items: center;
  gap: 52px;
  padding-top: 58px;
}

.hero-copy,
.orbital-panel,
.mission-copy,
.leader-copy {
  min-width: 0;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 22px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(88, 225, 255, 0.5), transparent);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  max-width: none;
  margin-bottom: 24px;
  font-size: clamp(56px, 6.4vw, 88px);
  line-height: 0.94;
  font-weight: 850;
  letter-spacing: 0;
  white-space: nowrap;
  text-shadow: 0 0 34px rgba(88, 225, 255, 0.28);
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: 0;
}

h3 {
  font-size: 24px;
  line-height: 1.2;
}

p {
  color: var(--muted);
  line-height: 1.72;
}

.hero-lede {
  max-width: 700px;
  font-size: 18px;
  color: #d5eafa;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 34px 0 26px;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 20px;
  font-weight: 700;
}

.primary-action {
  color: #04111a;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  box-shadow: 0 18px 40px rgba(88, 225, 255, 0.22);
}

.secondary-action {
  border: 1px solid rgba(180, 220, 255, 0.24);
  color: #e8f7ff;
  background: rgba(255, 255, 255, 0.04);
}

.signal-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 100%;
}

.signal-row span,
.leader-tags span {
  max-width: 100%;
  border: 1px solid rgba(88, 225, 255, 0.24);
  border-radius: 8px;
  padding: 8px 10px;
  color: #bdeeff;
  background: rgba(88, 225, 255, 0.06);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.orbital-panel {
  position: relative;
  min-height: 520px;
  border: 1px solid rgba(88, 225, 255, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(88, 225, 255, 0.1), transparent 44%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  box-shadow: var(--shadow), inset 0 0 120px rgba(88, 225, 255, 0.08);
  overflow: hidden;
}

.orbital-panel::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
}

.orbital-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(transparent 0 92%, rgba(88, 225, 255, 0.12) 92%),
    linear-gradient(90deg, transparent 0 92%, rgba(88, 225, 255, 0.12) 92%);
  background-size: 32px 32px;
  opacity: 0.38;
}

.orbital-core {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: grid;
  width: 176px;
  height: 176px;
  place-items: center;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(109, 255, 188, 0.44);
  border-radius: 50%;
  background: rgba(3, 15, 26, 0.88);
  box-shadow: 0 0 70px rgba(88, 225, 255, 0.24);
  text-align: center;
}

.core-pulse {
  position: absolute;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--cyan);
  filter: blur(18px);
  opacity: 0.55;
  animation: pulse 3.4s ease-in-out infinite;
}

.orbital-core strong,
.orbital-core small {
  position: relative;
  z-index: 1;
}

.orbital-core small {
  color: var(--muted);
  font-size: 12px;
}

.orbit {
  position: absolute;
  z-index: 2;
  inset: 50%;
  width: 260px;
  height: 260px;
  margin: -130px;
  border: 1px solid rgba(88, 225, 255, 0.2);
  border-radius: 50%;
  animation: rotate 24s linear infinite;
}

.orbit span {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  border: 1px solid rgba(88, 225, 255, 0.4);
  border-radius: 8px;
  padding: 6px 9px;
  color: #d8f8ff;
  background: rgba(4, 13, 24, 0.9);
  font-size: 12px;
}

.orbit-b {
  width: 350px;
  height: 350px;
  margin: -175px;
  animation-duration: 34s;
  animation-direction: reverse;
}

.orbit-c {
  width: 440px;
  height: 440px;
  margin: -220px;
  animation-duration: 46s;
}

.telemetry {
  position: absolute;
  right: 26px;
  bottom: 26px;
  z-index: 3;
  width: min(280px, calc(100% - 52px));
  border-left: 2px solid var(--green);
  padding-left: 14px;
}

.telemetry p {
  margin-bottom: 6px;
  color: rgba(216, 248, 255, 0.78);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
}

.mission-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 54px;
  border-top: 1px solid var(--line);
}

.mission-copy {
  display: grid;
  gap: 18px;
}

.section-heading {
  margin-bottom: 34px;
}

.split-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.8fr);
  gap: 34px;
  align-items: end;
}

.research-grid,
.project-grid,
.member-grid {
  display: grid;
  gap: 18px;
}

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

.research-card,
.project-card,
.member-card,
.contact-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
}

.research-card,
.project-card,
.member-card {
  padding: 22px;
}

.research-card::before,
.project-card::before,
.member-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(88, 225, 255, 0.12), transparent 52%);
  opacity: 0;
  transition: opacity 180ms ease;
}

.research-card:hover::before,
.project-card:hover::before,
.member-card:hover::before {
  opacity: 1;
}

.card-index {
  color: var(--cyan);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
}

.research-card h3,
.project-card h3,
.member-card h4 {
  position: relative;
  margin: 12px 0 10px;
}

.research-card p,
.project-card p,
.member-card p {
  position: relative;
  margin-bottom: 0;
}

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

.project-card.featured {
  grid-column: span 2;
  background: var(--panel-strong);
}

.project-tag {
  display: inline-flex;
  margin-bottom: 14px;
  border: 1px solid rgba(109, 255, 188, 0.3);
  border-radius: 8px;
  padding: 6px 9px;
  color: var(--green);
  font-size: 12px;
  line-height: 1;
}

.project-card span {
  position: relative;
  display: block;
  margin-top: 18px;
  color: rgba(216, 248, 255, 0.62);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
}

.project-link {
  position: relative;
  display: inline-flex;
  width: fit-content;
  min-height: 36px;
  align-items: center;
  margin-top: 18px;
  border: 1px solid rgba(88, 225, 255, 0.32);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--cyan);
  background: rgba(88, 225, 255, 0.07);
  font-size: 13px;
  font-weight: 800;
}

.project-link::after {
  content: "↗";
  margin-left: 8px;
  font-size: 12px;
}

.project-link:hover {
  border-color: rgba(109, 255, 188, 0.56);
  color: var(--green);
}

.leader-panel {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 30px;
  align-items: stretch;
  border: 1px solid rgba(88, 225, 255, 0.2);
  border-radius: 8px;
  padding: 20px;
  background: linear-gradient(135deg, rgba(88, 225, 255, 0.12), rgba(255, 255, 255, 0.03));
  box-shadow: var(--shadow);
}

.leader-photo-wrap {
  min-height: 360px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  overflow: hidden;
  background: #0a1320;
}

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

.leader-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 18px 8px;
}

.leader-copy h3 {
  margin-bottom: 8px;
  font-size: 42px;
}

.leader-title {
  color: #d7efff;
  font-weight: 700;
}

.leader-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 22px;
}

.leader-copy a {
  width: fit-content;
  color: var(--cyan);
  font-weight: 700;
}

.student-section {
  display: grid;
  gap: 40px;
  margin-top: 44px;
}

.student-group h3 {
  margin-bottom: 16px;
}

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

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

.member-card h4 {
  font-size: 19px;
}

.member-card p {
  font-size: 14px;
}

.contact-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 42px;
  align-items: center;
  border-top: 1px solid var(--line);
}

.contact-card {
  display: grid;
  gap: 8px;
  padding: 24px;
}

.contact-card span {
  color: var(--muted);
  font-size: 12px;
}

.contact-card a {
  color: var(--cyan);
  font-size: 20px;
  font-weight: 800;
}

.contact-card strong {
  color: #e9f8ff;
  font-size: 15px;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 28px clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: rgba(3, 6, 13, 0.72);
}

.site-footer p {
  margin: 0;
  font-size: 13px;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(0.85);
    opacity: 0.44;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.75;
  }
}

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .hero,
  .mission-grid,
  .split-heading,
  .leader-panel,
  .contact-band {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 34px;
  }

  .orbital-panel {
    min-height: 440px;
  }

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

  .project-card.featured {
    grid-column: span 1;
  }
}

@media (max-width: 640px) {
  .section-band {
    width: calc(100% - 28px);
    max-width: calc(100% - 28px);
    padding: 58px 0;
  }

  .hero {
    min-height: auto;
    padding-top: 42px;
  }

  h1 {
    font-size: 48px;
  }

  .hero-lede {
    font-size: 16px;
  }

  .signal-row {
    display: grid;
    width: 100%;
    grid-template-columns: 1fr;
  }

  .signal-row span {
    display: flex;
    width: 100%;
    min-width: 0;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .nav-links a {
    padding: 7px 9px;
    font-size: 13px;
  }

  .orbital-panel {
    min-height: 360px;
  }

  .orbit-c {
    display: none;
  }

  .research-grid,
  .project-grid,
  .member-grid,
  .member-grid.compact {
    grid-template-columns: 1fr;
  }

  .leader-panel {
    padding: 14px;
  }

  .leader-photo-wrap {
    min-height: 300px;
  }

  .leader-copy h3 {
    font-size: 34px;
  }
}
