/* ===================================================
   Fortier Laboratory Website
   UTEP Brand Colors:
     Navy:   #041E42
     Orange: #FF8200
     Silver: #B1B3B3
=================================================== */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800&family=Open+Sans:ital,wght@0,400;0,600;1,400&display=swap');

/* --- CSS Variables --- */
:root {
  --navy:    #041E42;
  --orange:  #FF8200;
  --silver:  #B1B3B3;
  --white:   #ffffff;
  --offwhite:#f5f6f8;
  --text:    #1a1a2e;
  --text-light: #555568;
  --border:  #e0e3ea;
  --shadow:  0 4px 20px rgba(4, 30, 66, 0.10);
  --radius:  8px;
  --transition: 0.25s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
}

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

a { color: var(--orange); text-decoration: none; transition: color var(--transition); }
a:hover { color: #cc6800; }

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
}

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

.section { padding: 80px 0; }
.section-alt { background: var(--offwhite); }

.section-label {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
}

.section-title {
  font-size: 2rem;
  color: var(--navy);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 640px;
  margin-bottom: 48px;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition);
  letter-spacing: 0.03em;
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
  border: 2px solid var(--orange);
}
.btn-primary:hover {
  background: #cc6800;
  border-color: #cc6800;
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,130,0,0.30);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--navy);
  transform: translateY(-2px);
}

.divider {
  width: 56px;
  height: 4px;
  background: var(--orange);
  border-radius: 2px;
  margin: 16px 0 32px;
}

/* ===================================================
   NAVIGATION
=================================================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--silver);
  box-shadow: 0 2px 16px rgba(0,0,0,0.18);
  height: 68px;
  display: flex;
  align-items: center;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.nav-brand img {
  height: 42px;
  width: auto;
}

.nav-brand-text {
  display: flex;
  flex-direction: column;
}

.nav-brand-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--navy);
  line-height: 1.1;
  letter-spacing: 0.02em;
}

.nav-brand-sub {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.7rem;
  color: var(--navy);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  color: var(--navy);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 8px 12px;
  border-radius: 4px;
  transition: all var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--navy);
  background: rgba(4,30,66,0.12);
}

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

/* Hamburger (mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ===================================================
   PAGE HERO (inner pages)
=================================================== */
.page-hero {
  background: var(--navy);
  padding: 130px 0 64px;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: var(--orange);
}

.page-hero-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 10px;
}

.page-hero h1 {
  font-size: 2.6rem;
  color: var(--white);
  margin-bottom: 16px;
}

.page-hero p {
  color: rgba(255,255,255,0.72);
  font-size: 1.05rem;
  max-width: 580px;
}

/* ===================================================
   HOME HERO
=================================================== */
/* Fade-zoom background slideshow */
@keyframes fade-zoom {
  0%   { opacity: 0; transform: scale(1); }
  8%   { opacity: 1; }
  33%  { opacity: 1; }
  41%  { opacity: 0; transform: scale(1.15); }
  100% { opacity: 0; transform: scale(1.15); }
}

.bg-fade-wrapper {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.bg-fade-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: fade-zoom 36s infinite;
}

.bg-fade-slide:nth-child(1) { animation-delay: 0s; }
.bg-fade-slide:nth-child(2) { animation-delay: 6s; }
.bg-fade-slide:nth-child(3) { animation-delay: 12s; }
.bg-fade-slide:nth-child(4) { animation-delay: 18s; }
.bg-fade-slide:nth-child(5) { animation-delay: 24s; }
.bg-fade-slide:nth-child(6) { animation-delay: 30s; }

/* Dark overlay for text legibility */
.bg-fade-overlay {
  position: absolute;
  inset: 0;
  background: rgba(4, 30, 66, 0.62);
  z-index: 1;
}

.hero {
  min-height: 100vh;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 68px 24px 80px;
}

/* Ensure hero content sits above slideshow */
.hero > div:not(.bg-fade-wrapper):not(.hero-scroll) {
  position: relative;
  z-index: 2;
}

/* Subtle background glow */
.hero::before {
  content: '';
  position: absolute;
  top: -10%; left: -10%;
  width: 120%; height: 120%;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(255,130,0,0.07) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(255,255,255,0.04) 0%, transparent 50%);
  pointer-events: none;
}

/* Circular molecule container */
.hero-molecule-circle {
  width: min(565px, 92vw);
  height: min(565px, 92vw);
  border-radius: 50%;
  background: var(--white);
  overflow: hidden;
  margin: 48px auto 36px;
  box-shadow: 0 0 0 6px #FF8200, 0 16px 56px rgba(0,0,0,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-molecule-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(0.85);
}

.hero-eyebrow {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 16px;
  text-shadow:
    -1px -1px 0 #041E42, 0 -1px 0 #041E42, 1px -1px 0 #041E42,
    -1px  0   0 #041E42,                    1px  0   0 #041E42,
    -1px  1px 0 #041E42, 0  1px 0 #041E42, 1px  1px 0 #041E42;
}

.hero h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  color: var(--white);
  margin: 36px auto 36px;
  max-width: 1000px;
  text-align: center;
  text-shadow:
    -1px -1px 0 #041E42, 0 -1px 0 #041E42, 1px -1px 0 #041E42,
    -1px  0   0 #041E42,                    1px  0   0 #041E42,
    -1px  1px 0 #041E42, 0  1px 0 #041E42, 1px  1px 0 #041E42;
}

.hero-tagline {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.68);
  max-width: 560px;
  margin: 0 auto 40px;
  font-style: italic;
}

.hero-buttons {
  display: flex;
  gap: 28px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-buttons .btn {
  font-size: 1.08rem;
  padding: 14px 34px;
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.45);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  z-index: 2;
}

.hero-scroll::after {
  content: '';
  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; transform: scaleY(1); }
  50% { opacity: 0.9; transform: scaleY(1.1); }
}

/* ===================================================
   ABOUT SNIPPET (home)
=================================================== */
.about-snippet {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-snippet-text .section-subtitle { margin-bottom: 24px; }

.about-snippet-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 32px;
}

.stat-card {
  background: var(--offwhite);
  border-radius: var(--radius);
  padding: 20px;
  border-left: 4px solid var(--orange);
}

.stat-number {
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 4px;
}

.about-snippet-image {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
}

.about-snippet-image img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: top center;
}

/* ===================================================
   RESEARCH CARDS (home & research page)
=================================================== */
.research-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.research-card {
  background: var(--white);
  border-radius: 12px;
  padding: 36px 28px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.research-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--orange);
  transform: scaleX(0);
  transition: transform var(--transition);
}

.research-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(4,30,66,0.14);
}

.research-card:hover::before { transform: scaleX(1); }

.research-icon {
  font-size: 2.2rem;
  margin-bottom: 20px;
}

.research-card h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
  color: var(--navy);
}

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

/* ===================================================
   RECENT PUBLICATIONS (home)
=================================================== */
.pub-list-home {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pub-list-home li {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px 28px;
  border: 1px solid var(--border);
  border-left: 4px solid var(--orange);
  font-size: 0.92rem;
  color: var(--text-light);
  line-height: 1.65;
  transition: box-shadow var(--transition);
}

.pub-list-home li:hover {
  box-shadow: var(--shadow);
}

.pub-list-home .pub-journal {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.pub-year-badge {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 3px;
  margin-left: 8px;
  vertical-align: middle;
}

/* ===================================================
   PUBLICATIONS PAGE
=================================================== */
.pub-section { margin-bottom: 56px; }

.pub-section-title {
  font-size: 1.3rem;
  color: var(--navy);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--orange);
  margin-bottom: 24px;
}

.pub-entry {
  padding: 20px 0 20px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 1.1rem;
  color: var(--text);
  line-height: 1.7;
  position: relative;
}

.pub-entry::before {
  content: '';
  position: absolute;
  left: 0;
  top: 26px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
}

.pub-entry:last-child { border-bottom: none; }

/* ---- Book Chapter Cards ---- */
.book-chapter-card {
  display: flex;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 20px;
  transition: box-shadow var(--transition), transform var(--transition);
}

.book-chapter-card:hover {
  box-shadow: 0 8px 32px rgba(4,30,66,0.14);
  transform: translateY(-2px);
}

.book-chapter-spine {
  width: 10px;
  background: linear-gradient(180deg, var(--navy) 0%, #1a3a6e 100%);
  flex-shrink: 0;
}

.book-chapter-body {
  padding: 22px 28px;
  flex: 1;
  max-width: 58%;
}

.book-chapter-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  font-family: 'Montserrat', sans-serif;
  margin-bottom: 5px;
}

.book-chapter-volume {
  font-size: 0.95rem;
  color: var(--orange);
  font-weight: 600;
  margin-bottom: 12px;
}

.book-chapter-meta {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.65;
  margin-bottom: 16px;
}

.book-chapter-footer {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.book-chapter-doi {
  font-size: 0.78rem;
  color: var(--silver);
  font-family: monospace;
}

.btn-sm {
  font-size: 0.82rem;
  padding: 7px 16px;
}

.book-chapter-figure {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 28px;
}

.book-chapter-figure img {
  height: 336px;
  width: auto;
  max-width: 336px;
  object-fit: contain;
  border-radius: 6px;
}

@media (max-width: 640px) {
  .book-chapter-figure { display: none; }
}

.pub-toc-img {
  display: block;
  height: 210px;
  width: auto;
  border-radius: 4px;
  margin: 12px auto 1.5em auto;
}

.pub-entry a {
  color: var(--orange);
  font-weight: 600;
}

.pub-note {
  display: block;
  font-size: 0.82rem;
  font-style: italic;
  color: var(--silver);
  margin-top: 4px;
}

.pub-callout {
  display: block;
  margin-top: 10px;
  padding: 10px 16px;
  background: #fff8ec;
  border-left: 4px solid #f5a623;
  border-radius: 0 6px 6px 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: #b8720a;
  letter-spacing: 0.01em;
}

.pub-callout-blue {
  display: block;
  margin-top: 10px;
  padding: 10px 16px;
  background: #eaf2fb;
  border-left: 4px solid #1a6baa;
  border-radius: 0 6px 6px 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: #144f80;
  letter-spacing: 0.01em;
}

.pub-callout-grey {
  display: block;
  margin-top: 10px;
  padding: 10px 16px;
  background: #f2f3f4;
  border-left: 4px solid #7a8490;
  border-radius: 0 6px 6px 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: #445060;
  letter-spacing: 0.01em;
}

/* =====================================================
   Tips, Tricks, and Thoughts — carousel
===================================================== */
.ttt-carousel {
  position: relative;
  max-width: 900px;
  margin: 36px auto 0;
}

.ttt-track {
  overflow: hidden;
  border-radius: var(--radius);
}

.ttt-track-inner {
  display: flex;
  transition: transform 0.8s ease-in-out;
}

.ttt-slide {
  min-width: 100%;
  box-sizing: border-box;
}

.ttt-layout {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: stretch;
}

.ttt-left {
  display: flex;
  align-items: stretch;
}

.ttt-left img {
  height: 520px;
  width: auto;
  max-width: 360px;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.ttt-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ttt-right img {
  width: 100%;
  height: 240px;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.ttt-body {
  background: #fff;
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: var(--shadow);
  flex: 1;
}

.ttt-desc {
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text);
  margin-bottom: 10px;
}

.ttt-citation {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 18px;
  line-height: 1.55;
}

.ttt-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  z-index: 2;
}

.ttt-btn:hover { background: var(--orange); }
.ttt-prev { left: -54px; }
.ttt-next { right: -54px; }

.ttt-dots {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 18px;
}

.ttt-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(4,30,66,0.22);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.ttt-dot.active {
  background: var(--navy);
  transform: scale(1.35);
}

@media (max-width: 720px) {
  .ttt-btn { display: none; }
  .ttt-layout { grid-template-columns: 1fr; }
  .ttt-left img { height: 320px; width: 100%; max-width: 100%; }
  .ttt-right img { height: 200px; }
}

.pub-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  margin-top: 8px;
  margin-right: 6px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.pub-badge-editors-choice {
  background: #f5a623;
  color: #fff;
}
.pub-badge-cover {
  background: var(--navy);
  color: #fff;
}

/* ===================================================
   GROUP PAGE
=================================================== */
.pi-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: start;
  background: var(--white);
  border-radius: 12px;
  padding: 40px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  margin-bottom: 64px;
}

.pi-photo {
  border-radius: 10px;
  overflow: hidden;
}

.pi-photo img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  object-position: top center;
}

.pi-info h2 {
  font-size: 1.7rem;
  margin-bottom: 4px;
}

.pi-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--orange);
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.pi-info p {
  font-size: 0.93rem;
  color: var(--text-light);
  margin-bottom: 12px;
}

.pi-contact {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pi-contact a {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.83rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.group-section-title {
  font-size: 1.3rem;
  color: var(--navy);
  border-bottom: 2px solid var(--orange);
  padding-bottom: 12px;
  margin-bottom: 28px;
}

/* ===================================================
   GROUP PHOTO CAROUSEL
=================================================== */
.carousel {
  position: relative;
  width: 100%;
  height: 500px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--navy);
  margin-top: 8px;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.7s ease;
}

.carousel-slide.active { opacity: 1; }

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  font-size: 2.4rem;
  padding: 10px 18px;
  border-radius: var(--radius);
  cursor: pointer;
  z-index: 2;
  transition: background 0.2s;
  line-height: 1;
}

.carousel-btn:hover { background: rgba(255,255,255,0.32); }
.carousel-prev { left: 16px; }
.carousel-next { right: 16px; }

.carousel-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.carousel-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  padding: 0;
}

.carousel-dot.active { background: #FF8200; }

@media (max-width: 768px) {
  .carousel { height: 280px; }
}

.member-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 28px;
  margin-bottom: 48px;
}

.member-card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(4,30,66,0.07);
  transition: transform var(--transition);
  text-align: center;
}

.member-card:hover { transform: translateY(-4px); }

.member-photo {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: var(--offwhite);
}

.member-photo-placeholder {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, var(--navy), #0a3070);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.3);
  font-size: 3rem;
}

.member-info { padding: 16px; }

.member-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}

.member-role {
  font-size: 0.78rem;
  color: var(--orange);
  font-weight: 600;
}

.member-detail {
  font-size: 0.78rem;
  color: var(--text-light);
  margin-top: 4px;
}

/* ===================================================
   ABOUT PAGE
=================================================== */
.about-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 64px;
  align-items: start;
}

.about-photo-card {
  position: sticky;
  top: 88px;
}

.about-photo-card img {
  width: 100%;
  border-radius: 12px;
  box-shadow: var(--shadow);
  object-fit: cover;
  object-position: top center;
  max-height: 420px;
}

.about-meta {
  background: var(--offwhite);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 20px;
}

.about-meta-item {
  display: flex;
  flex-direction: column;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}

.about-meta-item:last-child { border-bottom: none; }

.about-meta-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 2px;
}

.about-content h2 {
  font-size: 1.5rem;
  color: var(--navy);
  margin: 32px 0 16px;
}

.about-content h2:first-child { margin-top: 0; }

.about-content p {
  color: var(--text-light);
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.about-content ul {
  padding-left: 20px;
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.about-content li { margin-bottom: 6px; }

/* ===================================================
   CONTACT PAGE
=================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-card {
  background: var(--white);
  border-radius: 12px;
  padding: 40px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.contact-card h2 {
  font-size: 1.4rem;
  margin-bottom: 24px;
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.contact-icon {
  width: 44px;
  height: 44px;
  background: var(--offwhite);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  border: 1px solid var(--border);
}

.contact-item-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 2px;
}

.contact-item-value {
  font-size: 0.92rem;
  color: var(--text-light);
  line-height: 1.5;
}

.contact-item-value a { color: var(--orange); font-weight: 600; }

/* ===================================================
   FOOTER
=================================================== */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.65);
  padding: 48px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand img { height: 96px; margin-bottom: 16px; }

.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.7;
  max-width: 300px;
}

.footer-heading {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
}

.footer-links { list-style: none; }

.footer-links li { margin-bottom: 8px; }

.footer-links a {
  color: rgba(255,255,255,0.65);
  font-size: 0.88rem;
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 0.78rem;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-utep {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

/* ===================================================
   RESPONSIVE
=================================================== */
@media (max-width: 991px) {
  .about-snippet { grid-template-columns: 1fr; gap: 40px; }
  .about-snippet-image { order: -1; }
  .about-snippet-image img { height: 300px; }
  .research-grid { grid-template-columns: 1fr 1fr; }
  .about-layout { grid-template-columns: 1fr; }
  .about-photo-card { position: static; }
  .about-photo-card img { max-height: 320px; }
  .pi-card { grid-template-columns: 1fr; }
  .pi-photo img { height: 260px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 60px 0; }
  .section-title { font-size: 1.6rem; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: var(--navy); padding: 16px; gap: 4px; box-shadow: 0 8px 24px rgba(0,0,0,0.2); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .research-grid { grid-template-columns: 1fr; }
  .page-hero h1 { font-size: 2rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .about-snippet-stats { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.8rem; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .member-grid { grid-template-columns: 1fr 1fr; }
}

/* ===================================================
   SCROLL ANIMATIONS
=================================================== */

/* Base hidden state */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal-left {
  opacity: 0;
  transform: translateX(-48px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal-right {
  opacity: 0;
  transform: translateX(48px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Visible state — added by JS */
.reveal.visible,
.reveal-left.visible,
.reveal-right.visible,
.reveal-scale.visible {
  opacity: 1;
  transform: none;
}

/* Stagger delays for grids */
.stagger-1 { transition-delay: 0.10s; }
.stagger-2 { transition-delay: 0.20s; }
.stagger-3 { transition-delay: 0.30s; }
.stagger-4 { transition-delay: 0.40s; }
.stagger-5 { transition-delay: 0.50s; }
.stagger-6 { transition-delay: 0.60s; }

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-left, .reveal-right, .reveal-scale {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
