@import url("https://fonts.cdnfonts.com/css/pp-neue-montreal");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "PP Neue Montreal", sans-serif;
  background: #fff;
}

img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

p {
  text-transform: uppercase;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: -0.02rem;
  line-height: 1;
}

.intro,
.outro {
  position: relative;
  width: 100%;
  height: 100svh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.projects {
  position: relative;
  width: 100%;
  padding: 0.5rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  overflow: hidden;
}

.projects-row {
  width: 125%;
  display: flex;
  gap: 1rem;
}

.project {
  flex: 1;
  aspect-ratio: 7/5;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.project-img {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.project-info {
  display: flex;
  justify-content: space-between;
  padding: 0.25rem 0;
}

.project-info p {
  font-size: 0.75rem;
}

/* Righe animate con transform (scheda video): niente vibrazioni a 60 fps */
.projects-row {
  flex: none;
  transform-origin: 50% 0;
  will-change: transform;
  backface-visibility: hidden;
}

.project-info p {
  transform: scale(var(--inv, 1));
  transform-origin: left top;
}

.project-info p:last-child {
  transform-origin: right top;
}
