:root {
  color-scheme: dark;
  --bg: #03040a;
  --bg-soft: #070913;
  --panel: #0b0e18;
  --panel-strong: #101522;
  --text: #f7f7fb;
  --muted: #a7adbd;
  --quiet: #6f768a;
  --accent: #8b5cf6;
  --accent-2: #6d7dff;
  --accent-3: #72d4ff;
  --line: rgba(145, 130, 255, 0.42);
  --border: rgba(169, 181, 255, 0.15);
  --shadow: rgba(0, 0, 0, 0.55);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at 68% 14%, rgba(112, 101, 255, 0.16), transparent 28rem),
    radial-gradient(circle at 42% 0%, rgba(79, 176, 255, 0.08), transparent 24rem),
    linear-gradient(180deg, #020309 0%, #050711 52%, #03040a 100%);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

body::before {
  background-image:
    radial-gradient(circle, rgba(138, 116, 255, 0.72) 0 1px, transparent 1.5px),
    radial-gradient(circle, rgba(99, 212, 255, 0.42) 0 1px, transparent 1.5px);
  background-position: 12px 48px, 88px 118px;
  background-size: 132px 132px, 184px 184px;
  content: "";
  inset: 0;
  mask-image: linear-gradient(180deg, transparent 0%, #000 7%, #000 74%, transparent 100%);
  opacity: 0.18;
  pointer-events: none;
  position: fixed;
}

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

button,
input,
select {
  font: inherit;
}

.topbar,
.overview,
.section,
.footer {
  padding-left: max(32px, calc((100vw - 1256px) / 2));
  padding-right: max(32px, calc((100vw - 1256px) / 2));
}

.topbar {
  align-items: center;
  background: linear-gradient(180deg, rgba(3, 4, 10, 0.95), rgba(3, 4, 10, 0.73));
  backdrop-filter: blur(18px);
  display: flex;
  gap: 34px;
  justify-content: space-between;
  min-height: 86px;
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand,
.nav,
.profile-actions,
.toolbar,
.legend,
.segmented {
  align-items: center;
  display: flex;
}

.brand {
  color: #fff;
  flex: 0 0 auto;
  font-size: 0.95rem;
  font-weight: 800;
  gap: 13px;
  line-height: 1;
  text-transform: uppercase;
}

.brand-photo {
  align-items: center;
  aspect-ratio: 1;
  background:
    linear-gradient(145deg, rgba(139, 92, 246, 0.94), rgba(114, 212, 255, 0.22)),
    #111521;
  border: 1px solid rgba(230, 231, 255, 0.56);
  border-radius: 50%;
  box-shadow: 0 0 34px rgba(124, 105, 255, 0.38);
  color: white;
  display: grid;
  font-size: 0.8rem;
  height: 44px;
  letter-spacing: 0;
  overflow: hidden;
  place-items: center;
  position: relative;
}

.brand-photo img,
.brand-photo span {
  grid-area: 1 / 1;
}

.brand-photo img {
  height: 100%;
  object-fit: cover;
  width: 100%;
  z-index: 2;
}

.brand-photo span {
  font-weight: 800;
}

.brand-photo.is-missing img {
  display: none;
}

.nav {
  gap: 48px;
  margin-left: auto;
}

.nav a {
  color: #fff;
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.nav a:hover {
  color: var(--accent-3);
}

main {
  overflow: hidden;
}

.overview,
.section {
  padding-bottom: 78px;
  padding-top: 74px;
}

.profile-panel {
  align-items: center;
  display: grid;
  gap: 40px;
  grid-template-columns: 0.86fr 1.14fr;
  min-height: 612px;
  overflow: hidden;
}

.profile-copy {
  max-width: 530px;
  padding-top: 28px;
  position: relative;
  z-index: 2;
}

.eyebrow {
  align-items: center;
  color: var(--accent);
  display: flex;
  font-size: 0.78rem;
  font-weight: 800;
  gap: 22px;
  letter-spacing: 0.15em;
  line-height: 1;
  margin: 0 0 24px;
  text-transform: uppercase;
}

.eyebrow::before {
  background: var(--accent);
  content: "";
  display: inline-block;
  height: 2px;
  width: 54px;
}

h1,
h2 {
  color: #fff;
  letter-spacing: 0;
  margin: 0;
}

h1 {
  font-size: 3.72rem;
  font-weight: 700;
  line-height: 1.08;
  max-width: 9ch;
}

h2 {
  font-size: 2.35rem;
  font-weight: 700;
  line-height: 1.12;
}

.profile-title {
  color: var(--muted);
  font-size: 1.17rem;
  line-height: 1.65;
  margin: 26px 0 0;
  max-width: 430px;
}

.profile-actions {
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 42px;
}

.button {
  align-items: center;
  background: transparent;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 800;
  gap: 18px;
  justify-content: center;
  line-height: 1;
  min-height: 52px;
  padding: 0 30px;
  text-transform: uppercase;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.button:hover {
  background: rgba(139, 92, 246, 0.1);
  border-color: var(--accent-3);
  transform: translateY(-1px);
}

.button.primary {
  background: rgba(139, 92, 246, 0.14);
}

.impact-orbit {
  min-height: 560px;
  overflow: hidden;
  position: relative;
}

.impact-orbit::before {
  background-image:
    linear-gradient(34deg, transparent 0 35%, rgba(108, 125, 255, 0.46) 35.2%, transparent 35.6%),
    linear-gradient(150deg, transparent 0 52%, rgba(108, 125, 255, 0.36) 52.2%, transparent 52.6%),
    radial-gradient(circle, rgba(162, 146, 255, 0.95) 0 1px, transparent 1.6px),
    radial-gradient(circle, rgba(98, 211, 255, 0.62) 0 1px, transparent 1.5px);
  background-position: 0 0, 0 0, 0 0, 34px 52px;
  background-size: 100% 100%, 100% 100%, 52px 52px, 78px 78px;
  content: "";
  filter: drop-shadow(0 0 12px rgba(101, 96, 255, 0.38));
  inset: 5% -5% 0 0;
  opacity: 0.42;
  position: absolute;
  transform: perspective(800px) rotateX(58deg) rotateZ(-18deg) translateY(34px);
}

.impact-orbit::after {
  border: 1px solid var(--line);
  box-shadow:
    0 0 28px rgba(118, 99, 255, 0.22),
    inset 0 0 30px rgba(122, 102, 255, 0.08);
  content: "";
  height: 312px;
  position: absolute;
  right: 92px;
  top: 96px;
  transform: rotateX(58deg) rotateZ(-45deg);
  width: 312px;
}

#impact-canvas {
  display: block;
  height: auto;
  max-width: 100%;
  position: relative;
  width: 100%;
  z-index: 3;
}

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

.metric,
.publication,
.theme-card,
.product-card,
.media-card,
.type-chart,
.collaborators {
  background:
    radial-gradient(circle at 82% 32%, rgba(100, 111, 255, 0.16), transparent 38%),
    linear-gradient(145deg, rgba(17, 21, 34, 0.98), rgba(7, 9, 17, 0.98));
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 22px 52px var(--shadow);
}

.metric {
  min-height: 150px;
  padding: 24px;
}

.product-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 1fr);
}

.product-card {
  color: var(--text);
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(280px, 0.28fr);
  min-height: 292px;
  overflow: hidden;
  position: relative;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.product-card:hover,
.media-card:hover {
  border-color: rgba(139, 92, 246, 0.82);
  box-shadow: 0 26px 64px rgba(23, 12, 74, 0.62);
  transform: translateY(-4px);
}

.product-copy {
  display: grid;
  gap: 16px;
  max-width: 650px;
  padding: 34px 28px;
  position: relative;
  z-index: 2;
}

.card-kicker {
  color: var(--accent-3);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.product-card h3,
.media-card h3 {
  color: #fff;
  font-size: 1.45rem;
  line-height: 1.1;
  margin: 0;
}

.product-card p,
.media-card p {
  color: var(--muted);
  margin: 0;
}

.product-visual {
  min-height: 250px;
  overflow: hidden;
  position: relative;
}

.product-gridline {
  border: 1px solid var(--line);
  box-shadow:
    0 0 28px rgba(118, 99, 255, 0.22),
    inset 0 0 30px rgba(122, 102, 255, 0.08);
  height: 220px;
  position: absolute;
  right: 44px;
  top: 46px;
  transform: rotateX(58deg) rotateZ(-45deg);
  width: 220px;
}

.product-gridline::after {
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 28px 28px;
  content: "";
  inset: 0;
  opacity: 0.46;
  position: absolute;
}

.product-cube {
  background: linear-gradient(135deg, rgba(96, 109, 255, 0.84), rgba(152, 107, 255, 0.18));
  border: 2px solid rgba(230, 231, 255, 0.94);
  box-shadow:
    inset 0 0 36px rgba(255, 255, 255, 0.16),
    0 0 34px rgba(124, 105, 255, 0.54);
  display: block;
  height: 96px;
  position: absolute;
  right: 111px;
  top: 104px;
  transform: rotateX(58deg) rotateZ(-45deg);
  width: 96px;
  z-index: 2;
}

.project-arrow {
  align-items: center;
  border: 1px solid var(--accent);
  border-radius: 50%;
  bottom: 26px;
  color: #fff;
  display: grid;
  font-size: 0.86rem;
  font-weight: 800;
  height: 34px;
  justify-content: center;
  left: 28px;
  place-items: center;
  position: absolute;
  width: 34px;
  z-index: 4;
}

.media-head {
  align-items: start;
}

.disclosure-note {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
  margin: 0;
  max-width: 470px;
}

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

.media-card {
  color: var(--text);
  display: grid;
  min-height: 390px;
  overflow: hidden;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.media-visual {
  align-items: center;
  background:
    radial-gradient(circle at 64% 35%, rgba(114, 212, 255, 0.2), transparent 32%),
    linear-gradient(145deg, rgba(139, 92, 246, 0.18), rgba(255, 255, 255, 0.025));
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  display: grid;
  min-height: 132px;
  overflow: hidden;
  place-items: center;
}

.media-visual img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.media-visual span {
  align-items: center;
  aspect-ratio: 1;
  background:
    linear-gradient(145deg, rgba(139, 92, 246, 0.7), rgba(114, 212, 255, 0.16)),
    #111521;
  border: 1px solid rgba(230, 231, 255, 0.44);
  border-radius: 8px;
  color: #fff;
  display: grid;
  font-size: 1.35rem;
  font-weight: 800;
  height: 72px;
  place-items: center;
}

.media-copy {
  display: grid;
  gap: 13px;
  padding: 22px;
}

.metric-label,
.metric span:last-child {
  color: var(--muted);
  display: block;
  font-size: 0.82rem;
}

.metric-label {
  color: var(--accent-3);
  font-weight: 800;
  text-transform: uppercase;
}

.metric strong {
  color: #fff;
  display: block;
  font-size: 3.05rem;
  line-height: 1;
  margin: 14px 0 10px;
}

.section {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

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

.section-head .eyebrow {
  margin-bottom: 14px;
}

.legend {
  color: var(--muted);
  gap: 16px;
}

.swatch {
  border-radius: 999px;
  display: inline-block;
  height: 10px;
  margin-right: 6px;
  width: 10px;
}

.swatch.pubs {
  background: var(--accent);
}

.swatch.cites {
  background: var(--accent-3);
}

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

.theme-card {
  color: var(--text);
  cursor: pointer;
  display: grid;
  gap: 8px;
  min-height: 156px;
  overflow: hidden;
  padding: 22px;
  position: relative;
  text-align: left;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.theme-card:hover,
.theme-card.active {
  border-color: rgba(139, 92, 246, 0.82);
  box-shadow: 0 26px 64px rgba(23, 12, 74, 0.62);
  transform: translateY(-4px);
}

.theme-card span {
  color: var(--accent-3);
  font-weight: 850;
}

.theme-card strong {
  color: #fff;
  font-size: 2.8rem;
  line-height: 1;
}

.theme-card em {
  color: var(--muted);
  font-style: normal;
}

.theme-card i {
  background: linear-gradient(90deg, var(--accent), var(--accent-3));
  bottom: 0;
  display: block;
  height: 5px;
  left: 0;
  position: absolute;
}

.timeline-layout {
  align-items: stretch;
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.42fr);
}

.timeline {
  align-items: end;
  display: grid;
  gap: 6px;
  grid-auto-flow: column;
  min-height: 228px;
  overflow: hidden;
  padding: 12px 0 22px;
}

.year-column {
  align-items: center;
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  display: grid;
  gap: 4px;
  grid-template-rows: 176px 30px;
  min-width: 0;
  padding: 0;
}

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

.year-bars {
  align-items: end;
  display: flex;
  gap: 4px;
  height: 176px;
  width: 100%;
}

.bar {
  border-radius: 5px 5px 0 0;
  min-height: 4px;
  width: 50%;
}

.bar.publications {
  background: var(--accent);
  box-shadow: 0 0 18px rgba(139, 92, 246, 0.32);
}

.bar.citations {
  background: var(--accent-3);
  box-shadow: 0 0 18px rgba(114, 212, 255, 0.28);
}

.year-label {
  color: var(--quiet);
  font-size: 0.72rem;
  transform: rotate(-45deg);
  transform-origin: 50% 50%;
  white-space: nowrap;
}

.timeline-detail {
  background:
    radial-gradient(circle at 82% 32%, rgba(100, 111, 255, 0.16), transparent 38%),
    linear-gradient(145deg, rgba(17, 21, 34, 0.98), rgba(7, 9, 17, 0.98));
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 22px 52px var(--shadow);
  display: grid;
  gap: 12px;
  max-height: 260px;
  min-height: 260px;
  overflow: hidden;
  padding: 22px;
}

.timeline-detail h3 {
  color: #fff;
  font-size: 1.18rem;
  line-height: 1.24;
  margin: 0;
}

.timeline-detail p {
  color: var(--muted);
  margin: 0;
}

.timeline-publications {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 0;
  max-height: 156px;
  overflow: auto;
  padding: 0 4px 0 0;
}

.timeline-publications li {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  display: grid;
  gap: 5px;
  padding-top: 9px;
}

.timeline-publications a {
  color: #fff;
  font-size: 0.84rem;
  line-height: 1.28;
}

.timeline-publications a:hover {
  color: var(--accent-3);
}

.timeline-publications span {
  color: var(--accent-3);
  font-size: 0.76rem;
  font-weight: 800;
}

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

.search-field,
.select-field {
  color: var(--quiet);
  display: grid;
  font-size: 0.72rem;
  font-weight: 800;
  gap: 7px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

input,
select {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--text);
  min-height: 44px;
  padding: 0 13px;
}

input {
  min-width: min(320px, 70vw);
}

select option {
  background: var(--panel);
  color: var(--text);
}

.segmented {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 7px;
  min-height: 44px;
  padding: 4px;
}

.segment {
  background: transparent;
  border: 0;
  border-radius: 5px;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 800;
  min-height: 34px;
  padding: 0 12px;
  text-transform: uppercase;
}

.segment.active {
  background: rgba(139, 92, 246, 0.16);
  color: #fff;
}

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

.publication {
  display: grid;
  gap: 14px;
  min-height: 292px;
  padding: 22px;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.publication:hover {
  border-color: rgba(139, 92, 246, 0.82);
  box-shadow: 0 26px 64px rgba(23, 12, 74, 0.62);
  transform: translateY(-4px);
}

.publication-top {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.tag {
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 5px 10px;
  text-transform: uppercase;
}

.cite-count {
  color: var(--accent-3);
  font-size: 0.82rem;
  font-weight: 850;
}

.publication h3 {
  color: #fff;
  font-size: 1.12rem;
  line-height: 1.25;
  margin: 0;
}

.publication h3 a:hover {
  color: var(--accent-3);
}

.publication p {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0;
}

.tag-list {
  align-items: flex-start;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag-chip {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.74rem;
  font-weight: 750;
  min-height: 28px;
  padding: 0 9px;
}

.tag-chip:hover {
  border-color: var(--accent-3);
  color: #fff;
}

.static-chip {
  cursor: default;
}

.static-chip:hover {
  border-color: var(--border);
  color: var(--muted);
}

.publication-meta {
  align-self: end;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--quiet);
  display: flex;
  font-size: 0.82rem;
  gap: 12px;
  justify-content: space-between;
  padding-top: 12px;
}

.network-layout {
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(280px, 0.8fr) minmax(320px, 1.2fr);
}

.type-chart,
.collaborators {
  padding: 24px;
}

.type-row,
.collaborator {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.type-label,
.collaborator-label {
  color: var(--text);
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.type-label span,
.collaborator-label span {
  color: var(--muted);
}

.track {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  height: 12px;
  overflow: hidden;
}

.fill {
  background: linear-gradient(90deg, var(--accent), var(--accent-3));
  border-radius: inherit;
  height: 100%;
}

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

.collaborator {
  margin: 0;
}

.footer {
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--quiet);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  margin-top: 46px;
  padding-bottom: 32px;
  padding-top: 32px;
}

.footer a {
  color: var(--muted);
  font-weight: 750;
}

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

@media (max-width: 980px) {
  .topbar,
  .overview,
  .section,
  .footer {
    padding-left: 21px;
    padding-right: 21px;
  }

  .topbar {
    min-height: 74px;
  }

  .nav {
    gap: 22px;
  }

  .profile-panel,
  .network-layout,
  .timeline-layout {
    grid-template-columns: 1fr;
  }

  .profile-panel {
    min-height: auto;
    padding-top: 48px;
  }

  .profile-copy {
    max-width: 670px;
  }

  h1 {
    font-size: 3.18rem;
  }

  .impact-orbit {
    min-height: 420px;
  }

  .metric-grid,
  .publication-grid,
  .theme-board,
  .media-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

@media (max-width: 680px) {
  .topbar,
  .overview,
  .section,
  .footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
    padding-bottom: 16px;
    padding-top: 16px;
    position: static;
  }

  .brand-photo {
    height: 36px;
  }

  .nav {
    flex-wrap: wrap;
    gap: 18px;
  }

  .overview,
  .section {
    padding-bottom: 54px;
    padding-top: 54px;
  }

  .profile-panel {
    gap: 16px;
    padding-top: 18px;
  }

  h1 {
    font-size: 2.54rem;
  }

  h2 {
    font-size: 2rem;
  }

  .profile-title {
    font-size: 1rem;
  }

  .button {
    width: 100%;
  }

  .impact-orbit {
    min-height: 330px;
    transform: scale(0.88);
    transform-origin: center top;
  }

  .impact-orbit::after {
    height: 238px;
    right: -20px;
    top: 56px;
    width: 238px;
  }

  .metric-grid,
  .publication-grid,
  .collaborators,
  .theme-board,
  .media-grid,
  .product-card {
    grid-template-columns: 1fr;
  }

  .product-visual {
    min-height: 210px;
  }

  input {
    min-width: 100%;
  }

  .toolbar,
  .search-field,
  .select-field,
  .segmented {
    width: 100%;
  }

  .segmented {
    justify-content: stretch;
  }

  .segment {
    flex: 1;
  }
}
