@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Text:ital@1&display=swap');

/* Hero */
#hero {
  padding: 4rem 0;
  text-align: center;
}
#hero .layer-inset {
  align-items: center;
}
#hero h1 {
  font:
    italic 600 clamp(2rem, 6vw, 4rem) / 1.1 'DM Serif Text',
    serif;
  margin: 0 0 1rem;
}
#hero .circled {
  position: relative;
}
#hero .circled svg {
  height: 350%;
  left: -0.8em;
  position: absolute;
  top: -125%;
  width: calc(100% + 1.6em);
}
#hero .lead {
  color: var(--color-half);
  font-size: clamp(1rem, 2vw, 1.25rem);
  max-width: 40rem;
}

/* Video */
#video .layer-inset {
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}
#video video {
  cursor: pointer;
  height: 100%;
  object-fit: cover;
  width: 100%;
}
#video .logo {
  left: 50%;
  pointer-events: none;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%) scale(1);
  transition: transform 0.3s ease;
}

@media (min-width: 60rem) {
  #video .logo {
    transform: translate(-50%, -50%) scale(1.5);
  }
}

/* Projects */
.project-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1rem 0;
}
.project-card {
  background-position: center;
  background-size: cover;
  border-radius: var(--radius);
  color: var(--color-darker);
  display: flex;
  flex: 1 1 20rem;
  flex-direction: column;
  height: 16rem;
  justify-content: space-between;
  overflow: hidden;
  padding: 1.5rem;
  position: relative;
}
.project-card::before {
  background: linear-gradient(180deg, rgba(0, 17, 17, 0.1) 0%, rgba(0, 17, 17, 0.9) 100%);
  content: '';
  inset: 0;
  position: absolute;
}
.project-card > div {
  position: relative;
}
.project-status {
  align-items: center;
  background: var(--color-light);
  border-radius: 0.75rem;
  display: flex;
  gap: 0.5rem;
  padding: 0.125rem 0.5rem;
  width: fit-content;
}
.card-bottom {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.project-card h3 {
  color: var(--color-darkest);
  font-size: 1.5rem;
  line-height: 1;
}
.project-stats {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 0 0 0.5rem;
}
.project-stats .stat {
  align-items: center;
  display: flex;
  gap: 0.25rem;
}
.project-stats i,
.project-footer a:hover {
  color: var(--color-darkest);
}
.project-footer {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

/* About */
#about .signoff {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 2rem 0 0;
}
@media (min-width: 48rem) {
  #about .signoff {
    flex-direction: row;
  }
}
#about .headshot {
  border-radius: var(--radius);
  width: 8rem;
}
#about .signoff > div {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  justify-content: center;
}
#kevin-signature {
  width: 14rem;
}
#kevin-perry {
  font-size: 1.25rem;
}
#kevin-signature,
#kevin-perry + div {
  color: var(--color-half);
}
#about .signoff a {
  color: var(--color-brand);
  font-weight: 700;
}
#about .signoff a:hover {
  text-decoration: underline;
}

/* Team */
.team-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  width: 100%;
}
.team-card {
  border-bottom: 1px solid var(--color-light);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-bottom: 1.5rem;
}
.team-card:last-child {
  border-bottom: unset;
  padding-bottom: unset;
}
.team-card img {
  aspect-ratio: 1;
  border-radius: var(--radius);
  height: 12.5rem;
  object-fit: cover;
  width: 12.5rem;
}
.team-card > div {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.5rem;
}
.team-role {
  color: var(--color-half);
  margin: 0 0 0.5rem;
}
@media (min-width: 48rem) {
  .team-card {
    border-bottom: unset;
    flex: 1 1 calc(50% - 0.75rem);
    flex-direction: row;
    gap: 1.5rem;
    padding-bottom: unset;
  }
}

/* Responsive */
@media (min-width: 36rem) {
  #video .hero-logo {
    transform: translate(-50%, -50%) scale(1);
  }
}
