#header {
	background-color: var(--bg-color-3);
	margin:0 auto;
	margin-bottom: 1.5em;
	padding-top: calc(.75 * var(--mob-padding));
	padding-bottom: calc(.75 * var(--mob-padding));
	z-index:99;
	width:100%;
	max-width:100vw;
	transition: all .5s cubic-bezier(.15,.2,.2,.95);
	position: relative;
}

.home #header::after {
	background-image: url("../img/meandr_04.svg");
	/* filter: drop-shadow(4px 4px 8px #111); */
	background-repeat: repeat-x;
	content:"";
	display: block;
	width: 100%;
	height: 32px;
	position: absolute;
	left: 0;
	bottom: -4px;
}

#header::after,
#header.topfixed::after {
	background-image: url("../img/meandr_04.svg");
	height: 20px;
	bottom: 2px;
}

#header .inside {
	margin:0 auto;
	width:100%;
	max-width:100vw;
	max-width: var(--max-width);
	display: flex;
	padding-left: var(--ipad-padding);
	padding-right: var(--ipad-padding);
	justify-content: space-between;
	align-items: center;
}

.home #header {	
	background: transparent;
	border-bottom: none;
	margin:0 auto;
	padding-top: calc(1.25 * var(--mob-padding));
	padding-bottom: calc(2.25 * var(--mob-padding));
	z-index:99;
	width:100%;
	transition: all .5s cubic-bezier(.15,.2,.2,.95);
	position: fixed;
}

.home #header::before {
	content:"";
	display: block;
	position: absolute;
	top:0;
	width: 100%;
	height: 100%;
	background: linear-gradient(180deg, rgba(20,20,20,.95), rgba(255,255,255,0) 97%);
	mix-blend-mode: multiply;
}

#header.topfixed::before {
    background-color: var(--bg-color-3);
    visibility: hidden;
    display: none;
    height: 0;
}

.home #header.topfixed {
    background-color: var(--bg-color-3);
	/* border-bottom-width: 2px; */
	position: fixed;
	padding-top: calc(1 * var(--mob-padding));
	padding-bottom: calc(2 * var(--mob-padding));
	filter: drop-shadow(0 2px 4px rgba(20,20,20, .4));
}

#header.topfixed {
    background-color: var(--bg-color-3);
	position: fixed;
	/* filter: drop-shadow(0 2px 4px rgba(20,20,20, .4)); */
}

@media screen and (max-width: 1200px) {

}

@media screen and (max-width: 1024px) {

}

@media screen and (max-width: 960px) {
	#header .inside {
		width:100%;
		max-width: 100%;
	}
	.home #header {
        padding-top: calc(1 * var(--mob-padding));
        padding-bottom: calc(2 * var(--mob-padding));
	}
    
    #header,
    #header.topfixed,
    .home #header.topfixed {
        /* position: fixed; */
        padding-top: calc(.5 * var(--mob-padding));
        padding-bottom: calc(.5 * var(--mob-padding));
		border-bottom: 1px solid var(--bg-color-2);
	}

    #header.topfixed::after,
    .home #header.topfixed::after {
		background: transparent;
		height: 0;
	}
}


@media screen and (max-width: 640px) {

	#header {
		margin-bottom: 0;
	}

	#header .inside {
		padding-left: var(--mob-padding);
		padding-right: var(--mob-padding);
	}

}