:root {
  --bg: #050506;
  --bg-soft: #0a0a0c;
  --bg-canvas: #060709;
  --text: #f4f5f7;
  --muted: #a0a5ae;
  --faint: #6f7480;
  --line: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(255, 255, 255, 0.26);
  --accent: #e82127;
  --accent-hot: #ff343b;
  --font-sans: "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Roboto Mono", "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  letter-spacing: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

ul,
ol {
  list-style: none;
}

::selection {
  background: var(--accent);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  background: var(--accent);
  color: #fff;
  padding: 12px 18px;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(5, 5, 6, 0.58);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.site-header.scrolled {
  background: rgba(5, 5, 6, 0.9);
  border-bottom-color: var(--line-strong);
}

.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  width: 30px;
  height: 30px;
  color: var(--text);
  flex: none;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}

.brand-text strong {
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
}

.brand-text span {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-size: 14px;
  color: #c6cad1;
  padding: 8px 0;
  position: relative;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: #fff;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.25s ease;
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
  width: 100%;
}

.nav-cta {
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 9px 16px;
  color: #fff;
}

.nav-cta::after {
  display: none;
}

.nav-cta:hover {
  background: #fff;
  color: var(--bg);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.menu-toggle svg {
  width: 20px;
  height: 20px;
}

.icon-close {
  display: none;
}

.menu-toggle[aria-expanded="true"] .icon-menu {
  display: none;
}

.menu-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.hero-overlay {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: center;
  background: linear-gradient(90deg, rgba(5, 5, 6, 0.94) 0%, rgba(5, 5, 6, 0.78) 34%, rgba(5, 5, 6, 0.38) 62%, rgba(5, 5, 6, 0.1) 100%);
}

.hero-content {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 120px 24px 72px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #8f95a0;
  text-transform: uppercase;
}

.hero-eyebrow {
  color: #a8adb5;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-eyebrow::before {
  content: "";
  width: 36px;
  height: 1px;
  background: var(--accent);
  flex: none;
}

.hero h1 {
  font-size: 64px;
  font-weight: 600;
  line-height: 1.08;
  margin-bottom: 20px;
  max-width: 760px;
}

.hero-lead {
  font-size: 22px;
  color: #eef0f3;
  margin-bottom: 16px;
  max-width: 640px;
}

.hero-copy {
  font-size: 16px;
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 26px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn svg {
  width: 16px;
  height: 16px;
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-hot);
  border-color: var(--accent-hot);
}

.btn-ghost:hover {
  background: #fff;
  border-color: #fff;
  color: var(--bg);
}

.telemetry {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #8f95a0;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
  padding-left: 14px;
}

.t-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.status-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.2;
  }
}

.hero-stats {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(5, 5, 6, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.stat {
  padding: 24px;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat:first-child {
  border-left: 0;
}

.stat-value {
  font-size: 34px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #8f95a0;
  text-transform: uppercase;
}

.scroll-hint {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 132px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #8f95a0;
  font-family: var(--font-mono);
  font-size: 10px;
  animation: float 2.4s ease-in-out infinite;
}

.scroll-hint svg {
  width: 16px;
  height: 16px;
}

@keyframes float {
  0%,
  100% {
    transform: translate(-50%, 0);
  }
  50% {
    transform: translate(-50%, 6px);
  }
}

.section {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  scroll-margin-top: 72px;
}

.section-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 96px 24px;
}

.section-head {
  margin-bottom: 56px;
  max-width: 820px;
}

.section-head h2 {
  font-size: 42px;
  font-weight: 600;
  line-height: 1.15;
  margin-top: 14px;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 72px;
  align-items: start;
}

.about-copy p {
  color: #c6cad1;
  font-size: 16px;
  margin-bottom: 20px;
  max-width: 600px;
}

.about-copy blockquote {
  border-left: 2px solid var(--accent);
  padding: 4px 0 4px 20px;
  color: var(--text);
  font-size: 18px;
  line-height: 1.7;
  margin-top: 28px;
  max-width: 600px;
}

.about-panel {
  border: 1px solid var(--line-strong);
  background: var(--bg-soft);
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-family: var(--font-mono);
  font-size: 11px;
  color: #8f95a0;
  text-transform: uppercase;
}

.cap-list li {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 16px;
  padding: 24px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cap-list li:last-child {
  border-bottom: 0;
}

.cap-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  padding-top: 4px;
}

.cap-text h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.cap-text p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}

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

.project-card {
  border: 1px solid var(--line);
  background: var(--bg-soft);
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.project-card:hover {
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-4px);
}

.project-art {
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--bg-canvas);
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.project-art svg {
  width: 100%;
  height: 100%;
}

.svg-label {
  font-family: var(--font-mono);
  font-size: 9px;
  fill: #7c828c;
}

.art-status {
  position: absolute;
  top: 14px;
  right: 14px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  color: #eef0f3;
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 5px 10px;
  background: rgba(5, 5, 6, 0.72);
  line-height: 1;
}

.project-body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.project-body h3 {
  font-size: 19px;
  font-weight: 600;
}

.project-body p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
}

.tag {
  font-family: var(--font-mono);
  font-size: 10px;
  color: #c6cad1;
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 4px 9px;
}

.timeline {
  position: relative;
  max-width: 900px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 184px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(255, 255, 255, 0.16);
}

.timeline-item {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 48px;
  padding: 28px 0;
}

.tl-year {
  font-family: var(--font-mono);
  font-size: 20px;
  color: var(--accent);
  text-align: right;
  padding-top: 2px;
}

.tl-body {
  border-left: 1px solid rgba(255, 255, 255, 0.16);
  padding-left: 32px;
  position: relative;
}

.tl-body::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 12px;
  width: 9px;
  height: 9px;
  background: var(--bg);
  border: 1px solid var(--accent);
}

.tl-body h3 {
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 8px;
}

.tl-body p {
  font-size: 15px;
  color: var(--muted);
  max-width: 600px;
  line-height: 1.7;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.team-card {
  border: 1px solid var(--line);
  padding: 24px;
  background: var(--bg-soft);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.team-card:hover {
  border-color: rgba(255, 255, 255, 0.45);
  transform: translateY(-3px);
}

.team-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.team-index {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #8f95a0;
}

.team-card h3 {
  font-size: 18px;
  font-weight: 600;
}

.team-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  flex: 1;
}

.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 16px;
}

.skill-list li {
  font-family: var(--font-mono);
  font-size: 10px;
  color: #c6cad1;
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 4px 9px;
}

.join-section {
  background: var(--bg-soft);
}

.join-panel {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  padding: 40px 0;
}

.join-panel .eyebrow {
  justify-content: center;
}

.join-panel h2 {
  font-size: 44px;
  font-weight: 600;
  line-height: 1.16;
  margin: 18px 0 20px;
}

.join-panel > p:not(.eyebrow) {
  font-size: 16px;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 36px;
  line-height: 1.8;
}

.join-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.join-meta {
  display: flex;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #8f95a0;
}

.join-meta span {
  padding: 0 18px;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.join-meta span:first-child {
  border-left: 0;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  background: #08080a;
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 56px 24px 36px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-nav a {
  font-size: 14px;
  color: #c6cad1;
  transition: color 0.2s ease;
}

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

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
  text-align: right;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  max-width: 1240px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--faint);
  font-size: 12px;
}

.footer-sys {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: none;
}

@media (max-width: 1024px) {
  .hero h1 {
    font-size: 52px;
  }

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

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

  .about-grid {
    gap: 48px;
  }
}

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 768px) {
  .header-inner {
    padding: 0 16px;
  }

  .site-nav {
    position: fixed;
    inset: 68px 0 auto 0;
    background: rgba(5, 5, 6, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    flex-direction: column;
    align-items: stretch;
    padding: 18px 24px 28px;
    gap: 4px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
  }

  .site-nav.open {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .nav-link {
    display: block;
    padding: 14px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 16px;
  }

  .nav-cta {
    border: 1px solid rgba(255, 255, 255, 0.28);
    text-align: center;
    margin-top: 16px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero-lead {
    font-size: 19px;
  }

  .hero-copy {
    font-size: 15px;
  }

  .hero-content {
    padding: 110px 20px 60px;
  }

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

  .stat {
    padding: 20px;
  }

  .stat:nth-child(3) {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .stat:nth-child(4) {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .stat-value {
    font-size: 30px;
  }

  .scroll-hint {
    display: none;
  }

  .section-inner {
    padding: 72px 20px;
  }

  .section-head {
    margin-bottom: 44px;
  }

  .section-head h2 {
    font-size: 34px;
  }

  .timeline::before {
    left: 0;
  }

  .timeline-item {
    display: block;
    padding: 24px 0 24px 28px;
  }

  .tl-year {
    text-align: left;
    font-size: 18px;
    margin-bottom: 8px;
  }

  .tl-body {
    border-left: 0;
    padding-left: 0;
  }

  .tl-body::before {
    left: -28px;
    top: 6px;
  }

  .join-panel {
    padding: 24px 0;
  }

  .join-panel h2 {
    font-size: 36px;
  }

  .join-meta {
    flex-direction: column;
    gap: 10px;
  }

  .join-meta span,
  .join-meta span:first-child {
    border-left: 0;
    padding: 0;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-contact {
    text-align: left;
  }
}

@media (max-width: 520px) {
  .brand-text span {
    display: none;
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

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

  .stat-value {
    font-size: 26px;
  }

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

  .join-actions .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .status-dot,
  .scroll-hint {
    animation: none;
  }
}
