/* ===== Projects — Section 1: Hero ===== */
.section1 {
  position: relative;
  padding: clamp(140px, 15vw, 200px) 0 clamp(50px, 6vw, 80px);
  background: #1c1c1f;
  overflow: hidden;
}

.section1__title {
  position: relative;
  z-index: 2;
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(54px, 9vw, 140px);
  line-height: 0.92;
  margin-bottom: 24px;
}
.section1__title .line { display: block; overflow: hidden; padding-bottom: 0.03em; }
.section1__title .line > span { display: inline-block; transform: translateY(105%); animation: prjLineUp 1.1s var(--ease) both; }
.section1__title .line:nth-child(1) > span { animation-delay: 0.5s; }
.section1__title .line:nth-child(2) > span { animation-delay: 0.65s; }

/* letters light up green one word at a time on hover */
.section1__title .word { transition: color 0.4s; }
.section1__title .word:hover { color: var(--green); }

.section1__text {
  position: relative;
  z-index: 2;
  font-size: clamp(17px, 1.6vw, 22px);
  color: rgba(255, 255, 255, 0.88);
  animation: prjFadeUp 1s var(--ease) 1s both;
}

/* chrome W emblem bleeding off the right edge */
.section1__emblem {
  position: absolute;
  z-index: 1;
  right: -14%;
  top: 50%;
  width: min(54vw, 760px);
  transform: translateY(-50%);
  pointer-events: none;
}
.section1__emblem-parallax { transition: transform 0.9s var(--ease); }
.section1__emblem img {
  width: 100%;
  filter: grayscale(1) contrast(1.15) drop-shadow(0 30px 50px rgba(0, 0, 0, 0.6));
  animation: prjEmblemIn 1.6s var(--ease) 0.4s both, prjFloat 8s ease-in-out 2s infinite;
}

@keyframes prjLineUp { to { transform: translateY(0); } }
@keyframes prjFadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes prjEmblemIn {
  from { opacity: 0; transform: translateX(20%) rotate(20deg); }
  to   { opacity: 1; transform: none; }
}
@keyframes prjFloat {
  0%, 100% { transform: translateY(0) rotate(0); }
  50%      { transform: translateY(-16px) rotate(-2deg); }
}

@media (max-width: 760px) {
  .section1__emblem { width: 90vw; right: -40%; top: 22%; opacity: 0.5; }
}
