:root {
	--bg-light: #f3f3f3;
	--bg-dark: linear-gradient(to bottom, #6a6a6a 0%, #000 100%);
	--text-dark: #111;
	--text-light: #fff;
	--max-width: 1400px;
}

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

html {
	scroll-behavior: smooth;
	overflow-x: hidden;
}

body {
	margin: 0;
	font-family: system-ui, sans-serif;
	line-height: 1.6;
	color: var(--text-dark);
}

img {
	display: block;
	width: 100%;
	height: auto;
}

a {
	text-decoration: none;
	color: inherit;
}

.content-wrap {
	width: 94%;
	max-width: var(--max-width);
	margin: 0 auto;
}

.split-layout,
.portfolio-inner {
	display: flex;
	justify-content: space-between;
	gap: 2rem;
	max-width: var(--max-width);
	margin: 0 auto;
}

.right-align {
	justify-content: flex-end;
	display: flex;
}

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

.section-light {
	background: var(--bg-light);
	padding: 5rem 0;
}

.intro.full-vh {
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
}

.intro.full-vh .split-layout {
	justify-content: center;
}

.intro.full-vh .intro-narrow {
	margin: 0 auto;
	max-width: 46ch;
}

.portfolio {
	background: var(--bg-dark);
	color: var(--text-light);
	padding: 6rem 4vw;
}

.portfolio + .portfolio {
	margin-top: 2px;
}

.project-image-large,
.featured-image {
	border: 2px solid #ffffff;
}

.portfolio.full-vh {
	min-height: 100vh;
	display: flex;
	align-items: center;
}

.portfolio.full-vh .project-image-large {
	width: auto;
	height: auto;
	max-width: 90%;
	max-height: 90vh;
	margin: 0 auto;
}

.featured-image {
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 420px;
	margin: 0 auto;
}

.site-header {
	border-bottom: 1px solid #ddd;
	padding: 2rem 0;
}

.header-inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 94%;
	max-width: var(--max-width);
	margin: 0 auto;
}

.logo {
	width: 80px;
	height: 80px;
}

.logo img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.logo:hover {
	transform: scale(1.1);
}

.portfolio-feature {
	display: flex;
	gap: 2rem;
}

.featured-title {
	writing-mode: vertical-rl;
	text-orientation: mixed;
	letter-spacing: 0.1em;

	font-weight: bold;
}

.featured-title:hover {
	transform: translateX(-6px);
}

.portfolio-nav ul {
	display: flex;
	gap: 3.5rem;
	list-style: none;
	padding: 0;
	margin: 0;
}

.portfolio-nav a {
	writing-mode: vertical-rl;
	cursor: pointer;
	transition: 0.2s ease;
}

.portfolio-nav a:hover {
	opacity: 1;
	transform: translateX(-4px);
}

.interactive {
	transition: 0.2s ease;
}

.interactive:active,
.portfolio-nav a:active {
	opacity: 0.5;
}

.third-panel {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	height: 100vh;
	gap: 1.5rem;
}

.keep-browsing {
	font-weight: bold;
	text-align: center;
	margin-bottom: 2rem;
}

.third-panel ul {
	display: flex;
	gap: 2rem;
	flex-wrap: wrap;
	justify-content: center;
	padding: 0;
	margin: 0;
	list-style: none;
}

.footer {
	padding: 2rem 0;
}

.footer-inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
}

.footer-left {
	flex: 1 1 auto;
}

.footer-right {
	flex: 0 0 auto;
	display: flex;
	justify-content: flex-end;
}

@media (max-width: 1000px) {
	.portfolio-nav ul {
		gap: 2rem;
	}

	.project-image-large {
		max-height: 80vh;
	}
}

@media (max-width: 600px) {
	.portfolio-inner,
	.split-layout {
		flex-direction: column;
		gap: 1.5rem;
	}

	.portfolio-inner.split-layout {
		display: grid;
		grid-template-columns: auto 1fr;
		grid-template-rows: auto auto;
		align-items: start;
		row-gap: 2.5rem;
		column-gap: 0;
	}

	.portfolio {
		padding: 3rem 8vw;
	}

	.portfolio-nav ul {
		flex-direction: row;
		flex-wrap: wrap;
		gap: 2rem;
		justify-content: flex-end;
	}

	.portfolio.full-vh {
		min-height: auto;
		padding: 2rem 8vw;
	}

	.portfolio.full-vh .project-image-large {
		width: 100%;
		max-width: 100%;
		max-height: none;
	}

	.project-image-large {
		max-height: none;
	}

	.featured-image {
		max-height: none;
		width: 100%;
	}

	.featured-title {
		writing-mode: vertical-rl;
		grid-row: 2;
		grid-column: 1;
		justify-self: start;
	}

	.portfolio-feature {
		display: contents;
	}

	.featured-image {
		grid-column: 1 / -1;
		grid-row: 1;
	}

	.portfolio-nav.right-align {
		grid-row: 2;
		grid-column: 2;
		justify-self: end;
	}

	.third-panel {
		height: auto;
		min-height: 60vh;
		padding: 4rem 8vw;
	}

	.section-light {
		padding: 3rem 0;
	}

	.intro.full-vh {
		min-height: auto;
		padding: 4rem 0;
	}

	.site-header {
		padding: 1rem 0;
	}

	.logo {
		width: 60px;
		height: 60px;
	}

	.footer-inner {
		flex-direction: row;
	}

	h1 {
		font-size: 2rem;
	}

	main .section-light,
	main .portfolio {
		text-align: center;
	}
}
