/* ============================================================
   CAMP Lab — theme
   Palette + type are defined here; edit the :root vars to retheme.
   ============================================================ */
:root {
  --cream:       #FCFDF9;
  --coral:       #D85A30;
  --coral-dark:  #993C1D;
  --coral-soft:  #FAECE7;
  --ink:         #1f2d0e;
  --muted:       #5F5E5A;
  --faint:       #888780;
  --green:       #3B6D11;
  --green-soft:  #EAF3DE;
  --border:      #E6EBDA;
  --maxw:        1160px;
  --font-head:   'Nunito', system-ui, sans-serif;
  --font-body:   'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-head); color: var(--ink); font-weight: 700; }

.eyebrow {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--coral-dark);
  margin-bottom: 12px;
}
.coral-text { color: var(--coral-dark); }

/* ---------- nav ---------- */
.site-nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; max-width: var(--maxw); margin: 0 auto; padding: 16px 24px;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand-mark { width: 58px; height: 58px; flex-shrink: 0; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 31px; color: var(--coral-dark); }
.menu { display: flex; gap: 7px; flex-wrap: wrap; }
.menu a {
  font-size: 13px; padding: 6px 13px; border-radius: 999px;
  background: var(--green-soft); color: var(--green);
}
.menu a.active { background: var(--coral); color: #fff; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 500; padding: 11px 20px;
  border-radius: 8px; border: 1.5px solid transparent;
}
.btn-primary { background: var(--coral); color: #fff; }
.btn-ghost { border-color: var(--coral); color: var(--coral-dark); }
.btn-disabled { background: #F1EFE8; color: #9A988F; cursor: not-allowed; }
.btn .ti { font-size: 15px; }

/* ---------- hero ---------- */
.hero { position: relative; }
.hero-text { position: relative; max-width: var(--maxw); margin: 0 auto; padding: 26px 24px 16px; }
.hero-text .kicker {
  font-family: var(--font-head); font-weight: 700; font-size: 12px;
  letter-spacing: 0.16em; color: var(--coral-dark); margin: 0 0 16px;
}
.hero-text h1 {
  font-size: clamp(26px, 4vw, 38px); line-height: 1.15;
  margin: 0 0 16px;
}
.hero-text .lead { font-size: 15px; color: var(--muted); margin: 0 0 24px; max-width: 52ch; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-hills { max-width: var(--maxw); margin: 6px auto 0; }
.hero-hills svg { display: block; width: 100%; height: auto; cursor: pointer; }

/* ---------- generic section ---------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: 36px 24px; }
.section-title { font-size: 21px; margin: 0 0 4px; }
.section-sub { font-size: 13.5px; color: var(--muted); margin: 0 0 26px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; }
.section-more { font-size: 12.5px; color: var(--coral-dark); }
.page-title { font-size: 26px; margin: 0 0 4px; }
.page-sub { font-size: 14px; color: var(--muted); margin: 0 0 24px; }

/* ---------- research hub ---------- */
.research-grid { display: flex; align-items: stretch; }
.research-vision {
  flex: 0 0 35%; display: flex; flex-direction: column; justify-content: center;
  border-left: 3px solid var(--coral); padding: 2px 0 2px 16px;
}
.vision-statement { font-family: var(--font-head); font-weight: 700; font-size: 17px; line-height: 1.32; color: var(--ink); margin: 0 0 8px; }
.vision-note { font-size: 12.5px; color: var(--muted); margin: 0; }
.research-connector { flex: 0 0 70px; }
.research-connector svg { width: 100%; height: 100%; }
.research-areas { flex: 1; display: flex; flex-direction: column; justify-content: space-around; }
.area { display: flex; gap: 13px; align-items: flex-start; padding: 8px 0; }
.area-icon {
  width: 44px; height: 44px; border-radius: 50%; background: #fff;
  border: 1.5px solid var(--coral); display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: var(--coral); font-size: 21px;
}
.area-title { font-family: var(--font-head); font-weight: 700; font-size: 14.5px; color: var(--ink); margin: 0 0 3px; }
.area-desc { font-size: 12.5px; color: var(--muted); margin: 0; line-height: 1.5; }

/* ---------- projects ---------- */
.project-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.project-card { background: #fff; border: 0.5px solid var(--border); border-radius: 12px; overflow: hidden; display: block; }
.project-media {
  position: relative; aspect-ratio: 16/9; background: var(--media-bg, #22301a);
  display: flex; align-items: center; justify-content: center;
}
.project-media img,
.project-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.project-media .play {
  width: 44px; height: 44px; border-radius: 50%; background: var(--coral);
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 20px;
}
.project-media .media-tag {
  position: absolute; top: 10px; left: 10px; background: rgba(0,0,0,0.4); color: #fff;
  font-size: 10px; padding: 3px 8px; border-radius: 999px; letter-spacing: 0.06em;
}
.project-body { padding: 13px 15px; }
.project-title { font-family: var(--font-head); font-weight: 700; font-size: 14px; color: var(--ink); margin: 0 0 4px; }
.project-desc { font-size: 12px; color: var(--muted); margin: 0; line-height: 1.5; }
.project-venue { color: var(--coral-dark); }

/* ---------- news ---------- */
.news { background: #F6F8EF; border-top: 0.5px solid var(--border); border-radius: 12px; }
.news-list { display: flex; flex-direction: column; gap: 11px; }
.news-item { display: flex; gap: 14px; align-items: baseline; }
.news-date { font-family: var(--font-head); font-weight: 700; font-size: 11px; color: var(--coral-dark); white-space: nowrap; min-width: 58px; }
.news-text { font-size: 13px; color: #444441; margin: 0; line-height: 1.5; }
.news-text a { color: var(--coral-dark); border-bottom: 1px solid rgba(216, 90, 48, 0.35); }
.news-text a:hover { color: var(--coral); border-color: var(--coral); }

/* ---------- people ---------- */
.avatar {
  width: 50px; height: 50px; border-radius: 50%; background: var(--green-soft);
  color: var(--green); display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700; font-size: 16px; overflow: hidden; flex-shrink: 0;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-lg { width: 56px; height: 56px; font-size: 18px; }
.avatar.coral { background: var(--coral-soft); color: var(--coral-dark); }

.faculty-card {
  display: flex; gap: 14px; align-items: center; background: #fff;
  border: 1.5px solid #F0997B; border-radius: 12px; padding: 16px 18px; margin-bottom: 24px;
}
.faculty-body { flex: 1; }
.faculty-body .person-name { font-family: var(--font-head); font-weight: 700; font-size: 16px; color: var(--ink); margin: 0; }
.faculty-body .person-role { font-size: 13px; margin: 2px 0 6px; }
.person-blurb { font-size: 12.5px; color: var(--muted); margin: 0; line-height: 1.5; }
.card-cta { font-size: 12px; color: var(--coral); white-space: nowrap; }

.people-section { margin-top: 26px; }
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 215px)); gap: 12px; justify-content: start; }
.person-card { background: #fff; border: 0.5px solid var(--border); border-radius: 12px; padding: 16px; text-align: center; }
.person-card .avatar { margin: 0 auto 10px; display: flex; }
.person-card .person-name { font-family: var(--font-head); font-weight: 700; font-size: 14px; color: var(--ink); margin: 0; }
.person-card .person-role { font-size: 12px; color: var(--muted); margin: 3px 0 0; }

/* ---------- profile ---------- */
.back-link { font-size: 12.5px; color: var(--coral); display: inline-block; margin-bottom: 18px; }
.profile-grid { display: grid; grid-template-columns: 185px 1fr; gap: 24px; }
.profile-photo {
  width: 100%; aspect-ratio: 1; border-radius: 12px; background: var(--coral-soft);
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px; overflow: hidden;
}
.profile-photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-initials { font-family: var(--font-head); font-weight: 700; font-size: 44px; color: #E0A48F; }
.profile-side .person-name { font-family: var(--font-head); font-weight: 700; font-size: 18px; color: var(--ink); margin: 0; }
.profile-side .person-role { font-size: 13px; margin: 3px 0 14px; }
.contacts { display: flex; flex-direction: column; gap: 9px; font-size: 12.5px; }
.contacts a, .contacts span { color: var(--muted); }
.contacts .ti { font-size: 15px; color: var(--green); margin-right: 7px; vertical-align: -2px; }
.profile-h { font-size: 18px; margin: 0 0 10px; }
.profile-bio { font-size: 13.5px; line-height: 1.65; color: #444441; margin-bottom: 18px; }
.profile-bio p { margin: 0 0 10px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 20px; }
.tag { background: var(--green-soft); color: var(--green); font-size: 12px; padding: 5px 11px; border-radius: 999px; }

/* ---------- publications (shared .pub styles) ---------- */
.filter-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 24px; }
.chip { background: #fff; border: 0.5px solid #DDD; color: var(--muted); font-size: 12px; padding: 5px 13px; border-radius: 999px; cursor: pointer; font-family: inherit; line-height: 1.4; }
.chip:hover { border-color: var(--coral); }
.chip.active { background: var(--coral); color: #fff; border-color: var(--coral); }
.pub-year { font-family: var(--font-head); font-weight: 700; font-size: 14px; color: var(--coral-dark); margin: 22px 0 14px; border-bottom: 1.5px solid #EAD9CF; padding-bottom: 6px; }
.pub-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 9px; }
.pub-tag { font-size: 11px; padding: 3px 9px; border-radius: 999px; background: #F1EFE8; color: #444441; }
.tag-reinforcement-learning { background: #E6F1FB; color: #0C447C; }
.tag-robotics { background: #E1F5EE; color: #085041; }
.tag-language-models { background: #EEEDFE; color: #3C3489; }
.tag-interpretability { background: #FAEEDA; color: #633806; }
.tag-theory-of-mind { background: #FBEAF0; color: #72243E; }
.tag-computer-vision { background: #E9F3D5; color: #46660C; }
ol.bibliography { list-style: none; padding: 0; margin: 0; }
ol.bibliography li { margin: 0; }
.pub { margin-bottom: 20px; }
.pub-title { font-size: 14.5px; font-weight: 500; margin: 0 0 4px; color: var(--ink); line-height: 1.4; }
.pub-authors { font-size: 12.5px; color: var(--muted); margin: 0 0 4px; line-height: 1.5; }
.pub-author-link { color: var(--ink); font-weight: 500; border-bottom: 1px solid rgba(31,45,14,0.2); }
.pub-author-link:hover { color: var(--coral-dark); border-color: var(--coral); }
.pub-venue { font-size: 12px; font-style: italic; color: var(--faint); margin: 0 0 9px; }
.pub-links { display: flex; flex-wrap: wrap; gap: 6px; }
.pub-link { border: 0.5px solid #DDD; color: var(--muted); font-size: 11px; padding: 3px 9px; border-radius: 8px; }
.pub-link .ti { font-size: 12px; vertical-align: -2px; }
.pub-link.primary { border-color: var(--coral); color: var(--coral-dark); }
.pub-accent { border-left: 2.5px solid #A4C06E; border-radius: 0; padding-left: 13px; }
.publications .pub { border-left: 2px solid #C2D89B; border-radius: 0; padding-left: 14px; }

/* ---------- prospective ---------- */
.prose { max-width: 64ch; font-size: 14.5px; line-height: 1.65; }
.prose h2 { font-size: 18px; margin: 22px 0 8px; }
.prose p { margin: 0 0 12px; }
.prose ul { padding-left: 20px; margin: 0 0 12px; }
.prose li { margin: 4px 0; }
.cta-card {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  background: var(--coral-soft); border-radius: 12px; padding: 20px 22px; margin-top: 26px;
}
.cta-title { font-family: var(--font-head); font-weight: 700; font-size: 15px; color: var(--ink); margin: 0 0 3px; }
.cta-sub { font-size: 12.5px; color: var(--muted); margin: 0; }
.form-embed { margin-top: 24px; border: 0.5px solid var(--border); border-radius: 12px; overflow: hidden; }

/* ---------- footer ---------- */
.site-footer { background: #22301a; margin-top: 24px; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-title { font-family: var(--font-head); font-weight: 700; font-size: 14px; color: #fff; margin: 0 0 3px; }
.footer-sub { font-size: 12px; color: #A4C06E; margin: 0; }
.footer-links { display: flex; gap: 14px; color: #C2D89B; font-size: 18px; }

/* ---------- gallery carousel ---------- */
.gallery .carousel { max-width: 640px; margin: 0 auto; }
.carousel-frame {
  position: relative; aspect-ratio: 3 / 2; border-radius: 14px; overflow: hidden;
  background: #22301a; border: 1px solid var(--border);
}
.carousel-track { position: absolute; inset: 0; }
.slide {
  position: absolute; inset: 0; margin: 0; display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .45s ease; pointer-events: none;
}
.slide.active { opacity: 1; pointer-events: auto; }
.slide img { width: 100%; height: 100%; object-fit: contain; display: block; }
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 40px; height: 40px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(252,253,249,0.9); color: var(--coral-dark);
  display: flex; align-items: center; justify-content: center; font-size: 20px;
  box-shadow: 0 2px 8px rgba(31,45,14,0.25); transition: background .15s, transform .15s;
}
.carousel-btn:hover { background: #fff; }
.carousel-btn:active { transform: translateY(-50%) scale(0.94); }
.carousel-btn.prev { left: 12px; }
.carousel-btn.next { right: 12px; }
.carousel-caption { text-align: center; font-size: 13px; color: var(--muted); margin: 12px 0 0; min-height: 1.2em; }
.carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 10px; }
.carousel-dots .dot { width: 8px; height: 8px; padding: 0; border: none; border-radius: 50%; background: #D2D6C6; cursor: pointer; transition: background .15s; }
.carousel-dots .dot.active { background: var(--coral); }
@media (prefers-reduced-motion: reduce) { .slide { transition: none; } }

/* ---------- responsive ---------- */
@media (max-width: 720px) {
  .research-grid { flex-direction: column; gap: 18px; }
  .research-connector { display: none; }
  .project-grid { grid-template-columns: 1fr; }
  .profile-grid { grid-template-columns: 1fr; }
  .profile-photo { max-width: 200px; }
  .faculty-card { flex-direction: column; align-items: flex-start; text-align: left; }
  .card-cta { align-self: flex-start; }
}
