:root {
  --header-brand-size: clamp(1.35rem, 1.2rem + 0.55vw, 1.7rem);
  --header-nav-size: clamp(0.9rem, 0.84rem + 0.2vw, 1rem);
  --header-icon-size: 1.05rem;
  --surface-tint: #c6c6c7;
  --tertiary-dim: #ff51fa;
  --primary-fixed: #e2e2e2;
  --secondary-dim: #d0df00;
  --on-error: #490013;
  --secondary-container: #3a3f00;
  --primary-container: #454747;
  --on-surface: #e5e5e5;
  --on-primary: #3f4041;
  --primary-fixed-dim: #d4d4d4;
  --error-container: #7f2737;
  --on-secondary: #585f00;
  --tertiary-container: #fe00fe;
  --surface-container-high: #1f1f1f;
  --primary-dim: #b8b9b9;
  --surface-container-low: #131313;
  --primary: #c6c6c7;
  --on-primary-fixed-variant: #5a5c5c;
  --inverse-primary: #5e5f5f;
  --error: #ec7c8a;
  --on-primary-container: #d0d0d0;
  --background: #0e0e0e;
  --surface-container-lowest: #000000;
  --on-error-container: #ff97a3;
  --secondary: #ecfc00;
  --secondary-fixed: #deed00;
  --tertiary-fixed: #fe00fe;
  --tertiary: #ff51fa;
  --secondary-fixed-dim: #d0df00;
  --surface-container-highest: #262626;
  --surface-bright: #2c2c2c;
  --on-tertiary-container: #230023;
  --on-secondary-container: #bcc800;
  --outline-variant: #484848;
  --on-tertiary: #400040;
  --surface-variant: #262626;
  --inverse-on-surface: #555555;
  --outline: #757575;
  --inverse-surface: #f9f9f9;
  --on-secondary-fixed: #3e4300;
  --surface-dim: #0e0e0e;
  --surface-container: #191919;
  --on-secondary-fixed-variant: #5a6000;
  --on-primary-fixed: #3e4040;
  --error-dim: #b95463;
  --surface: #0e0e0e;
  --on-tertiary-fixed-variant: #390039;
  --tertiary-fixed-dim: #e800e8;
  --on-surface-variant: #ababab;
  --on-tertiary-fixed: #000000;
  --on-background: #e5e5e5;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
  background-color: #0e0e0e;
  color: #e5e5e5;
}

::selection {
  background: var(--secondary);
  color: var(--on-secondary);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.font-mono,
.brand,
.template-nav,
.footer-copy,
.footer-status {
  font-family: "Cascadia Mono", Consolas, monospace;
}

.shell {
  width: min(1280px, calc(100% - 64px));
  margin: 0 auto;
}

.page-body {
  min-height: 100vh;
  position: relative;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.brutalist-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 100px 100px;
}

.template-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 16px 0;
  display: flex;
  justify-content: center;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid #262626;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  color: #fff;
  font-size: var(--header-brand-size);
  font-weight: 900;
  letter-spacing: 0.2em;
  line-height: 1.1;
  text-transform: uppercase;
}

.template-nav {
  display: flex;
  gap: 32px;
  font-size: var(--header-nav-size);
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.template-nav a {
  color: #a3a3a3;
  font-weight: 500;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: color 150ms ease-out, border-color 150ms ease-out;
}

.template-nav a:hover {
  color: #fff;
}

.template-nav .is-active {
  color: var(--secondary);
  font-weight: 700;
  border-color: var(--secondary);
}

.header-action {
  display: flex;
  align-items: center;
  gap: 16px;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 8px;
  font-size: var(--header-icon-size);
  color: #a3a3a3;
  cursor: pointer;
  transition: color 150ms ease-out, background-color 150ms ease-out;
}

.icon-button:hover {
  color: #fff;
  background: rgba(38, 38, 38, 0.5);
}

.icon-svg {
  width: 1em;
  height: 1em;
  display: block;
  fill: currentColor;
}

.template-main {
  padding-top: 96px;
  position: relative;
}

.frame-line {
  position: fixed;
  top: 0;
  height: 100%;
  width: 1px;
  background: rgba(38, 38, 38, 0.2);
  pointer-events: none;
  z-index: 0;
}

.frame-line--left {
  left: 48px;
}

.frame-line--right {
  right: 48px;
}

.hero-section {
  min-height: 730px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(620px, 1.75fr);
  gap: 18px;
  align-items: end;
  position: relative;
  z-index: 10;
}

.section-code {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.section-code--accent {
  color: var(--secondary);
  margin: 0 0 16px;
}

.hero-name-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 18px;
}

.hero-name {
  margin: 0;
  padding: 16px 8px;
  font-size: var(--hero-name-size, clamp(3.75rem, 9vw, 9rem));
  font-weight: 900;
  line-height: 0.85;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  font-style: italic;
}

.glitch-hover:hover {
  text-shadow: 2px 0 #ff51fa, -2px 0 #ecfc00;
}

.frame-corner {
  position: absolute;
  width: 15px;
  height: 15px;
  border-color: rgba(236, 252, 0, 0.3);
}

.frame-corner-tl {
  top: -1px;
  left: -1px;
  border-top: 1px solid;
  border-left: 1px solid;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.hero-tags span {
  background: #171717;
  padding: 4px 12px;
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 10px;
  border: 1px solid #262626;
  color: #a3a3a3;
  text-transform: uppercase;
}

.hero-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  width: 100%;
}

.hero-image-panel {
  position: relative;
  width: 100%;
  aspect-ratio: 1.24 / 1;
  min-height: 420px;
  overflow: hidden;
  padding: 0;
}

.hero-network-panel {
  background: transparent;
}

.hero-network-shell {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: transparent;
}

.hero-network-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-network-canvas {
  z-index: 1;
}

.hero-caption {
  max-width: 24rem;
  margin: 0;
  text-align: right;
  font-size: 12px;
  line-height: 1.6;
  color: var(--on-surface-variant);
  opacity: 0.7;
}

.hero-divider-wrap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
}

.tech-line-h {
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1) 20%, rgba(255,255,255,0.1) 80%, transparent);
}

.timeline-section,
.research-section,
.projects-section,
.publications-section,
.join-section {
  position: relative;
  padding: 128px 0;
}

.timeline-section {
  background: rgba(10, 10, 10, 0.2);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 96px;
}

.section-head--end {
  align-items: end;
  margin-bottom: 64px;
}

.section-head h2,
.section-title-alone,
.publications-head h2,
.join-section h2 {
  margin: 0;
  font-size: clamp(2.4rem, 4vw, 3.75rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.section-title-alone {
  margin-bottom: 80px;
}

.timeline-wrap {
  max-width: 56rem;
  margin: 0 auto;
  position: relative;
  padding-left: 48px;
}

.timeline-line {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 1px;
  background: rgba(38, 38, 38, 0.4);
}

.timeline-item {
  position: relative;
  margin-bottom: 64px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -51px;
  top: 4px;
  width: 7px;
  height: 7px;
  background: #171717;
  border: 1px solid #525252;
  transform: rotate(45deg);
}

.timeline-item--active .timeline-dot {
  background: var(--secondary);
  border-color: var(--secondary);
  box-shadow: 0 0 10px #ecfc00;
}

.timeline-date {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--secondary);
}

.timeline-date--muted {
  color: var(--on-surface-variant);
}

.timeline-item h3,
.research-card h3,
.project-card h3,
.publication-content h3 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1.25;
  text-transform: uppercase;
}

.timeline-item p,
.research-card p,
.project-card p,
.publication-meta,
.hero-caption,
.footer-links a {
  color: var(--on-surface-variant);
}

.timeline-item p {
  margin: 4px 0 0;
  opacity: 0.7;
}

.top-divider {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

.research-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.research-card {
  position: relative;
  padding: 32px;
  border: 1px solid rgba(38, 38, 38, 0.5);
  background: rgba(10, 10, 10, 0.4);
  transition: background-color 200ms ease, border-color 200ms ease;
}

.research-card:hover {
  background: rgba(23, 23, 23, 0.4);
}

.card-corner {
  opacity: 0;
  transition: opacity 200ms ease;
}

.research-card:hover .card-corner {
  opacity: 1;
}

.research-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  padding: 0.65rem;
  margin-bottom: 24px;
  opacity: 0.95;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  transition: opacity 200ms ease, transform 200ms ease, border-color 200ms ease;
}

.research-card:hover .research-icon {
  opacity: 1;
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.16);
}

.research-card h3 {
  margin-bottom: 16px;
  font-size: 1.125rem;
}

.research-card p {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  opacity: 0.6;
}

.accent-secondary {
  color: var(--secondary);
}

.accent-tertiary {
  color: var(--tertiary);
}

.projects-section {
  overflow: hidden;
}

.projects-split-line {
  position: absolute;
  left: 50%;
  top: 0;
  height: 100%;
  width: 1px;
  background: rgba(38, 38, 38, 0.1);
  pointer-events: none;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 64px;
}

.projects-archive {
  margin-top: 0;
}

.projects-action {
  margin-top: 64px;
  text-align: center;
}

.project-card {
  position: relative;
}

.project-media {
  position: relative;
  height: 18rem;
  margin-bottom: 32px;
  overflow: hidden;
  background: #171717;
  border: 1px solid #262626;
}

.project-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  opacity: 0.4;
  transition: transform 700ms ease, filter 700ms ease, opacity 700ms ease;
}

.project-card:hover .project-image {
  filter: grayscale(0);
  opacity: 1;
  transform: scale(1.05);
}

.project-badge {
  position: absolute;
  top: 0;
  left: 0;
  padding: 4px 8px;
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 9px;
  text-transform: uppercase;
  font-weight: 700;
}

.project-badge--secondary {
  background: var(--secondary);
  color: var(--on-secondary);
}

.project-badge--tertiary {
  background: var(--tertiary);
  color: var(--on-tertiary);
}

.project-card p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.7;
  opacity: 0.7;
}

.publications-section {
  background: rgba(10, 10, 10, 0.6);
}

.publications-shell {
  max-width: 72rem;
}

.publications-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 80px;
}

.publications-head h2 {
  font-style: italic;
}

.publications-filter {
  display: flex;
  gap: 16px;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-surface-variant);
}

.publications-filter span:first-child {
  opacity: 0.4;
}

.publications-list {
  border-top: 1px solid #262626;
}

.projects-archive,
.publication-archive {
  display: block;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(-12px);
  transition: max-height 320ms ease, opacity 220ms ease, transform 220ms ease, margin-top 220ms ease;
}

.projects-archive.is-open,
.publication-archive.is-open {
  max-height: var(--archive-height, 0px);
  opacity: 1;
  transform: translateY(0);
}

.projects-archive.is-open {
  margin-top: 64px;
}

.publication-archive__inner {
  overflow: hidden;
}

.publication-item {
  position: relative;
  display: flex;
  gap: 24px;
  padding: 40px 24px;
  border-bottom: 1px solid #262626;
  transition: background-color 150ms ease;
}

.publication-item:hover {
  background: rgba(23, 23, 23, 0.3);
}

.publication-index {
  width: 4rem;
  flex: none;
  color: #525252;
  font-size: 0.875rem;
}

.publication-content {
  flex: 1;
}

.publication-content h3 {
  margin-bottom: 12px;
  font-size: 1.25rem;
  transition: color 150ms ease;
}

.publication-item:hover .publication-content h3,
.publication-item:hover .publication-icon {
  color: #fff;
}

.publication-item:not(.publication-item--tertiary):hover .publication-content h3,
.publication-item:not(.publication-item--tertiary):hover .publication-icon {
  color: var(--secondary);
}

.publication-item--tertiary:hover .publication-content h3,
.publication-item--tertiary:hover .publication-icon {
  color: var(--tertiary);
}

.publication-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #737373;
}

.publication-journal {
  color: var(--primary);
  font-weight: 700;
}

.publication-icon {
  width: 24px;
  height: 24px;
  color: #404040;
  flex: none;
  transition: color 150ms ease;
}

.publication-edge {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 1px;
  transition: background-color 150ms ease;
}

.publication-edge--secondary {
  background: rgba(236, 252, 0, 0);
}

.publication-item:hover .publication-edge--secondary {
  background: rgba(236, 252, 0, 0.3);
}

.publication-edge--tertiary {
  background: rgba(255, 81, 250, 0);
}

.publication-item:hover .publication-edge--tertiary {
  background: rgba(255, 81, 250, 0.3);
}

.publications-action {
  margin-top: 80px;
  text-align: center;
}

.archive-button {
  background: transparent;
  border: 1px solid #404040;
  color: #a3a3a3;
  padding: 16px 48px;
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  transition: border-color 150ms ease, color 150ms ease;
}

.archive-button:hover {
  border-color: #fff;
  color: #fff;
}

.archive-button.is-open,
.archive-button[aria-expanded="true"] {
  border-color: var(--secondary);
  color: var(--secondary);
}

.join-section {
  background: var(--secondary);
  color: var(--on-secondary);
  overflow: hidden;
}

.join-grid-overlay {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  pointer-events: none;
}

.join-watermark {
  position: absolute;
  left: -80px;
  bottom: -128px;
  font-size: clamp(8rem, 24vw, 25rem);
  font-weight: 900;
  text-transform: uppercase;
  font-style: italic;
  line-height: 1;
  letter-spacing: -0.04em;
  opacity: 0.1;
  pointer-events: none;
}

.join-grid {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 80px;
  align-items: center;
}

.join-section h2 {
  margin-bottom: 40px;
  line-height: 0.85;
}

.join-subtitle {
  margin: 0 0 32px;
  padding-left: 24px;
  border-left: 4px solid var(--on-secondary);
  font-size: 1.5rem;
  font-weight: 900;
  text-transform: uppercase;
}

.join-text {
  max-width: 32rem;
  margin: 0 0 40px;
  font-size: 1.25rem;
  line-height: 1.7;
  opacity: 0.9;
}

.highlight {
  background: #000;
  color: #fff;
  padding: 0 8px;
}

.join-button {
  position: relative;
  display: inline-block;
  background: var(--on-secondary);
  color: var(--secondary);
  padding: 20px 56px;
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  transition: transform 200ms ease;
}

.join-button:hover {
  transform: translateX(12px);
}

.join-button-corner {
  position: absolute;
  right: -8px;
  top: -8px;
  width: 16px;
  height: 16px;
  border-top: 2px solid var(--on-secondary);
  border-right: 2px solid var(--on-secondary);
}

.join-panel {
  position: relative;
  border: 2px solid var(--on-secondary);
  padding: 40px;
  background: rgba(236, 252, 0, 0.1);
  backdrop-filter: blur(12px);
}

.join-panel-badge {
  position: absolute;
  left: -16px;
  top: -16px;
  background: var(--on-secondary);
  color: var(--secondary);
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.join-panel-title {
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(62, 67, 0, 0.3);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.join-metrics {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 24px;
  font-size: 0.875rem;
  text-transform: uppercase;
}

.join-metrics li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(62, 67, 0, 0.1);
}

.join-metrics li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.join-metrics li span:last-child {
  font-weight: 900;
  text-align: right;
}

.template-footer {
  position: relative;
  padding: 64px 0;
  background: #000;
  border-top: 1px solid #171717;
}

.footer-divider {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

.footer-line {
  opacity: 0.3;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-copy,
.footer-links a,
.footer-status {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.footer-copy,
.footer-status {
  color: #525252;
}

.footer-links {
  display: flex;
  gap: 48px;
}

.footer-links a {
  color: #737373;
  transition: color 150ms ease;
}

.footer-links a:hover {
  color: var(--secondary);
}

.footer-status {
  display: flex;
  align-items: center;
  gap: 16px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--secondary);
  box-shadow: 0 0 8px #ecfc00;
}

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: minmax(0, 0.92fr) minmax(480px, 1.08fr);
  }

  .projects-grid,
  .join-grid,
  .research-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-grid,
  .projects-grid,
  .join-grid {
    gap: 32px;
  }

  .hero-image-panel {
    aspect-ratio: 1.18 / 1;
    min-height: 390px;
  }
}

@media (max-width: 768px) {
  .shell {
    width: min(100% - 32px, 100% - 32px);
  }

  .template-header {
    position: sticky;
  }

  .header-inner,
  .section-head,
  .publications-head,
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .template-nav {
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.92rem;
  }

  .frame-line,
  .projects-split-line {
    display: none;
  }

  .hero-section,
  .timeline-section,
  .research-section,
  .projects-section,
  .publications-section,
  .join-section {
    padding: 96px 0;
  }

  .hero-grid,
  .projects-grid,
  .join-grid,
  .research-grid {
    grid-template-columns: 1fr;
  }

  .hero-image-panel {
    aspect-ratio: 1 / 1;
    min-height: 0;
  }

  .hero-aside {
    align-items: flex-start;
  }

  .hero-caption {
    text-align: left;
  }


  .publication-item {
    flex-direction: column;
  }

  .publication-icon,
  .publication-edge {
    display: none;
  }

  .join-subtitle,
  .join-text {
    max-width: none;
  }

  .join-metrics li {
    flex-direction: column;
    align-items: flex-start;
  }
}