.project-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: clamp(120px, 14vh, 200px) clamp(24px, 6vw, 80px) clamp(120px, 16vh, 200px);
  display: flex;
  justify-content: center;
  box-sizing: border-box;
  opacity: 0;
  transform: scale(0.98);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

body.project-ready .project-shell {
  opacity: 1;
  transform: none;
}

.project-label {
  position: fixed;
  top: 96px;
  left: 24px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 28px;
  letter-spacing: 3px;
  color: #f6f6f6;
  text-transform: uppercase;
  z-index: 25;
  pointer-events: none;
  opacity: 0;
  transform: translate(-14px, -14px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.project-label .label-text {
  opacity: 0;
  animation: labelFade 0.7s ease forwards;
  animation-delay: 0.3s;
}

body.project-ready .project-label {
  opacity: 1;
  transform: translate(0, 0);
}

@keyframes labelFade {
  from {
    opacity: 0;
    letter-spacing: 8px;
  }
  to {
    opacity: 1;
    letter-spacing: 3px;
  }
}

.project-grid {
  width: 100%;
  max-width: 1140px; /* 3 * 300 + 2 * 120 gaps */
  display: grid;
  grid-template-columns: repeat(3, 300px);
  justify-content: center;
  justify-items: center;
  row-gap: 140px;
  column-gap: 120px;
}

.project-card {
  width: 300px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
  transition: transform 0.2s ease;
}

.project-card:hover {
  transform: translateY(-6px);
}

.project-card img {
  width: 300px;
  height: 336px;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
  transition: transform 0.35s ease;
}

.project-card figcaption {
  padding: 0 6px;
  color: #f0f0f0;
  font-size: 15px;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0.9;
}

#scroll-hint {
  position: fixed;
  left: 24px;
  bottom: 28px;
  z-index: 20;
  display: grid;
  justify-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  pointer-events: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.8s ease 0.2s, transform 0.8s ease 0.2s;
}

body.project-ready #scroll-hint {
  opacity: 0.9;
  transform: translateY(0);
}

#scroll-hint svg {
  width: 22px;
  height: 60px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.9;
}

#scroll-hint .scroll-text {
  font-size: 11px;
  letter-spacing: 2px;
}

@media (max-width: 1024px) {
  .project-grid {
    grid-template-columns: repeat(2, 300px);
    column-gap: 80px;
    row-gap: 120px;
  }
}

@media (max-width: 640px) {
  .project-grid {
    grid-template-columns: 1fr;
    column-gap: 60px;
    row-gap: 100px;
  }

  .project-card,
  .project-card img {
    width: 100%;
  }

  .project-card img {
    height: auto;
    aspect-ratio: 25 / 28;
  }
}

.project-card:hover img {
  transform: scale(1.03);
}
