:root {
  --accent: #0ea5e9;
  --accent-2: #f59e0b;
  --bg: #f7fbff;
  --bg-soft: #e9f5f8;
  --panel: rgba(255, 255, 255, 0.76);
  --panel-strong: rgba(255, 255, 255, 0.94);
  --text: #0d1b22;
  --muted: #55707a;
  --line: rgba(19, 49, 58, 0.14);
  --shadow: 0 24px 80px rgba(24, 54, 66, 0.15);
  --section-space: 112px;
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

[data-theme="light"] {
  --bg: #f7fbff;
  --bg-soft: #e9f5f8;
  --panel: rgba(255, 255, 255, 0.78);
  --panel-strong: rgba(255, 255, 255, 0.94);
  --text: #10201e;
  --muted: #536765;
  --line: rgba(14, 28, 30, 0.14);
  --shadow: 0 24px 80px rgba(24, 43, 41, 0.16);
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #071012;
  --bg-soft: #0e1a1d;
  --panel: rgba(12, 27, 31, 0.78);
  --panel-strong: rgba(17, 34, 38, 0.94);
  --text: #eef7f5;
  --muted: #a2b8b5;
  --line: rgba(255, 255, 255, 0.12);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
  color-scheme: dark;
}

[data-density="compact"] {
  --section-space: 72px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 10% 10%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 28rem),
    linear-gradient(135deg, var(--bg), var(--bg-soft) 64%, var(--bg));
  color: var(--text);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  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);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

button,
a,
input {
  font: inherit;
}

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

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

#grid-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.48;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter: blur(18px);
}

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

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--accent) 60%, var(--line));
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  color: var(--text);
  font-weight: 800;
}

.brand-copy {
  display: grid;
  gap: 1px;
}

.brand-copy strong {
  font-size: 0.98rem;
}

.brand-copy span,
.nav a,
.eyebrow {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px clamp(10px, 1.6vw, 22px);
  max-width: min(720px, 58vw);
}

.nav a {
  white-space: nowrap;
  transition: color 0.2s ease;
}

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

.section-band {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: var(--section-space) 0;
  scroll-margin-top: 84px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.72fr);
  align-items: center;
  gap: clamp(38px, 8vw, 104px);
  min-height: calc(100vh - 72px);
  padding-top: clamp(52px, 8vh, 76px);
  padding-bottom: clamp(52px, 8vh, 76px);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 24px;
  font-size: clamp(2.9rem, 5.5vw, 5.8rem);
  line-height: 0.94;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 4.8rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  font-size: 1.05rem;
  line-height: 1.26;
}

.lede {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(1rem, 1.7vw, 1.24rem);
  line-height: 1.7;
}

.lede strong {
  display: block;
  margin: 12px 0;
  color: var(--text);
  font-size: 1.08em;
}

.hero-actions,
.filters,
.globe-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button,
.filter,
.control-group button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 16px;
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.button:hover,
.filter:hover,
.control-group button:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 70%, var(--line));
}

.primary,
.filter.active,
.control-group button.active {
  border-color: transparent;
  background: var(--accent);
  color: #051412;
  font-weight: 800;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 700px;
  margin: 44px 0 0;
}

.metrics div,
.topic,
.paper,
.project-grid article,
.signal-panel,
.customizer-panel,
.conference-panel,
.globe-stage {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.metrics div {
  padding: 18px;
  border-radius: 8px;
}

.metrics dt {
  font-size: 2rem;
  font-weight: 900;
}

.metrics dd {
  margin: 4px 0 0;
  color: var(--muted);
}

.hero-visual {
  position: relative;
  display: grid;
  justify-items: end;
}

.portrait-frame {
  width: min(360px, 100%);
  margin: 0;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line));
  border-radius: 8px;
  background: var(--panel-strong);
  box-shadow: var(--shadow);
}

.portrait-frame img {
  width: 100%;
  aspect-ratio: 0.72;
  object-fit: cover;
  object-position: center 14%;
  filter: saturate(0.92) contrast(1.04);
}

.signal-panel {
  position: absolute;
  right: min(42%, 180px);
  bottom: 26px;
  width: min(320px, 78vw);
  padding: 18px;
  border-radius: 8px;
}

.signal-panel p {
  margin-bottom: 8px;
  color: var(--muted);
}

.signal-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 20px var(--accent);
}

.section-heading {
  display: grid;
  gap: 14px;
  margin-bottom: 34px;
}

.section-note {
  max-width: 660px;
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.section-heading.split {
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 24px;
}

.paper-list,
.project-grid {
  display: grid;
  gap: 14px;
}

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

.research-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
  gap: 16px;
  align-items: stretch;
}

.topic,
.paper,
.project-grid article {
  border-radius: 8px;
  padding: 22px;
}

.topic {
  cursor: pointer;
  min-height: 230px;
  transition: transform 0.24s ease, border-color 0.24s ease, background 0.24s ease;
}

.topic:hover {
  transform: translateY(-3px);
}

.topic.active {
  border-color: color-mix(in srgb, var(--accent) 76%, var(--line));
  background: color-mix(in srgb, var(--accent) 14%, var(--panel));
}

.selected-work-panel,
.working-list article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.selected-work-panel.is-switching {
  animation: panelFade 0.34s ease both;
}

@keyframes panelFade {
  from {
    opacity: 0.55;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.selected-work-panel span,
.working-list span {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.selected-work-panel h3,
.working-list h3 {
  margin-bottom: 12px;
  font-size: 1.3rem;
}

.selected-work-panel p,
.working-list p {
  color: var(--muted);
  line-height: 1.6;
}

.selected-work-panel ul {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.55;
}

.selected-paper-stack {
  display: grid;
  gap: 10px;
  margin: 14px 0 6px;
}

.selected-paper-stack article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: color-mix(in srgb, var(--panel-strong) 70%, transparent);
  cursor: pointer;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.selected-paper-stack article:hover,
.selected-paper-stack article:focus-visible {
  border-color: color-mix(in srgb, var(--accent) 62%, var(--line));
  background: color-mix(in srgb, var(--accent) 10%, var(--panel));
  outline: none;
  transform: translateY(-2px);
}

.selected-paper-stack strong {
  display: block;
  margin-bottom: 5px;
  color: var(--accent);
  font-size: 0.86rem;
}

.selected-paper-stack p {
  margin: 0;
  color: var(--text);
  font-weight: 750;
}

.selected-venue {
  color: var(--text) !important;
  font-weight: 800;
}

.topic span,
.paper span,
.project-grid span {
  display: inline-flex;
  margin-bottom: 22px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
}

.topic p,
.paper p,
.project-grid p,
.story-copy p,
.timeline p,
.timeline span {
  color: var(--muted);
  line-height: 1.6;
}

.visual-story {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 38px;
  align-items: center;
}

.image-strip {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.image-strip img {
  width: 100%;
  aspect-ratio: 16 / 8.2;
  object-fit: cover;
}

.timeline-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.timeline-list li {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 30px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.timeline-list time {
  color: var(--accent);
  font-weight: 800;
}

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

.paper.is-hidden {
  display: none;
}

.paper {
  display: grid;
  grid-template-columns: minmax(210px, 0.28fr) minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  scroll-margin-top: 120px;
}

.paper.is-targeted {
  border-color: color-mix(in srgb, var(--accent) 74%, var(--line));
  background: color-mix(in srgb, var(--accent) 12%, var(--panel));
  box-shadow: 0 20px 48px color-mix(in srgb, var(--accent) 18%, transparent);
  animation: paperTargetPulse 1.1s ease-in-out 2;
}

@keyframes paperTargetPulse {
  0%,
  100% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(8px);
  }
}

.paper-venue {
  align-self: center;
  display: grid;
  gap: 8px;
}

.paper-venue span {
  margin-bottom: 0;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
}

.paper-venue em {
  width: fit-content;
  border: 1px solid color-mix(in srgb, var(--accent) 46%, var(--line));
  border-radius: 999px;
  padding: 5px 8px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--text);
  font-size: 0.74rem;
  font-style: normal;
  font-weight: 800;
}

.paper h3 {
  margin-bottom: 0;
  font-size: 1.02rem;
}

.paper:hover h3 {
  color: var(--accent);
}

.paper.no-link {
  cursor: default;
}

.paper.no-link:hover h3 {
  color: var(--text);
}

.paper-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.paper-meta em {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 8px;
  color: var(--muted);
  font-size: 0.76rem;
  font-style: normal;
}

.skills {
  padding-top: 56px;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-tags span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  background: color-mix(in srgb, var(--panel) 78%, transparent);
  color: var(--text);
  font-weight: 700;
  box-shadow: 0 12px 36px rgba(24, 54, 66, 0.08);
}

.globe-stats {
  justify-content: flex-end;
}

.globe-stats span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 12px;
  background: color-mix(in srgb, var(--panel) 70%, transparent);
  color: var(--muted);
  font-size: 0.9rem;
}

.globe-stats strong {
  color: var(--text);
}

.globe-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 18px;
  align-items: stretch;
}

.globe-stage {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  border-radius: 8px;
  background:
    radial-gradient(circle at 48% 44%, rgba(56, 88, 114, 0.1), transparent 48%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(246, 250, 252, 0.94));
}

#conference-globe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.globe-static {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.84;
}

.globe-stage.is-static #conference-globe {
  display: none;
}

.globe-stage.is-static .globe-static {
  display: block;
}

.globe-stage::after {
  content: "";
  position: absolute;
  inset: auto 10% 7% 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(56, 88, 114, 0.42), transparent);
  box-shadow: 0 0 28px rgba(56, 88, 114, 0.14);
}

.globe-fallback {
  display: none;
}

.globe-fallback strong {
  color: var(--text);
  font-size: 1.2rem;
}

.globe-info {
  position: absolute;
  left: 22px;
  top: 22px;
  display: grid;
  gap: 6px;
  max-width: min(380px, calc(100% - 44px));
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel-strong) 90%, transparent);
  box-shadow: var(--shadow);
  pointer-events: none;
}

.globe-info strong {
  line-height: 1.25;
}

.globe-info span {
  color: var(--muted);
  font-size: 0.9rem;
}

.conference-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  max-height: 620px;
  overflow: hidden;
  border-radius: 8px;
}

.conference-panel-head {
  padding: 24px 24px 12px;
}

.conference-panel-head h3 {
  margin-bottom: 0;
  font-size: 1.35rem;
}

.conference-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0 14px 18px 24px;
  overflow: auto;
  list-style: none;
}

.conference-list li {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel-strong) 70%, transparent);
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.conference-list li:hover,
.conference-list li.active {
  border-color: color-mix(in srgb, var(--accent) 70%, var(--line));
  background: color-mix(in srgb, var(--accent) 12%, var(--panel-strong));
  transform: translateX(-3px);
}

.conference-list time {
  color: var(--accent);
  font-size: 0.86rem;
  font-weight: 900;
}

.conference-list strong {
  display: block;
  margin-bottom: 4px;
}

.conference-list span {
  color: var(--muted);
  font-size: 0.88rem;
}

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

.honors-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 22px;
}

.honor-item {
  display: grid;
  grid-template-columns: minmax(150px, 0.18fr) minmax(0, 0.54fr) minmax(220px, 0.28fr);
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px 18px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.honor-item span {
  color: var(--accent);
  font-size: 0.86rem;
  font-weight: 900;
}

.honor-item h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.25;
}

.honor-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.honor-topic {
  margin-top: 6px !important;
  color: var(--text) !important;
  font-size: 0.92rem;
}

.contact {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 34px;
  align-items: end;
  padding-bottom: 130px;
}

address {
  display: grid;
  gap: 10px;
  font-style: normal;
  color: var(--muted);
}

address a:hover {
  color: var(--accent);
}

.customizer {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  display: grid;
  justify-items: end;
  gap: 10px;
}

.customizer-toggle {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
  cursor: pointer;
}

.customizer-toggle span {
  width: 19px;
  height: 2px;
  background: var(--text);
}

.customizer-toggle span + span {
  transform: rotate(90deg) translateX(-2px);
}

.customizer-panel {
  display: grid;
  width: min(290px, calc(100vw - 36px));
  gap: 14px;
  padding: 18px;
  border-radius: 8px;
}

.customizer.is-collapsed .customizer-panel {
  display: none;
}

.customizer-panel h2 {
  font-size: 1rem;
}

.customizer-panel label,
.control-group {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.88rem;
}

.customizer-panel input {
  width: 100%;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
}

.control-group {
  grid-template-columns: 1fr 1fr;
}

.control-group span {
  grid-column: 1 / -1;
}

.control-group button {
  min-height: 36px;
  padding: 8px 10px;
  font-size: 0.86rem;
}

[data-motion="off"] *,
[data-motion="off"] *::before,
[data-motion="off"] *::after {
  animation: none !important;
  transition: none !important;
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
  }

  .nav {
    display: none;
  }

  .hero,
  .visual-story,
  .research-layout,
  .globe-layout,
  .contact,
  .section-heading.split {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 64px;
  }

  .hero-visual {
    justify-items: start;
  }

  .signal-panel {
    right: auto;
    left: 18px;
  }

  .research-grid,
  .paper-list,
  .project-grid,
  .honors-list {
    grid-template-columns: 1fr 1fr;
  }

  .honor-item {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .paper {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .globe-stage {
    min-height: 520px;
  }
}

@media (max-width: 620px) {
  .section-band {
    width: min(100% - 28px, 1180px);
  }

  h1 {
    font-size: clamp(2.75rem, 18vw, 4.4rem);
  }

  .brand-copy span {
    display: none;
  }

  .metrics,
  .research-grid,
  .paper-list,
  .project-grid,
  .honors-list,
  .conference-list li {
    grid-template-columns: 1fr;
  }

  .globe-stage {
    min-height: 320px;
  }

  .timeline-list li {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .signal-panel {
    position: static;
    width: 100%;
    margin-top: 12px;
  }
}
