:root {
  --bg: #000;
  --surface: #111114;
  --line: #26262c;
  --text: #f4f4f6;
  --muted: #a3a3ad;
  --pink: #e64ee6;
  --pink-soft: #e07ad8;
  --violet: #a99cf5;
  --max: 1120px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, -apple-system, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img, video { display: block; max-width: 100%; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
section { padding: 96px 0; border-top: 1px solid var(--line); }
.eyebrow {
  color: var(--pink-soft);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.15; font-weight: 700; letter-spacing: -.02em; margin-bottom: 20px; }
h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 760px; }

/* Nav */
nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(0,0,0,.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { font-weight: 800; font-size: 18px; text-decoration: none; letter-spacing: -.01em; }
.brand span { color: var(--pink); }
.links { display: flex; gap: 28px; list-style: none; }
.links a { text-decoration: none; color: var(--muted); font-size: 15px; font-weight: 500; transition: color .15s; }
.links a:hover { color: var(--text); }
.links .cta { color: var(--text); border: 1px solid var(--pink); padding: 7px 14px; border-radius: 999px; }
.links .cta:hover { background: var(--pink); color: #000; }

/* Hero */
.hero { padding: 120px 0 96px; border-top: 0; text-align: center; }
.hero h1 {
  font-size: clamp(52px, 10vw, 112px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -.035em;
  color: var(--pink);
  margin-bottom: 28px;
}
.hero .tagline { font-size: clamp(20px, 2.6vw, 28px); font-weight: 600; max-width: 820px; margin: 0 auto 40px; line-height: 1.3; }
.hero .sub { color: var(--muted); font-size: 17px; max-width: 680px; margin: 0 auto 40px; }
.buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block; text-decoration: none; font-weight: 600; font-size: 15px;
  padding: 13px 24px; border-radius: 999px; transition: transform .15s, background .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--pink); color: #000; }
.btn-ghost { border: 1px solid var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--muted); }
.affil { margin-top: 56px; color: var(--muted); font-size: 14px; letter-spacing: .04em; }

/* Inner page header */
.page-hero { padding: 96px 0 72px; }
.page-hero h1 { font-size: clamp(40px, 7vw, 72px); line-height: 1.05; font-weight: 800; letter-spacing: -.03em; margin-bottom: 20px; }
.page-hero h1 span { color: var(--pink); }

/* Research teaser (home) */
.teaser { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; }
.teaser .buttons { justify-content: flex-start; }

/* Video */
.video-frame {
  margin-top: 36px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0a0a0a;
  aspect-ratio: 16 / 9;
}
.video-frame video { width: 100%; height: 100%; object-fit: cover; }

/* About */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 40px; }
.two-col p { color: var(--muted); font-size: 17px; }

/* Characters */
.characters { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 40px; }
.char {
  display: flex; background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; overflow: hidden;
}
.char img { width: 42%; object-fit: cover; }
.char .body { padding: 24px; display: flex; flex-direction: column; justify-content: center; }
.char .who { color: var(--muted); font-size: 15px; margin-bottom: 14px; }
.char .score { font-size: 15px; color: var(--muted); }
.char .score b { display: block; font-size: 32px; font-weight: 700; letter-spacing: -.02em; }
.char.neutral .score b { color: var(--violet); }
.char.adaptive .score b { color: var(--pink-soft); }
.note { color: var(--muted); font-size: 14px; margin-top: 16px; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 28px 24px; }
.stat .num { font-size: 44px; font-weight: 800; letter-spacing: -.03em; line-height: 1; margin-bottom: 10px; }
.stat .num.pink { color: var(--pink-soft); }
.stat .num.violet { color: var(--violet); }
.stat p { color: var(--muted); font-size: 15px; line-height: 1.45; }
.finding {
  margin-top: 20px; padding: 28px; border-radius: 14px;
  border: 1px solid var(--pink); background: linear-gradient(135deg, rgba(230,78,230,.10), rgba(169,156,245,.06));
  font-size: clamp(18px, 2.2vw, 22px); font-weight: 600; line-height: 1.4;
}
.finding span { display: block; margin-top: 8px; font-size: 16px; font-weight: 400; color: var(--muted); }

/* Chart */
.chart { margin-top: 20px; }
.chart img { width: 100%; background: #fff; border-radius: 14px; padding: 24px; border: 1px solid var(--line); }
.chart figcaption { color: var(--muted); font-size: 14px; margin-top: 12px; }

/* Paper */
.paper {
  margin-top: 40px; display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 36px;
}
.paper .title { font-size: clamp(20px, 2.4vw, 26px); font-weight: 700; line-height: 1.3; margin-bottom: 12px; letter-spacing: -.01em; }
.paper .authors { color: var(--muted); font-size: 15px; margin-bottom: 6px; }
.paper .venue { color: var(--pink-soft); font-size: 14px; font-weight: 500; }
.paper > div { min-width: 0; }
.paper .buttons { justify-content: flex-start; flex-direction: column; }
.paper .btn { text-align: center; }
details { margin-top: 20px; }
summary { cursor: pointer; color: var(--muted); font-size: 14px; }
summary:hover { color: var(--text); }
pre {
  margin-top: 12px; padding: 18px; border-radius: 10px; background: #0a0a0c; border: 1px solid var(--line);
  color: var(--muted); font-size: 13px; overflow-x: auto; line-height: 1.5;
}

/* Team */
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; }
.member { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 28px 24px; text-align: center; }
.avatar {
  width: 140px; height: 140px; border-radius: 50%; margin: 0 auto 18px;
  object-fit: cover; object-position: center 25%;
  border: 2px solid var(--line); background: var(--surface);
}
.member h3 { font-size: 18px; margin-bottom: 4px; }
.member h3 a { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; transition: color .15s, text-decoration-color .15s; }
.member h3 a:hover { color: var(--pink); text-decoration-color: var(--pink); }
.member p { color: var(--muted); font-size: 14px; line-height: 1.45; }

/* Collaborate */
.collab { text-align: center; }
.collab .lead { margin: 0 auto 32px; }
.email {
  display: inline-block; font-size: clamp(22px, 3.4vw, 36px); font-weight: 700; color: var(--pink);
  text-decoration: none; border-bottom: 2px solid transparent; transition: border-color .15s;
}
.email { overflow-wrap: anywhere; }
.email:hover { border-color: var(--pink); }

footer { border-top: 1px solid var(--line); padding: 32px 0; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer a { text-decoration: none; }
footer a:hover { color: var(--text); }

@media (max-width: 900px) {
  .stats, .team { grid-template-columns: 1fr 1fr; }
  .characters, .two-col { grid-template-columns: 1fr; }
  .paper { grid-template-columns: 1fr; }
  .paper .buttons { flex-direction: row; }
  .teaser { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  section { padding: 64px 0; }
  .hero { padding: 72px 0 64px; }
  .page-hero { padding: 56px 0 48px; }
  .links li:not(:last-child) { display: none; }
  .stats, .team { grid-template-columns: 1fr; }
  .char img { width: 38%; }
  .paper { padding: 24px; }
  .chart img { padding: 12px; }
}
