%abs {
	position: absolute;
	z-index: 5;
}

%abs-pseudo {
	position: absolute;
	top: 0;
	display: block;
	content: ' ';
}

%anim {
    .is-ready & {
        transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
}

%animfix {
	-webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    -webkit-transform: translate3d(0, 0, 0);
    -moz-transform: translate3d(0, 0, 0);
}

%antialias {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

%arrow-down {
	margin-left: 10px;
	font-size: em(8);

	&:before {
		color: inherit;
	}
}

%abs-x {
	left: 50%;
	transform: translateX(-50%);
}

%abs-y {
	top: 50%;
	transform: translateY(-50%);
}

%abs-xy {
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

%clear {
	clear: both;
	
	&:after {
		clear: both;
		display: block;
		content: '';
	}
}

%flex {
    display: flex;
}

%flex-column {
    flex-direction: column;
}

%flex-inline {
    display: inline-flex;
}

%flex-shrink {
    flex-shrink: 0;
}

%flex-x {
	justify-content: center;
}

%flex-y {
	align-items: center;
}

%flex-spacebetween {
	justify-content: space-between;
}

%flex-end {
    align-items: flex-end;
}

%flex-wrap {
    flex-wrap: wrap;
}

%flex-xy {
	justify-content: center;
	align-items: center;
}

%lead {
    font-family: $text;
    
    &--1 {
        line-height: 1.1em;
        font: {
            size: rem(68);
        }
        
        @media ( max-width: $design + px ) {
        	@include responsive-font(design(68), rem(48));
        }
    }
    
    &--2 {
        font: {
            size: rem(38);
        }
        
        @media ( max-width: $design + px ) {
        	@include responsive-font(design(38), rem(24));
        }
    }
    
    &--3 {
        line-height: 1.6em;
        font-size: rem(18);
        
        @media ( max-width: $base + 80px ) {
        	@include responsive-font(base(18), rem(16));
        }
    }
    
    &--4 {
        font-size: rem(16);
        
        @media ( max-width: $base + 80px ) {
        	@include responsive-font(base(16), rem(14));
        }
    }
}

%rel {
	position: relative;
	z-index: 1;
}

%shadow {
    @extend %abs-pseudo;
    @extend %anim;
    left: 0; top: 0; z-index: -1;
    width: 100%; height: 100%;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    opacity: 0;
}

%wrap {
    width: $base + 80px;
	margin: 0 auto;	
	padding: {
    	left: 40px;
    	right: 40px;
	}
	
	@media ( max-width: 1500px ) {
    	width: auto;
		max-width: 1200px;
	}

	@media ( max-width: $tablet + px) {
		width: 100%;
	}


/*
	@media ( max-width: $base + 80px ) {
	    width: 100%;
	}
*/
	
	@media ( max-width: $tablet + px ) {
        padding: {
        	left: 30px;
        	right: 30px;
    	}
    }
    
    @media ( max-width: $smartphone + px ) {
        padding: {
        	left: 20px;
        	right: 20px;
    	}
    }
}