*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --text: #1a1a1a;
  --text-secondary: #555;
  --bg: #f7f7f8;
  --accent: #2271b1;
  --border: #e0e0e0;
  --badge-video: #2271b1;
  --badge-motion: #0e8a7d;
  --badge-trust: #d97706;
  --badge-venue: #555;
  --card-bg: #fff;
}

html { scroll-behavior: smooth; }

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

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

/* ---- Layout ---- */
.container { max-width: 850px; margin: 0 auto; padding: 0 24px; }

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

h2 {
  font-size: 1.35rem;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

/* ---- Hero ---- */
.hero {
  padding: 48px 0 40px;
  display: flex;
  align-items: center;
  gap: 36px;
}

.hero-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.hero-text h1 {
  font-size: 2rem;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.hero-text .subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.hero-text .tagline {
  margin-bottom: 12px;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.95rem;
}

.hero-links a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* ---- Badges ---- */
.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  color: #fff;
  vertical-align: middle;
  letter-spacing: 0.01em;
}

.badge-video { background: var(--badge-video); }
.badge-motion { background: var(--badge-motion); }
.badge-trust { background: var(--badge-trust); }
.badge-venue { background: var(--badge-venue); }

/* ---- About ---- */
.about p { max-width: 720px; }

/* ---- Publications ---- */
.pub-list { display: flex; flex-direction: column; gap: 28px; }

.pub-card {
  display: flex;
  gap: 20px;
  padding: 16px;
  background: var(--card-bg);
  border-radius: 8px;
  border: 2px solid #ccc;
}

.pub-img {
  width: 200px;
  min-width: 200px;
  height: 140px;
  object-fit: contain;
  border-radius: 4px;
  align-self: center;
}

.pub-info { flex: 1; min-width: 0; }

.pub-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
  line-height: 1.35;
}

.pub-authors {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.pub-authors strong { color: var(--text); }

.pub-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.pub-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pub-links a {
  font-size: 0.8rem;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 4px;
  border: 1px solid var(--border);
  color: var(--text);
  background: #fff;
  transition: background 0.15s;
}

.pub-links a:hover {
  background: #f0f0f0;
  text-decoration: none;
}

/* ---- CV Timeline ---- */
.timeline { display: flex; flex-direction: column; gap: 0; }

.timeline-section {
  margin-bottom: 28px;
}

.timeline-section h3 {
  font-size: 1.05rem;
  margin-bottom: 12px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--border);
}

.timeline-entry {
  display: flex;
  gap: 16px;
  padding: 8px 0;
}

.timeline-date {
  width: 130px;
  min-width: 130px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding-top: 2px;
}

.timeline-content { flex: 1; }

.timeline-content .title {
  font-weight: 600;
  font-size: 0.95rem;
}

.timeline-content .detail {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* ---- Footer ---- */
footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

footer a { color: var(--text-secondary); }
footer a:hover { color: var(--accent); }

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 6px;
}

/* ---- Responsive ---- */
@media (max-width: 640px) {
  .hero {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .hero-photo { width: 120px; height: 120px; }
  .hero-links { justify-content: center; }

  .pub-card { flex-direction: column; }

  .pub-img {
    width: 100%;
    min-width: unset;
    height: auto;
    max-height: 180px;
  }

  .timeline-entry { flex-direction: column; gap: 2px; }
  .timeline-date { width: auto; min-width: unset; }
}
