.projects-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 16% 10%, rgba(255, 255, 255, 0.055), transparent 30%),
    radial-gradient(circle at 84% 10%, rgba(134, 22, 38, 0.16), transparent 34%),
    radial-gradient(circle at 50% 92%, rgba(255, 255, 255, 0.035), transparent 32%),
    #000;
  color: var(--white);
}

.projects-page .site-header {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.projects-main {
  position: relative;
  z-index: 10;
  width: min(1180px, calc(100vw - 48px));
  margin: 0 auto;
  padding: 132px 0 96px;
}

.projects-hero {
  max-width: 860px;
  margin-bottom: 42px;
}

.projects-kicker {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 10px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.projects-hero h1 {
  max-width: 520px;
  margin: 0;
  color: #fff;
  font-size: clamp(24px, 3.1vw, 44px);
  line-height: 0.96;
  font-weight: 900;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}

.projects-hero p {
  max-width: 650px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
  line-height: 1.72;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.project-index-card {
  position: relative;
  display: block;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
  box-shadow:
    0 28px 90px rgba(0, 0, 0, 0.42),
    inset 0 0 0 1px rgba(255, 255, 255, 0.085);
  text-decoration: none;
  transform: translateY(0);
  transition:
    transform 650ms var(--ease-cinema),
    box-shadow 650ms var(--ease-cinema),
    border-color 650ms var(--ease-cinema);
}

.project-index-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), transparent 34%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.34), transparent 48%),
    rgba(0, 0, 0, 0.12);
  pointer-events: none;
  transition: background 500ms ease;
}

.project-index-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 36px 115px rgba(0, 0, 0, 0.52),
    inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.project-index-card:hover::after {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.04), transparent 34%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.28), transparent 48%),
    rgba(0, 0, 0, 0.04);
}

.project-index-card img,
.project-index-card video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

.project-index-card img {
  z-index: 0;
  opacity: 0.9;
  filter: brightness(0.88) contrast(1.04);
  transition:
    opacity 450ms ease,
    filter 450ms ease,
    transform 850ms var(--ease-cinema);
}

.project-index-card video {
  z-index: 1;
  opacity: 0;
  filter: brightness(0.92) contrast(1.04);
  transition: opacity 380ms ease;
}

.project-index-card:hover img {
  opacity: 0;
  transform: scale(1.035);
}

.project-index-card:hover video {
  opacity: 1;
}

.project-index-card-copy {
  position: absolute;
  inset: auto 18px 24px;
  z-index: 3;
  display: grid;
  place-items: center;
  gap: 8px;
  text-align: center;
}

.project-index-card-copy strong {
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(9px, 0.72vw, 12px);
  line-height: 1.45;
  font-weight: 900;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  text-wrap: balance;
  transition:
    color 260ms ease,
    letter-spacing 520ms var(--ease-cinema);
}

.project-index-card-copy em {
  color: rgba(255, 255, 255, 0.52);
  font-size: 8px;
  line-height: 1;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  transition: color 260ms ease;
}

.project-index-card:hover .project-index-card-copy strong {
  color: #fff;
  letter-spacing: 0.4em;
}

.project-index-card:hover .project-index-card-copy em {
  color: rgba(255, 255, 255, 0.72);
}

@media (max-width: 1040px) {
  .projects-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .projects-main {
    width: calc(100vw - 28px);
    padding: 116px 0 72px;
  }

  .projects-hero {
    margin-bottom: 30px;
  }

  .projects-hero h1 {
  font-size: clamp(28px, 10vw, 42px);
}

  .projects-hero p {
    font-size: 14px;
    line-height: 1.65;
  }

  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .project-index-card {
    border-radius: 13px;
  }

  .project-index-card-copy {
    inset: auto 12px 18px;
    gap: 7px;
  }

  .project-index-card-copy strong {
    font-size: 8px;
    letter-spacing: 0.26em;
  }

  .project-index-card-copy em {
    font-size: 7px;
    letter-spacing: 0.18em;
  }
}

@media (max-width: 430px) {
  .projects-grid {
    gap: 10px;
  }
}