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

* {
	margin: 0;
	padding: 0;
}

:root {
	font-family: "Inter", system-ui, Helvetica, Arial, sans-serif;
}

html {
	font-size: 14px;
	line-height: 1;
	-webkit-text-size-adjust: 100%;
	tab-size: 4;
}

.container {
	max-width: 1024px;
	margin: 0 auto;
	padding-top: 30px;
}

.header {
	background: #fff;
	border-bottom: 3px solid #000;

	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;

	padding: 22px 16px;
	position: sticky;
	top: 0;
	z-index: 999;
}

.branding__title {
	font-weight: 900;
	text-transform: uppercase;
	font-size: 2.86em;
	line-height: 1;
	position: relative;
	text-wrap: nowrap;
}

.branding__title a {
	text-decoration: none;
	color: #000;
}

.branding__title:before {
	content: "";
	background-color: #fef975;
	height: 20px;
	position: absolute;
	bottom: -3px;
	left: -8px;
	right: -8px;
	z-index: -1;
	transition: height 0.1s linear;
}

.branding__title:hover:before {
	height: 30px;
}

.branding__subtitle {
	font-weight: 500;
	font-size: 1em;
	margin-top: 12px;
}

.branding__subtitle a {
	text-decoration: none;
	color: #000;
}

.branding__subtitle a:hover {
	color: blue;
	text-decoration: underline;
}

.nav {
	display: flex;
	flex-direction: row;
}

.nav__item {
	font-weight: 500;
	font-size: 1.29em;
	text-decoration: none;
	color: black;
	position: relative;
}

.nav__item:before {
	content: "";
	height: 15px;
	position: absolute;
	z-index: -1;
	width: 130%;
	top: 50%;
	left: 50%;
	transition: transform 0.15s ease;

	background-color: var(--bg-color);
	transform: translate(-50%, -50%) rotate(var(--rotate-angle)) translate(-50%, 0) scaleX(var(--scale-x, 0%)) scaleY(var(--scale-y, 100%)) translate(50%, 0);
}

.nav__item:hover:before {
	--scale-x: 100%;
}

.nav__item--active:before {
	--scale-x: 100%;
}

.nav__item--active:hover:before {
	--scale-y: 130%;
}

.nav__item--blue {
	--bg-color: #72e9ff;
	--rotate-angle: -13deg;
}

.nav__item--green {
	--bg-color: #72ff9b;
	--rotate-angle: 6deg;
}

.nav__item--red {
	--bg-color: #ff8e72;
	--rotate-angle: -8deg;
}

.nav__item:not(:last-child) {
	margin-right: 40px;
}

.content {
	margin: 60px 16px;
}

.video-embed-container {
	display: flex;
	justify-content: center;
	background: #000;
}

.video-embed-container iframe {
	aspect-ratio: 16 / 9;
	width: 100% !important;
}

.video-embed-container--scope iframe {
	aspect-ratio: 2.35 / 1;
}

.work-section {
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	margin: 0 auto;
	justify-content: center;
}

.work-section:not(:last-child) {
	margin-bottom: 50px;
}

.work-section__figure {
	max-width: 752px;
	width: 100%;
	position: relative;
}

.work-section__description {
	font-size: 1em;
	font-weight: 400;
	color: #444;
	margin: 8px 0 0 0;
	line-height: 1.72;
}

.work-section__figcaption {
	margin-top: 16px;
}

.work-section__facts-row {
	list-style: none;
	display: flex;
	flex-direction: row;
	justify-content: flex-start;
	flex-wrap: wrap;
}

.work-section__facts-item {
	display: inline-block;
	flex-grow: 0;
	flex-shrink: 0;
	transform: skew(-20deg);
	padding: 4px 10px;
	margin-right: 6px;
	margin-bottom: 6px;
}

.work-section__facts-item:last-child {
	margin-right: 0;
}

.work-section__facts-item > * {
	transform: skew(20deg);
}

@media screen and (min-width: 874px) {
	.work-section__facts-item--side-badge {
		writing-mode: vertical-lr;
		transform: rotate(180deg);
		margin-right: 16px;
		padding: 8px 4px;
		position: absolute;
		right: 100%;
		top: 0;
	}

	.work-section__facts-item--side-badge > * {
		transform: none;
	}
}

.work-section__facts-item--black {
	background-color: #000;
	color: #fff;
}

.work-section__facts-item--blue {
	background-color: #72e9ff;
}

.work-section__facts-item--red {
	background-color: #ff8e72;
}

.work-section__facts-item--green {
	background-color: #72ff9b;
}

.work-section__facts-item--purple {
	background-color: #FE75EC;
}

.work-section__facts-item--yellow {
	background-color: #FEF975;
}

.work-section__facts-item--gray {
	background-color: #f3f3f3;
}

.work-section__facts-item--full {
	flex-grow: 1;
	flex-shrink: 0;
}

.work-section__text {
	font-size: 1em;
	line-height: 1.6;
}

.work-section__text strong {
	font-weight: 700;
}

.profile-photo {
	aspect-ratio: 1;
	max-width: 260px;
	float: left;
	margin-right: 28px;
	margin-bottom: 12px;
}

.paragraph {
	font-size: 1em;
	line-height: 1.72;
	margin-bottom: 16px;
	text-align: justify;
}

.clear {
	clear: both;
}

.footer {
	background: #000;
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	padding: 10px 14px;
}

.footer__copyright,
.footer__back-to-top {
	font-weight: 400;
	font-size: 0.8em;
	line-height: 1.15;
	color: #fff;
}

.footer__back-to-top a {
	color: #fff;
}

@media screen and (max-width: 680px) {
	.container {
		padding-top: 0;
	}

	.header {
		flex-direction: column;
		justify-content: center;
		position: relative;
	}

	.branding__title {
		font-size: 2.14em;
	}

	.content {
		margin-top: 16px;
	}

	.branding {
		text-align: center;
	}

	.nav {
		margin-top: 20px;
	}

	.work-section:not(:last-child) {
		margin-bottom: 32px;
	}

	.work-section__facts-item--full {
		padding: 0;
		margin-top: 16px;
		width: 100%;
		background: none;
	}
	
	.profile-photo {
		max-width: 200px;
		float: none;
		margin-right: 0;
		margin-bottom: 12px;
	}

	.footer {
		flex-direction: column;
		justify-content: center;
	}

	.footer__back-to-top {
		margin-top: 8px;
	}
}
