:root {
  --bg: #f3f7ff;
  --surface: rgba(255, 255, 255, 0.86);
  --text: #131827;
  --muted: #4a5368;
  --accent: #0c6cf2;
  --accent-2: #00b894;
  --line: rgba(82, 110, 180, 0.2);
  --shadow: 0 24px 50px rgba(20, 30, 70, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  background: radial-gradient(circle at 20% -10%, #dbeafe 0, transparent 36%),
    radial-gradient(circle at 80% 0, #fef3c7 0, transparent 28%),
    linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
  line-height: 1.65;
  overflow-x: hidden;
}

h1,
h2,
h3,
.logo {
  font-family: "Sora", "Avenir Next", sans-serif;
  letter-spacing: -0.02em;
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  z-index: 100;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(to right, rgba(0, 0, 0, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.045) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.25;
  pointer-events: none;
  z-index: -3;
}

.bg-orb {
  position: fixed;
  width: 30vw;
  max-width: 440px;
  min-width: 220px;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.38;
  pointer-events: none;
  z-index: -2;
  transition: transform 0.15s linear;
}

.orb-a {
  top: -6rem;
  right: -8rem;
  background: #93c5fd;
}

.orb-b {
  left: -7rem;
  top: 34vh;
  background: #86efac;
}

.orb-c {
  bottom: -9rem;
  right: 22vw;
  background: #f9a8d4;
}

.site-header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(12px);
  background: rgba(243, 247, 255, 0.8);
  border-bottom: 1px solid var(--line);
  z-index: 40;
}

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

.logo {
  font-weight: 800;
  text-decoration: none;
  color: var(--text);
}

.menu {
  display: flex;
  list-style: none;
  gap: 1.15rem;
  margin: 0;
  padding: 0;
}

.menu a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  position: relative;
}

.menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.25rem;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.28s ease;
}

.menu a:hover::after,
.menu a:focus-visible::after {
  width: 100%;
}

.menu-btn {
  display: none;
}

.hero {
  padding: clamp(2.8rem, 8vw, 6rem) 0 3.2rem;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 1.4rem;
  align-items: center;
}

.hero-text {
  animation: rise-in 0.9s ease both;
}

.kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--accent);
  font-size: 0.8rem;
}

.glow-title {
  font-size: clamp(2rem, 4.5vw, 4.2rem);
  line-height: 1.06;
  max-width: 16ch;
  margin: 0.6rem 0 0;
  background: linear-gradient(90deg, #111827, #1d4ed8, #111827);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 7s linear infinite;
}

.intro {
  max-width: 66ch;
  color: var(--muted);
  margin-top: 1rem;
}

.hero-actions {
  display: flex;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.btn {
  border-radius: 14px;
  padding: 0.76rem 1rem;
  text-decoration: none;
  font-weight: 700;
  transform: translateZ(0);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.btn:hover {
  transform: translateY(-3px) scale(1.02);
}

.btn-primary {
  background: linear-gradient(120deg, var(--accent), #2d8bff);
  color: #fff;
  box-shadow: 0 10px 24px rgba(29, 78, 216, 0.3);
}

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.66);
}

.hero-portrait {
  justify-self: center;
  width: min(420px, 90%);
  perspective: 1200px;
}

.portrait-frame {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.95), rgba(240, 248, 255, 0.75));
  border-radius: 26px;
  padding: 0.65rem;
  border: 1px solid rgba(37, 99, 235, 0.26);
  box-shadow: var(--shadow);
  transform-style: preserve-3d;
  animation: float-hero 6s ease-in-out infinite;
}

.portrait-frame img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 20px;
  display: block;
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.stat-strip li,
.panel,
.card,
.timeline article {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.stat-strip li {
  border-radius: 14px;
  padding: 1rem;
}

.stat-strip strong {
  display: block;
  font-size: 1.16rem;
  font-family: "Sora", sans-serif;
}

.stat-strip span {
  font-size: 0.89rem;
  color: var(--muted);
}

.float {
  animation: bob 4.6s ease-in-out infinite;
}

.delay-1 {
  animation-delay: 0.35s;
}

.delay-2 {
  animation-delay: 0.75s;
}

.delay-3 {
  animation-delay: 1.15s;
}

.section {
  padding: 3rem 0;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin: 0 0 1rem;
}

.panel {
  border-radius: 18px;
  padding: 1.3rem;
}

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

.card {
  border-radius: 16px;
  padding: 1rem;
  transform-style: preserve-3d;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.edge-grid .card {
  border-top: 4px solid #7c3aed;
}

.paper {
  border-top: 4px solid var(--accent);
}

.paper-tag {
  margin: 0;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.research-intro {
  color: var(--muted);
  margin-top: -0.35rem;
}

.timeline {
  display: grid;
  gap: 0.9rem;
}

.timeline article {
  border-left: 4px solid var(--accent);
  padding: 0.4rem 1rem;
  border-radius: 0 14px 14px 0;
}

.timeline .meta {
  color: var(--muted);
  margin-top: -0.2rem;
}

.contact-panel {
  display: grid;
  gap: 0.7rem;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
}

.contact-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.contact-list span {
  min-width: 80px;
  color: var(--muted);
}

.site-footer {
  text-align: center;
  border-top: 1px solid var(--line);
  padding: 1.3rem 0 2rem;
  color: var(--muted);
}

.reveal {
  opacity: 0;
  transform: perspective(1200px) rotateX(8deg) translateY(26px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.reveal.visible {
  opacity: 1;
  transform: perspective(1200px) rotateX(0) translateY(0);
}

@keyframes shimmer {
  0% {
    background-position: 0% center;
  }
  100% {
    background-position: 220% center;
  }
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
}

@keyframes float-hero {
  0%,
  100% {
    transform: translateY(0) rotateX(0) rotateY(0);
  }
  50% {
    transform: translateY(-10px) rotateX(2deg) rotateY(-2deg);
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .hero-portrait {
    width: min(390px, 88vw);
  }

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

@media (max-width: 780px) {
  .menu-btn {
    display: inline-block;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    padding: 0.42rem 0.72rem;
  }

  .menu {
    display: none;
    width: 100%;
    flex-direction: column;
    padding: 0.4rem 0 0.8rem;
  }

  .menu.open {
    display: flex;
  }

  .nav {
    min-height: 64px;
    flex-wrap: wrap;
  }

  .cards,
  .research-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}
