/* OOMG — Ocean Observing and Modeling Group
   Design language: SVL-inspired minimal academic
   Font: IBM Plex Sans (clean, neutral, professional) + IBM Plex Serif (body text)
*/
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@300;400;500;600&family=IBM+Plex+Serif:ital,wght@0,300;0,400;1,300;1,400&display=swap');

:root {
  --navy:   #1a2e44;
  --blue:   #2563a8;
  --link:   #1d5fa5;
  --ocean:  #3b82c4;
  --teal:   #0e7490;
  --bg:     #ffffff;
  --bg2:    #f7f8fa;
  --bg3:    #eef1f5;
  --text:   #1a2233;
  --mid:    #4a5568;
  --muted:  #718096;
  --light:  #a0aec0;
  --border: #e2e8f0;
  --border2:#cbd5e0;
  --nav-h:  56px;
  --sans:   'IBM Plex Sans', system-ui, sans-serif;
  --serif:  'IBM Plex Serif', Georgia, serif;
  --max:    1160px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--sans); color: var(--text); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── NAV ── */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: var(--nav-h);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
}
.nav-inner {
  max-width: var(--max); width: 100%; margin: 0 auto;
  padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-size: 15px; font-weight: 600; color: var(--navy);
  letter-spacing: 0.01em; white-space: nowrap;
  display: flex; align-items: center; gap: 10px;
}
.nav-logo:hover { text-decoration: none; }
.nav-wordmark { font-weight: 600; }
.nav-links { display: flex; align-items: center; gap: 0; list-style: none; }
.nav-links a {
  display: block; padding: 0 14px; height: var(--nav-h); line-height: var(--nav-h);
  font-size: 14px; font-weight: 400; color: var(--mid);
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.nav-links a:hover, .nav-links a.active { color: var(--navy); border-bottom-color: var(--blue); text-decoration: none; }

/* ── PAGE WRAPPER ── */
.page { padding-top: var(--nav-h); }
.container { max-width: var(--max); margin: 0 auto; padding: 0 2rem; }

/* ── HERO ── */
.hero {
  position: relative; overflow: hidden;
  background: var(--navy);
}
.hero-img {
  width: 100%; height: 420px; object-fit: cover;
  display: block; opacity: 0.65;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(15,25,40,0.72) 0%, rgba(15,25,40,0.3) 60%, transparent 100%);
  display: flex; align-items: center;
}
.hero-text { padding: 0 2rem; max-width: 640px; margin: 0 auto 0 calc(50% - 580px); }
.hero-text h1 {
  font-size: clamp(22px, 3vw, 34px); font-weight: 300; color: white;
  line-height: 1.3; margin-bottom: 12px; letter-spacing: -0.01em;
}
.hero-text h1 strong { font-weight: 600; display: block; }
.hero-text p { font-size: 15px; color: rgba(255,255,255,0.75); font-weight: 300; line-height: 1.65; max-width: 480px; }

/* ── SECTION COMMON ── */
.section { padding: 72px 0; }
.section + .section { border-top: 1px solid var(--border); }
.section-alt { background: var(--bg2); }

.section-label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 8px; display: block;
}
.section-title {
  font-size: clamp(20px, 2.5vw, 28px); font-weight: 600; color: var(--navy);
  margin-bottom: 10px; letter-spacing: -0.015em; line-height: 1.2;
}
.section-body {
  font-size: 15px; font-weight: 300; color: var(--mid); line-height: 1.75;
  max-width: 660px;
}
.section-body p { margin-bottom: 12px; }
.section-body p:last-child { margin-bottom: 0; }

/* ── TWO-COL INTRO ── */
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.intro-photo { border-radius: 4px; overflow: hidden; }
.intro-photo img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }

/* ── RESEARCH AREAS ── */
.research-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-top: 40px; }
.research-item { padding: 24px; background: var(--bg); border: 1px solid var(--border); border-top: 3px solid var(--blue); }
.research-item h3 { font-size: 14px; font-weight: 600; color: var(--navy); margin-bottom: 8px; }
.research-item p { font-size: 13px; color: var(--mid); line-height: 1.65; font-weight: 300; }

/* ── NEWS STRIP ── */
.news-list { list-style: none; }
.news-item { display: flex; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.news-item:first-child { border-top: 1px solid var(--border); }
.news-date { font-size: 12px; color: var(--muted); white-space: nowrap; padding-top: 2px; min-width: 80px; font-variant-numeric: tabular-nums; }
.news-text { font-size: 14px; color: var(--text); line-height: 1.55; }
.news-text a { color: var(--link); }

/* ── TEAM PAGE ── */
.team-section { margin-bottom: 56px; }
.team-section-title {
  font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); padding-bottom: 10px; border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}

/* PI card — large, horizontal */
.pi-card {
  display: flex; gap: 32px; align-items: flex-start;
  padding: 32px; background: var(--bg2); border: 1px solid var(--border);
  border-left: 4px solid var(--blue); margin-bottom: 4px;
}
.pi-photo { width: 140px; height: 140px; flex-shrink: 0; border-radius: 3px; overflow: hidden; background: var(--bg3); }
.pi-photo img { width: 100%; height: 100%; object-fit: cover; }
.pi-name { font-size: 20px; font-weight: 600; color: var(--navy); margin-bottom: 3px; }
.pi-title { font-size: 14px; color: var(--blue); font-weight: 400; margin-bottom: 12px; }
.pi-bio { font-size: 14px; color: var(--mid); line-height: 1.7; font-weight: 300; margin-bottom: 12px; }
.pi-contact { font-size: 13px; color: var(--mid); line-height: 1.8; }
.pi-contact a { color: var(--link); }

/* Member grid — SVL photo + name style */
.member-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 28px 24px; }
.member-card { }
.member-photo {
  width: 100%; max-width: 120px; aspect-ratio: 1; overflow: hidden;
  background: var(--bg3); border-radius: 3px; margin-bottom: 12px;
}
.member-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.member-photo-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  background: var(--bg3); color: var(--light); font-size: 32px; font-weight: 300;
  font-family: var(--serif);
}
.member-name { font-size: 14px; font-weight: 600; color: var(--navy); margin-bottom: 2px; line-height: 1.3; }
.member-name a { color: inherit; }
.member-name a:hover { color: var(--link); text-decoration: none; }
.member-role { font-size: 12px; color: var(--muted); margin-bottom: 3px; }
.member-dept { font-size: 12px; color: var(--light); font-style: italic; }
.member-email { font-size: 12px; color: var(--link); margin-top: 4px; }

/* Staff row */
.staff-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }

/* ── ALUMNI ── */
.alumni-section { margin-bottom: 48px; }
.alumni-group-title { font-size: 15px; font-weight: 600; color: var(--navy); margin: 28px 0 12px; }
.alumni-grid-photos { display: grid; grid-template-columns: repeat(5,1fr); gap: 20px 16px; }
.alum-card { text-align: center; }
.alum-photo { width: 80px; height: 80px; border-radius: 50%; overflow: hidden; margin: 0 auto 8px; background: var(--bg3); }
.alum-photo img { width: 100%; height: 100%; object-fit: cover; }
.alum-name { font-size: 12px; font-weight: 600; color: var(--navy); margin-bottom: 1px; }
.alum-years { font-size: 11px; color: var(--muted); }

/* PhD / MS list style */
.alumni-list { padding-left: 0; list-style: none; columns: 2; column-gap: 40px; }
.alumni-list li {
  font-size: 13px; color: var(--mid); padding: 5px 0;
  border-bottom: 1px solid var(--border); break-inside: avoid;
}
.alumni-list li strong { color: var(--navy); font-weight: 500; }

/* ── PUBLICATIONS ── */
.pub-filters {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px;
}
.pub-filter {
  padding: 5px 14px; font-size: 12px; font-weight: 500;
  border: 1px solid var(--border2); border-radius: 2px; background: white;
  color: var(--mid); cursor: pointer; font-family: var(--sans);
  transition: all 0.15s;
}
.pub-filter:hover { border-color: var(--blue); color: var(--blue); }
.pub-filter.active { background: var(--navy); color: white; border-color: var(--navy); }

.pub-list { list-style: none; }
.pub-entry {
  display: grid; grid-template-columns: 36px 1fr;
  gap: 0 16px; padding: 14px 0; border-bottom: 1px solid var(--border);
  align-items: start;
}
.pub-entry:first-child { border-top: 1px solid var(--border); }
.pub-num { font-size: 12px; color: var(--light); padding-top: 2px; text-align: right; font-variant-numeric: tabular-nums; }
.pub-content {}
.pub-title { font-size: 14px; color: var(--text); line-height: 1.5; margin-bottom: 3px; font-weight: 400; }
.pub-title a { color: var(--link); }
.pub-title a:hover { text-decoration: underline; }
.pub-meta { font-size: 12px; color: var(--muted); line-height: 1.5; font-style: italic; }
.pub-authors { font-size: 12px; color: var(--mid); margin-bottom: 2px; }
.oomg-author { font-weight: 600; text-decoration: underline; text-decoration-color: rgba(37,99,168,0.4); }
.pub-links { display: flex; gap: 10px; margin-top: 5px; }
.pub-link { font-size: 11px; color: var(--link); padding: 2px 8px; border: 1px solid rgba(37,99,168,0.25); border-radius: 2px; }
.pub-link:hover { background: rgba(37,99,168,0.06); text-decoration: none; }

/* ── PROJECTS ── */
.project-list { list-style: none; }
.project-entry {
  padding: 18px 0; border-bottom: 1px solid var(--border);
  display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: start;
}
.project-entry:first-child { border-top: 1px solid var(--border); }
.project-title { font-size: 14px; font-weight: 500; color: var(--navy); margin-bottom: 4px; line-height: 1.4; }
.project-sponsor { font-size: 12px; color: var(--muted); margin-bottom: 2px; }
.project-years { font-size: 12px; color: var(--blue); font-weight: 500; white-space: nowrap; }

/* ── FOOTER ── */
#footer {
  background: var(--navy); color: rgba(255,255,255,0.7);
  padding: 48px 0 32px;
  margin-top: 0;
}
.footer-grid {
  display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 48px;
  margin-bottom: 40px;
}
.footer-brand .footer-name { font-size: 15px; font-weight: 600; color: white; margin-bottom: 8px; }
.footer-brand p { font-size: 13px; line-height: 1.7; }
.footer-brand a { color: rgba(255,255,255,0.6); }
.footer-col h5 { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.45); margin-bottom: 14px; }
.footer-col a { display: block; font-size: 13px; color: rgba(255,255,255,0.6); margin-bottom: 8px; }
.footer-col a:hover { color: white; text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; font-size: 12px; display: flex; justify-content: space-between; }
.footer-bottom a { color: rgba(255,255,255,0.45); }

/* ── BREADCRUMB ── */
.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 32px; }
.breadcrumb a { color: var(--link); }
.breadcrumb span { margin: 0 6px; color: var(--light); }

/* ── PAGE HEADER ── */
.page-header { padding: calc(var(--nav-h) + 48px) 0 40px; border-bottom: 1px solid var(--border); margin-bottom: 0; }
.page-header h1 { font-size: clamp(24px, 3vw, 36px); font-weight: 600; color: var(--navy); margin-bottom: 8px; letter-spacing: -0.015em; }
.page-header p { font-size: 15px; color: var(--mid); font-weight: 300; max-width: 560px; line-height: 1.7; }

/* ── FADE ANIMATION ── */
.fade { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.fade.in { opacity: 1; transform: none; }
.fade.d1 { transition-delay: 0.06s; } .fade.d2 { transition-delay: 0.12s; } .fade.d3 { transition-delay: 0.18s; }

/* ── UTILITIES ── */
.mt-sm { margin-top: 16px; }
.mt-md { margin-top: 28px; }
.mt-lg { margin-top: 48px; }
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 20px; font-size: 13px; font-weight: 500; font-family: var(--sans);
  border: 1px solid var(--border2); color: var(--mid); background: white;
  cursor: pointer; border-radius: 2px; transition: all 0.15s; text-decoration: none;
}
.btn:hover { border-color: var(--blue); color: var(--blue); text-decoration: none; }
.btn-primary { background: var(--navy); color: white; border-color: var(--navy); }
.btn-primary:hover { background: var(--blue); border-color: var(--blue); color: white; }

@media (max-width: 900px) {
  .intro-grid { grid-template-columns: 1fr; }
  .member-grid { grid-template-columns: repeat(3,1fr); }
  .research-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .alumni-grid-photos { grid-template-columns: repeat(4,1fr); }
  .alumni-list { columns: 1; }
  .staff-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .member-grid { grid-template-columns: repeat(2,1fr); }
  .research-grid { grid-template-columns: 1fr; }
  .pi-card { flex-direction: column; }
  .nav-links { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .alumni-grid-photos { grid-template-columns: repeat(3,1fr); }
  .project-entry { grid-template-columns: 1fr; }
  .pub-entry { grid-template-columns: 1fr; }
  .pub-num { display: none; }
}
