:root {
  --accent: #3457d5;
  --accent-dark: #2743aa;
  --text: #1c1e21;
  --text-muted: #5b6472;
  --bg: #ffffff;
  --bg-alt: #f6f7f9;
  --border: #e4e6eb;
  --max-width: 920px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.container.wide {
  max-width: 1300px;
}

section {
  padding: 64px 0;
}

section + section {
  border-top: 1px solid var(--border);
}

.hero {
  text-align: center;
  padding: 88px 0 56px;
}

.hero h1 {
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 24px;
}

.hero h1 .subtitle {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.7em;
  font-weight: 500;
  color: var(--text-muted);
}

.authors {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

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

.affiliations {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.venue {
  font-size: 0.95rem;
  color: var(--accent-dark);
  font-weight: 600;
  margin-bottom: 28px;
}

.links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 600;
  transition: background 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}

.teaser {
  padding-top: 0;
}

.teaser figure { margin: 0; }

.teaser img,
.media-box {
  width: 100%;
  border-radius: 12px;
  display: block;
}

.teaser figcaption {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-top: 14px;
}

.teaser-lead {
  text-align: center;
  font-size: 1.08rem;
  font-style: italic;
  color: var(--accent-dark);
  margin: 0 0 32px;
}

.video-row {
  display: grid;
  gap: 24px;
  margin-bottom: 24px;
}

.video-row.two-col {
  grid-template-columns: 1fr 1fr;
}

.video-row.one-col {
  grid-template-columns: 1fr;
}

.video-cell { text-align: center; }

.video-title {
  font-size: 1.02rem;
  font-weight: 600;
  margin: 0 0 12px;
}

.teaser-video {
  width: 100%;
  border-radius: 12px;
  display: block;
  background: var(--bg-alt);
}

@media (max-width: 700px) {
  .video-row.two-col {
    grid-template-columns: 1fr;
  }
}

/* Hidden until paper acceptance — see CLAUDE.md for what to restore. */
.hide-until-acceptance {
  display: none !important;
}

.notice-red {
  color: #c0392b;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  margin-top: 14px;
}

.notice-red.hidden {
  display: none;
}

h2.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 24px;
  text-align: center;
}

.abstract p {
  font-size: 1.02rem;
  color: var(--text);
}

.abstract-collapsible {
  position: relative;
  overflow: hidden;
  max-height: 1000px;
  transition: max-height 0.4s ease;
}

.abstract-collapsible.collapsed {
  max-height: 108px;
}

.abstract-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), var(--bg));
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.abstract-collapsible.collapsed .abstract-fade {
  opacity: 1;
}

.abstract-toggle {
  display: block;
  margin: 14px auto 0;
  padding: 8px 20px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: none;
  color: var(--accent-dark);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}

.abstract-toggle:hover {
  background: var(--bg-alt);
}

.method-figure {
  margin: 0 0 24px;
}

.method-figure img { width: 100%; border-radius: 12px; }

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.result-card { text-align: center; }

.result-card img,
.result-card .media-box { border-radius: 10px; }

.result-card figcaption {
  margin-top: 10px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.media-box {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--bg-alt);
  border: 1px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: center;
  padding: 16px;
}

.media-box .play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -80%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.bibtex {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 24px;
  position: relative;
}

.bibtex pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: "SFMono-Regular", Consolas, Menlo, monospace;
  font-size: 0.85rem;
  color: var(--text);
}

.copy-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 0.8rem;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s ease;
}

.copy-btn:hover { background: var(--bg-alt); }

footer {
  text-align: center;
  padding: 40px 0 64px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

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

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

@media (max-width: 600px) {
  .hero h1 { font-size: 1.5rem; }
  section { padding: 44px 0; }
}
