#roles {
	display: flex;
	flex-direction: column;
	
	isolation: isolate;
}
@media (min-width: 900px) {
	#roles {
		row-gap: 65px;
		margin: 100px 0;
	}
}
@media (max-width: 899.99px) {
	#roles {
		row-gap: 35px;
		margin: 75px 0;
	}
}
#roles:not(:first-child) { margin-top: 0; }

/*------------------------------------------------------------------------*/

#roles > header {
	display: grid;
	grid-auto-rows: auto;
	row-gap: 25px;
	column-gap: 50px;
}
#roles > header > * {
	margin: 0;
	font-weight: 500;
}
#roles > header > .hook {
	grid-area: hook;
	line-height: 130%;
}
#roles > header > .title {
	grid-area: title;
}
#roles > header > .title .arrow {
	background-image: url("../../images/icons/arrow.svg");
	background-repeat: no-repeat;
	background-position: bottom right;
}
#roles > header > .title .icon {
	display: inline-block; overflow: hidden;
	margin: -20px 0;
	
	border-radius: 50%;

	vertical-align: middle;
}
#roles > header > .description {
	grid-area: description;
	
	line-height: 130%;
}
@media (min-width: 900px) {
	#roles > header {
		grid-template-areas:
			"hook	description"
			"title	description";
		grid-template-columns: repeat(2, 1fr);
		align-items: flex-end;
	}
	#roles > header > .hook { font-size: 22px; }
	#roles > header > .title {
		line-height: 112%;
		font-size: 56px;
	}
	#roles > header > .title .arrow {
		padding-bottom: 12px;
		background-size: auto 20px;
	}
	#roles > header > .title .icon { height: 65px; width: 65px; }
	#roles > header > .description {
		justify-self: flex-end;
		max-width: 475px;
		
		text-align: right;
		font-size: 22px;
	}
}
@media (max-width: 899.99px) {
	#roles > header {
		grid-template-areas:
			"hook"
			"title"
			"description";
		grid-template-columns: 1fr;
	}
	#roles > header > .hook { font-size: 20px; }
	#roles > header > .title { font-size: 36px; }
	#roles > header > .title .arrow {
		padding-bottom: 6px;
		background-size: auto 10px;
	}
	#roles > header > .title .icon { height: 35px; width: 35px; }
	#roles > header > .description { font-size: 16px; }
}

/*------------------------------------------------------------------------*/

#roles > .roles {
	width: 100%; max-width: 1240px;
	padding: 0 20px;
	margin: 0 auto;
	
	isolation: isolate;
}
#roles > .roles .role {
	position: relative;
	overflow: hidden;
	
	background-color: #364A67;
	border-radius: 30px;
	
	transform-origin: 50% 120%;
	transition-property: transform, opacity;
    transition-timing-function: ease-in-out, ease-out;
}
@media (min-width: 325px) { #roles > .roles .role { width: 285px; } }

#roles > .roles .role:before {
	content: '';
	display: block;
	padding-top: 120%;
}
#roles > .roles .role > .wrapper {
	position: absolute; top: 0; bottom: 0; left: 0;
	width: 100%; overflow: auto;
	
	--mask-image: linear-gradient(to bottom, transparent 40px, #000 70px, #000 calc(100% - 70px), transparent calc(100% - 40px));
	
	-webkit-mask-image: var(--mask-image);
	mask-image: var(--mask-image);
	
	color: #FFF;
}
#roles > .roles .role > .wrapper > .scrollable {
	display: flex; min-height: 100%;
	flex-direction: column;
	justify-content: center;
	align-items: stretch;
	padding: 70px 35px;
	
	text-align: center;
}
#roles > .roles .role > .wrapper > .scrollable > .title {
	margin: 0;
	
	line-height: 100%;
	font-size: 32px;
	font-weight: 600;
}
#roles > .roles .role > .wrapper > .scrollable > .description {
	margin: 20px 0 0;
	
	font-size: 14px;
	font-weight: 500;
}
#roles > .roles .role > .wrapper > .scrollable > .description:before { content: open-quote ' '; }
#roles > .roles .role > .wrapper > .scrollable > .description:after { content: ' ' close-quote; }

/*------------------------------------------------------------------------*/

#roles > footer {
	position: relative; z-index: 1;
	text-align: center;
}