/* AIMold project page — Nerfies-inspired, self-contained */
:root {
  --text: #363636;
  --muted: #6b7280;
  --accent: #3273dc;
  --pill: #363636;
  --bg-alt: #f7f7f8;
  --maxw: 960px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: var(--text);
  line-height: 1.65;
  background: #fff;
}
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }
section { padding: 2.2rem 0; }
section.alt { background: var(--bg-alt); }

/* Hero */
.hero { text-align: center; padding: 3.2rem 0 2.2rem; }
.hero h1 {
  font-family: 'Google Sans', 'Noto Sans', sans-serif;
  font-size: 2.35rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.4rem;
}
.hero h1 .brand { color: var(--accent); }
.hero .conference { font-size: 1.25rem; color: var(--accent); font-weight: 600; margin-bottom: 1.1rem; }
.authors { font-size: 1.08rem; margin-bottom: 0.35rem; }
.authors a { color: var(--text); text-decoration: none; }
.authors a:hover { color: var(--accent); text-decoration: underline; }
.affil { font-size: 1.08rem; color: var(--text); margin-bottom: 0.3rem; }
.note { font-size: 0.85rem; color: var(--muted); margin-bottom: 1.4rem; }

/* Link buttons */
.links { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; }
.btn {
  display: inline-flex; align-items: center; gap: 0.45rem;
  background: var(--pill); color: #fff;
  border-radius: 9999px; padding: 0.5rem 1.15rem;
  font-size: 0.95rem; text-decoration: none;
  transition: background 0.15s ease;
}
.btn:hover { background: #000; }
.btn svg { width: 1em; height: 1em; fill: currentColor; }
.btn .icon { display: inline-flex; align-items: center; font-size: 1em; }
.btn.disabled { opacity: 0.55; cursor: default; }

/* Content blocks */
h2 {
  font-family: 'Google Sans', 'Noto Sans', sans-serif;
  font-size: 1.7rem; font-weight: 700;
  text-align: center; margin-bottom: 1.1rem;
}
h3 { font-size: 1.15rem; font-weight: 600; margin: 1.3rem 0 0.5rem; }
p.body-text { text-align: justify; margin-bottom: 0.9rem; }
.tagline {
  text-align: center; font-size: 1.06rem; max-width: 820px;
  margin: 1.1rem auto 0;
}
.tagline strong { color: inherit; }
.tagline .c-blue { color: #3d84ba; }
.tagline .c-yellow { color: #d4c118; }
.tagline .c-cyan { color: #2fa48e; }
.tagline .c-brown { color: #8a7361; }

figure { margin: 1.2rem 0; text-align: center; }
figure img { max-width: 100%; height: auto; border-radius: 6px; }
figure.framed img { box-shadow: 0 1px 8px rgba(0,0,0,0.09); }
figcaption { font-size: 0.88rem; color: var(--muted); margin-top: 0.55rem; text-align: center; }

video { width: 100%; border-radius: 8px; display: block; background: #fff; }
.video-frame { box-shadow: 0 2px 14px rgba(0,0,0,0.10); border-radius: 8px; margin: 1.2rem 0; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; align-items: center; }
@media (max-width: 720px) { .two-col { grid-template-columns: 1fr; } }

/* Stats row */
.stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 2.4rem; margin: 1.4rem 0 0.4rem; }
.stat { text-align: center; min-width: 130px; }
.stat .num { font-size: 1.9rem; font-weight: 700; color: var(--accent); font-family: 'Google Sans','Noto Sans',sans-serif; }
.stat .num .unit { font-size: 1.1rem; font-weight: 600; }
.stat .lbl { font-size: 0.9rem; color: var(--muted); }
.stat .vs { font-size: 0.78rem; color: #9ca3af; }

/* Interactive 3D viewer row (CADKnitter-style) */
.viewer-legend-inline {
  text-align: center; font-size: 0.85rem; color: var(--muted);
  margin: 1.2rem 0 0.7rem;
}
.viewer-legend-inline .dot {
  display: inline-block; width: 10px; height: 10px; border-radius: 50%;
  margin-right: 5px; vertical-align: middle;
}
.viewer-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.9rem;
}
@media (max-width: 760px) { .viewer-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .viewer-row { grid-template-columns: 1fr; } }
.mini-viewer {
  position: relative; aspect-ratio: 1 / 1;
  background: #ffffff;
  border: 1px solid #e5e7eb; border-radius: 10px; overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.07);
  cursor: grab;
}
.mini-viewer:active { cursor: grabbing; }
.mini-viewer canvas { display: block; width: 100% !important; height: 100% !important; }
.mini-viewer .viewer-loading {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; color: var(--muted); pointer-events: none;
}

/* BibTeX */
pre.bibtex {
  background: var(--bg-alt); border: 1px solid #e5e7eb; border-radius: 8px;
  padding: 1.1rem 1.3rem; overflow-x: auto;
  font-family: 'SFMono-Regular', Consolas, Menlo, monospace;
  font-size: 0.85rem; line-height: 1.5;
}

footer { padding: 2rem 0 2.6rem; text-align: center; font-size: 0.85rem; color: var(--muted); }
footer a { color: var(--accent); text-decoration: none; }
