@font-face {
	font-family: 'Comfortaa';
	src: url('fonts/Comfortaa-Regular.ttf') format('truetype');
	font-weight: 400;
	font-style: normal;
}
@font-face {
	font-family: 'Comfortaa';
	src: url('fonts/Comfortaa-Light.ttf') format('truetype');
	font-weight: 300;
	font-style: normal;
}
@font-face {
	font-family: 'Comfortaa';
	src: url('fonts/Comfortaa-Bold.ttf') format('truetype');
	font-weight: bold;
	font-style: normal;
}

img {
	border: 0;
	display: block;
}

a {
	color: currentColor;
	text-decoration: none;
}

p,
.textlist {
	line-height: 140%;
	margin:0;
	padding: 0.8em 0 0.8em 0;
}

.textlist {
	list-style-type: none;
}
.textlist li {
	margin: 0;
	padding: 0 0 0 1em;
	position: relative;
}

.textlist li::before {
	content: "–";
	position:absolute;
	left: 0;
	top: 0px;
}


html {
	margin: 0;
	padding: 0;
	font-size: 20px;
	color: black;
	background-color: white;

	--linecolor: #555;

}

@media (max-width:1199px) {
 html {
  font-size: 19px;
 }
}
@media (max-width:1099px) {
 html {
  font-size: 18px;
 }
}
@media (max-width:719px) {
 html {
  font-size: 17px;
 }
}
@media (max-width:511px) {
 html {
  font-size: 3.6vw;
 }
}


body {
	margin: 0;
	padding: 0;
	font-family: 'Comfortaa', sans-serif;
	font-size: 1em;
	letter-spacing: 0.015em;
	background-color: white;
	color: #222;
	-webkit-text-size-adjust: none;
	text-size-adjust: none;
	transition: color 1s ease, background-color 1s ease;
}


#wrapper {
	position: relative;
	width: 100%;
	overflow: hidden;
}


#logo {
	width: 3.6em;
	height: auto;
	position: absolute;
	right: 2.8em;
	top: 3.8em;
	font-size: 0.8em;
}

@media (max-width: 511px) {
	#logo {
		width: 3em;
	}
}


h1 {
	font-size: 2.1em;
	font-weight: 300;
	margin: 0 auto;
	max-width: 90%;
	line-height: 136%;
	padding-top: 1rem;
	letter-spacing: 0.015em;
}

h2 {
	font-size: 1.5em;
	font-weight: 300;
	margin: 0;
	padding-bottom: 2.25rem;
	line-height: 140%;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

h3 {
	margin: 0;
	padding: 0.25em 0 1rem 0;
	font-size: 0.75em;
	font-weight: 400;
	text-transform: uppercase;
	opacity: 0.6;
	line-height: 140%;
	letter-spacing: 0.1em;
}

h4 {
	font-size: 1em;
	margin: 0;
	padding: 0;
	font-weight: 400;
	line-height: 140%;
}

@media (max-width: 511px) {
	h1 {
		font-size: 2em;
	}
	h2 {
		font-size: 1.35em;
		font-weight: 400;
	}
	h3 {
		font-size: 0.85em;
	}
}


header {
	position: relative;
	padding: 0 1em 0 1em;
	box-sizing: border-box;
	height: 55vh;
	min-height: 20em;
	display: flex;
	flex-direction: column;
	flex-wrap: nowrap;
	justify-content: center;
	align-items: stretch;
}
@media (max-width: 999px) {
	header {
		height: 60vh;
	}
}


footer {
	z-index: 1;
	position: relative;
	margin-top: 5em;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 4em;
	max-width: calc(100% - 4em);
	box-sizing: border-box;
}

#scroll-up {
	margin: 0 auto;
	width: 3em;
	height: 1.5em;
	background: url(images/scroll-up.svg) center center no-repeat;
	background-size: 80% auto;
	filter: invert(1);
	display: block;
}


.i-link {
	display: inline-block;
	position: relative;
}
	
.i-link:hover::before {
	content: "";
	position: absolute;
	left: -1.7em;
	top: 0;
	width: 1.2em;
	height: 1.4em;
	background: url(images/mail-thin.svg) center center no-repeat;
	background-size: contain;
}
.right .i-link:hover::before {
	left: auto;
	right: -1.7em;
}
.i-insta:hover::before {
	background-image: url(images/insta.svg);
}
.i-ext:hover::before {
	background-image: url(images/link.svg);
	height: 1.05em;
	right: -1.3em;
}
.right .i-ext:hover::before {
	right: -1.3em;
}



#terms {
	position: absolute;
	top: calc(50% - 0.5em);
	right: 0.8rem;
	font-size: 0.75em;
	text-decoration: none;
}
#terms a {
	display: inline-block;	
}
#terms a + a {
	margin-left: 1.5rem;
}

@media (max-width: 719px) {
	footer {
		padding-bottom: 2em;
	}
	#terms {
		position: static;
		padding-top: 3em;
		text-align: center;
		font-size: 0.85em;
	}

	#scroll-up {
		font-size: 1.1em;
	}
}


@media (max-width: 511px) {
	.mobile-slim {
		letter-spacing: 0;
	}
}

@media (min-width: 1000px) {
	.mobile-only {
		display: none;
	}
}


#bg {
	position: fixed;
	top:0;
	left:0;
	width:100%;
	height:100vh;
	height:100dvh;
	transition: opacity 1.2s ease;
	pointer-events: none;
	user-select: none;
}
body:not(.ready) #bg {
	opacity: 0;
}

#bg video {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border: 0;
	outline: 0;
}
#bg::after {
	content: "";
	z-index: 1;
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	height: 28%;
	background: linear-gradient(180deg,rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%);
}

#cube {
	transition: opacity 1.2s ease;
}
body:not(.ready) #cube {
	opacity: 0;
}



section {
	max-width: 1000px;
	margin: 0 auto;
	padding: 2em 1em;
	box-sizing: border-box;
}
section + section {
	margin-top: 6em;
}


.badge-wrap {
	display: inline-block;
	position: relative;
}
.new {
	position: relative;
	top: -0.33em;
	margin-left: 0.3em;
	font-size: 0.5em;
	text-transform: uppercase;
	padding: 0.4em 0.6em 0.25em 0.6em;
	border-radius: 1em;
	background: #333;
	color: white;
	line-height: 100%;
	letter-spacing: 0.05em;
	user-select: none;
}



.tree {
	position: relative;
	margin-bottom: 3em;
	padding-top: 0.8em;
}
.tree-line {
	position: absolute;
	left: 50%;
	top: 0;
	height: 0;
	border-left: 1px var(--linecolor) solid;
}
.tree-line-end {
	position: absolute;
	left: 50%;
	bottom: 0;
	height: 1px;
}

.tl {
	position: relative;
	line-height: 140%;
}
.tl + .tl {
	margin-top: 1.5em;
}



.skill {
	display: inline-block;
	position: relative;
	cursor: default;
	outline: 0;
}

@media (min-width: 1000px) {
	.mobile-only {display: none}

	.skill p {
		position: absolute;
		right: 100%;
		width: 17.5rem;
		box-sizing: border-box;
		font-size: 0.8em;
		top: 0.15rem;
		padding: 0;
		padding-right: 3rem;
		opacity: 0;
		transition: opacity 0.15s ease, clip-path 0.33s ease;
		clip-path: polygon(99% 0, 100% 0, 100% 100%, 99% 100%);

	}
	.right .skill p {
		right: auto;
		left: 100%;
		padding-right: 0rem;
		padding-left: 3rem;
		clip-path: polygon(0 0, 1% 0, 1% 100%, 0% 100%);
	}

	.skill p::before {
		content:"";
		position: absolute;
		top: 0.5rem;
		right: 0.75rem;
		width: 1.5rem;
		border-top: 1px currentColor solid;
	}
	.right .skill p::before {
		right: auto;
		left: 0.75rem;
	}

	.skill:focus p {
		opacity: 1;
		clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
	}

}



@media (max-width: 999px) {
	.desktop-only {display: none}

	.skill p {
		max-height: 0px;
		overflow: hidden;
		box-sizing: border-box;
		padding: 0;
		opacity: 0;
		font-size: 0.9em;
		transition: opacity 0.15s ease, max-height 0.33s ease;
	}
	.skill p::before {
		content: "";
		display: block;
		height: 1.25rem;
		border-right: 1px currentColor solid;
		width: calc(100% - 2rem);
		margin-bottom: 0.5rem;
		margin-top: 0.25rem;
	}
	.right .skill p::before {
		width: 2rem;
	}
	.skill:focus p {
		opacity: 1;
		max-height: 9rem;
	}
}



.tl {
	margin-right: calc(50% + 1em);
	text-align: right;
}
.tl.right {
	margin-right: auto;
	margin-left: calc(50% + 1em);
	text-align: left;
}



.fade-in {
	opacity: 0;
	transition: opacity 0.8s ease;
	transition-delay: 0.2s;
}
.fade-in.appeared {
	opacity: 1;
}


.pop:not(.no-action) {
	color: #00baff;
}

.pop {
	opacity: 0;
	transform: translateX(1rem);
	transition: opacity 0.4s ease, color 1.4s ease, transform 0.66s linear(0, 0.593 6.9%, 1.031 14.2%, 1.197 18.1%, 1.326 22.1%, 1.421 26.3%, 1.482 30.7%, 1.505 33.8%, 1.514 37.1%, 1.509 40.6%, 1.489 44.3%, 1.417 51.9%, 1.176 70.4%, 1.08 79.4%, 1.042 84.4%, 1.017 89.3%, 1.004 94.3%, 1);
	transition-delay: 0.2s;
}
.pop.right {
	transform: translateX(-1rem);
}
.pop.appeared {
	opacity: 1;
	color: #222;
	transform: translateX(0);
}



.bg-svg {
	position: absolute;
	width: 10em;
	aspect-ratio: 1;
	z-index: -1;
	font-size: 2.5em;
}
.bg-svg:not(.appear) {
	opacity: 0.55;
}

.bg-svg > div,
.bg-svg > div > div {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}
.bg-svg > div > div {
	background-position: center center;
	background-repeat: no-repeat;
	background-size: contain;
	opacity: 0.5;
}

.cube-l > div {background-image: url(assets/cube-l.svg); animation: cube-l 8s infinite ease; animation-delay: 5s; }
.cube-c > div  {background-image: url(assets/cube-c.svg); animation: cube-c 8s infinite ease; animation-delay: 5s;}
.cube-b > div  {background-image: url(assets/cube-b.svg); animation: cube-b 8s infinite ease; animation-delay: 5s;}

.stack-l > div  {background-image: url(assets/stack-l.svg);  animation: stack-l 10.3s infinite ease;}
.stack-c > div  {background-image: url(assets/stack-c.svg);  animation: stack-c 10.3s infinite ease;}
.stack-b > div  {background-image: url(assets/stack-b.svg);  animation: stack-b 10.3s infinite ease;}

.chat-l > div  {background-image: url(assets/chat-l.svg); transform-origin: 100% 92%; animation: chat-l 7.8s infinite ease;}
.chat-b > div  {background-image: url(assets/chat-b.svg); transform-origin: 0% 66.6%; animation: chat-b 7.8s infinite ease;}

.net-l > div  {background-image: url(assets/net-l.svg); animation: net-l 17s infinite ease; transform-origin: 77% 51%;}
.net-c > div  {background-image: url(assets/net-c.svg); animation: net-c 17s infinite ease; transform-origin: 48% 29%;}
.net-b > div  {background-image: url(assets/net-b.svg); animation: net-b 17s infinite ease; transform-origin: 23% 74%;}


@media (max-width: 999px) {
	#contact-svg {
		left: -1.01em !important;
		top: -4em !important;
		width: 8.5em;
	}
}


@keyframes cube-c {
	0%, 10%, 20%, 100% {
		transform: translate(0, 0);
	}
	15% {
		transform: translate(0, -5%);
	}
}
@keyframes cube-l {
	0%, 17%, 27%, 100% {
		transform: translate(0, 0);
	}
	22% {
		transform: translate(4.5%, 3%);
	}
}
@keyframes cube-b {
	0%, 24%, 34%, 100% {
		transform: translate(0, 0);
	}
	29% {
		transform: translate(-4.5%, 3%);
	}
}


@keyframes stack-l {
	0%, 10%, 20%, 100% {
		transform: scaleX(1);
	}
	15% {
		transform: scaleX(0.75);
	}
}
@keyframes stack-b {
	0%, 14%, 24%, 100% {
		transform: scaleX(1);
	}
	19% {
		transform: scaleX(0.8);
	}
}
@keyframes stack-c {
	0%, 18%, 28%, 100% {
		transform: scaleX(1);
	}
	23% {
		transform: scaleX(0.85);
	}
}




@keyframes net-l {
	0%, 5%, 82.5%, 100% {
		transform: scale(1);
	}
	7.5%, 80% {
		transform: scale(1.15);
	}
}
@keyframes net-b {
	0%, 10%, 77.5%, 100% {
		transform: scale(1);
	}
	12.5%, 75% {
		transform: scale(1.15);
	}
}
@keyframes net-c {
	0%, 25%, 87.5%, 100% {
		transform: scale(1);
	}
	27.5%, 85% {
		transform: scale(1.15);
	}
}



@keyframes chat-b {
	0%, 20%, 32%, 100% {
		transform: scale(1);
	}
	25% {
		transform: scale(1.1);
	}
}
@keyframes chat-l {
	0%, 34%, 46%, 100% {
		transform: scale(1);
	}
	39% {
		transform: scale(1.1);
	}
}

