/* ===========================
   CSS VARIABLES & RESET
   =========================== */
:root {
  /* Marquette-inspired palette: navy + gold */
  --navy:       #003366;
  --navy-dark:  #001f3f;
  --navy-deep:  #00152b;
  --gold:       #ffcc00;
  --gold-soft:  #ffe066;
  --gold-dim:   #d4a800;
  --slate:      #4a5568;
  --slate-light:#94a3b8;
  --cream:      #fafaf7;
  --white:      #ffffff;
  --bg-alt:     #f1f3f7;
  --text:       #1a202c;
  --text-light: #64748b;
  --border:     #e2e8f0;

  --ff-display: 'Source Serif 4', Georgia, serif;
  --ff-body:    'DM Sans', system-ui, sans-serif;
  --ff-mono:    'JetBrains Mono', monospace;

  --container:  1120px;
  --section-py: 6rem;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--ff-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
}

a {
  color: var(--navy);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: var(--gold-dim); }

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===========================
   NAVBAR
   =========================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background 0.35s, box-shadow 0.35s, backdrop-filter 0.35s;
}
.navbar.scrolled {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
}

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

.nav-logo {
  font-family: var(--ff-mono);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--white);
  letter-spacing: -0.02em;
  transition: color 0.3s;
}
.navbar.scrolled .nav-logo { color: var(--navy); }
.logo-bracket { opacity: 0.45; }
.logo-accent { color: var(--gold); }

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  transition: color 0.25s;
}
.nav-links a:hover { color: var(--gold); }
.navbar.scrolled .nav-links a { color: var(--slate); }
.navbar.scrolled .nav-links a:hover { color: var(--navy); }

/* Mobile toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s;
}
.navbar.scrolled .nav-toggle span { background: var(--navy); }
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===========================
   HERO
   =========================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 50%, #004080 100%);
  overflow: hidden;
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(255,204,0,0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.04) 0%, transparent 40%);
}
.hero-bg-pattern::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 60px,
      rgba(255,255,255,0.015) 60px,
      rgba(255,255,255,0.015) 61px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 60px,
      rgba(255,255,255,0.015) 60px,
      rgba(255,255,255,0.015) 61px
    );
}

.hero-content {
  position: relative;
  text-align: center;
  padding: 2rem 1.5rem;
  max-width: 820px;
  animation: heroFadeIn 1s var(--ease-out) both;
}

@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-pre {
  font-family: var(--ff-mono);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 1.25rem;
}

.hero-title {
  font-family: var(--ff-display);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 1.5rem;
}
.hero-highlight {
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: 1.15rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.7);
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 6px;
  font-family: var(--ff-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.25s var(--ease-out);
  border: none;
}
.btn-primary {
  background: var(--gold);
  color: var(--navy-dark);
}
.btn-primary:hover {
  background: var(--gold-soft);
  color: var(--navy-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,204,0,0.3);
}
.btn-outline {
  border: 1.5px solid rgba(255,255,255,0.35);
  color: var(--white);
  background: transparent;
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}
.btn-lg { padding: 1rem 2.25rem; font-size: 1rem; }

/* Scroll indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  animation: heroFadeIn 1s 0.5s var(--ease-out) both;
}
.hero-scroll-indicator span {
  font-family: var(--ff-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; }
  50%      { opacity: 1; }
}

/* ===========================
   SECTIONS
   =========================== */
.section {
  padding: var(--section-py) 0;
}
.section-alt {
  background: var(--bg-alt);
}

.section-label {
  font-family: var(--ff-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--ff-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 0.75rem;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 600px;
  margin-bottom: 3rem;
}

/* ===========================
   ABOUT
   =========================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 4rem;
  align-items: start;
}

.about-text h2 {
  font-family: var(--ff-display);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 1.25rem;
  line-height: 1.3;
}

.about-text p {
  color: var(--slate);
  margin-bottom: 1rem;
}
.about-text p:last-child { margin-bottom: 0; }

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
  text-align: center;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
}
.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.stat-number {
  display: block;
  font-family: var(--ff-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
}
.stat-label {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-light);
  margin-top: 0.25rem;
}

/* ===========================
   RESEARCH
   =========================== */
.research-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.research-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
}
.research-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}

.research-icon {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--navy), #004e8c);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.research-icon svg { width: 28px; height: 28px; }

.research-card h3 {
  font-family: var(--ff-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--navy-dark);
  margin-bottom: 0.6rem;
}

.research-card p {
  font-size: 0.92rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* ===========================
   TEAM
   =========================== */
.team-director {
  display: flex;
  gap: 2.5rem;
  align-items: center;
  margin-bottom: 3rem;
  padding: 2.5rem;
  background: var(--bg-alt);
  border-radius: 14px;
}

.director-photo, .photo-placeholder {
  width: 140px;
  height: 140px;
  border-radius: 14px;
  flex-shrink: 0;
  overflow: hidden;
}

.photo-placeholder {
  background: linear-gradient(135deg, var(--navy), #004e8c);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-mono);
  font-size: 1.6rem;
  font-weight: 700;
}

.director-info h3 {
  font-family: var(--ff-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy-dark);
}

.director-role {
  font-size: 0.92rem;
  color: var(--gold-dim);
  font-weight: 500;
  margin: 0.2rem 0 0.75rem;
}

.director-info p {
  color: var(--slate);
  font-size: 0.95rem;
}

.director-links {
  display: flex;
  gap: 1.25rem;
  margin-top: 0.75rem;
}
.director-links a {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--navy);
  border-bottom: 1.5px solid var(--gold);
  padding-bottom: 1px;
}
.director-links a:hover { color: var(--gold-dim); }

.team-subsection {
  font-family: var(--ff-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--navy-dark);
  margin-bottom: 1.25rem;
  margin-top: 1rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.team-card {
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--bg-alt);
  border-radius: 12px;
  transition: transform 0.3s var(--ease-out);
}
.team-card:hover { transform: translateY(-3px); }

.team-card .photo-placeholder {
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  font-size: 1.2rem;
}

.team-card h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy-dark);
}
.team-card p {
  font-size: 0.82rem;
  color: var(--text-light);
}

/* ===========================
   PUBLICATIONS
   =========================== */
.pub-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.pub-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}
.pub-item:first-child { border-top: 1px solid var(--border); }

.pub-venue {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 100px;
  padding: 0.35rem 0.75rem;
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--navy);
  background: rgba(0,51,102,0.06);
  border-radius: 6px;
  margin-top: 0.2rem;
}

.pub-details h4 {
  font-family: var(--ff-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy-dark);
  line-height: 1.4;
  margin-bottom: 0.25rem;
}

.pub-authors {
  font-size: 0.88rem;
  color: var(--text-light);
}

.pub-info {
  font-size: 0.85rem;
  color: var(--slate-light);
  font-style: italic;
}

.pub-links {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}
.pub-links a {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--navy);
  border-bottom: 1.5px solid var(--gold);
  padding-bottom: 1px;
}

/* ===========================
   NEWS
   =========================== */
.news-list {
  max-width: 720px;
}

.news-item {
  display: flex;
  gap: 1.5rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--border);
  align-items: baseline;
}
.news-item:first-child { border-top: 1px solid var(--border); }

.news-item time {
  flex-shrink: 0;
  min-width: 90px;
  font-family: var(--ff-mono);
  font-size: 0.8rem;
  color: var(--gold-dim);
  font-weight: 500;
}

.news-item p {
  font-size: 0.95rem;
  color: var(--slate);
}

/* ===========================
   OPENINGS
   =========================== */
.openings-content {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: start;
}

.openings-text p {
  color: var(--slate);
  margin-bottom: 1rem;
}

.openings-list {
  list-style: none;
  margin: 1rem 0;
  padding: 0;
}
.openings-list li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
  color: var(--slate);
}
.openings-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.openings-cta {
  padding-top: 0.5rem;
}

/* ===========================
   CONTACT
   =========================== */
.contact-grid {
  max-width: 600px;
}

.contact-item {
  margin-bottom: 1.75rem;
}
.contact-item h4 {
  font-family: var(--ff-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold-dim);
  margin-bottom: 0.4rem;
}
.contact-item p {
  color: var(--slate);
  font-size: 0.95rem;
}
.contact-item a {
  color: var(--navy);
  border-bottom: 1px solid var(--border);
  padding-bottom: 1px;
}
.contact-item a:hover {
  border-color: var(--gold);
  color: var(--gold-dim);
}

/* ===========================
   FOOTER
   =========================== */
.footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.5);
  padding: 2.5rem 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-logo {
  font-family: var(--ff-mono);
  font-size: 0.95rem;
  color: rgba(255,255,255,0.7);
}
.footer-logo .logo-accent { color: var(--gold); }
.footer-logo .logo-bracket { opacity: 0.35; }
.footer-divider { margin: 0 0.5rem; opacity: 0.4; }
.footer-copy {
  font-size: 0.8rem;
}

/* ===========================
   SCROLL ANIMATIONS
   =========================== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.research-grid .fade-in:nth-child(2) { transition-delay: 0.1s; }
.research-grid .fade-in:nth-child(3) { transition-delay: 0.2s; }
.research-grid .fade-in:nth-child(4) { transition-delay: 0.3s; }

.about-stats .fade-in:nth-child(2) { transition-delay: 0.08s; }
.about-stats .fade-in:nth-child(3) { transition-delay: 0.16s; }
.about-stats .fade-in:nth-child(4) { transition-delay: 0.24s; }

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .about-stats {
    grid-template-columns: repeat(4, 1fr);
  }
  .research-grid {
    grid-template-columns: 1fr;
  }
  .openings-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  :root { --section-py: 4rem; }

  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1.5rem 2rem 2rem;
    gap: 0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    transform: translateY(-110%);
    transition: transform 0.35s var(--ease-out);
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a {
    display: block;
    padding: 0.75rem 0;
    color: var(--text) !important;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
  }
  .nav-links li:last-child a { border-bottom: none; }

  .about-stats { grid-template-columns: 1fr 1fr; }

  .team-director {
    flex-direction: column;
    text-align: center;
    padding: 2rem 1.5rem;
  }
  .director-links { justify-content: center; }

  .pub-item {
    flex-direction: column;
    gap: 0.5rem;
  }

  .news-item {
    flex-direction: column;
    gap: 0.25rem;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .hero-scroll-indicator { display: none; }
}

@media (max-width: 480px) {
  .about-stats { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
}
