:root {
  --bg: #08111f;
  --bg-2: #0d1b31;
  --panel: rgba(255, 255, 255, 0.08);
  --panel-strong: rgba(255, 255, 255, 0.14);
  --text: #f8fafc;
  --muted: #b8c3d6;
  --soft: #dbe7f7;
  --line: rgba(255, 255, 255, 0.14);
  --brand: #62e6d3;
  --brand-2: #9b8cff;
  --accent: #f8cc7a;
  --danger: #ff8fa3;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.34);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-pill: 999px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  overflow-x: hidden;
}

body.menu-open { overflow: hidden; }

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

button { font: inherit; }

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

.wrap {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 100;
  transform: translateY(-160%);
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--text);
  color: var(--bg);
  font-weight: 800;
}

.skip-link:focus { transform: translateY(0); }

.background {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 18%, rgba(98, 230, 211, 0.26), transparent 29rem),
    radial-gradient(circle at 84% 4%, rgba(155, 140, 255, 0.28), transparent 30rem),
    radial-gradient(circle at 70% 86%, rgba(248, 204, 122, 0.14), transparent 36rem),
    linear-gradient(135deg, #08111f 0%, #0c1c33 44%, #0b1222 100%);
}

.background::before,
.background::after {
  content: "";
  position: absolute;
  inset: -18%;
  will-change: transform;
}

.background::before {
  opacity: 0.58;
  background-image:
    radial-gradient(circle, rgba(98, 230, 211, 0.55) 0 1.8px, transparent 2.2px),
    radial-gradient(circle, rgba(155, 140, 255, 0.35) 0 1.4px, transparent 2px),
    linear-gradient(115deg, transparent 0 46%, rgba(98, 230, 211, 0.13) 46.4% 46.9%, transparent 47.3% 100%),
    linear-gradient(25deg, transparent 0 48%, rgba(155, 140, 255, 0.11) 48.3% 48.8%, transparent 49.2% 100%);
  background-size: 92px 92px, 142px 142px, 330px 210px, 410px 260px;
  animation: driftField 42s linear infinite;
  mask-image: radial-gradient(circle at 50% 30%, black 0%, transparent 78%);
}

.background::after {
  opacity: 0.52;
  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),
    radial-gradient(circle at 24px 24px, rgba(248, 204, 122, 0.42) 0 1.5px, transparent 2px);
  background-size: 70px 70px, 70px 70px, 140px 140px;
  animation: networkFloat 28s ease-in-out infinite alternate;
  mask-image: radial-gradient(circle at 50% 25%, black 0%, transparent 76%);
}

@keyframes driftField {
  from { transform: translate3d(-2%, -2%, 0) rotate(0deg); }
  to { transform: translate3d(2%, 2%, 0) rotate(1turn); }
}

@keyframes networkFloat {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-34px, 26px, 0) scale(1.04); }
}

@media (prefers-reduced-motion: reduce) {
  .background::before,
  .background::after { animation: none; }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(255,255,255,0.09);
  background: rgba(8, 17, 31, 0.75);
  backdrop-filter: blur(18px);
}

.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #06101d;
  background: linear-gradient(135deg, var(--brand), #eefbff 48%, var(--brand-2));
  box-shadow: 0 16px 42px rgba(98, 230, 211, 0.22);
}

.brand-name { font-size: 1.02rem; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  padding: 10px 13px;
  color: var(--muted);
  border-radius: var(--radius-pill);
  font-size: 0.94rem;
  font-weight: 700;
  transition: 180ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text);
  background: rgba(255,255,255,0.09);
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  margin: 6px 0;
  border-radius: var(--radius-pill);
  background: var(--text);
}

.hero {
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 46px;
  align-items: center;
  padding: 86px 0 72px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--brand);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 900;
}

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: -0.045em;
}

h1 {
  max-width: 900px;
  font-size: clamp(2.7rem, 7vw, 5.95rem);
}

h2 { font-size: clamp(2rem, 4vw, 3.3rem); }

h3 { font-size: 1.22rem; }

h4 { font-size: 1rem; }

.lead {
  margin: 24px 0 0;
  max-width: 760px;
  color: var(--soft);
  font-size: 1.15rem;
}

.topic-pills,
.tag-row,
.skill-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.topic-pills { margin-top: 26px; }

.topic-pills span,
.tag-row span,
.skill-cloud span {
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.08);
  color: var(--soft);
  border-radius: var(--radius-pill);
  padding: 7px 11px;
  font-size: 0.86rem;
  font-weight: 750;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-weight: 900;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover,
.button:focus-visible { transform: translateY(-2px); }

.button.primary {
  color: #06101d;
  background: linear-gradient(135deg, var(--brand), #e9fbff);
  box-shadow: 0 18px 54px rgba(98, 230, 211, 0.27);
}

.button.ghost,
.button.compact {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255,255,255,0.08);
}

.button.compact {
  min-height: 42px;
  padding: 0 16px;
  white-space: nowrap;
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
}

.link-row a,
.publication-card a,
.footer a {
  color: var(--brand);
  font-weight: 850;
}

.link-row a::after,
.publication-card a::after { content: " ↗"; }

.glass-card,
.profile-panel,
.impact-card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.06));
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.profile-panel {
  position: relative;
  overflow: hidden;
  padding: 26px;
}

.profile-panel::before {
  content: "";
  position: absolute;
  inset: -35% -20% auto auto;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(98,230,211,0.28), transparent 70%);
}

.profile-art {
  position: relative;
  width: 145px;
  margin: 0 auto 18px;
  filter: drop-shadow(0 28px 45px rgba(0,0,0,0.28));
}

.profile-text {
  position: relative;
  text-align: center;
}

.profile-text p { margin: 8px 0 0; color: var(--muted); }

.profile-text .small { font-size: 0.93rem; }

.stat-grid,
.impact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.stat-grid { margin-top: 22px; }

.stat-card,
.impact-card {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
}

.stat-card strong,
.impact-card strong {
  display: block;
  font-size: 2rem;
  letter-spacing: -0.06em;
  line-height: 1;
}

.stat-card span,
.impact-card p,
.impact-label {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.section { padding: 86px 0; }

.section-head {
  max-width: 790px;
  margin-bottom: 30px;
}

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

.section-head p:not(.eyebrow) {
  color: var(--muted);
  margin: 14px 0 0;
  font-size: 1.04rem;
}

.theme-grid,
.project-grid,
.publication-list {
  display: grid;
  gap: 18px;
}

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

.research-brief-grid {
  display: grid;
  grid-template-columns: 1.25fr repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.research-brief {
  position: relative;
  overflow: hidden;
}

.research-brief.highlight {
  background:
    linear-gradient(135deg, rgba(98,230,211,0.22), rgba(155,140,255,0.13)),
    linear-gradient(180deg, rgba(255,255,255,0.14), rgba(255,255,255,0.07));
}

.research-brief::after {
  content: "";
  position: absolute;
  inset: auto -15% -38% auto;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(98,230,211,0.18), transparent 70%);
}

.mini-label {
  display: inline-flex;
  margin-bottom: 16px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  font-weight: 950;
}

.theme-card,
.project-card,
.publication-card,
.info-card,
.timeline,
.scholar-board,
.contact-card,
.research-brief { padding: 24px; }

.card-number {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 26px;
  color: #06101d;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  font-weight: 950;
}

.theme-card p,
.project-card p,
.publication-card p,
.info-card li,
.timeline p,
.contact-card p,
.research-brief p {
  color: var(--muted);
}

.impact-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 18px;
}

.impact-card { padding: 24px; }

.impact-label {
  margin: 0 0 12px;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
}

.impact-card p { margin-bottom: 0; }

.board-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 10px;
}

.board-head span { color: var(--muted); font-weight: 700; font-size: 0.9rem; }

.citation-list { display: grid; gap: 10px; }

.citation-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  overflow: hidden;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.055);
}

.citation-row p { margin: 6px 0 0; color: var(--muted); font-size: 0.92rem; }

.citation-row strong {
  font-size: 1.35rem;
  color: var(--accent);
}

.citation-row .bar {
  position: absolute;
  inset: auto auto 0 0;
  width: var(--value);
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
}

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

.filter {
  cursor: pointer;
  border: 1px solid var(--line);
  color: var(--muted);
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius-pill);
  padding: 9px 14px;
  font-weight: 850;
}

.filter.active,
.filter:hover,
.filter:focus-visible {
  color: #06101d;
  background: var(--brand);
  border-color: transparent;
}

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

.publication-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 180ms ease, border-color 180ms ease, opacity 200ms ease;
}

.publication-card:hover { transform: translateY(-3px); border-color: rgba(98,230,211,0.42); }

.publication-card.hide { display: none; }

.pub-top,
.project-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  color: var(--brand);
  font-size: 0.82rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.publication-card p,
.project-card p { margin: 0; }

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

.project-card.featured {
  grid-column: span 2;
  background:
    linear-gradient(135deg, rgba(98,230,211,0.20), rgba(155,140,255,0.12)),
    linear-gradient(180deg, rgba(255,255,255,0.14), rgba(255,255,255,0.07));
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 18px;
}

.timeline {
  display: grid;
  gap: 22px;
}

.timeline article {
  position: relative;
  padding-left: 28px;
}

.timeline article::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 6px rgba(98,230,211,0.12);
}

.timeline span {
  display: block;
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 900;
  margin-bottom: 8px;
}

.timeline p { margin: 10px 0 0; }

.side-stack { display: grid; gap: 18px; }

.info-card ul {
  margin: 14px 0 0;
  padding-left: 18px;
}

.info-card li + li { margin-top: 10px; }

.skill-cloud { margin-top: 16px; }

.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) auto;
  gap: 28px;
  align-items: center;
}

.contact-card p { max-width: 720px; }

.contact-actions {
  justify-content: flex-end;
  margin-top: 0;
}

.footer {
  border-top: 1px solid rgba(255,255,255,0.09);
  color: var(--muted);
}

.footer-inner {
  min-height: 78px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

@media (max-width: 980px) {
  .hero,
  .two-column,
  .contact-card {
    grid-template-columns: 1fr;
  }

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

  .research-brief.highlight { grid-column: span 2; }

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

  .contact-actions { justify-content: flex-start; }
}

@media (max-width: 760px) {
  .wrap { width: min(100% - 28px, 1160px); }

  .nav-toggle { display: block; }

  .nav-links {
    position: fixed;
    inset: 76px 14px auto 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(8, 17, 31, 0.95);
    box-shadow: var(--shadow);
  }

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

  .nav-links a { text-align: center; }

  h1 { font-size: clamp(2.45rem, 13vw, 4.4rem); }

  .hero { padding-top: 60px; }

  .section { padding: 62px 0; }

  .section-head.split {
    align-items: flex-start;
    flex-direction: column;
  }

  .filters { justify-content: flex-start; }

  .theme-grid,
  .impact-grid,
  .publication-list,
  .project-grid,
  .stat-grid,
  .research-brief-grid {
    grid-template-columns: 1fr;
  }

  .research-brief.highlight { grid-column: span 1; }

  .board-head,
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
