.projects-page {
    padding: 40px 24px;
    max-width: 1200px;
    margin: 0 auto;
    animation: fadeIn 1s ease-in-out;
  }

  .projects-intro {
    text-align: center;
    margin-bottom: 0px;
  }

  .projects-intro h1 {
    font-size: 2rem;
    font-weight: bold;
    color: #4B3F72;
    animation: popIn 0.7s ease forwards;
  }

  .projects-intro p {
      font-family: "SpaceGrotesk", serif;
    font-size: 1.2rem;
    color: #1F1F1F;
    opacity: 0.85;
  }

  .projects-showcase {
  padding: 4rem 2rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.project-tile {
  background-color: #FCFAF5;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.05);
  overflow: hidden;
  text-decoration: none;
  color: #4B3F72;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
  transform: translateY(40px);
}

.project-tile:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

.tile-image img,
.tile-image video {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.tile-content {
  padding: 1.2rem;
}

.tile-content h2 {
  margin-top: 0;
  font-size: 1.3rem;
  color: #1F1F1F;
}

.tile-content p {
  margin: 0.5rem 0;
  font-size: 1rem;
  font-family: "SpaceGrotesk", serif;
}

.tile-quote {
  display: block;
  margin-top: 0.5rem;
  font-style: italic;
  font-size: 0.9rem;
  color: #7c6b9b;
  font-family: "SpaceGrotesk", serif;
}


  .project-tile.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  }

.project-tile {
  position: relative;
}

.project-year {
    font-family: "SpaceGrotesk", serif;
  position: absolute;
  top: 12px;
  right: 16px;
  background-color: #f0e7ff;
  color: #1f113a;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: bold;
  z-index: 10;
}
