:root {
	--bg: #f7f7f5;
	--text: #121212;
	--muted: #777875;
	--line: #d9d9d4;
	--max: 1660px;
	--gutter: clamp(24px, 4vw, 64px);
}

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

[hidden] {
	display: none !important;
}

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

body {
	font-family: "Inter", Arial, sans-serif;
	background: var(--bg);
	color: var(--text);
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}

body.locked {
	overflow: hidden;
}

img {
	width: 100%;
	display: block;
	object-fit: cover;
	pointer-events: none;
	user-select: none;
	-webkit-user-drag: none;
	-webkit-touch-callout: none;
}

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

.container {
	width: min(var(--max), calc(100% - (var(--gutter) * 2)));
	margin-inline: auto;
}

.eyebrow {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: .11em;
	color: #5e5f5c;
}

.text-link {
	position: relative;
	display: inline-block;
	margin-top: 34px;
	font-size: 12px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: .09em;
	padding-bottom: 12px;
}

.text-link::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 78px;
	height: 1px;
	background: currentColor;
	transition: width .25s ease;
}

.text-link:hover::after {
	width: 100%;
}

.link-button {
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: .09em;
	cursor: pointer;
}

.link-button:hover {
	opacity: .55;
}

header {
	padding: 32px 0;
}

.nav {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	align-items: center;
	gap: 20px;
}

.brand {
	grid-column: 2;
	justify-self: center;
	display: inline-flex;
	align-items: baseline;
	justify-content: center;
	gap: 14px;
	font-size: clamp(28px, 2.3vw, 36px);
	font-weight: 600;
	letter-spacing: .18em;
	line-height: 1.1;
	text-align: center;
	white-space: nowrap;
}

.brand-degree {
	font-size: .6em;
	font-weight: 400;
	letter-spacing: .02em;
	white-space: nowrap;
}

.nav nav {
	grid-column: 3;
	justify-self: end;
}

.menu {
	display: flex;
	justify-content: flex-end;
	gap: clamp(14px, 1.8vw, 30px);
	list-style: none;
}

.menu a {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: .1em;
}

.menu a:hover {
	opacity: .55;
}

.hero {
	display: grid;
	grid-template-columns: minmax(380px, 1.05fr) minmax(320px, .95fr);
	min-height: 820px;
	border-bottom: 1px solid var(--line);
}

.hero-copy {
	padding: clamp(96px, 11vw, 168px) clamp(36px, 7vw, 110px) 72px 4%;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
}

.hero h1 {
	max-width: 560px;
	font-size: clamp(58px, 5.6vw, 92px);
	line-height: 1.02;
	font-weight: 300;
	letter-spacing: -.05em;
	white-space: pre-line;
}

.hero p {
	max-width: 520px;
	margin-top: 34px;
	color: #333;
	font-size: 18px;
	line-height: 1.75;
}

.hero-image {
	min-height: 820px;
	overflow: hidden;
}

.hero-image img {
	height: 100%;
	min-height: 820px;
	filter: saturate(.72);
	transition: transform .8s ease;
}

.projects {
	padding: 70px 0 80px;
}

.section-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 24px;
	margin-bottom: 50px;
}

.project-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: clamp(28px, 3.5vw, 46px);
}

.project-card {
	cursor: pointer;
}

.project-card:focus-visible {
	outline: 1px solid var(--text);
	outline-offset: 8px;
}

.project-card figure {
	overflow: hidden;
	aspect-ratio: 1 / 1.04;
	background: #e8e8e5;
}

.project-card img {
	height: 100%;
	filter: saturate(.72);
	transition: transform .55s ease, filter .55s ease;
}

.project-title {
	margin-top: 24px;
	font-size: 16px;
	font-weight: 500;
	letter-spacing: .02em;
	text-transform: uppercase;
}

.project-meta {
	display: flex;
	gap: 30px;
	margin-top: 16px;
	color: #888986;
	font-size: 12px;
	text-transform: uppercase;
}

.about,
.contact {
	padding: clamp(55px, 8vw, 100px) 0;
	border-bottom: 1px solid var(--line);
}

.about {
	border-top: 1px solid var(--line);
}

.about h2,
.contact h2 {
	margin: 18px 0 24px;
	font-size: clamp(32px, 4vw, 48px);
	font-weight: 300;
	letter-spacing: -.035em;
	line-height: 1.12;
}

.about p,
.contact p {
	max-width: 720px;
	font-size: 18px;
	color: #333;
	line-height: 1.7;
}

.about p + p {
	margin-top: 20px;
}

.contact p + p {
	margin-top: 18px;
}

.about p:empty,
.contact p:empty {
	display: none;
}

.about p a {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.contact-details {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
	gap: 30px;
	margin-top: 40px;
}

.contact-details div {
	padding-top: 20px;
	border-top: 1px solid var(--line);
}

.contact-details p {
	margin-top: 10px;
	overflow-wrap: anywhere;
}

.skills-block {
	max-width: 760px;
	margin-top: 52px;
}

.skills-title {
	margin-bottom: 20px;
	font-size: clamp(22px, 2.2vw, 28px);
	font-weight: 300;
	letter-spacing: -.02em;
	line-height: 1.2;
	color: #222;
}

.skills-list {
	display: grid;
	gap: 18px;
}

.skill-item {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 18px;
	padding-top: 16px;
	border-top: 1px solid var(--line);
}

.skill-name {
	font-size: 18px;
	line-height: 1.5;
	color: #333;
}

.skill-rating {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	flex-shrink: 0;
}

.skill-rating .dot {
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: #d2d2cd;
	display: inline-block;
}

.skill-rating .dot.filled {
	background: #3b3b39;
}

.skill-score {
	margin-left: 4px;
	font-size: 14px;
	color: #666;
}

footer {
	min-height: 105px;
	display: flex;
	align-items: center;
}

.footer-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: .09em;
}

.icon-btn {
	width: 44px;
	height: 44px;
	display: grid;
	place-items: center;
	border: 0;
	background: none;
	color: inherit;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
}

.modal {
	position: fixed;
	inset: 0;
	z-index: 50;
	display: flex;
	justify-content: center;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 4vh 0;
	background: rgba(18, 18, 18, .55);
}

.modal-panel {
	position: relative;
	width: min(1180px, calc(100% - 32px));
	margin: auto 0;
	padding: clamp(28px, 4vw, 56px);
	background: var(--bg);
}

.modal-close {
	position: absolute;
	top: 12px;
	right: 12px;
}

.modal-head h2 {
	padding-right: 40px;
	font-weight: 300;
	font-size: clamp(30px, 3.4vw, 48px);
	line-height: 1.1;
	letter-spacing: -.035em;
}

.modal-head p {
	margin-top: 14px;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: .1em;
	color: var(--muted);
}

.gallery {
	margin-top: 40px;
	column-width: 300px;
	column-gap: 16px;
}

.shot {
	display: block;
	width: 100%;
	margin: 0 0 16px;
	padding: 0;
	border: 0;
	overflow: hidden;
	background: #e8e8e5;
	break-inside: avoid;
	cursor: zoom-in;
}

.shot img {
	height: auto;
	filter: saturate(.8);
	transition: transform .5s ease, filter .5s ease;
}

.viewer {
	position: fixed;
	inset: 0;
	z-index: 60;
	display: flex;
	align-items: center;
	justify-content: center;
	overscroll-behavior: contain;
	background: #0d0d0d;
	color: #fff;
}

.viewer-stage {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 64px 76px;
}

.viewer-stage img {
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.viewer .icon-btn {
	position: absolute;
	opacity: .7;
	transition: opacity .2s ease;
}

.viewer .icon-btn:hover {
	opacity: 1;
}

.viewer-close {
	top: calc(10px + env(safe-area-inset-top));
	right: 10px;
}

.viewer-full {
	top: calc(10px + env(safe-area-inset-top));
	right: 58px;
	font-size: 22px;
}

.viewer-prev,
.viewer-next {
	top: 50%;
	transform: translateY(-50%);
	font-size: 44px;
}

.viewer-prev {
	left: 12px;
}

.viewer-next {
	right: 12px;
}

.viewer-count {
	position: absolute;
	left: 0;
	right: 0;
	bottom: calc(18px + env(safe-area-inset-bottom));
	text-align: center;
	font-size: 11px;
	letter-spacing: .12em;
	opacity: .6;
}

@media (max-width: 1150px) {
	.nav {
		grid-template-columns: 1fr;
	}

	.brand {
		grid-column: 1;
		grid-row: 1;
		flex-wrap: wrap;
		white-space: normal;
	}

	.nav nav {
		grid-column: 1;
		grid-row: 2;
		justify-self: center;
	}

	.menu {
		flex-wrap: wrap;
		justify-content: center;
	}
}

@media (max-width: 900px) {
	header {
		padding: 24px 0;
	}

	.brand {
		gap: 10px;
		font-size: clamp(24px, 5vw, 30px);
		letter-spacing: .12em;
	}

	.hero {
		grid-template-columns: 1fr;
		min-height: auto;
	}

	.hero-copy {
		padding: 84px 0 70px;
		width: min(var(--max), calc(100% - (var(--gutter) * 2)));
		margin-inline: auto;
	}

	.menu a {
		display: inline-block;
		padding: 10px 2px;
	}

	.hero-image {
		min-height: max(52vh, 360px);
	}

	.hero-image img {
		min-height: max(52vh, 360px);
	}

	.project-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.viewer-stage {
		padding: calc(60px + env(safe-area-inset-top)) 0 calc(60px + env(safe-area-inset-bottom));
	}

	.viewer-prev,
	.viewer-next {
		top: auto;
		bottom: calc(6px + env(safe-area-inset-bottom));
		transform: none;
	}
}

@media (max-width: 700px) {
	.skill-item {
		grid-template-columns: 1fr;
		gap: 10px;
	}

	.skill-rating {
		gap: 8px;
	}
}

@media (max-width: 560px) {
	.project-grid {
		grid-template-columns: 1fr;
	}

	.project-card figure {
		aspect-ratio: 4 / 3;
	}

	.hero-copy {
		padding: 56px 0 52px;
	}

	.hero p,
	.about p,
	.contact p,
	.skill-name {
		font-size: 16px;
	}

	.gallery {
		column-count: 2;
		column-width: auto;
		column-gap: 8px;
		margin-top: 28px;
	}

	.shot {
		margin-bottom: 8px;
	}

	.contact-details {
		gap: 22px;
	}
}

@media (max-width: 520px) {
	header {
		padding: 24px 0 20px;
	}

	.nav {
		gap: 16px;
	}

	.brand {
		font-size: clamp(18px, 5vw, 22px);
		letter-spacing: .1em;
	}

	.hero h1 {
		font-size: clamp(42px, 12vw, 56px);
	}

	.section-head {
		align-items: flex-end;
	}

	.project-meta {
		justify-content: space-between;
		gap: 12px;
	}

	.footer-inner {
		align-items: flex-start;
		flex-direction: column;
		padding: 28px 0;
	}

	.modal {
		padding: 0;
	}

	.modal-panel {
		width: 100%;
		min-height: 100%;
		margin: 0;
	}
}

@media (hover: hover) {
	.hero-image:hover img {
		transform: scale(1.018);
	}

	.project-card:hover img {
		transform: scale(1.025);
		filter: saturate(.95);
	}

	.shot:hover img {
		transform: scale(1.03);
		filter: saturate(1);
	}
}

@media print {
	body {
		display: none;
	}
}

.project-card {
	display: block;
}

.project-page {
	padding: 48px 0 90px;
}

.breadcrumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: .09em;
	color: var(--muted);
}

.breadcrumbs a:hover {
	color: var(--text);
}

.project-page h1 {
	margin-top: 28px;
	font-size: clamp(38px, 5vw, 72px);
	font-weight: 300;
	letter-spacing: -.045em;
	line-height: 1.05;
}

.facts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
	gap: 24px;
	margin: 40px 0;
}

.facts div {
	padding-top: 16px;
	border-top: 1px solid var(--line);
}

.facts dt {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: .1em;
	color: var(--muted);
}

.facts dd {
	margin-top: 6px;
	font-size: 16px;
}

.project-text {
	max-width: 760px;
	margin-bottom: 56px;
}

.project-text p {
	font-size: 18px;
	line-height: 1.75;
	color: #333;
}

.project-text p + p {
	margin-top: 18px;
}

.project-text:empty {
	display: none;
}

.project-page .gallery {
	margin-top: 0;
}

.more-projects {
	margin-top: 90px;
	padding-top: 50px;
	border-top: 1px solid var(--line);
}

.more-projects h2 {
	margin-bottom: 36px;
	font-size: 12px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: .11em;
	color: #5e5f5c;
}

.project-page > .text-link {
	margin-top: 60px;
}

.not-found {
	font-size: clamp(32px, 4vw, 48px);
	font-weight: 300;
	letter-spacing: -.035em;
}

h2.eyebrow {
	font-weight: 400;
}

@media (max-width: 560px) {
	.project-page {
		padding-top: 32px;
	}

	.project-text p {
		font-size: 16px;
	}

	.more-projects {
		margin-top: 60px;
	}
}
