:root {
  color-scheme: dark;
  --ink: #f6fbff;
  --paper: #010616;
  --panel: #07152d;
  --panel-strong: #0a2248;
  --line: rgba(94, 217, 255, 0.18);
  --line-strong: #21c7ff;
  --muted: #a7bddb;
  --quiet: #6ee8ff;
  --accent: #19c6ff;
  --accent-strong: #b86bff;
  --accent-soft: rgba(25, 198, 255, 0.14);
  --shadow-red: 0 22px 52px rgba(0, 0, 0, 0.52), 0 0 36px rgba(25, 198, 255, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  isolation: isolate;
  margin: 0;
  background:
    radial-gradient(circle at 16% 7%, rgba(0, 137, 255, 0.24), transparent 27%),
    radial-gradient(circle at 88% 12%, rgba(181, 62, 255, 0.2), transparent 30%),
    radial-gradient(circle at 54% 90%, rgba(0, 205, 255, 0.18), transparent 30%),
    linear-gradient(180deg, #030a1d 0%, #020817 48%, #010410 100%),
    var(--paper);
  color: var(--ink);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  line-height: 1.5;
}

body::before,
body::after {
  content: "";
  position: fixed;
  pointer-events: none;
  z-index: -1;
}

body::before {
  inset: 0;
  background:
    radial-gradient(circle at 6% 9%, rgba(33, 199, 255, 0.9) 0 3px, transparent 4px),
    radial-gradient(circle at 11% 21%, rgba(184, 107, 255, 0.72) 0 4px, transparent 5px),
    radial-gradient(circle at 17% 12%, rgba(25, 198, 255, 0.74) 0 3px, transparent 4px),
    radial-gradient(circle at 23% 19%, rgba(118, 124, 255, 0.72) 0 3px, transparent 4px),
    radial-gradient(circle at 73% 15%, rgba(25, 198, 255, 0.48) 0 2px, transparent 3px),
    radial-gradient(circle at 89% 18%, rgba(184, 107, 255, 0.48) 0 2px, transparent 3px),
    linear-gradient(32deg, transparent 0 9%, rgba(33, 199, 255, 0.18) 9.05% 9.16%, transparent 9.22%),
    linear-gradient(142deg, transparent 0 13%, rgba(184, 107, 255, 0.18) 13.05% 13.18%, transparent 13.25%),
    linear-gradient(18deg, transparent 0 18%, rgba(33, 199, 255, 0.14) 18.05% 18.14%, transparent 18.22%),
    linear-gradient(151deg, transparent 0 24%, rgba(118, 124, 255, 0.12) 24.05% 24.16%, transparent 24.24%);
  opacity: 0.58;
}

body::after {
  top: -78px;
  right: -12vw;
  width: min(920px, 82vw);
  height: 330px;
  background:
    radial-gradient(ellipse at 28% 50%, rgba(0, 197, 255, 0.22), transparent 58%),
    radial-gradient(ellipse at 70% 58%, rgba(190, 65, 255, 0.24), transparent 58%),
    repeating-radial-gradient(ellipse at 50% 52%, transparent 0 12px, rgba(78, 204, 255, 0.16) 13px, transparent 14px);
  filter: blur(0.3px);
  opacity: 0.72;
  transform: rotate(5deg);
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
}

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

img,
svg {
  display: block;
}

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

.layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  min-height: 100vh;
}

.identity-panel {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 24px;
  border-right: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(12, 31, 64, 0.88), rgba(2, 8, 23, 0.94)),
    rgba(3, 10, 29, 0.92);
  padding: 28px;
  backdrop-filter: blur(14px);
}

.back-link,
.top-nav a,
.rail-links a,
.paper-actions a {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
}

.back-link:hover,
.top-nav a:hover,
.rail-links a:hover,
.paper-actions a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.portrait {
  position: relative;
  width: 220px;
  margin-top: 6px;
}

.portrait::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid var(--line-strong);
  background: linear-gradient(135deg, var(--panel-strong), rgba(184, 107, 255, 0.2));
  box-shadow: 0 0 26px rgba(25, 198, 255, 0.26);
  transform: translate(12px, 12px);
}

.portrait img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 2px solid var(--ink);
  background: var(--panel);
  filter: saturate(0.96) contrast(1.08) brightness(0.94);
}

.identity-copy {
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.eyebrow,
.label,
.advisor-list span {
  margin: 0 0 10px;
  color: var(--quiet);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.equal-note {
  margin: 0 0 10px;
  color: var(--quiet);
  font-size: 0.72rem;
  font-weight: 700;
}

.publication-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.publication-stats span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  border: 1px solid rgba(184, 107, 255, 0.34);
  background:
    linear-gradient(135deg, rgba(25, 198, 255, 0.12), rgba(184, 107, 255, 0.16)),
    rgba(7, 21, 45, 0.7);
  padding: 5px 10px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(246, 251, 255, 0.05), 0 0 18px rgba(184, 107, 255, 0.08);
}

.publication-stats strong {
  color: #d6adff;
  font-weight: 800;
}

.identity-copy h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 3.45rem);
  line-height: 0.95;
  letter-spacing: 0;
  text-shadow: 0 0 28px rgba(25, 198, 255, 0.26);
}

.identity-copy p:last-child {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.advisor-list,
.rail-links {
  display: grid;
  gap: 9px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.advisor-list a {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
}

.advisor-list a:hover {
  color: var(--accent);
}

.rail-links {
  grid-template-columns: 1fr 1fr;
  margin-top: auto;
}

.content {
  width: min(100% - 56px, 980px);
  margin: 0 auto;
  padding: 28px 0 80px;
}

.top-nav {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 22px;
  border-bottom: 1px solid var(--line);
  background: rgba(2, 7, 20, 0.78);
  padding: 16px 0;
  backdrop-filter: blur(12px);
}

.statement {
  padding: 74px 0 40px;
}

.statement > p {
  max-width: 780px;
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
}

.feature-card,
.paper-item,
.community-section,
.community-links a {
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(25, 198, 255, 0.12), rgba(184, 107, 255, 0.08) 42%, transparent 78%),
    rgba(7, 21, 45, 0.88);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(246, 251, 255, 0.04);
}

.feature-card span {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
}

.feature-card h3,
.paper-item h3 {
  margin: 18px 0 10px;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.45;
}

.feature-card p,
.paper-item p,
.community-section p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.65;
}

.community-section {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(150px, 0.38fr);
  align-items: stretch;
  gap: 18px;
  margin: 0 0 74px;
  padding: 24px;
}

.community-section h2 {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: clamp(1.6rem, 3vw, 2.55rem);
  line-height: 1.05;
  letter-spacing: 0;
  text-shadow: 0 0 28px rgba(25, 198, 255, 0.2);
}

.community-links {
  display: grid;
  align-self: center;
  justify-self: end;
  width: min(100%, 172px);
  gap: 8px;
}

.community-links a {
  display: grid;
  align-content: center;
  place-items: center;
  min-height: 48px;
  padding: 10px 14px;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 800;
  text-align: center;
  transition: border 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.community-links a span {
  margin-bottom: 10px;
  color: var(--quiet);
  font-size: 0.68rem;
  line-height: 1.3;
  text-transform: uppercase;
}

.community-links a:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-red);
  transform: translateY(-2px);
}

.feature-section,
.paper-section {
  margin-top: 74px;
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.publication-title {
  align-items: flex-start;
}

.publication-title .equal-note {
  margin-top: 4px;
  white-space: nowrap;
}

.section-title h2 {
  margin: 0;
  font-size: 1.45rem;
  line-height: 1.3;
}

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

.feature-card {
  display: block;
  min-height: 240px;
  padding: 22px;
  transition: border 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.feature-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-red);
  transform: translateY(-3px);
}

.feature-card:hover h3,
.paper-item h3 a:hover {
  color: var(--accent);
}

.paper-table {
  display: grid;
  gap: 10px;
}

.paper-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 22px;
  padding: 18px;
}

.paper-year {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
}

.paper-item h3 {
  margin: 0 0 8px;
}

.paper-item .paper-authors {
  margin: 0 0 8px;
  color: var(--quiet);
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.55;
}

.paper-authors .author-highlight {
  color: #d6adff;
  font-weight: 800;
  text-shadow: 0 0 16px rgba(190, 97, 255, 0.42), 0 0 2px rgba(78, 221, 255, 0.18);
}

.paper-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
  color: var(--quiet);
  font-size: 0.72rem;
  font-weight: 700;
}

.paper-actions span {
  max-width: 100%;
}

@media (max-width: 980px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .identity-panel {
    position: relative;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .portrait {
    width: 180px;
  }

  .content {
    width: min(100% - 36px, 760px);
  }

  .top-nav {
    justify-content: center;
    overflow-x: auto;
  }

  .feature-list {
    grid-template-columns: 1fr;
  }

  .community-section {
    grid-template-columns: 1fr;
  }

  .community-links {
    justify-self: start;
    width: min(100%, 220px);
  }
}

@media (max-width: 620px) {
  .identity-panel {
    padding: 22px;
  }

  .content {
    width: min(100% - 28px, 520px);
    padding-bottom: 54px;
  }

  .statement {
    padding-top: 48px;
  }

  .section-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .publication-title .equal-note {
    margin-top: 0;
  }

  .paper-item {
    grid-template-columns: 1fr;
  }
}
