/* ---- Home banner ---- */
.section--home-banner {
	height: 730px;
}
.home-banner__text {
	position: absolute;
	bottom: 100px;
	color: #FFF;
	z-index: 5;
}
.home-banner__text__title {
	text-transform: lowercase;
	font-weight: 500;
	font-family: "brandon-grotesque", Helvetica, Arial, sans-serif;
	font-size: 11.5rem;
	margin: 0 0 29px;
	line-height: 0.8;
}
.home-banner__text .fliptext {
	color: #b1bfda;
	font-size: 4rem;
	font-family: 'Chevin W01', Helvetica, Arial, sans-serif;
	font-weight: 200;
	line-height: 1.2;
}
.home-banner__text .fliptext p {
	margin: 0;
}
.home-banner__text .fliptext__item-wrapper {
	position: relative;
}

.home-banner__text .fliptext-button {
	margin-top: 20px;
	-webkit-appearance: none;
	padding: 0;
	border: none;
	outline: none;
	background: none;
	color: #FFF;
	text-transform: uppercase;
	font-family: 'Chevin W01', Helvetica, Arial, sans-serif;
	font-weight: 600;
	font-size: 2rem;
	position: relative;
}

.fliptext-button__text {
	vertical-align: top;
	display: inline-block;
	padding-top: 3px;
}
.fliptext-button__text:after {
	content: " ^";
}
.home-banner__text .fliptext-button:before {
	content: " ";
	width: 60px;
	height: 34px;
	border: 3px solid #FFF;
	border-radius: 17px;
	display: inline-block;
	margin: 0 12px 0 0;
	vertical-align: top;
}
.home-banner__text .fliptext-button:after {
	content: " ";
	width: 22px;
	height: 22px;
	border-radius: 50%;
	display: block;
	position: absolute;
	top: 6px;
	left: 7px;
	background-color: #fa7850;
	transition: 120ms all cubic-bezier(0.82, 0.93, 0.44, 1.1);
}
.home-banner__text .fliptext-button.fliptext-button--flipped:after {
	transform: translateX(25px);
}
.home-banner__text .fliptext__line {
	position: relative;
}

.fliptext__line__inner--current {
	opacity: 0;
}
.home-banner__text .fliptext__line__inner {
	animation-fill-mode: forwards;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
	animation-duration: 800ms;
	animation-timing-function: cubic-bezier(0.65, 0.63, 0.43, 1.02);
}
.home-banner__text .fliptext__line__inner--clone {
	position: absolute;
	top: 0;
	left: 0;
}
.home-banner__text .fliptext__line__inner--current.fliptext__line__inner--animate {
	animation-name: fliptextIn;
}
.home-banner__text .fliptext__line__inner--clone.fliptext__line__inner--animate {
	animation-name: fliptextOut;
}

.home-banner__text .fliptext__line--2 .fliptext__line__inner {
	animation-delay: 70ms;
}
.home-banner__text .fliptext__line--3 .fliptext__line__inner {
	animation-delay: 140ms;
}


@keyframes fliptextIn {
	0% {
		transform: perspective(600px) rotateY(-180deg);
		opacity: 0;
	}
	1% {
		transform: perspective(600px) rotateY(-180deg);
		opacity: 1;
	}
	100% {
		transform: perspective(600px) rotateY(0);
		opacity: 1;
	}
}
@keyframes fliptextOut {
	0% {
		transform: perspective(600px) rotateY(0deg);
	}
	99% {
		transform: perspective(600px) rotateY(180deg);
		opacity: 1;
	}
	100% {
		transform: perspective(600px) rotateY(180deg);
		opacity: 0;
	}
}

/* - Devices - */
.home-banner__devices-wrapper {
	position: fixed;
	top: 0;
	left: 50%;
	right: 0;
	bottom: 0;
	transform: translateX(50%);
	transform-origin: center center;
	margin-right: -50%;
	z-index: 0;
	width: 1600px;
}
.home-banner__devices {
	transform: translate(-1608px, -290px) rotate(-45deg);
	transform-origin: center center;
}
.banner-device {
	position: relative;
	transition: all 800ms ease;
}
.banner-device__outline {
	position: relative;
	z-index: 1;
}
.banner-device__screen {
	position: absolute;
	top: 0;
	left: 0;
}
.banner-device--tablet .banner-device__screen {
	width: 505px;
	height: 379px;
}
.banner-device--phone .banner-device__screen {
	width: 339px;
	height: 202px;
}
.banner-device__screen__logo {
	position: absolute;
	top: 50%;
	left: 50%;
	margin-right: -50%;
	transform: translate(-50%, -50%);
	z-index: 1;
}
.banner-device--tablet .banner-device__screen__logo {
	max-width: 300px;
	max-height: 170px;
}
.banner-device--phone .banner-device__screen__logo {
	max-width: 220px;
	max-height: 100px;
}



/* Shadows */
.banner-device__screen__shadow {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 379px 0 0 505px;
	border-color: transparent transparent transparent rgba(0, 0, 0, 0.02);
}
.banner-device--tablet .banner-device__screen__shadow {
	border-width: 379px 0 0 505px;
}
.banner-device--phone .banner-device__screen__shadow {
	border-width: 202px 0 0 339px;
}

/* Lines */
.banner-device-line {
	background-color: #2c3f69;
	height: 2px;
	width: 775px;
}

/* Tablet */
.banner-device--tablet .banner-device__screen {
	top: 25px;
	left: 65px;
}

/* Phone */
.banner-device--phone .banner-device__screen {
	top: 6px;
	left: 43px;
}

/* Youtube */
.banner-device__screen--youtube iframe {
	width: 100%;
	height: 100%;
}

/* Individual styles */
.banner-device-line--1 {
	margin-top: 0;
	margin-left: 0;
	transform: translateX(-290px);
}
.banner-device--1 {
	margin-top: 120px;
	margin-left: 370px;
	transform: translateX(-310px);
}
.banner-device-line--2 {
	margin-top: 16px;
	margin-left: auto;
	margin-right: 270px;
	transform: translateX(-150px);
}
.banner-device--2 {
	margin-top: 86px;
	margin-left: 40px;
	float: left;
	transform: translateX(-140px);
}
.banner-device-line--3 {
	margin-top: 77px;
	float: right;
	width: 884px;
	transform: translateX(230px);
}
.banner-device--3 {
	margin-top: 20px;
	margin-right: 469px;
	float: right;
	transform: translateX(110px);
}
.banner-device-line--4 {
	margin-top: 23px;
	margin-left: -180px;
	width: 857px;
	transform: translateX(-150px);
}
.banner-device--4 {
	margin-top: 23px;
	margin-left: 360px;
	transform: translateX(340px);
}

.home-banner__devices__slide--active .banner-device,
.home-banner__devices__slide--active .banner-device-line {
	transform: translateX(0);	
}

/* Slides */
.home-banner__devices__slide {
	transition: all 800ms cubic-bezier(0.28, 1.09, 0.45, 1);
	position: absolute;
	top: 0;
}
.home-banner__devices__slide--2 {
	transform: translateX(-100%);
}
.home-banner__devices__slide--3 {
	transform: translateX(-200%);
}


/* State 2 */
.section--home-banner[data-slide-state='2'] .home-banner__devices__slide--1 {
	transform: translateX(100%);
}
.section--home-banner[data-slide-state='2'] .home-banner__devices__slide--2 {
	transform: translateX(0%);
}
.section--home-banner[data-slide-state='2'] .home-banner__devices__slide--3 {
	transform: translateX(-100%);
}

/* State 3 */
.section--home-banner[data-slide-state='3'] .home-banner__devices__slide--1 {
	transform: translateX(200%);
}
.section--home-banner[data-slide-state='3'] .home-banner__devices__slide--2 {
	transform: translateX(100%);
}
.section--home-banner[data-slide-state='3'] .home-banner__devices__slide--3 {
	transform: translateX(0%);
}

/* Temp individial bg colours */
.banner-device--1 .banner-device__screen,
.banner-device--3 .banner-device__screen {
	background-color: #131a1d;
}

/* BP 1 */
@media screen and (max-width: 1270px) {
	.home-banner__text__title {
		font-size: 9.5rem;
	}
	.home-banner__text .fliptext {
		font-size: 3.5rem;
	}
	.section--home-banner {
		height: 700px;
	}
	.home-banner__text {
		bottom: 80px;
	}
}
/* iPad */
@media screen and (max-width: 1024px) {
	.home-banner__devices-wrapper {
		position: absolute;
	}
}
/* BP 2 */
@media screen and (max-width: 1000px) {
	.home-banner__text__title {
		font-size: 8rem;
		margin-bottom: 19px;
	}
	.home-banner__text .fliptext {
		font-size: 3rem;
	}
	.section--home-banner {
		height: 630px;
	}
	.home-banner__text {
		bottom: 60px;
	}

	.home-banner__devices {
		width: 1000px;
		transform: translate(-1356px, -90px) rotate(-45deg);
	}

	/* Tablet */
	.banner-device--tablet .banner-device__screen {
		top: 16px;
		left: 43px;
		width: 336px;
	}
	.banner-device.banner-device--tablet {
		width: 420px;
	}

	/* Phone */
	.banner-device--phone .banner-device__screen {
		top: 4px;
		left: 27px;
		width: 229px;
	}
	.banner-device.banner-device--phone {
		width: 280px;
	}

	.banner-device-line {
		width: 575px;
	}

	/* Individual styles */
	.banner-device--1 {
		margin-top: 110px;
		margin-left: 310px;
	}
	.banner-device-line--2 {
		margin-top: 16px;
		margin-right: 30px;
	}
	.banner-device--2 {
		margin-top: 96px;
		margin-left: 10px;
	}
	.banner-device-line--3 {
		margin-top: 57px;
		width: 170px;
		margin-right: 352px;
	}
	.banner-device--3 {
		margin-top: 20px;
		margin-right: 263px;
	}
	.banner-device-line--4 {
		margin-top: 17px;
		margin-left: 0;
		width: 397px;
	}
	.banner-device--4 {
		margin-top: 19px;
		margin-left: 160px;
	}

	.banner-device--phone .banner-device__screen {
		width: 229px;
		height: 135px;
	}
	.banner-device--tablet .banner-device__screen {
		width: 334px;
		height: 253px;
	}
	.banner-device--tablet .banner-device__screen__shadow {
		border-width: 254px 0 0 334px;
	}
	.banner-device--phone .banner-device__screen__shadow {
		border-width: 135px 0 0 229px;
	}
	.banner-device--tablet .banner-device__screen__logo {
		max-width: 260px;
		max-height: 150px;
	}
	.banner-device--phone .banner-device__screen__logo {
		max-width: 210px;
		max-height: 80px;
	}
}

/* BP 3 */
@media screen and (max-width: 760px) {
	.home-banner__devices {
		width: 760px;
		transform: translate(-1266px, -10px) rotate(-45deg);
	}
	.banner-device-line {
		width: 365px;
	}

	.home-banner__text__title {
		font-size: 6rem;
		margin-bottom: 17px;
	}
	.home-banner__text .fliptext {
		font-size: 2.5rem;
	}
	.section--home-banner {
		height: 500px;
	}
	.home-banner__text {
		bottom: 50px;
	}
	.home-banner__text .fliptext-button:before {
		width: 51px;
		height: 31px;
	}
	.home-banner__text .fliptext-button:after {
		width: 19px;
		height: 19px;
		top: 6px;
		left: 6px;
	}
	.home-banner__text .fliptext-button.fliptext-button--flipped:after {
		transform: translateX(20px);
	}
	.home-banner__text .fliptext-button {
		margin-top: 20px;
		font-size: 1.7rem;
	}

	/* Tablet */
	.banner-device--tablet .banner-device__screen {
		top: 11px;
		left: 30px;
		width: 240px;
	}
	.banner-device.banner-device--tablet {
		width: 300px;
	}

	/* Phone */
	.banner-device--phone .banner-device__screen {
		top: 3px;
		left: 22px;
		width: 181px;
	}
	.banner-device.banner-device--phone {
		width: 220px;
	}

	/* Individual styles */
	.banner-device-line--1 {
		transform: translateX(-220px);
	}
	.banner-device--1 {
		margin-top: 92px;
		margin-left: 370px;
		transform: translateX(-210px);
	}
	.banner-device-line--2 {
		margin-top: 16px;
		margin-right: -70px;
		transform: translateX(-110px);
	}
	.banner-device--2 {
		margin-top: 80px;
		margin-left: 111px;
		float: left;
		transform: translateX(-90px);
	}
	.banner-device-line--3 {
		margin-top: 34px;
		width: 100px;
		margin-right: 212px;
		transform: translateX(160px);
	}
	.banner-device--3 {
		margin-top: 20px;
		margin-right: 103px;
		transform: translateX(70px);
	}
	.banner-device-line--4 {
		margin-top: 17px;
		width: 397px;
		transform: translateX(-80px);
	}


	.banner-device--4 {
		display: none;
	}

	.banner-device--phone .banner-device__screen {
		width: 180px;
		height: 107px;
	}
	.banner-device--tablet .banner-device__screen {
		width: 240px;
		height: 180px;
	}
	.banner-device--tablet .banner-device__screen__shadow {
		border-width: 180px 0 0 240px;
	}
	.banner-device--phone .banner-device__screen__shadow {
		border-width: 107px 0 0 180px;
	}

	.banner-device--tablet .banner-device__screen__logo {
		max-width: 140px;
		max-height: 110px;
	}
	.banner-device--phone .banner-device__screen__logo {
		max-width: 100px;
		max-height: 62px;
	}
}

/* BP 4 */
@media screen and (max-width: 600px) {
	.home-banner__devices {
		width: 600px;
	}
	
	.section--home-banner {
		height: 250px;
	}
	.home-banner__text__title {
		font-size: 3.6rem;
		margin-bottom: 13px;
	}
	.home-banner__text .fliptext {
		font-size: 1.8rem;
	}
	.home-banner__text {
		bottom: 30px;
	}
	.banner-device-line {
		width: 245px;
	}

	.home-banner__text .fliptext-button:before {
		width: 45px;
		height: 25px;
		border-width: 2px;
	}
	.home-banner__text .fliptext-button:after {
		width: 15px;
		height: 15px;
		top: 5px;
		left: 6px;
	}
	.home-banner__text .fliptext-button.fliptext-button--flipped:after {
		transform: translateX(18px);
	}
	.home-banner__text .fliptext-button {
		margin-top: 20px;
		font-size: 1.4rem;
	}

	.fliptext-button__text {
		padding-top: 1px;
	}

	/* Tablet */
	.banner-device--tablet .banner-device__screen {
		top: 6px;
		left: 17px;
		width: 137px;
	}
	.banner-device.banner-device--tablet {
		width: 170px;
	}

	/* Phone */
	.banner-device--phone .banner-device__screen {
		top: 1px;
		left: 11px;
		width: 90px;
	}
	.banner-device.banner-device--phone {
		width: 110px;
	}

	/* Individual styles */
	.banner-device-line--1 {
		transform: translateX(0);
	}
	.banner-device--1 {
		margin-top: 192px;
		margin-left: 370px;
		transform: translateX(0);
	}
	.banner-device-line--2 {
		margin-top: 10px;
		margin-right: -50px;
		transform: translateX(0);
	}
	.banner-device--2 {
		margin-top: 50px;
		margin-left: 272px;
		transform: translateX(0);
	}
	.banner-device--3 {
		margin-top: 20px;
		margin-right: 33px;
		transform: translateX(0);
	}
	.banner-device-line--3 {
		margin-top: 18px;
		width: 100px;
		margin-right: 22px;
		transform: translateX(0);
	}
	.banner-device-line--4  {
		display: none;
	}

	.banner-device--phone .banner-device__screen {
		width: 90px;
		height: 53px;
	}
	.banner-device--tablet .banner-device__screen {
		width: 137px;
		height: 103px;
	}
	.banner-device--tablet .banner-device__screen__shadow {
		border-width: 103px 0 0 137px;
	}
	.banner-device--phone .banner-device__screen__shadow {
		border-width: 53px 0 0 90px;
	}

	.banner-device--tablet .banner-device__screen__logo {
		max-width: 70px;
		max-height: 57px;
	}
	.banner-device--phone .banner-device__screen__logo {
		max-width: 50px;
		max-height: 30px;
	}
}

/* Extra BP */
@media screen and (max-width: 430px) {
	.section--home-banner {
		height: 220px;
	}
	.home-banner__text__title {
		font-size: 3rem;
		margin-bottom: 13px;
	}
	.home-banner__text .fliptext {
		font-size: 1.6rem;
	}
	.home-banner__devices {
		transform: translate(-1096px, -182px) rotate(-45deg);
	}
	.banner-device-line {
		width: 125px;
		height: 1px;
	}

	/* Tablet */
	.banner-device--tablet .banner-device__screen {
		top: 4px;
		left: 10px;
		width: 81px;
		height: 60px;
	}
	.banner-device.banner-device--tablet {
		width: 100px;
	}

	/* Phone */
	.banner-device--phone .banner-device__screen {
		top: 1px;
		left: 5px;
		width: 51px;
		height: 30px;
	}
	.banner-device.banner-device--phone {
		width: 61px;
	}

	.banner-device--tablet .banner-device__screen__shadow {
		border-width: 60px 0 0 81px;
	}
	.banner-device--phone .banner-device__screen__shadow {
		border-width: 30px 0 0 51px;
	}

	/* Individual styles */
	.banner-device--1 {
		margin-top: 182px;
		margin-left: 161px;
	}
	.banner-device-line--2 {
		margin-top: 9px;
		margin-right: 90px;
	}
	.banner-device--2 {
		margin-top: 33px;
		margin-right: 19px;
		margin-left: 92px;
	}
	.banner-device--3 {
		margin-top: 14px;
		margin-right: 138px;
	}
	.banner-device-line--3 {
		display: none;
	}

	.banner-device--tablet .banner-device__screen__logo {
		max-width: 50px;
		max-height: 34px;
	}
	.banner-device--phone .banner-device__screen__logo {
		max-width: 30px;
		max-height: 19px;
	}

}