#content{
	min-height: 100vh;
	height: 100%;
    padding-bottom: 0;
}

header{
	position: sticky;
	position: -webkit-sticky;
	top: 0;
	background-color: inherit;
	height: 4.5rem;
	padding: 1rem 0;
	z-index: 1;
	display: flex;
    align-items: center;
}

header:before {
    content: '';
    background: inherit;
    position: absolute;
    width: 100vw;
	min-width: 300px;
    height: 100%;
    left: -4rem;
    right: -4rem;
    margin: auto;
}

#content>section,
#work-overview>main,
#content>main{
	max-width: 1200px;
	margin: 0 auto;
	padding: 1.75rem;
    padding-bottom: 5rem;
}

#content>section.contact{
	padding: 5rem 3rem;
	text-align: center;
	transition-delay: .5s;
	overflow: hidden;
}

section.contact>p, 
section.contact a {
    font-size: 1.9rem;
    font-weight: 600;
}

#lessonlearned{
	padding-bottom: 0;
}

hr {
    display:block;
    height:1px;
    border:0;
	/*border-bottom: .25px solid currentColor;*/
	border-bottom: .5px solid #c5c5c550;
    margin:1em 0 1em 0;
    padding:0;
    text-align: end;
    width: 0;
    transition: width 1.5s ease-out;
}

hr.run {
    width: 100%;
}

hr:before{
	content: '';
    position: absolute;
    height: 3px;
    width: 3px;
    border-radius: 50%;
    background: currentColor;
}

hr.vertical {
    position: absolute;
    width: 1px;
    height: 0;
    border: 0;
    border-right: .25px solid #c5c5c550;
    left: 50%;
    overflow: unset;
    margin: 0 1rem !important;
    text-align: left;
    transition: opacity .5s ease, height 2s 1s ease-out;
	margin: 0 !important;
	pointer-events: none;
	top: 0;
	opacity: 0;
}

hr.vertical:before {
    bottom: 0;
}

hr.vertical.ani.run {
	opacity: 1;
    height: 110%;
}

footer{
	position: relative;
	max-width: 1200px;
	margin: 0 auto;
	padding: 10% 5%;
}

#photo-wrapper{
	overflow: hidden;
}

#photo{
	background: url(assets/oli_outdoor.jpg) no-repeat 68% 34%;
	background-size: cover;
	width: 100%;
	height: 50vh;
	min-height: 200px;
	max-height: 600px;
}

@media (hover: hover) {
	#hiddeninfo:hover .textlink,
	.contact:hover .textlink,
	.textlink:hover{
		background-size: 100% 2px;
		background-size: 100% 1.5px;
		background-position: 0 1.25em;
	}
}

.textlink{
    background-image: linear-gradient(to bottom,currentColor 0,currentColor 100%);
    background-repeat: no-repeat;
    background-size: 0 2px;
    background-size: 0 1.5px;
    background-position: 0 1.25em;
	background-position: 100% 1.25em;
    transition: background-size .35s ease-out;
}


section#vita{
	/*padding-bottom: 2rem;*/
}
#vita h3{
	margin-top: 2rem;
	margin-bottom: .5rem;
}
#vita p{
	margin: .5rem 0 0 0;
}
#stages > *{
	margin: 0 0 4rem 0;
}
#stages, #hiddeninfo{
	width: 45%;
}
#hiddeninfo p {
    margin-top: 2em;
}

#hiddeninfo a {
    margin-left: 0.25em;
    cursor: pointer;
}

.details,
.details a,
.details p {
    font-size: 0.8rem;
    font-weight: 600;
	letter-spacing: .025rem;
    margin-left: .5rem;
}

.experience > h2{
	margin-bottom: 0;
    display: inline-block;
    font-size: 1.5em;
    user-select: none;
}
.experience br{
    user-select: none;
}

.years {
    opacity: 0;
    transition: opacity .5s ease, transform .5s ease;
    transform: translateY(25%);
}

.experience:hover .years {
    opacity: 1;
    transform: translateY(0);
}

#links{
	margin: 0 auto;
}
#links>*{
	margin: 0 1rem;
	text-transform: uppercase;
	letter-spacing: .025em;
	vertical-align: middle;
}
#required{
    position: absolute;
    top: 43%;
    width: auto;
    text-align: right;
    right: .5rem;
}
#required a{
    cursor: pointer;
}
#required .details{
	opacity: .5;
}
#required .details:hover{
	color: inherit;
	opacity: 1;
}
.lang.active{ /*Language Switcher*/
	opacity: 1 !important;
}
.lang.active:hover {
    color: inherit;
}

span{
	display: inline-block;
}


.ok-00:before {
	content: "\e101";
	margin-left: -1.7rem;
	font-size: 1.2rem;
	margin-right: .4rem;
}
.ok-01:before {
	content: "\e102";
	margin-left: -1.7rem;
	font-size: 1.4rem;
    margin-right: .4rem;
    vertical-align: middle;
}
.ok-02:before {
	content: "\e155";
	font-size: 1em;
    margin-right: 0;
    margin-left: -1.1em;
    vertical-align: -.08em;
}
.ok-03:before {
	content: "\e127";
	font-size: 1em;
	margin-right: 0;
	margin-left: -1.1em;
	vertical-align: -.08em;
}




#scribble{
	width:100%;
	overflow: hidden;
	position: absolute;
    top: 0;
    left: 0;
     mask-image: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 30%, rgba(0,0,0,1) 80%, rgba(0,0,0,0) 100%);
    -webkit-mask-image: -webkit-gradient( linear, center top, center bottom, color-stop(0.00, rgba(0,0,0,0)), color-stop(0.3, rgba(0,0,0,1)), color-stop(0.7, rgba(0,0,0,1)), color-stop(1.00, rgba(0,0,0,0) ));
}


canvas { 
	width: 100%;
	height: 100%; 
	cursor: none;
}

#cursor{
	display:block;
	width: 3px;
	height: 3px;
	position: fixed;
	background: currentColor;
	border-radius: 50%;
	z-index: 99;
	pointer-events: none;
	transition: all;
	transform: translate3d(-1.5px,-1.5px, 0);
	display: none;
}

#scribble:hover #cursor{
	display: block;
}


#colorfield {
	top: 50px;
	right: -30px;
	transform: translate3d(-50%,-50%,0);
	transition: transform .3s cubic-bezier(.5,1.6,.4,.8);
	cursor: pointer;
	user-select: none;
	-webkit-user-select: none;
}

#colorfield.ani.run {
	transform: translate3d(-50%,-50%,0) scale(1);
	transition-delay: 0s;
}
#colorfield.ani {
	transform: translate3d(-50%,-50%,0) scale(0);
	transition-delay: 2s;
}
#colorfield.ani.run:hover {
	transform: translate3d(-50%,-50%,0) scale(1.1);
}
#colorfield.ani.run:active {
	transform: translate3d(-50%,-50%,0) scale(0.9);
}

/*
#colorfield:hover:not(.zoom){
    transform: translate3d(-50%,-50%,0) scale(1.15);
	transition-delay: 0;
}*/
#colorfield.zoom {
	margin: 0;
	transition: width .3s ease-in, height .3s ease-in, transform .3s ease-in;
	transition: width .3s ease-in, height .3s ease-in;
    height: 200vw;
    width: 200vw;
    height: calc(150vw + 150vh);
    width: calc(150vw + 150vh);
    z-index: 99;
}
#colorfield.zoom~#challenges>*{
	opacity: 1;
    transform: translateY(0);
    transition-delay: 1s;
}
#colorfield:not(.zoom)~#challenges>*{
	visibility: hidden;
	opacity: 0;
    transition-delay: 0;
}

#hiddeninfo{
	position: sticky;
	width: 30%;
	min-width: 240px;
	text-align: right;
	margin-left: auto;
	top: 8rem;
	float:right;
}

#hiddeninfo p{
	transform: translateY(2rem); 
	opacity: 0; 
	height: 0;
	margin: 0;
	overflow: hidden;
}
#hiddeninfo p.visible{ 
	transform: translateY(0); 
	opacity: 1; 
	height: auto;
	margin: 2em;
}



@media (min-width: 1850px) {
	header{
		background:transparent;
	}

}


@media (min-width: 850px) {
	#content h2 {
		font-size: 2em;
	}
}

@media (max-width: 660px) {
	#required{
		position: relative;
		padding-top: 2rem;
		text-align: center;
	}
	#hiddeninfo{
		display: none;
	}
	#stages, #hiddeninfo{
		width: 100%;
	}
}


@media (max-width: 600px) {
	main,
	section{
		padding: 2.5rem;
		margin: 0;
	}
	#content>main,
	#content>section{
		padding: 3rem;
		padding-bottom: 4rem;
	}
	#content.projects>main,
	#content.projects>section{
		padding: .5rem;
		padding-bottom: 4rem;
	}

	.disciplines{
		right: 2.5rem;
		font-size: 1.2rem;
		line-height: 1.5;
		font-weight: 600;
		margin-top: .2rem;
	}
	.time{
		bottom:2.5rem;
	}
	.name:before{
		content: 'O. ';
	}
	#links{
		width: fit-content;
	}
	#content>section.contact{
		padding: 5rem 2rem;
	}
	section.contact>p, 
	section.contact a {
	    font-size: 1.5rem;
	}
}
@media (max-height: 450px) {
	section{
		padding: 2rem;
		margin: 0;
	}
	.time{
		bottom:0;
	}
}

@media (max-width: 450px) {
	main,
	section{
		padding: 2rem;
		margin: 0;
	}
	#content>section{
		padding: .5rem;
		padding-bottom: 4rem;
	}

	.disciplines{
		visibility: hidden;
	}
	.name:before{
		content: 'O. ';
	}
	.time>*:first-child{
		display: none;
	}
	#links{
		width: unset;
	}
	#links>*{
		display: block;
		margin: 0;
		padding-bottom: 1rem;
	}
	#links:before{
		position: absolute;
		right: 5%;
	}
	.textlink:hover{
		background-size: 0;
	}
	#content>section.contact{
		padding: 3rem 1rem;
	}

}

@media (max-width: 300px) {
	body{
		min-width: 300px;
		overflow-x: unset;
	}

}





/* WORK */




#nav-back{
	font-size: unset;
	display: flex;
	align-items: center;
	height: 100%;
}

#nav-back .name:before {
	content: "\e125";
	font-size: 1em;
	margin-right: 0.3em;
	vertical-align: -.08em;
	transition: transform .5s ease;
	display: inline-block;
}

#nav-back .name:hover::before{
	transform: translateX(-20%) !important;
}
#nav-back .name:active::before{
	transition-duration: .05s;
	transition-timing-function: ease-in;
	transform: translateX(0%) !important;
}


#work-overview{
	height: auto;
	padding-top: 0;
	padding-bottom: 0;
}

#work-overview>main>div{
	max-width: 800px;
	width: 100%;
	box-sizing: border-box;
	padding: 1.75rem 0 1.75rem;
}

#work-overview>main div a {
	display: block;
/*	cursor: pointer; */
	padding: .75rem .25rem;
	margin: 0;
	font-size: 1em;
	transition: color .2s ease;
	margin-left: 10em;
	}

#work-overview>main div a:hover {
	color: inherit;
}

#work-overview h2 {
	position: absolute;
	font-size: 1.17em;
	padding: 1.25em 0 0 .5rem;
	margin: 0;
}

#work-overview h3 {
	font-size: 1.5em;
	margin: 0;
	padding: .5rem .25rem 0;
}
#work-overview h4{
	font-size: 1.17em;
	margin: 0;
	padding: .75rem .25rem 0;
}

#work-overview main>*{
	opacity: 0;
	animation: fadeIn 2s .5s ease forwards;
/*	border-top: .5px solid #70707050;*/
	/*border-top: .5px solid rgba(currentColor, 0.8);*/
}

#work-overview .details{
	margin: .5rem 0 .5rem .5rem;
}


@media (max-width: 450px){

	#work-overview>main {
		padding: 0 1rem 3rem;
		margin: 0;
/*		width: 100%;*/
	}

	#work-overview h2 {
		position: initial;
		font-size: 1.5em;
		display: none;
	}

	#work-overview>main div a {
		margin-left: initial;
	}

}