:root {
	--bg-1: #1E1E1E;
	--bg-1-transparent: rgb(30 30 30 / 70%);
	--fg-1: #fff;
	--fg-1-transparent: rgb(255 255 255 / 10%);
	--fg-2: #979797;
	--border-1: #2e2e2e;
	--border-2: #434343;
}

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

*:focus-visible {
	outline: 2px solid var(--fg-1);
	outline-offset: 6px;
	color: var(--fg-1);
	text-decoration-color: var(--fg-1);
	transition: all 0s !important;
}

body,
html {
	width: 100%;
	font-family: sans-serif;
	background: var(--bg-1);
	color: var(--fg-1);
	font-size: 16px;
	display: flex;
	flex-direction: column;
	gap: 64px;
	scroll-behavior: smooth;
}

body::before {
	content: '';
	position: fixed;
	top: 0;
	left: 0;
	background: linear-gradient(to bottom, var(--bg-1-transparent), transparent);
	width: 100%;
	height: 32px;
	z-index: 5;
	backdrop-filter: blur(1px);
}


.overflow-hidden {
	overflow: hidden;
}

abbr {
	text-decoration: none;
}

a {
	color: var(--fg-1);
	text-decoration: none;
	position: relative;
	top: 0;
	line-height: 140%;
	width: fit-content;
	display: inline-block;
}

a.underline.show::before,
a.underline::after {
	content: '';
	display: block;
	width: 100%;
	height: 1.5px;
	background: var(--fg-2);
	transition: width 200ms ease-out;
	position: absolute;
	bottom: -0.5px;
	left: 0;
}

a.underline::after {
	width: 0;
	background: var(--fg-1);
}

a.underline:hover::after {
	width: 100%;
}

@media (prefers-reduced-motion) {
	a.underline::after {
		opacity: 0;
		transition: opacity 120ms ease-out;
	}

	a.underline:hover::after {
		opacity: 1;
	}
}


a.arrow {
	display: flex;
	gap: 4px;
	align-items: center !important;
}

a.arrow svg {
	width: 20px;
	height: 20px;
	transition: transform 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.5);
}

a.arrow:hover svg {
	position: relative;
	transform: translateX(-4px);
}

a.arrow.right:hover svg {
	transform: translate(2px, -2px);
}

nav {
	display: flex;
	justify-content: space-between;
	padding: 32px 128px;
	width: 100%;
	max-width: 1400px;
	margin: 0 auto;
	align-items: center;
}

nav a {
	text-decoration: none;
	color: var(--fg-2);
	transition: color 120ms ease-out;
}

nav a:hover {
	color: var(--fg-1);
}

nav ul {
	display: flex;
	gap: 32px;
}

nav ul li {
	list-style-type: none;
}

nav ul li.selected a {
	color: var(--fg-1);
}

h1,
h2 {
	font-size: 24px;
	line-height: 140%;
	font-weight: normal;
}

h3 {
	font-size: 24px;
	line-height: 140%;
	font-weight: normal;
}

p {
	line-height: 140%;
}

main {
	display: flex;
	flex-direction: column;
	gap: 64px;
}

section {
	padding: 0 128px;
	display: flex;
	max-width: 1400px;
	width: 100%;
	margin: 0 auto;
}

.sep {
	background: var(--border-1);
	width: calc(100% - 256px);
	min-height: 1px;
	margin: 0 auto;
	max-width: 1144px;
}

.home .hero {
	flex-direction: column;
	gap: 64px;
}

.home .hero .text {
	display: flex;
	flex-direction: column;
	gap: 24px;
	width: 75%;
}

.home .logos {
	display: flex;
	position: relative;
	overflow: hidden;
	user-select: none;
}

.home .logos:hover .slide-track {
	animation-play-state: paused;
}

.home .slide-track {
	animation: scroll 40s linear infinite;
	display: flex;
	gap: 64px;
	width: calc(250px * 8);
}

.home .slide img {
	width: 100%;
	aspect-ratio: 4 / 3;
	min-width: calc(100vw - 256px);
	background: var(--border-1);
}

.home .slide figure {
	display: flex;
}

@media (prefers-reduced-motion) {
	.home .slide-track {
		animation: none;
	}
}

.home .logos::before,
.home .logos::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 128px;
	height: 100%;
	background: linear-gradient(to right, var(--bg-1), transparent);
	z-index: 3;
}

.home .logos::after {
	right: 0;
	left: revert;
	background: linear-gradient(to left, var(--bg-1), transparent)
}

.home .logos .logo-wrapper {
	display: flex;
	justify-content: center;
	align-items: center;
	min-width: 171px;
	height: 60px;
}

@keyframes scroll {
	0% {
		transform: translateX(0);
	}

	100% {
		transform: translateX(calc(-250px * 8))
	}
}

.home .logos .logo-wrapper img {
	height: 48px;
}

.home .logos:hover .logo-wrapper {
	animation-play-state: paused;
}

.home .carousel-wrapper {
	display: flex;
	flex-direction: column;
	gap: 16px;
	max-width: 1400px;
	margin: 0 auto;
}

.home .carousel-wrapper .carousel {
	display: flex;
}

.home .carousel-wrapper .slide {
	width: 100%;
	flex: 1;
}

.home .slide-hidden {
	display: none !important;
}

.home .carousel-wrapper .carousel .arrow-btn {
	background: none;
	border: 1px solid var(--border-2);
	width: 36px;
	height: 36px;
	color: var(--fg-1);
	border-radius: 50%;
	display: flex;
	justify-content: center;
	align-items: center;
	cursor: pointer;
	transition: background 120ms ease-out;
}

.home .carousel .arrow-btn:hover {
	background: var(--border-2);
}

.home .carousel .arrow-btn svg {
	width: 20px;
	height: 20px;
}

.home .carousel .button-wrapper {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 128px;
}

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

.home .dot {
	width: 28px;
	height: 28px;
	background: none;
	border: none;
	cursor: pointer;
	display: flex;
	justify-content: center;
	align-items: center;
	border-radius: 50%;
	position: relative;
}

.home .dot:focus-visible {
	outline: none;
}

.home .dot:focus-visible::after {
	outline: 2px solid var(--fg-1);
	outline-offset: 6px;
	text-decoration-color: var(--fg-1);
	content: '';
	position: absolute;
	top: 8px;
	left: 8px;
	border-radius: 50%;
	width: 12px;
	height: 12px;
}

.home .dot .inner {
	width: 8px;
	height: 8px;
	background: var(--border-2);
	transition: background 120ms ease-out;
	border-radius: 50%;
}

.home .dot:hover .inner {
	background: var(--fg-2);
}

.home .dot-selected .inner {
	background: var(--fg-1);
}

.home .dot-selected:hover .inner {
	background: var(--fg-1);
}

.about section>*:first-child {
	width: 33%
}

.about section>div:last-child {
	width: 77%;
}

.about section>h3 {
	color: var(--fg-2);
}

.about section p {
	font-size: 24px;
}

.about .hero h1 {
	font-size: 40px;
}

.about .hero img {
	aspect-ratio: 556 / 647;
	background: var(--border-1);
}

.about .content {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.about .work-history .content,
.about .activities .content {
	gap: 24px;
}

.about .item+.sep {
	width: 100%;
	height: 1px;
	margin: 0;
}

.about .work-history .item {
	display: flex;
	justify-content: space-between;
	flex-direction: column;
	gap: 4px;
}

.about .item p {
	font-size: 24px;
}

.about .item .date {
	color: var(--fg-2);
}

.about .activities .item {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.about .experience .content {
	flex-direction: row;
	gap: 32px;
}

.about .experience .content .col {
	display: flex;
	flex-direction: column;
	gap: 16px;
	flex: 1;
}

.about .experience .content .col h3 {
	font-size: 20px;
	color: var(--fg-2);
}

.about .connect .content {
	flex-direction: row;
	gap: 12px;
}

.about section>h2:first-child {
	font-size: 24px;
	color: var(--fg-2);
}

.about .connect .content h3:nth-child(even) {
	color: var(--fg-2);
}

footer {
	display: flex;
	justify-content: space-between;
	padding: 0px 128px 32px 128px;
	width: 100%;
	max-width: 1440px;
	margin: 0 auto;
}

footer p {
	color: var(--fg-2);
}

footer p:last-child {
  	text-align: right;
}

footer a:last-child {
	margin-left: 82.38px;
}

footer a:last-child:hover p {
	color: var(--fg-1);
}

footer p:nth-child(2) {
	text-align: center;
}

.work {
	flex-direction: row;
	gap: 32px;
	padding: 0 128px 512px 128px;
	max-width: 1400px;
	margin: 0 auto;
}

.work-sidebar-mobile {
	display: none;
}

aside {
	width: 25%;
	height: fit-content;
	position: sticky;
	top: 32px;
	z-index: 3;
}

aside ul {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

aside ul a {
	display: flex;
	align-items: center;
	gap: 8px;
	width: fit-content;
}

aside ul li {
	list-style-type: none;
}

aside ul li h2 {
	font-size: 24px;
}

aside ul li:not(.selected) h2 a {
	color: var(--fg-2);
	/* transition: color 120ms ease-out; */
}

aside.work-sidebar-mobile ul li a {
	font-size: 20px;
}

aside.work-sidebar-mobile .selected a {
	color: var(--fg-1);
}

aside ul li h2 a:hover {
	color: var(--fg-1)
}

aside ul li h2 a:hover .dot {
	border-color: var(--fg-1);
}

aside li h2 a .dot {
	border: 1px solid var(--fg-2);
	border-radius: 50%;
	width: 8px;
	height: 8px;
	transition: border-color 120ms ease-out;
}

aside li.selected h2 a .dot {
	border-color: var(--fg-1);
	background: var(--fg-1);
}

.work .content {
	display: flex;
	flex-direction: column;
	gap: 64px;
	width: 75%;
}

.work .content article {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 16px;
	scroll-margin-top: 48px;
}

.work .content article .img-wrapper {
	overflow: hidden;
	max-height: 421px;
}

.work .content article img {
	width: 100%;
	transition: transform 120ms ease-in-out;
	object-fit: cover;
	background: var(--border-1);
	aspect-ratio: 417 / 209;
}

.work .content article:hover img {
	transform: scale(1.05);
}

.work .content article .text {
	display: flex;
	margin-top: 8px;
	justify-content: space-between;
}

.work .content article .text .date {
	color: var(--fg-2);
}

.work .content article+.sep {
	margin: 0;
	width: 100%;
}

.case-study .hero img {
	width: 100%;
	aspect-ratio: 1144 / 573;
}

.case-study .back {
	font-size: 24px;
}

.case-study .context {
	flex-direction: row;
	gap: 32px;
}

.case-study .context .col {
	display: flex;
	flex-direction: column;
	gap: 24px;
	width: 25%;
}

.case-study .context .col.about {
	width: 50%;
}

.case-study .context .col.not {
	width: auto;
}

.case-study .context .col .info {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.case-study .context .col h2 {
	color: var(--fg-2);
	font-size: 16px;
}

.case-study .context .col p,
.case-study .description {
	font-size: 24px;
}

.case-study .images {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.case-study .images .image {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 16px;
}

.case-study .images .image.iwater-flex {
	flex: 3.056;
}

.case-study .images .image figure img {
	width: 100%;
	height: 100%;
}

.case-study .images .description-container {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.case-study .images .image .description,
.case-study .image p {
	font-size: 24px;
}

.case-study .images .row {
	display: flex;
	gap: 32px;
}

.case-study .images .image figure {
	display: flex;
	flex-direction: column;
}

.case-study .images .image figcaption {
	margin-top: 16px;
	color: var(--fg-2);
	line-height: 140%;
	font-size: 16px;
	border-top: 1px solid var(--border-1);
	padding-top: 12px;
}

.contact .connect-with-me h1,
.contact section h2:first-child {
	font-size: 20px;
	color: var(--fg-2);
}

.contact section {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.contact section .inner {
	display: flex;
	flex-direction: column;
	gap: 32px;
}

.contact .connect-with-me h2 a {
	font-size: 48px;
}

.contact .socials a {
	font-size: 32px;
}

.contact .outro .inner {
	gap: 16px;
}

.contact .outro p {
	font-size: 24px;
}

.nav-mobile {
	width: 100%;
	height: 100%;
	position: fixed;
	top: 0;
	left: 0;
	background: var(--bg-1-transparent);
	display: flex;
	z-index: 5;
	opacity: 1;
	backdrop-filter: saturate(180%) blur(30px);
}

.nav-mobile.nav-hidden {
	display: none;
}

.nav-mobile ul {
	list-style-type: none;
	display: flex;
	flex-direction: column;
	width: 100%;
	margin-top: 105px;
}

.nav-mobile ul li {
	width: 100%;
	position: relative;
}

.nav-mobile ul li::after {
	content: '';
	position: absolute;
	bottom: -1px;
	left: 16px;
	background: var(--fg-1-transparent);
	height: 1px;
	width: calc(100% - 32px);
}

.nav-mobile ul li:last-child::after {
	display: none;
}

.nav-mobile ul li a {
	font-size: 32px;
	padding: 32px 16px;
	width: 100%;
}

.nav-mobile ul li a:hover {
	background: var(--fg-1-transparent)
}

.nav-mobile ul li a:hover::before,
.nav-mobile ul li a:hover::after {
	content: '';
	position: absolute;
	top: -1px;
	left: 0;
	width: 100%;
	height: 1px;
	background: var(--border-1);

}

.nav-mobile ul li a:hover::after {
	top: revert;
	bottom: -1px;
}

.desktop-links>a:first-child {
	z-index: 6;
}

#nav-btn {
	z-index: 6;
	display: none;
	flex-direction: column;
	gap: 12px;
	background: transparent;
	border: none;
	cursor: pointer;
	width: 32px;
	height: 32px;
	justify-content: center;
	align-items: center;
}

#nav-btn .line {
	width: 100%;
	height: 1px;
	border-radius: 4px;
	background: var(--fg-1);
	position: relative;
	top: 0;
	left: 0;
	transition: transform 120ms ease-out, top 120ms ease-out;
}

#nav-btn .line.rotated-1 {
	transform: rotate(45deg);
	top: 6px;
}

#nav-btn .line.rotated-2 {
	transform: rotate(-45deg);
	top: -6px;
}

::selection {
	background: var(--fg-1);
	color: var(--bg-1);
}

@media screen and (max-width: 1024px) {

	nav,
	section,
	footer {
		padding-left: 16px;
		padding-right: 16px;
	}

	nav {
		padding: 24px 16px;
	}

	.about section {
		flex-direction: column;
		gap: 8px;
	}

	.about .hero {
		gap: 16px;
	}

	.sep {
		margin: 0 16px;
		width: calc(100% - 32px);
	}

	.about section>h2:first-child {
		margin-bottom: 24px;
	}

	h1,
	h2,
	h3,
	.about section p,

	.contact .outro p {
		font-size: 20px;
	}

	.about .experience .content .col p,
	.about .item p {
		font-size: 20px;
	}

	.home .hero .text {
		width: 100%;
	}

	.home .hero .logos .row {
		flex-direction: column;
	}

	.about section>h3 {
		font-size: 24px;
		margin-bottom: 24px;
	}

	.about .hero img {
		width: 100%;
	}

	.work {
		width: 100%;
		flex-direction: column;
		padding: 0 16px;
	}

	.work-sidebar-mobile {
		display: flex;
	}

	.work-sidebar-desktop {
		display: none;
	}

	aside {
		top: 0;
		background: var(--bg-1-transparent);
		padding: 24px 0;
		backdrop-filter: saturate(180%) blur(20px);
	}

	aside::before,
	aside::after {
		content: '';
		position: absolute;
		top: 0;
		left: 0;
		width: 16px;
		height: 100%;
		background: linear-gradient(to right, var(--bg-1), transparent);
		z-index: 4;
	}

	aside::after {
		left: revert;
		right: 0;
		background: linear-gradient(to left, var(--bg-1), transparent);
	}

	aside ul {
		flex-direction: row;
		overflow-x: scroll;
		gap: 32px;
		padding: 0 16px;
	}

	aside ul span {
		white-space: nowrap;
	}

	.work .content,
	.work .content article a,
	aside,
	.work ul {
		width: 100%;
	}

	aside li h2 a .dot {
		display: none;
	}

	.work-wrapper {
		display: flex;
		flex-direction: column;
		gap: 16px;
	}

	aside ul li h2,
	.work .content article .text>* p {
		font-size: 16px;
	}

	aside ul li a {
		padding: 8px 0;
	}

	.case-study .context {
		flex-wrap: wrap;
	}

	.case-study .context .col:nth-child(1),
	.case-study .context .col:nth-child(2) {
		flex: 1;
	}

	.case-study .context .col:last-child {
		width: 100%;
	}

	.case-study .images .row {
		flex-direction: column;
	}

	.work .content,
	.case-study {
		gap: 32px;
	}

	.about .work-history .item+.sep,
	.about .activities .item+.sep {
		display: none;
	}

	.about .hero h1 {
		display: none;
	}

	.home .slide-track {
		gap: 32px;
	}

	.home .carousel {
		position: relative;
		padding: 0 16px;
	}

	.home .carousel .button-wrapper {
		position: absolute;
		left: 16px;
		width: fit-content;
		bottom: -39px;
	}

	.home .carousel .button-wrapper:last-child {
		left: revert;
		right: 16px;
	}

	.about section>div:last-child {
		width: 100%;
	}

	.home .logos::before,
	.home .logos::after {
		width: 16px;
	}

	.home .slide img {
		min-width: calc(100vw - 32px);
	}

	.work .content article {
		scroll-margin-top: 100px;
	}
}

@media screen and (max-width: 600px) {
	body::before {
		top: 80px;
		height: 16px;
	}

	body#work::before {
		top: 134px;
	}

	.about section>*:first-child {
		width: 100%;
	}
	
	main {
		gap: 24px;
	}

	.case-study .context {
		flex-direction: column;
	}

	.case-study .context .col {
		width: 100%;
	}

	.case-study .images .image figcaption {
		padding-top: 0;
		border-top: none;
	}

	.case-study .images .image {
		gap: 8px;
	}

	.desktop-links ul {
		display: none;
	}

	#nav-btn {
		display: flex;
	}

	h1,
	h2,
	.about section>h3 {
		font-size: 20px;
	}

	footer {
		flex-wrap: wrap;
	}

	footer p:nth-child(3) {
		width: 100%;
		text-align: left;
		margin-top: 16px;
	}

	.case-study .context .col p,
	.case-study .images .image .description,
	.case-study .image p,
	.case-study .description {
		font-size: 20px;
	}

	.contact .connect-with-me h2 a,
	.contact .socials a,
	.contact .outro p {
		font-size: 20px;
	}

	footer p:nth-child(2) {
		width: fit-content;
		text-align: right;
	}

	.contact+footer {
		bottom: -40px;
		position: relative;
	}

	.desktop-links>a:first-child {
		color: var(--fg-1);
	}

	nav {
		position: fixed;
		z-index: 6;
		top: 0;
		background: var(--bg-1-transparent);
		backdrop-filter: saturate(180%) blur(20px);
	}

	aside {
		top: 80px;
	}

	.work {
		margin-top: 160px;
	}

	aside {
		padding: 8px 0;
	}

	main {
		padding-top: 128px;
	}

	.case-study .back {
		font-size: 20px;
	}

	.work .content article {
		scroll-margin-top: 150px;
	}
}

@media screen and (min-height: 1000px) {
	.contact+footer {
		position: fixed;
		bottom: 0;
		left: 50%;
		transform: translate(-50%, -50%);
	}
}

@media screen and (min-width: 1400px) {
	.home .slide img {
		min-width: 1144px;
		min-height: 858px;
	}
}