/*
Theme Name: TimSerck
Description: Tim Serck Portfolio
Version: 1.0
*/

/* =========================================================
   RESET
========================================================= */

* {
	box-sizing: border-box;
}

html {
	margin: 0;
	padding: 0;
	scroll-behavior: auto;
}

body {
	margin: 0;
	padding: 0;
	background: #f5f5f3;
	color: #111;
	font-family: Arial, Helvetica, sans-serif;
	font-weight: 400;
	-webkit-font-smoothing: antialiased;
}

img {
	max-width: 100%;
}

button,
input,
textarea {
	font-family: inherit;
}

a {
	color: inherit;
}


/* =========================================================
   HEADER
========================================================= */

.site-header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 1000;

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

	padding: 28px 40px;

	color: #fff;

	mix-blend-mode: difference;

	pointer-events: none;
}

.site-header a {
	pointer-events: auto;
}

.site-header__logo {
	color: #fff;

	font-size: 12px;
	font-weight: 500;

	letter-spacing: .08em;

	text-decoration: none;
	white-space: nowrap;
}

.site-header__nav {
	display: flex;
	align-items: center;
	gap: 30px;
}

.site-header__nav a {
	position: relative;

	color: #fff;

	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: .12em;

	text-decoration: none;

	opacity: .75;

	transition: opacity .3s ease;
}

.site-header__nav a:hover {
	opacity: 1;
}

.site-header__nav a::after {
	content: "";

	position: absolute;

	left: 0;
	bottom: -5px;

	width: 100%;
	height: 1px;

	background: currentColor;

	transform: scaleX(0);
	transform-origin: right center;

	transition: transform .35s ease;
}

.site-header__nav a:hover::after {
	transform: scaleX(1);
	transform-origin: left center;
}

.site-header__status {
	display: flex;
	align-items: center;
	gap: 8px;

	color: #fff;

	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: .1em;

	white-space: nowrap;
}

.site-header__dot {
	width: 6px;
	height: 6px;

	border-radius: 50%;

	background: #72d572;

	box-shadow:
		0 0 0 3px rgba(114, 213, 114, .15);
}


/* =========================================================
   ABOUT
========================================================= */

.about {
	position: relative;

	display: grid;
	grid-template-columns: 1fr 1fr;

	min-height: 100vh;

	background: #f5f5f3;
	color: #111;
}

.about__img {
	position: relative;

	min-height: 100vh;

	overflow: hidden;

	background: #ddd;
}

.about__img img {
	display: block;

	width: 100%;
	height: 100%;

	object-fit: cover;
}

.about__description {
	position: relative;

	display: flex;
	align-items: center;

	min-height: 100vh;

	padding: 120px 8vw 80px;
}

.about__description--center {
	width: 100%;
	max-width: 550px;
}

.about__eyebrow {
	display: block;

	margin-bottom: 30px;

	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: .15em;

	opacity: .5;
}

.about__description h1 {
	margin: 0 0 35px;

	font-size: clamp(60px, 7vw, 110px);

	line-height: .82;

	font-weight: 400;

	letter-spacing: -.07em;
}

.about__description p {
	max-width: 460px;

	margin: 0;

	font-size: 15px;
	line-height: 1.7;
}

.about__description abbr {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.social {
	display: flex;
	gap: 25px;

	margin: 45px 0 0;
	padding: 0;

	list-style: none;
}

.social a {
	color: #111;

	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: .1em;

	text-decoration: none;

	border-bottom: 1px solid #111;

	padding-bottom: 5px;
}

.about__close {
	position: absolute;

	left: 8vw;
	bottom: 35px;

	display: flex;
	align-items: center;
	gap: 12px;

	padding: 0;

	border: 0;

	background: none;

	color: #111;

	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: .12em;

	cursor: pointer;
}

.about__close span {
	font-size: 16px;

	transition: transform .3s ease;
}

.about__close:hover span {
	transform: translateY(5px);
}


.about h1 {
	margin-bottom: 2rem;
}

.about p + p {
	margin-top: 1.5rem;
}

/* =========================================================
   WORKS
========================================================= */

.works {
	position: relative;

	background: #f5f5f3;
}

.works__heading {
	position: relative;

	z-index: 10;

	padding: 15vh 7vw 10vh;

	background: #f5f5f3;

	color: #111;
}

.works__eyebrow {
	display: block;

	margin-bottom: 25px;

	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: .15em;

	opacity: .5;
}

.works__heading h2 {
	margin: 0;

	font-size: clamp(70px, 11vw, 160px);

	line-height: .78;

	font-weight: 400;

	letter-spacing: -.08em;
}

.works__label {
	display: block;

	margin-top: 35px;

	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: .15em;

	opacity: .5;
}


/* =========================================================
   WORKS STAGE
========================================================= */

.works__stage {
	position: relative;

	height: calc(100vh * var(--project-count, 1));

	background: #111;
}

.works__viewport {
	position: sticky;

	top: 0;

	width: 100%;
	height: 100vh;

	overflow: hidden;

	background: #111;
}


/* =========================================================
   RIGHT NAVIGATION
========================================================= */

.works__navigation {
	position: absolute;

	top: 50%;
	right: 40px;

	z-index: 300;

	display: flex;
	flex-direction: column;
	align-items: flex-end;

	gap: 14px;

	transform: translateY(-50%);
}

.works__navigation-item {
	position: relative;

	display: flex;
	align-items: center;
	gap: 10px;

	min-width: 160px;

	padding: 0;

	border: 0;

	background: transparent;

	color: rgba(255,255,255,.4);

	font-family: inherit;
	font-size: 9px;
	letter-spacing: .08em;

	text-align: right;

	cursor: pointer;

	transition:
		color .35s ease,
		opacity .35s ease;
}

.works__navigation-number {
	display: block;

	opacity: .55;

	transition: opacity .35s ease;
}

.works__navigation-title {
	display: block;

	white-space: nowrap;

	text-transform: uppercase;

	opacity: 0;

	transform: translateX(10px);

	transition:
		opacity .35s ease,
		transform .35s ease;
}

.works__navigation-item:hover {
	color: #fff;
}

.works__navigation-item:hover
.works__navigation-title {
	opacity: 1;
	transform: translateX(0);
}

.works__navigation-item.is-active {
	color: #fff;
}

.works__navigation-item.is-active
.works__navigation-number {
	opacity: 1;
}

.works__navigation-item.is-active
.works__navigation-title {
	opacity: 1;
	transform: translateX(0);
}

.works__navigation-item::after {
	content: "";

	position: absolute;

	right: 0;
	bottom: -5px;

	width: 0;
	height: 1px;

	background: #fff;

	transition: width .35s ease;
}

.works__navigation-item.is-active::after {
	width: 100%;
}


/* =========================================================
   PROJECT
========================================================= */

.project {
	position: absolute;

	inset: 0;

	width: 100%;
	height: 100%;

	overflow: hidden;

	background: var(--project-color);

	visibility: hidden;
	opacity: 0;

	pointer-events: none;

	z-index: 1;

	/*
		Clip-path is controlled by JS.
	*/
	clip-path: inset(100% 0 0 0);
	-webkit-clip-path: inset(100% 0 0 0);

	will-change:
		clip-path,
		opacity;
}

.project.is-active {
	visibility: visible;
	opacity: 1;

	pointer-events: auto;

	z-index: 20;
}


/* =========================================================
   PROJECT IMAGE
========================================================= */

.project__image {
	position: absolute;

	inset: 0;

	width: 100%;
	height: 100%;

	overflow: hidden;

	background: var(--project-color);

	pointer-events: none;
}

.project__image img {
	display: block;

	width: 100%;
	height: 100%;

	object-fit: cover;

	transform: scale(1.08);

	filter:
		saturate(.7)
		brightness(.9);

	will-change:
		transform,
		filter;

	pointer-events: none;
}


/* =========================================================
   COLOR
========================================================= */

.project__color {
	position: absolute;

	inset: 0;

	z-index: 2;

	background: var(--project-color);

	opacity: .22;

	mix-blend-mode: color;

	pointer-events: none;
}


/* =========================================================
   OVERLAY
========================================================= */

.project__overlay {
	position: absolute;

	inset: 0;

	z-index: 5;

	pointer-events: none;

	background:
		linear-gradient(
			90deg,
			rgba(0,0,0,.35) 0%,
			rgba(0,0,0,.12) 55%,
			rgba(0,0,0,0) 100%
		);
}


/* =========================================================
   PROJECT CONTENT
========================================================= */

.project__content {
	position: absolute;

	left: 7vw;
	bottom: 12vh;

	z-index: 30;

	width: min(650px, 82vw);

	color: #fff;

	pointer-events: none;
}

.project__text {
	clip-path: inset(100% 0 0 0);
	-webkit-clip-path: inset(100% 0 0 0);

	transform: translateY(50px);

	opacity: 0;

	visibility: hidden;

	will-change:
		clip-path,
		transform,
		opacity;
}

.project.is-active .project__text {
	pointer-events: auto;
}

.project__number {
	display: block;

	margin-bottom: 20px;

	font-size: 10px;
	letter-spacing: .1em;

	opacity: .7;
}

.project__category {
	display: block;

	margin-bottom: 18px;

	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: .14em;

	opacity: .7;
}

.project__content h2 {
	margin: 0 0 25px;

	font-size: clamp(55px, 8vw, 120px);

	line-height: .82;

	font-weight: 400;

	letter-spacing: -.07em;
}

.project__description {
	max-width: 450px;

	font-size: 14px;

	line-height: 1.6;

	color: rgba(255,255,255,.82);
}

.project__description p {
	margin: 0;
}

.project__link {
	display: inline-block;

	position: relative;

	z-index: 50;

	margin-top: 30px;

	padding-bottom: 8px;

	border-bottom: 1px solid rgba(255,255,255,.6);

	color: #fff;

	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: .12em;

	text-decoration: none;

	pointer-events: auto;

	cursor: pointer;
}

.project__link:hover {
	border-color: #fff;
}


/* =========================================================
   PROGRESS
========================================================= */

.works__progress {
	position: absolute;

	left: 7vw;
	right: 7vw;
	bottom: 28px;

	z-index: 400;

	display: flex;
	align-items: center;

	gap: 12px;

	color: #fff;

	font-size: 10px;
	letter-spacing: .08em;

	pointer-events: auto;
}

.works__nav-button {
	min-width: 20px;

	padding: 0;

	border: 0;

	background: transparent;

	color: #fff;

	font: inherit;
	font-size: 10px;

	cursor: pointer;
}

.works__total {
	min-width: 20px;

	opacity: .5;
}


/* =========================================================
   PROGRESS BAR
========================================================= */

.progress-bar {
	display: flex;

	flex: 1;

	gap: 4px;

	height: 3px;

	margin: 0 10px;
}

.progress-bar .fill {
	position: relative;

	flex: 1;

	width: auto;
	height: 3px;

	padding: 0;

	border: 0;

	background: rgba(255,255,255,.22);

	cursor: pointer;

	overflow: hidden;
}

.progress-bar .fill::after {
	content: "";

	position: absolute;

	top: 0;
	left: 0;

	width: 100%;
	height: 100%;

	background: #fff;

	transform:
		scaleX(var(--progress,0));

	transform-origin: left center;
}

.progress-bar .fill.is-complete::after {
	transform: scaleX(1);
}


/* =========================================================
   CONTACT
========================================================= */

.contact {
	position: relative;

	display: grid;
	grid-template-columns: 1fr 1fr;

	min-height: 100vh;

	background: #f5f5f3;

	color: #111;
}

.contact__content {
	position: relative;

	display: flex;
	flex-direction: column;
	justify-content: center;

	padding: 120px 8vw 100px;
}

.contact__eyebrow {
	display: block;

	margin-bottom: 30px;

	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: .15em;

	opacity: .5;
}

.contact__content h2 {
	margin: 0 0 30px;

	font-size: clamp(60px,7vw,110px);

	line-height: .82;

	font-weight: 400;

	letter-spacing: -.07em;
}

.contact__content > p {
	max-width: 450px;

	margin: 0 0 45px;

	font-size: 15px;

	line-height: 1.7;
}


/* =========================================================
   FORM
========================================================= */

.contact__form {
	display: grid;

	gap: 22px;

	width: 100%;
	max-width: 550px;
}

.contact__form label {
	display: flex;
	flex-direction: column;
	gap: 9px;

	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: .12em;
}

.contact__form input,
.contact__form textarea {
	width: 100%;

	padding: 12px 0;

	border: 0;
	border-bottom: 1px solid rgba(0,0,0,.35);

	outline: none;

	background: transparent;

	color: #111;

	font-family: inherit;
	font-size: 14px;
}

.contact__form input:focus,
.contact__form textarea:focus {
	border-color: #111;
}

.contact__form textarea {
	min-height: 90px;

	resize: vertical;
}

.contact__form button {
	justify-self: start;

	margin-top: 8px;

	padding: 10px 0;

	border: 0;
	border-bottom: 1px solid #111;

	background: transparent;

	color: #111;

	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: .12em;

	cursor: pointer;
}


/* =========================================================
   CONTACT IMAGE
========================================================= */

.contact__img {
	position: relative;

	min-height: 100vh;

	overflow: hidden;

	background: #ddd;
}

.contact__img img {
	display: block;

	width: 100%;
	height: 100%;

	object-fit: cover;
}


/* =========================================================
   FOOTER
========================================================= */

.site-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;

	padding: 30px 40px;

	background: #f5f5f3;

	color: #111;

	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: .1em;
}

.site-footer__left {
	opacity: .5;
}

.site-footer__right a {
	color: #111;

	text-decoration: none;
}

.site-footer__right a:hover {
	text-decoration: underline;
	text-underline-offset: 5px;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 800px) {

	.site-header {
		padding: 22px 20px;
	}

	.site-header__nav {
		display: none;
	}

	.site-header__status {
		font-size: 8px;
	}


	.about {
		display: block;
	}

	.about__img {
		height: 50vh;
		min-height: 0;
	}

	.about__description {
		min-height: 50vh;

		padding:
			80px
			7vw
			100px;
	}

	.about__description h1 {
		font-size: 16vw;
	}

	.about__close {
		left: 7vw;
		bottom: 30px;
	}


	.works__heading {
		padding:
			13vh
			7vw
			9vh;
	}

	.works__heading h2 {
		font-size: 18vw;
	}


	.works__stage {
		height: calc(100vh * var(--project-count,1));
	}


	.works__navigation {
		top: auto;

		right: 7vw;
		bottom: 58px;

		flex-direction: row;
		align-items: center;

		gap: 12px;

		transform: none;
	}

	.works__navigation-item {
		min-width: auto;

		width: auto;
		height: 20px;
	}

	.works__navigation-title {
		display: none;
	}


	.project__content {
		left: 7vw;
		bottom: 14vh;

		width: 82vw;
	}

	.project__content h2 {
		font-size: 16vw;
	}

	.project__description {
		font-size: 13px;
	}


	.works__progress {
		left: 7vw;
		right: 7vw;
		bottom: 22px;
	}

	.progress-bar {
		margin: 0 5px;
	}


	.contact {
		display: flex;
		flex-direction: column;
	}

	.contact__img {
		order: -1;

		width: 100%;
		height: 50vh;

		min-height: 0;
	}

	.contact__content {
		min-height: 70vh;

		padding:
			80px
			7vw
			100px;
	}

	.contact__content h2 {
		font-size: 16vw;
	}


	.site-footer {
		padding: 25px 20px;
	}
}

