/* ----------------------------------------
 * Global
 * ---------------------------------------- */

@font-face {
	font-family: 'Huben-Regular';
	src: url('fonts/huben-regular.eot');
	src: url('fonts/huben-regular.eot?#iefix') format('embedded-opentype'),
             url('fonts/huben-regular.woff2') format('woff2'),
	     url('fonts/huben-regular.woff') format('woff'),
	     url('fonts/huben-regular.ttf') format('truetype'),
	     url('fonts/huben-regular.svg#youworkforthem') format('svg');
	font-weight: normal;
	font-style: normal;
}

*, *:after, *:before {
	box-sizing: border-box;
}

html {
	background: #FBF6F9;
	color: white;
	font-family: 'Montserrat', sans-serif;
	font-size: 1.2vw;
	line-height: 120%;
}

body {
	margin: 0;
	padding: 0;
}

a, a:hover, a:active, a:visited {
	font-weight: 800;
	color: inherit;
}

h2 {
	text-transform: uppercase;
	font-weight: 800;
}

h2.mb {
	margin-bottom: 40px;
}

h2.mt {
	margin-top: 100px;
}

h2.heading-banner {
	display: flex;
	justify-content: center;
	align-items: center;
	text-transform: uppercase;
	height: 15vw;
	font-size: 2.6rem;
	margin: 0;
	background: white;
	color: #6F1AD8;
	font-family: 'Huben-Regular';
}

h3 {
	text-transform: uppercase;
	font-weight: 800;
	color: #FF00FF;
}

ul {
	list-style-type: none;
}

li:before {
	content: '– ';
	color: #FF00FF;
}

.site {
	margin-left: 5.5rem;
}

p {
	font-size: 1rem;
	line-height: 1.4rem;
	margin: 1rem auto;
}

p.small {
	font-size: 0.9rem;
}

p.large {
	font-size: 2rem;
	line-height: 140%;
}

p.center {
	text-align: center;
}

p.button-row {
	margin: 2rem auto;
}

h1 {
	position: relative;
	display: flex;
	justify-content: center;
	align-items: center;
	text-transform: uppercase;
	height: 15vw;
	font-size: 2.6rem;
	margin: 0;
	font-family: 'Huben-Regular';
}

h1:after {
	position: absolute;
	bottom: 0;
	left: 0;
	content: '';
  width: 250px;
  height: 103px;
	background-image: url('images/circle-purple.png');
	background-size: contain;
	background-repeat: no-repeat;
}

img {
	display: block;
	max-width: 100%;
	margin: 0;
}

blockquote {
	margin: 0 0 1rem 0;
	padding: 0;
  font-size: 1.6rem;
  line-height: 2rem;
}

.no-v-margin {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}

/* ----------------------------------------
 * Colours
 * ---------------------------------------- */

.purple {
	background: #522359;
	color: white;
}

.magenta {
	background: #FF00FF;
	color: white;
}

.blue {
	background: #1B1464;
	color: white;
}

.pink {
	background: #E7C5D5;
	color: white;
}

.cyan {
	background: #00BFE1;
	color: white;
}

.light-blue {
	background: #BFEFF7;
}

.red {
	background: #DD2E6E;
	color: white;
}

.violet {
	background: #7800e1;
	color: white;
}

.lavender {
	background: #A976E8;
	color: white;
}

.grey {
	background: #E7C5D5;
}

.grey-purple {
	background: #D4C8D5;
}

.off-white {
	background: #F8EEF2;
}

.white {
	background: white;
}

/* ----------------------------------------
 * Layout elements
 * ---------------------------------------- */

.block {
	position: relative;
	background-size: cover;
}

.block:not(.l):not(.m):not(.s) {
	padding: 30px;
}

.block.l {
	padding-top: 56%;
}

.block.m {
	padding-top: 40%;
}

.block.s {
	padding-top: 20%;
}

.block-content {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	padding: 0 2rem;
	display: flex;
	justify-content: center;
	align-items: center;
}

.layout.split {
	padding: 0;
	display: grid;
	grid-template-columns: 1fr 1fr;
}

.layout.split-3 {
	padding: 0;
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
}

.layout.split-1-3 {
	padding: 0;
	display: grid;
	grid-template-columns: 1fr 2fr;
}

.layout.split-1-3 > .pad-right {
	padding-right: 2rem;
}

.layout.central-column {
	max-width: 90%;
	margin: auto;
}

/* ----------------------------------------
 * Header
 * ---------------------------------------- */

.title {
	position: relative;
	display: flex;
	justify-content: center;
	align-items: center;
	height: 15vw;
	background: #522359;
}

.title .title-graphic {
	width: 30rem;
	margin: auto;
	display: block;
}

.header-social {
	position: absolute;
	top: 20px;
	right: 20px;
}

.header-social a {
	display: inline-block;
	margin-left: 0.5rem;
}

.header-social img {
	width: 1rem;
}

.title.reduced {
	height: 50px;
}

.title.reduced .title-graphic {
	width: 150px;
}

.title.reduced .header-social img {
	width: 18px;
}

.title.reduced .header-social {
	top: 16px;
}


/* ----------------------------------------
 * Hero
 * ---------------------------------------- */

.hero {
	display: flex;
	justify-content: center;
	align-items: center;
	height: 30vw;
	background-color: #522359;
	background-image: url('images/background.svg');
	background-size: cover;
	background-position: center;
}

/* ----------------------------------------
 * Navigation
 * ---------------------------------------- */

.nav-container {
	position: fixed;
	top: 0;
	left: 0;
	width: 5.5rem;
	height: 100%;
	z-index: 100;
}

/*.nav-container:after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100%;
	background: rgba(0,0,0,0.7);
	z-index: 0;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.8s;
}*/

.nav-overlay {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100%;
	background: rgba(0,0,0,0.7);
	z-index: 0;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.8s;
}

.nav-container.open .nav-overlay {
	opacity: 1;
	pointer-events: all;
}

.nav-toggle {
	position: relative;
	display: flex;
	justify-content: center;
	align-items: center;
	height: 100%;
	background: #FF66FF;
	z-index: 10;
	cursor: pointer;
}

.nav-toggle img {
	width: 1.6rem;
}

.nav-container:not(.open) .nav-toggle .close,
.nav-container.open .nav-toggle .menu {
	display: none;
}

.nav {
	position: absolute;
	top: 0;
	left: 5.5rem;
	width: 22rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
	height: 100%;
	text-transform: uppercase;
	z-index: 1;
	overflow: hidden;
	transform: translateX(-22rem);
	transition: all 0.3s ease-in-out;
	background: #7D5A82;
	font-size: 2rem;
	line-height: 2rem;
}

.nav-container.open .nav {
	transform: translateX(0);
}

.nav a {
	text-decoration: none;
	color: #E7C5D5;
}

.nav .padding {
	flex: 1;
}

.nav .social {
	text-align: right;
	padding-right: 20px;
}

.nav .social a {
	margin-left: 10px;
}

.nav-item {
	margin: 20px 20px;
}

.nav-item.social img {
	width: 20px;
}

.nav-item.current a {
	color: white;
	border-bottom: 2px solid white;
}

/* ----------------------------------------
 * Slideshow
 * ---------------------------------------- */

.slideshow {
	position: relative;
	width: 100%;
	padding-top: calc(56% * 0.8);
	background: black;
	overflow: hidden;
}

.slideshow .slide {
	position: absolute;
  top: 0;
  left: 10%;
  width: 80%;
  padding-top: calc(56% * 0.8);
	background-size: cover;
	transition: transform 0.3s, opacity 0.4s;
}

.slideshow .slide.in {
	z-index: 10;
}

.slideshow .slide.out-left {
	opacity: 0;
	transform: translateX(-110%);
	z-index: 0;
}

.slideshow .slide.out-right {
	opacity: 0;
	transform: translateX(110%);
	z-index: 0;
}

.slideshow .slide.prev {
	transform: translateX(-100%);
	opacity: 0.2;
	z-index: 1;
}

.slideshow .slide.next {
	transform: translateX(100%);
	opacity: 0.2;
	z-index: 1;
}

/* ----------------------------------------
 * Angles
 * ---------------------------------------- */

.topleft,
.topright,
.bottomright,
.bottomleft {
	position: absolute;
	width: 2vw;
	height: 2vw;
}

.topleft {
	top: 3vw;
	left: 6vw;
}

.topright {
	top: 3vw;
	right: 6vw;
}

.bottomright {
	bottom: 3vw;
	right: 6vw;
}

.bottomleft {
	bottom: 3vw;
	left: 6vw;
}

.bottom {
	position: absolute;
	width: 25vw;
	bottom: -1vw;
	left: 15vw;
}

/* ----------------------------------------
 * Subhead
 * ---------------------------------------- */

.subhead {
	display: flex;
	height: 80px;
}

.subhead h2 {
	display: inline-block;
	height: 80px;
	padding-right: 40px;
	line-height: 80px;
	margin: 0;
}

.subhead .left,
.subhead .right {
	/*flex: 1;*/
	width: calc((100% - 800px) / 2);
}

.subhead .center {
	width: 800px;
	margin: 0 auto;
}

/* ----------------------------------------
 * Main content
 * ---------------------------------------- */

.content {
	width: 100%;
	max-width: 800px;
	margin: 0 auto;
	padding: 2vw 0;
	color: #522359;
	flex: 1;
}

.content.dark {
	color: white;
}

.two-column {
	display: flex;
	justify-content: center;
}

.two-column figure {
	width: 200px;
	margin: 20px;
}

.two-column figure img {
	max-width: 100%;
}

.two-column figcaption {
	text-align: center;
	margin-top: 10px;
}

.three-column {
	display: flex;
	justify-content: center;
}

.three-column figure {
	width: 200px;
	margin: 20px;
}

.three-column figure img {
	max-width: 100%;
}

.three-column figcaption {
	text-align: center;
	margin-top: 10px;
}

/* ----------------------------------------
 * Strip
 * ---------------------------------------- */

.strip {
	display: flex;
	justify-content: center;
	align-items: center;
	text-align: center;
	width: 100%;
	font-weight: 600;
	padding: 2rem;
}

.strip p {
	margin: 0;
}

.strip a {
	text-decoration: none;
}

.strip.social img {
	width: 25px;
}

.strip.social a {
	margin: 0 10px;
}

.what {
	position: relative;
}

.wave {
	position: absolute;
	width: 350px;
	top: 20%;
	right: 20px;
}

/* ----------------------------------------
 * Sections
 * ---------------------------------------- */

section {
	color: #522359;
	padding: 2rem;
}

section.slim {
	padding: 0.8rem 2rem;
}

section > p {
	max-width: 90%;
	margin: 2rem auto;
}

section > h4 {
	max-width: 90%;
	margin: 2rem auto;
	font-size: 1.2rem;
	line-height: 1.6rem;
}

.section {

}

.section h3 {
	font-weight: 300;
	text-transform: none;
	color: white;
	line-height: 140%;
	font-size: 1.6rem;
	margin: 2rem auto;
}

@media (min-width: 750px) {
	.section h3.fixed-height {
		height: 14rem;
	}
}

.section.split {
	padding: 0;
	display: grid;
	grid-template-columns: 1fr 1fr;
}

.section.split-3 {
	padding: 0;
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
}


.section.split > div:not(.no-pad),
.section.split-3 > div:not(.no-pad) {
	padding: 30px;
}

/* ----------------------------------------
 * Contact
 * ---------------------------------------- */

.contact {
	display: flex;
	justify-content: center;
	align-items: center;
}

.contact .button {
	margin: 40px 20px 50px 20px;
}

/* ----------------------------------------
 * Buttons
 * ---------------------------------------- */

.button {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	text-align: center;
	padding: 1rem;
	text-transform: uppercase;
/*	box-shadow: 10px 10px 0px 0px #00BFE1;*/
	transition: transform 0.25s ease;
	transform: scale(1.01);
	text-decoration: none;
	color: white;
	font-size: 1rem;
}

.button.small {
	padding: 0.5rem 1rem;
	font-size: 0.8rem;
}

.button.large {
	width: 450px;
	font-size: 28px;
	line-height: 32px;
	height: 140px;
}

.button:hover {
	cursor: pointer;
	transform: scale(1.07);
}

.button.text-light {
	color: white;
}

/* ----------------------------------------
 * Footer
 * ---------------------------------------- */

.footer {
	position: relative;
	font-size: 14px;
	color: white;
	background: #522359;
	height: 4rem;
	display: flex;
	justify-content: center;
	align-items: center;
}

/* ----------------------------------------
 * Press
 * ---------------------------------------- */

.press-item {
	padding: 2rem 0 1rem 0;
}

.press-item .pad-left {
	padding-left: 5.8rem;
	padding-right: 2rem;
}

.press-item .pad-right {
	padding-right: 5.8rem;
	padding-left: 2rem;
}

.press-item h2 {
	color: #522359;
	line-height: 120%;
	font-size: 1.1rem;
}

.press-item figure {
	padding: 0;
	margin: 2rem 0 2rem 0;
	width: 100%;
}

.press-item figure img {
	width: 100%;
}

.press-item figcaption {
	margin-top: 1rem;
	font-size: 0.8rem;
}

/* ----------------------------------------
 * Team
 * ---------------------------------------- */
 
.team {
	padding: 2rem;
}

.team.pad-left {
	padding-left: 5.8rem;
}

.team.pad-right {
	padding-right: 5.8rem;
}

.logos {
	color: white;
	height: 4rem;
	display: flex;
	justify-content: center;
	align-items: center;
}

.logos div {
	width: 7rem;
	height: 4rem;
	margin: 1rem;
/*	background: rgba(0,0,0,0.2);*/
	text-transform: uppercase;
	display: flex;
	justify-content: center;
	align-items: center;
}

.logos img {
	width: 100%;
}


/* ----------------------------------------
 * Hide
 * ---------------------------------------- */

.hide { 
  position: absolute; 
  overflow: hidden; 
  clip: rect(0 0 0 0); 
  height: 1px; width: 1px; 
  margin: -1px; padding: 0; border: 0; 
}


/* ----------------------------------------
 * Media queries tablet
 * ---------------------------------------- */

@media (max-width: 1024px) {

	.nav {
		font-size: 12px;
	}

	.nav .social img {
		width: 12px;
	}
	
	.title {
		height: 25vw;
	}

	.title .title-graphic {
		width: 40vw;
	}

	.topleft,
	.topright,
	.bottomright,
	.bottomleft {
/*		position: absolute;
		width: 2vw;
		height: 2vw;*/
	}

	.button.large {
		width: 300px;
		height: 100px;
		font-size: 18px;
	}

	.strip.social img {
		width: 20px;
	}

	.subhead .left,
	.subhead .right {
		display: none;
	}

	.subhead h2 {
		padding: 0 20px;
	}

	.content {
		width: auto;
		padding: 20px;
	}
}

/* ----------------------------------------
 * Join roundel
 * ---------------------------------------- */

@keyframes rotate {
	from {
		transform: rotate(0);
	}

	to {
		transform: rotate(360deg);
	}
}

.join-roundel {
	position: absolute;
	top: 4rem;
	right: 3rem;
	width: 10rem;
	animation: rotate 20s infinite linear;
}

.join-roundel:hover {
	animation-play-state: paused;
}

.join-roundel img {
	transition: all 0.3s;
}
.join-roundel:hover img {
	transform: scale(1.05);
}

/* ----------------------------------------
 * Event list
 * ---------------------------------------- */

.event-list {
	max-width: 80%;
	margin: auto;
	margin-bottom: 10rem;
}

.event-item + .event-item {
	margin-top: 2rem;
/*	padding-top: 2rem;*/
}

.event-item + .event-item:before {
	content: '';
	display:block;
	border-top: 1px solid #522359;
	height: 2rem;
}

.event-header {
	display: grid;
	grid-template-columns: 5fr 5fr 1fr;
}

.event-toggle {
	background-image: url('images/chevron-down.svg');
	background-repeat: no-repeat;
	background-size: 2rem;
	background-position: center;
}

.event-item.open .event-toggle {
	background-image: url('images/crossmark-thin.svg');
	background-size: 1.4rem;
}

.event-date {
	font-size: 1.6rem;
	display: flex;
	align-items: center;
}

.event-heading {
	font-weight: 700;
	text-transform: uppercase;
	display: flex;
	align-items: center;
}

.event-subtitle {
	color: #FF00FF;
}

.event-content {
	display: grid;
	grid-template-columns: 5fr 5fr 1fr;
}

.event-content {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.25s;
}

.event-item.open .event-content {
	max-height: 500px;
}

/* ----------------------------------------
 * Media queries mobile
 * ---------------------------------------- */

@media (max-width: 750px) {
	html {
		font-size: 16px;
	}

	.site {
		margin-left: 0;
	}

	.nav-container {
		position: absolute;
		width: 100%;
		height: 50px;
	}

	.nav {
		width: 100vw;
		height: 100vh;
		left: 0;
		transform: translateX(-100%);
		opacity: 0;
	}

	.nav-container.open .nav {
		transform: translateX(0);
		opacity: 1;
	}

	.nav-items {
		margin: auto;
	}

	.nav-item {
		font-size: 20px;
		line-height: 20px;
		margin: 20px;
		text-align: center;
	}

	.nav-toggle img {
		width: 24px;
	}

	.section.split,
	.section.split-3 {
		display: block;
	}

	.block {
		padding: 2rem;
	}

	h1:after {
		display: none;
	}

	h1 {
		height: 24vw;
	}

	section > p,
	section > h4 {
		max-width: none;
	}

	.event-list {
		max-width: none;
	}

	.footer {
		padding: 20px;
		height: auto;
	}

	.footer > div {
		text-align: center;
	}

	.block {
		padding: 20px 20px !important;
	}

	.block-content {
		top: auto;
		left: auto;
		position: relative;
		padding: 0;
	}

	.layout.split-1-3 {
		display: block;
	}

	.team.pad-left,
	.team.pad-right {
		padding: 20px
	}

	.join-roundel {
    top: 3rem;
    left: 1rem;
    width: 7rem;
	}
}

/* ----------------------------------------
 * Media queries small mobile
 * ---------------------------------------- */

@media (max-width: 500px) {
	.title .title-graphic {
		width: 70vw;
	}

	.site {
		margin-top: 50px;
	}


	.nav .padding {
		display: none;
	}

	.button.large {
		font-size: 14px;
		height: 60px;
		width: 200px;
		line-height: 16px;
	}

	.footer img {
		display: none;
	}

	.wave {
		display: none;
	}

	.subhead h2 {
		font-size: 18px;
	}
}