section.card {
  width: 100vw;
  height: 100vh;
}

.card.scroll {
  position: relative;
}

.project {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate3d(-50%, -50%, 0);
  width: 85%;
  height: 75%;
  display: flex;
}

.project-copy {
  position: relative;
  flex: 1.75;
  border-radius: 12px;
  padding: 2em;
  background: var(--color-bg-secondary);
}

.project-img {
  flex: 3;
  border-radius: 12px;
  overflow: hidden;
}

.project-img .project-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.project-img { position: relative; }
.project-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 2;
}
.project-img.playing .project-fallback {
  opacity: 0;
  pointer-events: none;
  transition: opacity 400ms ease;
}
.project-img .project-video { z-index: 1; }

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.project-header h3 {
  color: var(--color-text);
  text-transform: uppercase;
  font-family: var(--font-secondary);
  font-size: 40px;
  line-height: 100%;
}

.project-header p {
  padding: 0 !important;
}

.project-copy p {
  padding: 1em 0;
}

.project-cta {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  padding: 1em;
  text-transform: uppercase;
}

.project-cta-row {
  width: 100%;
  display: flex;
  gap: 1em;
}

.cta {
  flex: 1;
  padding: 0.5em 1em;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.125);
}

.cta span {
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .project {
    flex-direction: column;
  }

  .project-header h3 {
    font-size: 20px;
  }
}

.desktop-only {
  display: none;
}


/* project links on index */
.project-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.project-link .project {
  transition: transform 0.6s cubic-bezier(.2,.9,.25,1), box-shadow .6s;
}

.project-link:hover .project {
  transform: translate3d(-50%, -52%, 0) scale(1.02);
  box-shadow: 0 30px 60px rgba(0,0,0,0.6);
}

/* responsive */
/* @media (max-width: 1000px) {
  .hero .hero-header { max-width: 100%; padding-left: 4vw; }
  .hero .hero-img { position: relative; width: 100%; height: 40vh; inset: auto; }
  .projects-gallery { grid-template-columns: 1fr; }
  .projects-gallery .project-img { height: 260px; }
  .hero h1 { font-size: 46px; }
} */
