/* project page navbar override */
.dark-nav .navbar {
  position: absolute;
  top: 34px;
  left: 0;
  width: 100%;
  z-index: 20;
  background: transparent;
  backdrop-filter: none;
  padding: 30px 0;
  opacity: 1;
  transform: none;
}

.dark-nav .nav-links a {
  color: white;
}

.dark-nav .nav-links a::after {
  background: white;
}

/* FULLSCREEN banner */
.project-banner {
  position: relative;
  width: 100%;
  height: 100svh;
  overflow: hidden;
}

/* reveal wrapper */
.project-banner-reveal {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.project-banner-reveal::after {
  content: "";
  position: absolute;
  inset: 0;
  background: white;
  transform: translateX(0);
  animation: bannerWipe 1s ease forwards;
  animation-delay: 0.15s;
  z-index: 2;
}

/* IMAGE FIX */
.project-banner img {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;

  display: block;

  opacity: 0;
  transform: scale(1.08);
  animation: bannerImageIn 1.2s ease forwards;
}

/* page content */
.project-page {
  padding: 60px 0 120px 0;
  background: white;
}

.project-container {
  width: 100%;
  padding: 0 10%;
}

.back-link {
  display: inline-block;
  margin-bottom: 40px;
  color: black;
  text-decoration: none;
  font-size: 16px;
  letter-spacing: 0.5px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.7s ease forwards;
  animation-delay: 0.8s;
}

.back-link:hover {
  opacity: 0.7;
}

.project-intro {
  margin-bottom: 60px;
  max-width: 800px;
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.8s ease forwards;
  animation-delay: 0.95s;
}

.project-intro h1 {
  margin: 0 0 12px 0;
  font-size: 48px;
  font-weight: 500;
}

.project-intro p {
  margin: 0;
  font-size: 20px;
  line-height: 1.5;
  color: #444;
}

.project-text-block {
  max-width: 760px;
  margin-bottom: 56px;
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.8s ease forwards;
}

.project-text-block:nth-of-type(1) { animation-delay: 1.1s; }
.project-text-block:nth-of-type(2) { animation-delay: 1.25s; }
.project-text-block:nth-of-type(3) { animation-delay: 1.4s; }

.project-text-block h2 {
  margin: 0 0 14px 0;
  font-size: 28px;
  font-weight: 500;
}

.project-text-block p {
  margin: 0;
  font-size: 18px;
  line-height: 1.7;
  color: #222;
}

/* animations */
@keyframes bannerWipe {
  from { transform: translateX(0); }
  to { transform: translateX(100%); }
}

@keyframes bannerImageIn {
  from {
    opacity: 0;
    transform: scale(1.08);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* tablet */
@media (max-width: 900px) {
  .dark-nav .navbar {
    top: 30px;
  }

  .project-container {
    padding: 0 8%;
  }

  .project-intro h1 {
    font-size: 38px;
  }

  .project-intro p {
    font-size: 18px;
  }
}

/* mobile */
@media (max-width: 600px) {
  .dark-nav .navbar {
    top: 0;
    padding: 24px 0;
  }

  .dark-nav .nav-links a {
    font-size: 12px;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
  }

  .project-banner {
    height: 70svh;
  }

  .project-page {
    padding: 40px 0 90px 0;
  }

  .project-container {
    padding: 0 20px;
  }

  .back-link {
    margin-bottom: 28px;
    font-size: 15px;
  }

  .project-intro {
    margin-bottom: 42px;
  }

  .project-intro h1 {
    font-size: 30px;
  }

  .project-intro p {
    font-size: 16px;
  }

  .project-text-block h2 {
    font-size: 24px;
  }

  .project-text-block p {
    font-size: 16px;
  }
}