/* ============================================================
   HELM Lab — Shared Stylesheet
   Colors drawn from logo: navy #0f2244, gold #e8a020, blue #6baed6
   ============================================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:      #0f2244;
  --navy-mid:  #1a3460;
  --gold:      #e8a020;
  --blue:      #6baed6;
  --blue-dark: #4a8ab5;
  --gray-light:#f5f7fa;
  --gray-mid:  #e2e8f0;
  --gray-text: #64748b;
  --text:      #1e293b;
  --white:     #ffffff;
  --radius:    8px;
  --shadow:    0 2px 12px rgba(15,34,68,.10);
  --shadow-lg: 0 6px 28px rgba(15,34,68,.14);
  --transition: 0.2s ease;
  --max-width: 1100px;
}

html { scroll-behavior: smooth; }

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

a { color: var(--blue-dark); text-decoration: none; }
a:hover { color: var(--gold); }

img { max-width: 100%; display: block; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--navy);
}
h1 { font-size: clamp(1.75rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 1rem; color: var(--gray-text); font-weight: 600; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section { padding: 5rem 0; }

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .6rem;
}

.section-title {
  margin-bottom: 1rem;
  color: var(--navy);
}

.section-intro {
  font-size: 1.05rem;
  color: var(--gray-text);
  max-width: 680px;
  margin-bottom: 3rem;
}

/* ---------- Navigation ---------- */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .75rem 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: var(--white);
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
}

.nav-brand img {
  width: 48px;
  height: 48px;
  border-radius: 6px;
}

.nav-brand span {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.nav-brand .brand-name { font-size: 1rem; }
.nav-brand .brand-sub  { font-size: .7rem; font-weight: 400; color: var(--blue); opacity: .9; }

.nav-links {
  display: flex;
  gap: .25rem;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: .45rem .85rem;
  border-radius: var(--radius);
  color: rgba(255,255,255,.8);
  font-size: .9rem;
  font-weight: 500;
  transition: background var(--transition), color var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(255,255,255,.12);
  color: var(--white);
}

.nav-links a.active { color: var(--gold); }

/* Hamburger (mobile) */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: .4rem;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
  transition: var(--transition);
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  color: var(--white);
  padding: 6rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%236baed6' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 3rem;
}

.hero-logo {
  flex-shrink: 0;
  width: 160px;
  height: 160px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-logo img { width: 100%; height: 100%; object-fit: cover; }

.hero-text h1 { color: var(--white); margin-bottom: .75rem; }

.hero-text .hero-sub {
  font-size: 1.15rem;
  color: var(--blue);
  font-weight: 600;
  margin-bottom: .5rem;
}

.hero-text .hero-sub1 {
  font-size: 1.15rem;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: .5rem;
}

.hero-text p {
  color: rgba(255,255,255,.8);
  font-size: 1rem;
  max-width: 620px;
}

.hero-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .6rem 1.4rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .9rem;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
}
.btn-primary:hover { background: #d4911a; color: var(--navy); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,.45);
}
.btn-outline:hover { border-color: var(--white); color: var(--white); background: rgba(255,255,255,.08); }

/* ---------- Research questions ---------- */
.research-section { background: var(--gray-light); }

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

.question-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--gold);
  transition: transform var(--transition), box-shadow var(--transition);
}

.question-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.question-card p { color: var(--text); font-size: .95rem; margin: 0; }

/* ---------- Methods ---------- */
.methods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.method-item {
  text-align: center;
  padding: 1.75rem 1rem;
  border-radius: var(--radius);
  background: var(--gray-light);
  border-top: 3px solid var(--blue);
}

.method-icon {
  font-size: 2rem;
  margin-bottom: .75rem;
}

.method-item h3 { font-size: 1rem; color: var(--navy); margin-bottom: .4rem; }
.method-item p  { font-size: .85rem; color: var(--gray-text); margin: 0; }

/* ---------- Join CTA ---------- */
.join-section {
  background: var(--navy);
  color: var(--white);
  text-align: center;
  padding: 4rem 0;
}

.join-section h2 { color: var(--white); margin-bottom: .75rem; }
.join-section p  { color: rgba(255,255,255,.75); max-width: 560px; margin: 0 auto 2rem; }

/* ---------- People ---------- */
.pi-card {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--blue-dark);
  margin-bottom: 1.5rem;
}

.pi-photo {
  flex-shrink: 0;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: var(--gray-mid);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--gray-text);
  border: 3px solid var(--blue-dark);
}

.pi-photo img { width: 100%; height: 100%; object-fit: cover; }

.pi-info h2 { font-size: 1.5rem; color: var(--navy); margin-bottom: .2rem; }
.pi-info .pi-pronouns { font-size: .8rem; color: var(--gray-text); margin-bottom: .5rem; }
.pi-info .pi-title  { font-weight: 500; color: var(--blue-dark); font-size: .95rem; margin-bottom: 1rem; }
.pi-info p { font-size: .95rem; color: var(--text); }

.pi-links { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.pi-link {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .3rem .75rem;
  border-radius: 20px;
  font-size: .8rem;
  font-weight: 600;
  background: var(--gray-light);
  color: var(--navy);
  border: 1px solid var(--gray-mid);
  transition: all var(--transition);
}
.pi-link:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }

.staff-card {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--blue-dark);
  margin-bottom: 1.5rem;
}

.staff-photo {
  flex-shrink: 0;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: var(--gray-mid);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--gray-text);
  border: 3px solid var(--blue-dark);
}

.staff-photo img { width: 100%; height: 100%; object-fit: cover; }

.staff-info h2 { font-size: 1.5rem; color: var(--navy); margin-bottom: .2rem; }
.staff-info .staff-pronouns { font-size: .8rem; color: var(--gray-text); margin-bottom: .5rem; }
.staff-info .staff-title  { font-weight: 500; color: var(--blue-dark); font-size: .95rem; margin-bottom: 1rem; }
.staff-info p { font-size: .95rem; color: var(--text); }

.staff-links { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.staff-link {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .3rem .75rem;
  border-radius: 20px;
  font-size: .8rem;
  font-weight: 600;
  background: var(--gray-light);
  color: var(--navy);
  border: 1px solid var(--gray-mid);
  transition: all var(--transition);
}
.staff-link:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }

.people-section-title {
  font-size: 1.5rem;
  color: var(--navy);
  border-bottom: 4px solid var(--gold);
  padding-bottom: .5rem;
  margin: 3rem 0 1.5rem;
}

.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}

.person-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}

.person-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.person-photo {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--gray-light);
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--gray-text);
  overflow: hidden;
  border: 2px solid var(--gray-mid);
}

.person-photo img { width: 100%; height: 100%; object-fit: cover; }

.person-card h3 { font-size: 1rem; color: var(--navy); margin-bottom: .2rem; }
.person-card .role { font-size: .8rem; color: var(--gray-text); font-weight: 600; }
.person-card .program { font-size: .78rem; color: var(--blue-dark); margin-top: .2rem; }

.placeholder-card {
  background: var(--gray-light);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  border: 2px dashed var(--gray-mid);
  color: var(--gray-text);
  font-size: .9rem;
}

/* ---------- Publications ---------- */
.pub-year-group { margin-bottom: 2.5rem; }

.pub-year-label {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  border-left: 4px solid var(--gold);
  padding-left: .75rem;
  margin-bottom: 1.25rem;
}

.pub-list { list-style: none; }

.pub-item {
  padding: 1.1rem 1.25rem;
  background: var(--white);
  border-radius: var(--radius);
  margin-bottom: .75rem;
  box-shadow: var(--shadow);
  border-left: 3px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
  font-size: .92rem;
  line-height: 1.6;
}

.pub-item:hover { border-left-color: var(--blue); box-shadow: var(--shadow-lg); }

.pub-item .pub-authors { color: var(--text); }
.pub-item strong { color: var(--navy); }
.pub-item em { font-style: italic; color: var(--gray-text); }

.pub-links { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .6rem; }

.pub-tag {
  display: inline-block;
  padding: .15rem .6rem;
  border-radius: 4px;
  font-size: .73rem;
  font-weight: 700;
  letter-spacing: .04em;
}

.tag-pdf  { background: #e0f0ff; color: #1d5fa8; }
.tag-preprint { background: #fff4e0; color: #a06010; }
.tag-inprep   { background: #f0f0f0; color: #555; }

.pub-note {
  font-size: .8rem;
  color: var(--gray-text);
  margin-top: .5rem;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.contact-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.contact-card h3 {
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 1.25rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--gold);
}

.contact-row {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  margin-bottom: 1rem;
  font-size: .95rem;
}

.contact-row .icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: .1rem;
}

.contact-row a { color: var(--blue-dark); }
.contact-row a:hover { color: var(--gold); }

.ext-links { display: flex; flex-direction: column; gap: .5rem; margin-top: .5rem; }

.ext-link {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem .9rem;
  border-radius: var(--radius);
  background: var(--gray-light);
  color: var(--navy);
  font-size: .9rem;
  font-weight: 500;
  border: 1px solid var(--gray-mid);
  transition: all var(--transition);
}
.ext-link:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }

.map-embed {
  width: 100%;
  height: 280px;
  border-radius: var(--radius);
  border: none;
  margin-top: 1rem;
}

/* ---------- Footer ---------- */
footer {
  background: var(--navy);
  color: rgba(255,255,255,.6);
  padding: 2.5rem 0;
  text-align: center;
  font-size: .85rem;
}

footer a { color: var(--blue); }
footer a:hover { color: var(--gold); }
footer .footer-logo { display: flex; align-items: center; justify-content: center; gap: .75rem; margin-bottom: 1rem; }
footer .footer-logo img { width: 40px; border-radius: 5px; }
footer .footer-logo span { color: var(--white); font-weight: 700; font-size: 1rem; }
footer p { margin-bottom: .3rem; }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--navy); padding: 1rem; gap: .25rem; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  nav { position: relative; }

  .hero-inner { flex-direction: column; text-align: center; }
  .hero-logo  { width: 120px; height: 120px; margin: 0 auto; }
  .hero-links { justify-content: center; }

  .pi-card { flex-direction: column; align-items: center; text-align: center; }
  .pi-links { justify-content: center; }

  .contact-grid { grid-template-columns: 1fr; }

  section { padding: 3.5rem 0; }
}
