/* ============================================
   Shared custom styles — used alongside Tailwind CDN
   on every page. Edit colors/fonts here to re-theme.
   ============================================ */

.glass-card {
  background: rgba(13, 27, 30, 0.6);
  backdrop-filter: blur(30px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  border-left: 1px solid rgba(255, 255, 255, 0.15);
}

.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.02;
  background-image: url("https://www.transparenttextures.com/patterns/p6.png");
}

.glow-background {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: -1;
  overflow: hidden;
}

.glow-spot {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 219, 231, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(60px);
}

/* ===== Reaction-pathway timeline (Work History / Education) ===== */
.rxn-timeline {
  position: relative;
  padding-left: 6px;
}

.rxn-timeline::before {
  content: "";
  position: absolute;
  left: 27px;
  top: 27px;
  bottom: 27px;
  width: 1px;
  background: linear-gradient(#00dbe7, rgba(132, 148, 149, 0.2) 90%);
  opacity: 0.5;
}

.rxn-item {
  display: grid;
  grid-template-columns: 52px 128px 1fr;
  gap: 1.35rem;
  align-items: center;
  padding: 0.85rem 0;
}

.rxn-node {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #101415;
  border: 1.5px solid #00dbe7;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  box-shadow: 0 0 16px rgba(0, 219, 231, 0.3);
}

.rxn-node svg {
  width: 20px;
  height: 20px;
}

.inst-logo {
  width: 240px;
  height: 120px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.inst-logo {
  overflow: hidden;
}

.inst-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: scale(1.15);
}

.rxn-role {
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: #e0e3e4;
  margin-bottom: 0.2rem;
}

.rxn-meta {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: #e9c349;
  text-transform: uppercase;
}

.rxn-org {
  color: #b9cacb;
  font-size: 0.92rem;
  margin-top: 0.15rem;
}

/* ===== timeline pulse dot (used sparingly) ===== */
.timeline-node::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  background: #00dbe7;
  border-radius: 50%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 15px #00dbe7;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(2.5); opacity: 0; }
}

.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
}

/* ===== Funding logo badges ===== */
.funding-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 72px;
  opacity: 0.55;
  transition: opacity 0.3s ease;
  filter: brightness(0) invert(1);
}
.funding-logo:hover { opacity: 0.9; }
.funding-logo img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

@media (max-width: 640px) {
  .funding-logo { height: 36px; }
}
.pub-card {
  padding: 1.5rem 1.75rem;
}

.pub-number {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  color: #00dbe7;
  border: 1px solid rgba(0, 219, 231, 0.4);
  border-radius: 2px;
  padding: 0.1rem 0.45rem;
  display: inline-block;
  margin-bottom: 0.7rem;
}

.pill-gold {
  display: inline-block;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: rgba(233, 195, 73, 0.12);
  color: #e9c349;
  margin-right: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.person-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 219, 231, 0.08);
  border: 1px solid rgba(0, 219, 231, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.85rem;
  color: #00dbe7;
}

/* ===== People page photo cards ===== */
.person-avatar-fallback {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(0, 219, 231, 0.08);
  border: 1px solid rgba(0, 219, 231, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "JetBrains Mono", monospace;
  font-size: 1.1rem;
  color: #00dbe7;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ===== Mobile responsiveness ===== */
@media (max-width: 640px) {
  /* Remove the connecting line + circular bullet entirely on mobile */
  .rxn-timeline::before { display: none; }

  .rxn-item {
 grid-template-columns: 52px 150px 1fr;
    gap: 0.9rem;
    padding: 0.9rem 0;
    border-bottom: 1px solid #1c2223;
  }
  .rxn-item:last-child { border-bottom: none; }

  .rxn-node { display: none; }

  .inst-logo {
    width: 84px;
    height: 44px;
    border-radius: 8px;
  }

  .rxn-role {
    font-size: 1.05rem;
    font-weight: 700;
  }
}

@media (max-width: 420px) {
  .rxn-item { grid-template-columns: 72px 1fr; gap: 0.75rem; }
  .inst-logo { width: 72px; height: 40px; }
}

