:root{
	--bg: #E6E8E1;
	--ink: #1D2729;
	--soft: #4F5B5C;
	--line: rgba(29, 39, 41, .2);
	--link: #2F6B5E;
	--shale: #3B4A4F;
	--sage: #A9B8A2;
	--sand: #D8CBA4;
	--ochre: #B98A3E;
	--rust: #8A4F34;
	--error: #A3331F;
}
:root[data-theme="dark"]{
	--bg: #151C1D;
	--ink: #E6E8E1;
	--soft: #A9B4B5;
	--line: rgba(230, 232, 225, .2);
	--link: #7FCDB8;
	--error: #FF9B88;
}
*{
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}
html{
	scroll-behavior: smooth;
}
body{
	background-color: var(--bg);
	color: var(--ink);
	font-family: 'Raleway', sans-serif;
	line-height: 1.7;
	transition: background-color .4s, color .4s;
}
a{
	color: inherit;
	text-decoration: none;
}
ul{
	list-style: none;
}
:focus-visible{
	outline: 3px solid var(--link);
	outline-offset: 3px;
}
main:focus{
	outline: none;
}
.skip{
	position: absolute;
	top: -60px;
	left: 16px;
	z-index: 60;
	padding: 10px 18px;
	border-radius: 4px;
	background-color: var(--ink);
	color: var(--bg);
	font-weight: 600;
	transition: top .2s;
}
.skip:focus{
	top: 12px;
}
.container{
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 30px;
}
section{
	padding: 80px 0;
	scroll-margin-top: 20px;
}
h2{
	font-size: 1.8rem;
	font-weight: 800;
	line-height: 1.2;
}
h3{
	font-size: 1.15rem;
	font-weight: 700;
}
.split{
	display: grid;
	grid-template-columns: 220px 1fr;
	grid-gap: 40px;
}

/* header */
.header{
	border-bottom: 1px solid var(--line);
}
.nav{
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px 30px;
	padding: 18px 0;
}
.logo{
	font-weight: 800;
	font-size: 1.2rem;
}
.nav ul{
	display: flex;
	flex-wrap: wrap;
	gap: 8px 28px;
}
.nav ul a{
	font-size: .92rem;
	font-weight: 500;
	color: var(--soft);
	padding-bottom: 2px;
	border-bottom: 2px solid transparent;
	transition: color .2s, border-color .2s;
}
.nav ul a:hover{
	color: var(--ink);
}
.nav ul a.active{
	color: var(--ink);
	border-bottom-color: var(--link);
}
.theme-btn,.copy-btn,.menu-btn{
	padding: 6px 18px;
	border: 1.5px solid var(--ink);
	border-radius: 999px;
	background-color: transparent;
	color: var(--ink);
	font-family: inherit;
	font-size: .85rem;
	font-weight: 600;
	cursor: pointer;
	transition: background-color .2s, color .2s;
}
.theme-btn:hover,.copy-btn:hover,.menu-btn:hover{
	background-color: var(--ink);
	color: var(--bg);
}
.menu-btn{
	display: none;
}

/* hero */
.hero{
	padding: 110px 0 70px;
}
.hero h1{
	font-size: clamp(3rem, 9vw, 7rem);
	font-weight: 900;
	line-height: 1;
	letter-spacing: -.03em;
	margin-bottom: 24px;
}
.role{
	font-size: clamp(1.2rem, 2.6vw, 1.7rem);
	font-weight: 500;
	margin-bottom: 20px;
}
.role-text{
	display: inline-block;
	font-weight: 700;
	color: var(--link);
	animation: fade-up .5s both;
}
.hero p{
	max-width: 560px;
	color: var(--soft);
	font-size: 1.05rem;
}
.actions{
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin: 32px 0 28px;
}
.btn{
	display: inline-block;
	padding: 12px 26px;
	border: 2px solid var(--ink);
	border-radius: 4px;
	font-weight: 600;
	font-size: .92rem;
	transition: background-color .2s, color .2s;
}
.btn-primary{
	background-color: var(--ink);
	color: var(--bg);
}
.btn:hover{
	background-color: var(--link);
	border-color: var(--link);
	color: var(--bg);
}
.socials{
	display: flex;
	gap: 24px;
	font-weight: 600;
	font-size: .92rem;
}
.socials a{
	color: var(--link);
}
.socials a:hover{
	text-decoration: underline;
}

/* depth gauge */
.depth{
	position: fixed;
	top: 0;
	right: 0;
	width: 5px;
	height: 100%;
	z-index: 20;
	pointer-events: none;
}
.depth span{
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(var(--sand), var(--ochre) 25%, var(--sage) 50%, var(--rust) 75%, var(--shale));
	transform: scaleY(var(--prog, 0));
	transform-origin: top;
}


.strata{
	display: flex;
	flex-direction: column;
	height: 170px;
}
.band{
	display: flex;
	align-items: center;
	flex-basis: 0;
	flex-shrink: 1;
	min-height: 0;
	width: 100%;
	padding: 0;
	border: 0;
	overflow: hidden;
	font-family: inherit;
	text-align: left;
	cursor: pointer;
	transform-origin: left;
	animation: lay .9s cubic-bezier(.2, .7, .2, 1) both;
	transition: flex-grow .5s cubic-bezier(.2, .7, .2, 1);
}
.band:focus-visible{
	outline-offset: -3px;
}
.band-label{
	padding: 0 max(30px, calc(50vw - 520px));
	font-size: .95rem;
	font-weight: 600;
	opacity: 0;
	transition: opacity .25s;
}
.band1{
	flex-grow: 22;
	background-color: var(--sand);
	color: #1D2729;
}
.band2{
	flex-grow: 10;
	background-color: var(--ochre);
	color: #1D2729;
	animation-delay: .12s;
}
.band3{
	flex-grow: 30;
	background-color: var(--sage);
	color: #1D2729;
	animation-delay: .24s;
}
.band4{
	flex-grow: 14;
	background-color: var(--rust);
	color: #E6E8E1;
	animation-delay: .36s;
}
.band5{
	flex-grow: 40;
	background-color: var(--shale);
	color: #E6E8E1;
	animation-delay: .48s;
}
.band:focus-visible,.band.open{
	flex-grow: 120;
}
.band:focus-visible .band-label,.band.open .band-label{
	opacity: 1;
}
@media(hover:hover){
	.band:hover{
		flex-grow: 120;
	}
	.band:hover .band-label{
		opacity: 1;
		transition-delay: .15s;
	}
}
.strata-hint{
	padding-top: 10px;
	font-size: .82rem;
	color: var(--soft);
}


.filters{
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 20px;
}
.filter-btn{
	padding: 6px 18px;
	border: 1.5px solid var(--line);
	border-radius: 999px;
	background-color: transparent;
	color: var(--ink);
	font-family: inherit;
	font-size: .85rem;
	font-weight: 500;
	cursor: pointer;
}
.filter-btn:hover{
	border-color: var(--ink);
}
.filter-btn.active{
	background-color: var(--ink);
	border-color: var(--ink);
	color: var(--bg);
}
.project{
	display: grid;
	grid-template-columns: 1fr 1.5fr auto;
	grid-gap: 24px;
	padding: 26px 0;
	border-top: 1px solid var(--line);
	max-height: 400px;
	overflow: hidden;
	transition: opacity .35s, max-height .45s, padding .45s, border-color .45s, visibility 0s;
}
.project.is-hidden{
	opacity: 0;
	max-height: 0;
	padding-top: 0;
	padding-bottom: 0;
	border-color: transparent;
	visibility: hidden;
	pointer-events: none;
	transition: opacity .35s, max-height .45s, padding .45s, border-color .45s, visibility 0s .45s;
}
.project a:focus-visible{
	outline-offset: -2px;
}
.project p{
	color: var(--soft);
	font-size: .95rem;
}
.tags{
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 10px;
}
.tag{
	font-size: .78rem;
	font-weight: 600;
	padding: 2px 10px;
	border: 1px solid var(--line);
	border-radius: 999px;
	color: var(--soft);
}
.links{
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: .9rem;
	font-weight: 600;
}
.links a{
	color: var(--link);
}
.links a:hover{
	text-decoration: underline;
}

/* featured project */
.featured{
	padding: 30px 0 36px;
	border-top: 2px solid var(--ink);
	max-height: 1600px;
	overflow: hidden;
	transition: opacity .35s, max-height .45s, padding .45s, border-color .45s, visibility 0s;
}
.featured.is-hidden{
	opacity: 0;
	max-height: 0;
	padding-top: 0;
	padding-bottom: 0;
	border-color: transparent;
	visibility: hidden;
	pointer-events: none;
	transition: opacity .35s, max-height .45s, padding .45s, border-color .45s, visibility 0s .45s;
}
.featured a:focus-visible{
	outline-offset: 2px;
}
.eyebrow{
	margin-bottom: 6px;
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--link);
}
.featured h3{
	font-size: 1.5rem;
	line-height: 1.25;
}
.featured-lead{
	max-width: 620px;
	margin-top: 14px;
	color: var(--soft);
}
.featured-img{
	display: block;
	width: calc(100% - 6px);
	max-height: 340px;
	margin: 24px 0 6px;
	border: 1.5px solid var(--ink);
	border-radius: 8px;
	box-shadow: 6px 6px 0 var(--link);
	object-fit: cover;
	object-position: top;
}
.story{
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	grid-gap: 28px;
	margin-top: 28px;
}
.story h4{
	margin-bottom: 10px;
	padding-bottom: 8px;
	border-bottom: 2px solid var(--ochre);
	font-size: .85rem;
	font-weight: 800;
	letter-spacing: .06em;
	text-transform: uppercase;
}
.story p{
	color: var(--soft);
	font-size: .95rem;
}
.links.links-row{
	flex-direction: row;
	gap: 24px;
	margin-top: 24px;
}


.preview{
	position: fixed;
	top: 0;
	left: 0;
	width: 280px;
	z-index: 30;
	pointer-events: none;
	opacity: 0;
	transition: opacity .2s;
}
.preview.show{
	opacity: 1;
}
.preview-frame{
	border: 1.5px solid var(--ink);
	border-radius: 8px;
	overflow: hidden;
	background-color: var(--bg);
	box-shadow: 6px 6px 0 var(--link);
}
.preview-bar{
	display: flex;
	align-items: center;
	gap: 5px;
	padding: 7px 10px;
	border-bottom: 1.5px solid var(--ink);
	font-size: .7rem;
	color: var(--soft);
}
.preview-bar i{
	width: 8px;
	height: 8px;
	border: 1.5px solid var(--ink);
	border-radius: 50%;
}
.preview-bar span{
	margin-left: 6px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.preview-mock{
	display: grid;
	grid-gap: 6px;
	height: 150px;
	padding: 8px;
}
.preview-mock b{
	display: block;
	border-radius: 3px;
	background-color: var(--b);
}
.preview-mock b:nth-child(1){
	background-color: var(--a);
}
.mock-a{
	grid-template-columns: repeat(3, 1fr);
	grid-template-rows: 2fr 1fr;
}
.mock-a b:nth-child(1){
	grid-column: 1/4;
}
.mock-b{
	grid-template-columns: 1fr 2.4fr;
	grid-template-rows: repeat(3, 1fr);
}
.mock-b b:nth-child(1){
	grid-row: 1/4;
}
.mock-c{
	grid-template-columns: 1fr;
	grid-template-rows: 1.4fr repeat(3, 1fr);
}
.preview-img{
	display: block;
	width: 100%;
	height: 150px;
	object-fit: cover;
	object-position: top;
}
.preview-name{
	padding: 8px 10px;
	border-top: 1.5px solid var(--ink);
	font-size: .88rem;
	font-weight: 700;
	line-height: 1.4;
}


.column{
	border-left: 8px solid var(--rust);
}
.layer{
	padding: 28px 30px;
	color: #1D2729;
}
.reveal-ready .layer{
	clip-path: inset(100% 0 0 0);
	transition: clip-path .8s cubic-bezier(.2, .7, .2, 1);
}
.reveal-ready .column.in .layer{
	clip-path: inset(0);
}
.reveal-ready .column.in .layer3{
	transition-delay: 0s;
}
.reveal-ready .column.in .layer2{
	transition-delay: .25s;
}
.reveal-ready .column.in .layer1{
	transition-delay: .5s;
}
.layer .meta{
	font-size: .9rem;
	opacity: .8;
}
.layer .meta + .meta{
	margin-bottom: 12px;
}
.layer li{
	position: relative;
	padding-left: 18px;
	margin-bottom: 4px;
	font-size: .95rem;
}
.layer li::before{
	content: "";
	position: absolute;
	left: 0;
	top: .8em;
	width: 8px;
	height: 2px;
	background-color: currentColor;
}
.layer1{
	background-color: var(--sand);
}
.layer2{
	background-color: var(--sage);
}
.layer3{
	background-color: var(--shale);
	color: #E6E8E1;
}

/* about */
.about{
	display: grid;
	grid-template-columns: 1.3fr 1fr;
	grid-gap: 40px;
}
.about p{
	color: var(--soft);
	margin-bottom: 18px;
}
.quote{
	border-left: 3px solid var(--ochre);
	padding-left: 18px;
	font-style: italic;
	color: var(--ink);
	margin: 24px 0;
}
.facts li{
	padding: 10px 0;
	border-bottom: 1px solid var(--line);
	font-size: .92rem;
}
.facts span{
	display: block;
	color: var(--soft);
	font-size: .82rem;
}
.facts strong{
	font-weight: 600;
}

/* skills */
.skills{
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-gap: 40px;
}
.skills h3{
	margin-bottom: 10px;
}
.skills li{
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 9px 0;
	border-bottom: 1px solid var(--line);
	font-size: .95rem;
}
.skills li span{
	color: var(--soft);
}
.stack{
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 30px;
}

/* contact */
.email{
	display: inline-block;
	font-size: clamp(1.3rem, 3.4vw, 2.2rem);
	font-weight: 800;
	border-bottom: 3px solid var(--link);
}
.email-row{
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 20px;
	margin: 14px 0 24px;
}
.copy-status{
	font-size: .85rem;
	font-weight: 600;
	color: var(--link);
}
.contact-links{
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
	font-weight: 600;
	color: var(--link);
}
.contact-links a:hover{
	text-decoration: underline;
}
.contact p{
	color: var(--soft);
}

.contact-form{
	max-width: 560px;
	margin-top: 48px;
}
.contact-form h3{
	margin-bottom: 18px;
}
.field{
	margin-bottom: 18px;
}
.field label{
	display: block;
	margin-bottom: 6px;
	font-size: .9rem;
	font-weight: 600;
}
.field input,.field textarea{
	display: block;
	width: 100%;
	padding: 12px 14px;
	border: 1.5px solid var(--soft);
	border-radius: 4px;
	background-color: transparent;
	color: var(--ink);
	font-family: inherit;
	font-size: 1rem;
}
.field textarea{
	min-height: 130px;
	resize: vertical;
}
.field input[aria-invalid="true"],.field textarea[aria-invalid="true"]{
	border-color: var(--error);
}
.contact .field-error{
	margin-top: 6px;
	font-size: .85rem;
	font-weight: 600;
	color: var(--error);
}
.field-error:empty{
	display: none;
}
.contact-form .btn{
	font-family: inherit;
	cursor: pointer;
}
.contact-form .btn:disabled{
	opacity: .6;
	cursor: wait;
}
.contact .form-status{
	margin-top: 16px;
	font-size: .92rem;
	font-weight: 600;
	color: var(--link);
}
.form-status a{
	text-decoration: underline;
}

/* footer */
.footer{
	border-top: 1px solid var(--line);
	padding: 28px 0;
	color: var(--soft);
	font-size: .88rem;
}
.footer .container{
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px 20px;
}

/* motion */
@keyframes lay{
	from{
		transform: scaleX(0);
	}
}
@keyframes fade-up{
	from{
		opacity: 0;
		transform: translateY(10px);
	}
}
@media(prefers-reduced-motion:reduce){
	.band,.role-text{
		animation: none;
	}
	.band,.preview,.menu-ready .nav nav{
		transition: none;
	}
	.reveal-ready .layer{
		clip-path: none;
		transition: none;
	}
	.project,.project.is-hidden,.featured,.featured.is-hidden{
		transition: none;
	}
	body{
		transition: none;
	}
	html{
		scroll-behavior: auto;
	}
}

/* responsive */
@media(max-width:800px){
	section{
		padding: 56px 0;
	}
	.hero{
		padding: 70px 0 50px;
	}
	.strata{
		height: 150px;
	}
	.split,.about,.skills{
		grid-template-columns: 1fr;
		grid-gap: 24px;
	}
	.project{
		grid-template-columns: 1fr;
		grid-gap: 12px;
		max-height: 560px;
	}
	.links{
		flex-direction: row;
		gap: 20px;
	}
	.story{
		grid-template-columns: 1fr;
		grid-gap: 22px;
	}
	.featured{
		padding: 24px 0 28px;
	}
	.menu-ready .nav{
		gap: 0 12px;
	}
	.menu-ready .logo{
		order: 1;
		margin-right: auto;
	}
	.menu-ready .theme-btn{
		order: 2;
	}
	.menu-ready .menu-btn{
		display: inline-block;
		order: 3;
	}
	.menu-ready .nav nav{
		display: grid;
		grid-template-rows: 0fr;
		order: 4;
		width: 100%;
		transition: grid-template-rows .3s;
	}
	.menu-ready .nav nav.open{
		grid-template-rows: 1fr;
	}
	.menu-ready .nav ul{
		flex-direction: column;
		flex-wrap: nowrap;
		gap: 0;
		min-height: 0;
		overflow: hidden;
		visibility: hidden;
		transition: visibility 0s .3s;
	}
	.menu-ready .nav nav.open ul{
		padding-top: 8px;
		visibility: visible;
		transition-delay: 0s;
	}
	.menu-ready .nav ul a{
		display: inline-block;
		padding: 12px 0 6px;
		font-size: 1rem;
	}
}
@media(hover:none){
	.preview{
		display: none;
	}
}