: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;
}

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: 50px;
	height: 50px;
}

.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-inner,
	.split-layout,
	.portfolio-feature {
		flex-direction: column;
	}

	.portfolio-nav ul {
		flex-wrap: wrap;
		gap: 1.5rem;
	}

	.portfolio-nav a,
	.featured-title {
		writing-mode: horizontal-tb;
		opacity: 1;
	}

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

	.footer-inner {
		flex-direction: column;
		align-items: flex-start;
	}

	.footer-right {
		margin-top: 1.5rem;
		justify-content: flex-start;
	}

	.keep-browsing {
		text-align: left;
		margin-bottom: 4rem;
	}
}
