:root {
  --bg: #07101d;
  --bg-soft: rgba(14, 24, 42, 0.78);
  --surface: rgba(13, 22, 38, 0.72);
  --surface-strong: rgba(16, 28, 48, 0.92);
  --line: rgba(255, 255, 255, 0.09);
  --text: #edf3ff;
  --muted: #b9c8e6;
  --accent: #7dd3fc;
  --accent-2: #a78bfa;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --radius: 24px;
  --container: min(1120px, calc(100% - 32px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: linear-gradient(180deg, #07101d 0%, #081426 100%);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}

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

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

button {
  font: inherit;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at center, black 28%, transparent 90%);
  opacity: 0.22;
  pointer-events: none;
  z-index: -3;
}

.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.35;
  pointer-events: none;
  z-index: -2;
}

.orb-1 {
  width: 420px;
  height: 420px;
  background: #2dd4bf;
  top: -80px;
  left: -100px;
}

.orb-2 {
  width: 460px;
  height: 460px;
  background: #8b5cf6;
  top: 120px;
  right: -140px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(4, 10, 20, 0.58);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

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

.brand {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(125, 211, 252, 0.22), rgba(167, 139, 250, 0.28));
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: 800;
}

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

.nav a {
  color: var(--muted);
  transition: color 0.25s ease;
}

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

.menu-button {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 14px;
  padding: 8px 12px;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 28px;
  padding: 72px 0 28px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #d8e6ff;
  font-size: 0.88rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero h1 {
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 1.02;
  margin: 18px 0 16px;
}

.accent {
  background: linear-gradient(90deg, var(--accent), #ffffff, var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-text,
.section-head p,
.card p,
.timeline-content p,
.media-note {
  color: var(--muted);
}

.hero-actions,
.paper-links,
.social-links,
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 14px;
  transition: transform 0.2s ease, opacity 0.2s ease, border-color 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: linear-gradient(135deg, rgba(125, 211, 252, 0.95), rgba(167, 139, 250, 0.95));
  color: #031019;
  font-weight: 700;
}

.button.secondary {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.mini-stats {
  list-style: none;
  padding: 0;
  margin: 30px 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.mini-stats li,
.card,
.hero-card,
.contact-card {
  border: 1px solid var(--line);
  background: var(--surface);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.mini-stats li {
  border-radius: 18px;
  padding: 16px;
}

.mini-stats strong {
  display: block;
  font-size: 1.3rem;
}

.mini-stats span {
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-card {
  border-radius: 30px;
  overflow: hidden;
}

.profile-photo {
  aspect-ratio: 4 / 4.6;
  object-fit: cover;
}

.hero-card-body {
  padding: 20px 22px 24px;
}

.hero-card-body h2 {
  margin: 0 0 6px;
}

.social-links a,
.paper-links a,
.site-footer a {
  color: #dbe7ff;
  opacity: 0.9;
}

.social-links a:hover,
.paper-links a:hover,
.site-footer a:hover {
  opacity: 1;
}

.section {
  padding: 52px 0;
}

.section-head {
  max-width: 760px;
  margin-bottom: 24px;
}

.section-head h2,
.contact-card h2 {
  margin: 14px 0 10px;
  font-size: clamp(2rem, 3.4vw, 3rem);
}

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

.card {
  border-radius: var(--radius);
  padding: 24px;
}

.clean-list {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--muted);
}

.numbered {
  padding-left: 1.3rem;
}

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

.timeline::before {
  content: '';
  position: absolute;
  left: 18px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, rgba(125, 211, 252, 0.8), rgba(167, 139, 250, 0.28));
}

.timeline-item {
  position: relative;
  padding-left: 52px;
}

.timeline-dot {
  position: absolute;
  top: 20px;
  left: 10px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 0 6px rgba(125, 211, 252, 0.12);
}

.timeline-date,
.paper-tag,
.chip {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #e2ebff;
  font-size: 0.84rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

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

.paper-card,
.experience-grid .card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.paper-card h3,
.experience-grid h3,
.card h3 {
  margin: 0;
}

.paper-authors,
.org {
  color: #d6e3ff;
  font-weight: 500;
}

.media-layout {
  display: grid;
  grid-template-columns: 1.05fr 1fr 0.85fr;
  gap: 20px;
  align-items: start;
}

.media-feature {
  padding: 0;
  overflow: hidden;
}

.media-feature img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.media-copy {
  padding: 22px;
}

video,
audio {
  width: 100%;
  border-radius: 18px;
  margin-top: 14px;
}

.map-layout {
  align-items: start;
}

.widget-slot,
.code-block {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.code-block {
  margin: 0;
  padding: 16px;
  overflow-x: auto;
  color: #d8e6ff;
}

.contact-card {
  padding: 28px;
  border-radius: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: 24px;
}

.footer-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 80px;
  color: var(--muted);
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 0.08s;
}

.delay-2 {
  transition-delay: 0.16s;
}

/* Visitor globe */

.map-card {
  padding: 0;
  overflow: hidden;
}

.map-shell {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 26px 26px 10px;
  overflow: hidden;
}

.map-shell .widget-slot {
  width: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

#visitor-widget-slot {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.globe-scale-frame {
  width: 100%;
  max-width: 1180px;
  height: 760px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow: hidden;
}

.globe-widget-host {
  width: max-content;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  transform: translateY(-8px) scale(0.72);
  transform-origin: top center;
}

#visitor-widget-slot iframe,
#visitor-widget-slot canvas,
#visitor-widget-slot svg,
#visitor-widget-slot img {
  display: block;
  width: auto !important;
  height: auto !important;
  max-width: none !important;
}

.map-placeholder {
  width: 100%;
  min-height: 420px;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.visitor-map-message {
  max-width: 460px;
  text-align: center;
  padding: 24px;
}

.visitor-map-message strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1rem;
}

.visitor-map-message p {
  margin: 0;
  color: var(--muted);
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', monospace;
}

@media (max-width: 980px) {
  .hero,
  .media-layout,
  .paper-grid,
  .experience-grid,
  .grid.two-col {
    grid-template-columns: 1fr;
  }

  .contact-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .globe-scale-frame {
    height: 650px;
  }

  .globe-widget-host {
    transform: translateY(-6px) scale(0.64);
  }
}

@media (max-width: 760px) {
  .nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 72px;
    padding: 16px;
    border-radius: 20px;
    background: rgba(6, 13, 25, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow);
    display: none;
    flex-direction: column;
  }

  .nav.open {
    display: flex;
  }

  .menu-button {
    display: inline-flex;
  }

  .mini-stats {
    grid-template-columns: 1fr;
  }

  .footer-wrap {
    flex-direction: column;
    justify-content: center;
    padding: 14px 0;
    text-align: center;
  }

  .map-shell {
    padding: 16px 12px 4px;
  }

  .globe-scale-frame {
    height: 430px;
  }

  .globe-widget-host {
    transform: translateY(-4px) scale(0.44);
  }

  .map-placeholder {
    min-height: 300px;
  }
}