/* poppins-300 - latin */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 300;
  src: local(''),
       url('../fonts/poppins-v20-latin-300.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
       url('../fonts/poppins-v20-latin-300.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}
/* poppins-regular - latin */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  src: local(''),
       url('../fonts/poppins-v20-latin-regular.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
       url('../fonts/poppins-v20-latin-regular.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}
/* poppins-500 - latin */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  src: local(''),
       url('../fonts/poppins-v20-latin-500.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
       url('../fonts/poppins-v20-latin-500.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}
/* poppins-600 - latin */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  src: local(''),
       url('../fonts/poppins-v20-latin-600.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
       url('../fonts/poppins-v20-latin-600.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}
/* poppins-700 - latin */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  src: local(''),
       url('../fonts/poppins-v20-latin-700.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
       url('../fonts/poppins-v20-latin-700.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}
/* poppins-800 - latin */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 800;
  src: local(''),
       url('../fonts/poppins-v20-latin-800.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
       url('../fonts/poppins-v20-latin-800.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}


:root {
	--font-big: 2.2rem;
	--font-larger: 1.6rem;
	--font-small: 0.55rem;
	--color-green: #C1DAD6;
	--color-green-hover: #b3d1cc;
	--content-padding: 12vw;
}


*, *::before, *::after {
	box-sizing: border-box;
}


/* scrollbar */
*::-webkit-scrollbar {
	width: 0.3vw;
}
*::-webkit-scrollbar-track {
	background: #d6d6d6;
}
*::-webkit-scrollbar-thumb {
	background: #999;
}


html {
	font-size: 1.0vw;
	height: 100%;
}
body {
	margin: 0;
	height: 100%;
	font-family: "Poppins";
	color: #151515;
	overflow-y: scroll;
}

a {
	color: inherit;
	text-decoration: underline;
}
p {
	margin: 0;
}

.spacer {
	flex-grow: 1;
}

.button {
	display: inline-flex;
	align-items: center;
	border-radius: 5em;
	color: inherit;
	padding: 0.36em 1.1em 0.32em;
	background: var(--color-green);
	text-decoration: none;
	font: inherit;
	border: 0;
	cursor: pointer;
	gap: 0.5em;
}
.button:hover {
	background: var(--color-green-hover);
}
.button svg {
	width: 1.1em;
	height: 1.1em;
	margin: 0 -0.2em;
}



#cursor {
	display: none;
	position: fixed;
	z-index: 1000;
	width: 1.5rem;
	height: 1.5rem;
	background: rgba(255, 255, 0, 0.3);
	border-radius: 50%;
	transform: translate(-50%, -50%);
	pointer-events: none;
}



.page:not(.active) {
	visibility: hidden;
}

.page#p-login {
	position: fixed;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	visibility: visible;
	z-index: 10000;
	background: #fff;
	width: 100%;
	height: 100%;
}
.page#p-login.hide {
	transition: all 400ms ease-in;
	transform: translateY(-100%);
	visibility: hidden;
	/*opacity: 0;*/
}

.page#p-main.show {
	transition: all 400ms ease-out;
	visibility: visible;
}


#menu {
	position: fixed;
	z-index: 1000;
	top: 0;
	right: 0;
	margin: 1rem 2rem;
	display: flex;
	gap: 0.5rem;
}
#menu .menu-item {
	font-size: 0.8rem;
	line-height: 1em;
	padding: 0.5em 1em;
	border-radius: 2em;
	background: #e7e7e7;
	text-decoration: none;
	color: #111;
}


#head {
	position: fixed;
	z-index: -1;
	top: calc(50% - 40vw / 2);
	left: 10vw;
	width: 30vw;
	height: 40vw;
}
#head {
	top: 0;
	left: 0 !important;
	width: 100%;
	height: 100%;
}
#head.center {
	left: calc(50% - 30vw / 2);
}
#head canvas {
	width: 100% !important;
	height: 100% !important;
}
#loader {
	--progress: 0%;
	position: fixed;
	top: 50%;
	left: 50%;
	width: 4vw;
	height: 0.2vw;
	margin: -0.1vw -2vw;
	background: #ddd;
}
#loader::after {
	content: "";
	display: block;
	width: var(--progress);
	height: 100%;
	background: green;
}
#loader::before {
	content: attr(data-progress);
	display: block;
	position: absolute;
	left: 0;
	top: 100%;
	width: 100%;
	margin-top: 0.6em;
	text-align: center;
	font-size: 0.6vw;
	color: #999;
}


.splt-line {
	display: inline-flex;
	flex-wrap: wrap;
}
.splt-word {
	display: inline-block;
	overflow: hidden;
}
.splt-word .reveal {
	display: inline-block;
	transform-origin: top left;
}
.splt-wsp, .splt-char {
	display: inline-block;
	vertical-align: top;
}


[data-animation="text-enter"] {
	visibility: hidden;
}
[data-animation="project-enter"] {
	visibility: hidden;
	transform-origin: right center;
}


h1 {
	margin: 0 0 0.3rem;
	font-size: var(--font-big);
    font-weight: 600;
}
h2 {
	margin: 0 0 0.3rem;
	font-size: var(--font-big);
	font-weight: 600;
}
h3 {
	margin: 1em 0 0.2em;
	font-size: var(--font-small);
	font-weight: 600;
}


section {
	position: relative;
}


section#s-start {
	height: 100vh;
}

section#s-start .container {
	will-change: transform;
}
section#s-start .container.valign {
	position: fixed;
	display: flex;
	flex-direction: column;
	justify-content: center;
	width: 100%;
	height: 100%;
	padding: var(--content-padding);
	background: #f7f5f1;
	/*z-index: -1;*/
}

section#s-start .text {
	width: 33vw;
	font-size: var(--font-larger);
	line-height: 1.4em;
}



#anim_container {
	position: absolute;
	left: 0;
	transform: translateX(15%);
}




#head_placeholder {
	top: 50%;
	right: 20vw;
	margin-top: -2.2em;
	color: #ada9a2;
}

#about_placeholder {
	bottom: var(--content-padding);
	right: var(--content-padding);
	color: #a0b5b2;
}

.placeholder {
	position: absolute;
	padding: 0.8em 1em;
	line-height: 1.4em;
	text-align: center;
}
.placeholder .corner {
	position: absolute;
	width: 0.5em;
	height: 0.5em;
}
.placeholder .corner-l {
	left: 0;
	border-left: 2px solid currentColor;
}
.placeholder .corner-r {
	right: 0;
	border-right: 2px solid currentColor;
}
.placeholder .corner-t {
	top: 0;
	border-top: 2px solid currentColor;
}
.placeholder .corner-b {
	bottom: 0;
	border-bottom: 2px solid currentColor;
}



section#s-about {
	position: sticky;
	top: 0;
	background: var(--color-green);
	min-height: 100vh;
	padding: calc(var(--content-padding) / 2) var(--content-padding);
	display: flex;
	flex-direction: column;
	justify-content: center;
}
section#s-about h3 {
	margin: 3em 0 0;
}
section#s-about .text {
	width: 85%;
	font-size: var(--font-larger);
	margin-bottom: 3rem;
}





.split-2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 5vw;
}
.split-3 {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: 5vw;
}
.list {
	list-style: none;
	padding: 0;
}
.list li {
	position: relative;
	padding-left: 1em;
}
.list li::before {
	content: "-";
	display: block;
	position: absolute;
	left: 0;
}



.sticky-container {
	position: sticky;
	top: 0;
	height: 100vh;
}



#s-login {
	width: 60vw;
}
#s-login .text {
	font-size: var(--font-larger);
	line-height: 1.4em;
}
#s-login .form {
	margin-top: 1.5rem;
	display: flex;
	gap: 1.5rem;
}
#s-login input {
	font: inherit;
	padding: 0.2em 0.2em 0;
	border: 0;
	border-bottom: 2px solid rgba(0, 0, 0, .2);
}
#s-login input:focus {
	outline: none;
	border-bottom: 2px solid rgba(0, 0, 0, .5);
}


section#s-projects {
	background: #f7f5f1;
	/*height: calc(100vh + var(--project-count) * 37vw  +  (var(--project-count) - 1) * 5vw  - (100vw - 2*10vw));*/
}

section#s-projects h2 {
	padding: 5vw var(--content-padding) 2.5vw;
	font-weight: 500;
}

section#s-projects #projects-container {
	display: flex;
	flex-direction: column;
	gap: calc(var(--content-padding) / 3 * 2);
	padding: 0 var(--content-padding);
  padding-bottom: 5vw;
}

section#s-projects .project {
	position: relative;
}
section#s-projects .project:first-child {
	border: 0;
}
section#s-projects .project:last-child {
	padding-bottom: 0;
}

section#s-projects .project .line {
	position: absolute;
	top: 0;
	height: 1px;
	width: 0%;
	background: rgba(0, 0, 0, 0.1);
	display: none;
}
section#s-projects .project:first-child .line {
	display: none;
}

section#s-projects .project .title {
	margin: 0;
	font-size: var(--font-larger);
	font-weight: 500;
}
section#s-projects .project .description {
	padding: 1rem 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}
section#s-projects .project .description .button {
	margin-top: 1rem;
	font-size: 0.75rem;
}
section#s-projects .project .tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem;
	margin: 0.2rem 0 0.8rem;
}
section#s-projects .project .tag {
	font-size: var(--font-small);
	padding: 0.5em 0.9em 0.45em;
	border-radius: 1.5em;
	line-height: 1em;
	background: var(--color-green);
}
section#s-projects .project .image {
	display: block;
	width: 100%;
}
section#s-projects .project img {
	display: block;
	width: 100%;
	border-radius: 0.5vw;
}
section#s-projects .project .image .slideshow-image:not(.is-active) {
	display: none;
}

section#s-projects .project .image .slideshow-image .slideshow-image-description {
	position: absolute;
	font-size: var(--font-small);
	padding-top: 0.52rem;
	padding-left: 0.4rem;
	color: #bbb;
}

section#s-projects .project .slideshow {
	position: relative;
}
section#s-projects .project .slideshow-nav {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-gap: 33%;
}
section#s-projects .project .slideshow-nav > * {
	cursor: pointer;
}
section#s-projects .project .slideshow-thumbs {
	position: absolute;
	top: 100%;
	right: 0;
	display: flex;
	justify-content: end;
	gap: 0.3rem;
	margin: 0.6rem 0 -1.2rem;
	padding-right: 0.4rem;
}
section#s-projects .project .slideshow-thumb {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 0.6rem;
	height: 0.6rem;
	cursor: pointer;
}
section#s-projects .project .slideshow-thumb::after {
	transition: all 200ms;
	content: "";
	display: block;
	width: 0.4rem;
	height: 0.4rem;
	background: #dfdfdf;
	border-radius: 50%;
}
section#s-projects .project .slideshow-thumb:hover::after {
	width: 0.5rem;
	height: 0.5rem;
}
section#s-projects .project .slideshow-thumb.is-active::after {
	width: 0.6rem;
	height: 0.6rem;
	background: var(--color-green);
}

section#s-projects .project .split-2 {
	gap: 2rem;
}






section#s-contact {
	position: relative;
	background: #FAFAFA;
	padding: 10vw var(--content-padding);
}
section#s-contact a {
	color: #6f84ef;
}
section#s-contact .text {
	font-size: var(--font-larger);
	line-height: 1.4em;
}





footer {
	display: flex;
	justify-content: space-between;
	position: relative;
	font-size: var(--font-small);
	text-align: center;
	padding: 1.25vw 2.5vw;
}
footer .dash {
	padding: 0 0.4em;
}
footer a {
	color: inherit;
	text-decoration: inherit;
}



@keyframes horizontal-shaking {
	0% { transform: translateX(0); }
	20% { transform: translateX(0.25rem); }
	40% { transform: translateX(-0.25rem); }
	60% { transform: translateX(0.25rem); }
	80% { transform: translateX(-0.25rem); }
	100% { transform: translateX(0); }
}
.shake {
	animation: horizontal-shaking 400ms;
}


@media only screen and (max-width: 759px) {
	:root {
    --font-small: 0.7rem;
	}

	html {
		font-size: 3.4vw;
	}

	#menu {
		margin: 1rem 1rem;
  }
	#menu .menu-item {
		font-size: 1rem;
  }

	#s-login {
		width: 80vw;
	}
	#s-login input {
    flex-shrink: 1;
    width: 50%;
	}

  .placeholder {
  	display: none;
  }

	section#s-start .text {
    width: 100%;
  }

  section#s-about .text {
    width: 100%;
  }

  section#s-projects .project .split-2 {
		display: flex;
		flex-direction: column;
		gap: 2rem;
  }
  section#s-projects .project .description {
		padding: 0;
  }

  section#s-projects #projects-container {
    padding-bottom: 10vw;
  }

	section#s-projects .project {
		padding: 1.5rem 0 3rem;
	}

	section#s-projects .project .tags {
    gap: 0.25rem;
    margin: 0.3rem 0 1rem;
  }

	section#s-projects .project .description .button {
		align-self: flex-start;
	}

	section#s-projects .project .slideshow-nav {
		grid-gap: 0;
	}

	section#s-projects .project .slideshow-image-description {
		display: none;
	}


	section#s-contact {
		padding: 30vw var(--content-padding);
	}

	footer {
		padding: 5vw 5vw;
	}
}