:root {
  --ink: #162139;
  --muted: #667085;
  --line: #e6eaf0;
  --soft: #f7f9fc;
  --navy: #11243f;
  --perception: #f36250;
  --understanding: #00ae8d;
  --prediction: #5b6ff2;
  --planning: #f5a000;
  --shadow: 0 22px 55px rgba(31, 48, 78, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: #fff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.container { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.container.wide { width: min(1320px, calc(100% - 40px)); }
.section { padding: 96px 0; scroll-margin-top: 72px; }
.section-tinted { background: var(--soft); }

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid rgba(230, 234, 240, 0.8);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
}
.nav-shell {
  display: flex;
  width: min(1320px, calc(100% - 40px));
  min-height: 66px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
}
.brand {
  background: linear-gradient(100deg, var(--perception), var(--understanding), var(--prediction));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 21px;
  font-weight: 850;
  letter-spacing: -0.035em;
}
.nav-links { display: flex; gap: 25px; }
.nav-links a {
  color: #667085;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 180ms ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-toggle { display: none; }

.hero {
  overflow: hidden;
  padding: 96px 0 56px;
  background:
    radial-gradient(circle at 20% 22%, rgba(243, 98, 80, 0.12), transparent 24%),
    radial-gradient(circle at 82% 18%, rgba(0, 174, 141, 0.11), transparent 25%),
    radial-gradient(circle at 62% 88%, rgba(91, 111, 242, 0.09), transparent 28%);
}
.hero-container { max-width: 1000px; text-align: center; }
.eyebrow {
  margin: 0 0 13px;
  color: #748097;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}
.hero .eyebrow { font-size: 15px; letter-spacing: 0.2em; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 8px; font-size: clamp(54px, 7.6vw, 98px); line-height: 0.98; letter-spacing: -0.04em; }
h2 { margin-bottom: 17px; font-size: clamp(32px, 4vw, 48px); line-height: 1.14; letter-spacing: 0; }
h3 { margin-bottom: 10px; font-size: 21px; line-height: 1.24; letter-spacing: 0; }
.eventdrive-wordmark {
  padding-right: 0.08em;
  background: linear-gradient(95deg, #f36250 3%, #00ae8d 48%, #5b6ff2 78%, #f5a000 104%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-subtitle { margin-bottom: 25px; color: var(--navy); font-size: clamp(23px, 2.8vw, 36px); font-weight: 750; letter-spacing: -0.008em; }
.authors {
  display: flex;
  max-width: 940px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3px 18px;
  color: #34415a;
  font-size: 16px;
}
.authors a { color: #1859a9; font-weight: 720; }
.author-block { white-space: nowrap; }
.authors sup { margin-left: 0.1em; }
sup { font-size: 0.65em; }
.affiliations { margin: 17px auto 28px; color: #758096; font-size: 13px; line-height: 1.65; }
.button-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.resource-button {
  display: inline-flex;
  min-height: 45px;
  padding: 0 17px;
  align-items: center;
  gap: 8px;
  border: 1px solid #d5dbe5;
  border-radius: 999px;
  background: rgba(255,255,255,0.82);
  color: var(--navy);
  font-size: 14px;
  font-weight: 780;
  box-shadow: 0 5px 15px rgba(28, 45, 76, 0.05);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
.resource-button:hover { transform: translateY(-2px); border-color: #aeb8c7; box-shadow: 0 10px 22px rgba(28, 45, 76, 0.1); }
.resource-button.accent { border-color: #20354f; background: var(--navy); color: #fff; }
.resource-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }

.teaser-wrap { padding: 10px 0 56px; background: linear-gradient(#fff, #f9fbfd); }
.paper-figure {
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: #fff;
  box-shadow: var(--shadow);
}
.paper-figure img { width: 100%; }
.teaser-card { max-width: 960px; margin: 0 auto; }
.content-figure { max-width: 960px; margin: 0 auto; }
.figure-caption { max-width: 850px; margin: 21px auto 0; color: var(--muted); font-size: 15px; text-align: center; }

.stats-band { border-block: 1px solid var(--line); background: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stats-grid div { padding: 32px 22px; border-right: 1px solid var(--line); text-align: center; }
.stats-grid div:first-child { border-left: 1px solid var(--line); }
.stats-grid strong { display: block; color: var(--navy); font-size: 30px; letter-spacing: -0.035em; }
.stats-grid span { display: block; color: var(--muted); font-size: 12px; font-weight: 760; letter-spacing: 0.05em; text-transform: uppercase; }

.section-heading { max-width: 760px; margin-bottom: 40px; }
.section-heading.centered { margin-right: auto; margin-left: auto; text-align: center; }
.section-heading.compact { margin-bottom: 33px; }
.section-heading p:last-child, .overview-card p, .task-card p, .model-grid p, .dataset-bottom p, .qualitative-grid p, .citation-grid p {
  color: var(--muted);
  font-size: 16px;
}
.overview-grid, .model-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 17px; }
.overview-card, .model-grid article {
  padding: 27px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
.overview-index, .model-grid span { display: block; margin-bottom: 28px; color: #a9b1bd; font-size: 13px; font-weight: 850; letter-spacing: 0.1em; }
.overview-card p, .model-grid p { margin-bottom: 0; font-size: 14.5px; }

.task-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.task-card {
  position: relative;
  overflow: hidden;
  min-height: 364px;
  padding: 23px;
  border: 1px solid var(--line);
  border-top: 5px solid var(--task-color);
  border-radius: 14px;
  background: #fff;
}
.task-topline { display: flex; margin-bottom: 21px; align-items: center; justify-content: space-between; }
.task-topline img { width: 38px; height: 38px; object-fit: contain; }
.task-topline span { color: var(--task-color); font-size: 13px; font-weight: 850; }
.task-card h3 { color: var(--task-color); }
.task-card p { min-height: 68px; font-size: 14.5px; }
.task-card ul { display: flex; margin: 16px 0 0; padding: 0; flex-wrap: wrap; gap: 6px; list-style: none; }
.task-card li { padding: 4px 8px; border-radius: 5px; background: color-mix(in srgb, var(--task-color) 10%, white); color: var(--task-color); font-size: 11px; font-weight: 760; }
.perception { --task-color: var(--perception); }
.understanding { --task-color: var(--understanding); }
.prediction { --task-color: var(--prediction); }
.planning { --task-color: var(--planning); }

.annotation-overview {
  display: grid;
  max-width: 960px;
  margin: 18px auto 0;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.annotation-overview article {
  padding: 17px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--task-color);
  border-radius: 11px;
  background: #fff;
}
.annotation-overview span {
  display: block;
  margin-bottom: 10px;
  color: var(--task-color);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
}
.annotation-overview h3 { margin-bottom: 7px; font-size: 16px; color: var(--task-color); }
.annotation-overview p { margin-bottom: 0; color: var(--muted); font-size: 12.5px; line-height: 1.55; }

.dataset-bottom {
  display: flex;
  max-width: 1080px;
  margin-top: 28px;
  margin-right: auto;
  margin-left: auto;
  padding: 28px 5px 0;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
}
.dataset-bottom div { max-width: 700px; }
.dataset-bottom h3 { font-size: 26px; }
.text-link { color: #1755a6; font-size: 15px; font-weight: 800; white-space: nowrap; }
.text-link span { display: inline-block; margin-left: 4px; transition: transform 180ms ease; }
.text-link:hover span { transform: translateX(4px); }

.model-section { background: #13243d; color: #fff; }
.model-section .section-heading p:last-child, .model-grid p { color: #aab8ca; }
.model-section .paper-figure { border-color: rgba(255,255,255,0.16); box-shadow: 0 20px 55px rgba(0,0,0,0.24); }
.model-grid { max-width: 1080px; margin: 18px auto 0; }
.model-grid article { border-color: rgba(255,255,255,0.13); background: rgba(255,255,255,0.06); }
.model-grid span { margin-bottom: 15px; color: #8298b4; }
.model-grid h3 { font-size: 19px; }

.results-table { max-width: 1120px; margin: 0 auto 24px; }
.results-table-scroll { overflow-x: auto; padding-bottom: 5px; }
.results-table-frame {
  overflow: hidden;
  min-width: 940px;
  aspect-ratio: 3.15 / 1;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
}
.results-table-frame img { width: 100%; transform: translateY(-22%); }
.results-table figcaption { margin-top: 10px; color: var(--muted); font-size: 13px; text-align: center; }
.result-takeaways { display: grid; margin: 22px 0 76px; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.result-takeaways article { padding: 18px 20px; border-left: 3px solid var(--prediction); background: var(--soft); }
.result-takeaways span { color: #8290a8; font-size: 11px; font-weight: 850; letter-spacing: 0.1em; }
.result-takeaways p { margin: 7px 0 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.result-takeaways strong { color: var(--navy); }
.qualitative-heading { max-width: 720px; margin: 0 auto 23px; text-align: center; }
.qualitative-heading h3 { font-size: 30px; line-height: 1.2; }
.qualitative-heading p:last-child { color: var(--muted); font-size: 16px; }
.qualitative-panels { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
.qualitative-panel { aspect-ratio: 1719 / 1010; }
.qualitative-panel img { width: 100%; }

.citation-section { border-top: 1px solid var(--line); background: var(--soft); }
.citation-grid { display: grid; grid-template-columns: 0.82fr 1.18fr; align-items: center; gap: 55px; }
.bibtex-card { position: relative; overflow-x: auto; border-radius: 15px; background: #102139; box-shadow: var(--shadow); }
.bibtex-card pre { margin: 0; padding: 27px; color: #d5e2ef; font-size: 12px; line-height: 1.6; white-space: pre-wrap; }
.copy-button {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 7px 10px;
  border: 1px solid rgba(255,255,255,0.19);
  border-radius: 6px;
  background: rgba(255,255,255,0.09);
  color: #d5e2ef;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 780;
}

footer { padding: 26px 0; border-top: 1px solid var(--line); background: #fff; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer-inner p { margin: 0; color: var(--muted); font-size: 12px; }
.footer-inner p a { color: #1755a6; font-weight: 720; }

@media (max-width: 900px) {
  .nav-toggle {
    display: grid;
    width: 36px;
    height: 36px;
    padding: 8px;
    border: 0;
    background: transparent;
    align-content: space-around;
  }
  .nav-toggle span { height: 2px; border-radius: 1px; background: var(--ink); }
  .nav-links {
    position: absolute;
    top: 66px;
    right: 0;
    left: 0;
    display: none;
    padding: 17px 20px 22px;
    border-bottom: 1px solid var(--line);
    background: rgba(255,255,255,0.98);
    flex-direction: column;
    gap: 15px;
  }
  .nav-links.open { display: flex; }
  .hero { padding-top: 74px; }
  .stats-grid, .task-grid { grid-template-columns: repeat(2, 1fr); }
  .overview-grid, .model-grid, .citation-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .container, .container.wide, .nav-shell { width: min(100% - 28px, 1320px); }
  .section { padding: 76px 0; }
  h1 { font-size: clamp(46px, 14.5vw, 59px); letter-spacing: -0.03em; }
  .hero-subtitle { font-size: 21px; line-height: 1.22; letter-spacing: 0; }
  .authors { gap: 2px 13px; font-size: 14px; }
  .affiliations { font-size: 11px; }
  .button-row { gap: 8px; }
  .resource-button { min-height: 42px; padding: 0 13px; font-size: 12px; }
  .teaser-wrap { padding-bottom: 38px; }
  .paper-figure { border-radius: 11px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid div { padding: 21px 10px; }
  .stats-grid strong { font-size: 25px; }
  .stats-grid span { font-size: 10px; }
  .task-grid, .result-takeaways, .qualitative-panels { grid-template-columns: 1fr; }
  .annotation-overview { grid-template-columns: 1fr; }
  .task-card { min-height: auto; }
  .task-card p { min-height: 0; }
  .dataset-bottom { display: block; padding-inline: 0; }
  .dataset-bottom .text-link { display: inline-block; margin-top: 8px; }
  .result-takeaways { margin-bottom: 55px; }
  .qualitative-heading h3 { font-size: 27px; }
  .citation-grid { gap: 25px; }
  .bibtex-card pre { padding: 55px 20px 20px; font-size: 10px; }
  .footer-inner { display: block; }
  .footer-inner p { margin-top: 8px; }
}
