*, *:after, *:before { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; }
.clearfix:before, .clearfix:after { content: ''; display: table; }
.clearfix:after { clear: both; }

@font-face {font-family: Silka-Regular; src: url("../fonts/Silka/silka-regular-webfont.ttf");}
@font-face {font-family: Silka-Medium; src: url("../fonts/Silka/silka-medium-webfont.ttf");}
@font-face {font-family: Silka-SemiBold; src: url("../fonts/Silka/silka-semibold-webfont.ttf");}
@font-face {font-family: SilkaMono-Regular; src: url("../fonts/Silka_Mono/silkamono-regular-webfont.ttf");}
@font-face {font-family: SilkaMono-Medium; src: url("../fonts/Silka_Mono/silkamono-semibold-webfont.ttf");}



h1, h2, h3, h4, p, a, b, strong  {padding: 0; margin: 0; font-weight: 400; letter-spacing: normal;}
li, ul {padding: 0; margin: 0; list-style: none;}
h1.center, h2.center, h3.center, h4.center, p.center {text-align: center;}
a:focus { outline: none; }

h1          {font-family: 'SilkaMono-Medium', sans-serif; font-size: 42px; margin-bottom: 24px; letter-spacing: -1px;}
h2          {font-family: 'Silka-SemiBold', sans-serif; font-size: 18px;}
h3          {font-family: 'SilkaMono-Regular', sans-serif; font-size: 13px; color: rgba(255, 255, 255, .6); text-transform: uppercase; letter-spacing: 2px;}
p           {font-size: 14px; color: rgba(255, 255, 255, 0.7); margin-bottom: 24px; line-height: 24px;}
strong 	    {font-family: 'Silka-SemiBold', sans-serif; color: rgba(255, 255, 255, 1);}
a           {text-decoration: none; outline: 0;}
p a         {text-decoration: underline; color: rgba(255, 255, 255, 0.7);}
p a:hover   {color: rgba(255, 255, 255, 1);}

@media screen and (max-width: 640px){
    h1 {font-size: 28px;}
}

body {
    font-family: 'Silka-Medium', sans-serif;
    font-size: 14px;
    line-height: 1.25;
    font-weight: 400;
	background: #000;
	color: #fff;
    -webkit-font-smoothing: antialiased;
	top: 0;  
    left: 0;
}

html, body {
    width: 100%;
    -webkit-font-smoothing: antialiased;
    position: relative;
    scroll-behavior: smooth;
}

::-webkit-scrollbar { 
    display: none; 
}

* { 
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    -moz-tap-highlight-color: rgba(0, 0, 0, 0);
}

/* ------------------------- All -------------------------------------------------- */

section, .section {
    float: left;
    width: 100%;
    position: relative;
    background: #000;
    padding-top: 120px;
    padding-bottom: 120px;
    overflow: hidden;
}

section.big, .section.big {
    padding-top: 150px;
    padding-bottom: 150px;
}

.wrap {
    max-width: 1080px;
    margin: 0 auto;
    padding-left: 40px;
    padding-right: 40px;
    position: relative;
}

.wrap-wide {
    max-width: 1280px;
    margin: 0 auto;
    padding-left: 40px;
    padding-right: 40px;
    position: relative;
}

.wrap-text {
    max-width: 860px;
    margin: 0 auto;
    padding-left: 80px;
    padding-right: 80px;
    position: relative;
}

.sub-wrap {
    width: 50%;
    position: relative;
    float: left;
}

@media screen and (max-width: 1080px){ 
    section, .section {
        padding-top: 80px;
        padding-bottom: 80px;
    }
    
    section.big, .section.big {
        padding-top: 110px;
        padding-bottom: 110px;
    } 
}

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

    section, .section {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .wrap {
        max-width: 100%;
        padding-left: 20px;
        padding-right: 20px;
    }

    .wrap-wide {
        max-width: 100%;
        padding-left: 20px;
        padding-right: 20px;
    }

    .wrap-text {
        max-width: 100%;
        padding-left: 20px;
        padding-right: 20px;
    }

    .sub-wrap {
        width: 100%;
    }
}

/* ------------------------- Buttons -------------------------------------------------- */

.btn {
    height: 50px;
    color: #000;
    display: inline-block;
    padding: 13px 30px 13px 30px;
    position: relative;
    font-size: 14px;
    line-height: 24px;
    text-decoration: none;
    background: #fff;
    border-radius: 25px;
    white-space: nowrap;
}

.btn:hover {
    cursor: pointer;
    background: #252525;
    color: #fff;
}

.hero-cta {
    position: absolute;
    top: 70%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 4;
    text-align: center;
}

.jump-link {
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

@media screen and (max-width: 640px){
    .btn {
        padding: 12px 20px;
        font-size: 12px;
        white-space: normal;
        height: auto;
        min-height: 44px;
        line-height: 1.4;
    }

    .hero-cta {
        top: 65%;
        padding: 0 20px;
        width: 100%;
    }

    .jump-link {
        letter-spacing: 0.02em;
        display: inline-block;
        max-width: 100%;
    }
}

@media screen and (max-width: 400px){
    .btn {
        padding: 10px 16px;
        font-size: 11px;
    }

    .jump-link {
        letter-spacing: 0;
    }
}



/* ------------------------- Textblock -------------------------------------------------- */

.textblock {
    padding-top: 200px;
}

.textblock img {
    width: 100%;
    margin-bottom: 30px;
}

.textblock p {
    opacity: 1;
    margin-bottom: 30px;
}

.textblock a {
	color: #fff;
	text-decoration: underline;
}

.textblock p:last-child {
    margin-bottom: 0;
}

.textblock ul {
    padding-bottom: 30px;
    display: inline;
    float: left;
    width: 100%;
}

.textblock ol {
    padding-bottom: 30px;
    display: inline;
    float: left;
    width: 100%;
    padding-left: 23px;
}

.textblock ul li {
    padding-left: 20px;
    margin-bottom: 10px;
    position: relative;
    padding-left: 16px;
    
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 24px;
}

.textblock ol li {
	list-style: decimal;
	margin-left: -5px;
    color: #fff;
}

.textblock ul li:before {
    content: "";
    width: 6px;
    height: 6px;
    background: #fff;
    position: absolute;
    left: 0;
    top: 7px;
}

.textblock h1 {
    text-align: center;
    margin-bottom: 120px;
}

.textblock h3 {
    color: #fff;
    text-transform: none;
    font-family: 'Silka-SemiBold', sans-serif;
    letter-spacing: 0;
    font-size: 15px;
    margin-bottom: 5px;
}

#embed .vimeoplayer {
	margin-bottom: 200px;
}

#embed .vimeoplayer:last-child {
	margin-bottom: 0px;
}

#embed strong {
	font-size: 21px;
	margin-bottom: 10px;
	display: inline-block;
}

@media screen and (max-width: 640px){ 
	.textblock {
    	padding-top: 150px;
	}
	
	.textblock h1 {
	    margin-bottom: 80px;
	}
	
	#embed .vimeoplayer {
		margin-bottom: 100px;
	}
}

/* ------------------------- Page Transition -------------------------------------------------- */

.overlay-transition {
    position: fixed;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    background: #000;
    z-index: 19;
    opacity: 1;
    pointer-events: none;
}

.home-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000;
    z-index: 22;
}

.home-overlay.fade-in {
    opacity: 1;
    visibility: visible;
    transition: all 1s cubic-bezier(0.87, 0, 0.13, 1);
    transition-delay: 1s;
}

.home-overlay.fade-in.appear {
    opacity: 0;
    visibility: hidden;
}

.home-overlay img {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    position: absolute;
}

.home-overlay.fade-in img {
    transform: translate(-50%, -50%) scale(3) rotate(10deg);
    opacity: 0;
    transition: all 1s cubic-bezier(0.87, 0, 0.13, 1);
}

.home-overlay.fade-in.appear img {
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
    opacity: 1;
}

@keyframes loadOverlay {0% {opacity: 100%;} 100% {opacity: 0; }}
@-moz-keyframes loadOverlay {0% {opacity: 100%;} 100% {opacity: 0;}}
@-webkit-keyframes loadOverlay {0% {opacity: 100%;} 100% {opacity: 0;}}
@-o-keyframes loadOverlay {0% {opacity: 100%;} 100% {opacity: 0;}}

/* ------------------------- Default Header -------------------------------------------------- */

.default-header {
    padding-top: 200px;
    text-align: center;
    padding-bottom: 100px;
}

/* ------------------------- Parallax -------------------------------------------------- */

header {
    height: 100vh;
    width: 100%;
    float: left;
    position: relative;
    overflow: hidden;
}

header .parallax {
    position: relative;
    float: left;
    width: 100%;
    height: 100vh;
}

header .parallax .layer {
    position: absolute;
    width: 100%;
    height: 100vh;
}

header .bottom-fade {
    width: 100%;
	bottom: 0;
	height: 50vh;
	z-index: 2;
	float: left;
	position: absolute;
	background: linear-gradient(to top, black 0%, rgba(0, 0, 0, 0.738) 19%, rgba(0, 0, 0, 0.541) 34%, rgba(0, 0, 0, 0.382) 47%, rgba(0, 0, 0, 0.278) 56.5%, rgba(0, 0, 0, 0.194) 65%, rgba(0, 0, 0, 0.126) 73%, rgba(0, 0, 0, 0.075) 80.2%, rgba(0, 0, 0, 0.042) 86.1%, rgba(0, 0, 0, 0.021) 91%, rgba(0, 0, 0, 0.008) 95.2%, rgba(0, 0, 0, 0.002) 98.2%, transparent 100%);
}
  
header .top-fade {
    width: 100%;
	top: 0;
	height: 30vh;
	z-index: 2;
	float: left;
	position: absolute;
    background: linear-gradient(to bottom, black 0%, rgba(0, 0, 0, 0.738) 19%, rgba(0, 0, 0, 0.541) 34%, rgba(0, 0, 0, 0.382) 47%, rgba(0, 0, 0, 0.278) 56.5%, rgba(0, 0, 0, 0.194) 65%, rgba(0, 0, 0, 0.126) 73%, rgba(0, 0, 0, 0.075) 80.2%, rgba(0, 0, 0, 0.042) 86.1%, rgba(0, 0, 0, 0.021) 91%, rgba(0, 0, 0, 0.008) 95.2%, rgba(0, 0, 0, 0.002) 98.2%, transparent 100%);
    opacity: .2;
}

header .location {
    position: absolute;
    bottom: 40px;
    left: 40px;
    z-index: 3;
}

header .location svg {
    height: 22px;
    float: left;
    margin-right: 10px;
    transform: translate(0, -2px);
    -webkit-animation: location-rotate 2s ease-in-out;
    -webkit-animation-iteration-count: infinite;
    animation: location-rotate 2s ease-in-out;
    animation-iteration-count: infinite;
}

header .location span {
    line-height: 22px;
    float: left;
    font-family: 'Silka-Medium', sans-serif;
    color: rgba(255, 255, 255, 0.6);
}

@-webkit-keyframes location-rotate {
    0% {transform: translate(0, -2px) rotate(0deg);}
    75% {transform: translate(0, -2px) rotate(360deg);}
    100% {transform: translate(0, -2px) rotate(360deg);}
}

@keyframes location-rotate {
    0% {transform: translate(0, -2px) rotate(0deg);}
    75% {transform: translate(0, -2px) rotate(360deg);}
    100% {transform: translate(0, -2px) rotate(360deg);}
}


header .left-bottom-link {
    position: absolute;
    bottom: 40px;
    left: 40px;
    z-index: 3;
}

header .left-bottom-link a {
    display: flex;
    align-items: center;
    gap: 10px;
    transition: opacity 0.3s ease;
}

header .left-bottom-link a:hover {
    opacity: 0.7;
}

header .left-bottom-link svg {
    height: 22px;
    width: 22px;
    fill: rgba(255, 255, 255, 0.6);
}

header .left-bottom-link span {
    line-height: 22px;
    font-family: 'Silka-Medium', sans-serif;
    color: rgba(255, 255, 255, 0.6);
}

header .right-bottom-text {
    position: absolute;
    bottom: 40px;
    right: 40px;
    z-index: 3;
}

header .right-bottom-text span {
    line-height: 22px;
    float: left;
    font-family: 'Silka-Medium', sans-serif;
    color: rgba(255, 255, 255, 0.6);
}

/* Transition  */

header .parallax .layer.fade-in {
    transition: top 1s cubic-bezier(0.87, 0, 0.13, 1), opacity 1s cubic-bezier(0.87, 0, 0.13, 1); 
    top: 100px;
    transition-delay: 1.5s;
    opacity: 0;
}
header .parallax .layer.fade-in.appear {
    top: 0;
    opacity: 1;
}


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

    header {
        height: 100vh;
        min-height: 600px;
    }

    header .parallax {
        height: 100vh;
        min-height: 600px;
    }

    header .parallax .layer {
        height: 100vh;
        min-height: 600px;
    }

    header .parallax .layer.fade-in {
        position: absolute;
        height: 100vh;
        min-height: 600px;
        margin-top: 0;
    }

    header .bottom-fade {
        height: 40vh;
    }
}

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

    header .location {
        left: 50%; 
        transform: translate(-50%, 0);
        bottom: 30px;
    }

    header .right-bottom-text {
        display: none;
    }
}
  
/* ------------------------- Links -------------------------------------------------- */

.links {
    padding-top: 180px;
    padding-bottom: 250px;
}

.links .single-link {
    float: left;
    width: calc(25% - 22.5px);
    margin-right: 30px;
    background: #252525;
    position: relative;
}

.links .single-link:last-child {
    margin-right: 0;
}

.links .single-link:before {
    content: "";
    padding-top: 140%;
    display: block;
} 

.links .single-link .bottom-fade {
    width: 100%;
    bottom: 0;
    left: 0;
	height: 70%;
	position: absolute;
    background: linear-gradient(to top, black 0%, rgba(0, 0, 0, 0.738) 19%, rgba(0, 0, 0, 0.541) 34%, rgba(0, 0, 0, 0.382) 47%, rgba(0, 0, 0, 0.278) 56.5%, rgba(0, 0, 0, 0.194) 65%, rgba(0, 0, 0, 0.126) 73%, rgba(0, 0, 0, 0.075) 80.2%, rgba(0, 0, 0, 0.042) 86.1%, rgba(0, 0, 0, 0.021) 91%, rgba(0, 0, 0, 0.008) 95.2%, rgba(0, 0, 0, 0.002) 98.2%, transparent 100%);
}

.links .single-link img, .links .single-link svg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
}

.links .single-link .bottom-link {
    height: 30px;
    position: absolute;
    width: 100%;
    bottom: 20px;
    text-align: center;
    padding-top: 8px;
}

.links .single-link .bottom-link h3 {
    font-size: 12px;
    display: inline-block;
    margin-right: 10px;
}

.links .single-link .bottom-link svg {
    display: inline-block;
    left: auto;
    transform: translate(0, -35%);
    opacity: .6;
}

.links .single-link:hover img, .links .single-link:hover svg {
    transform: translate(-50%, -50%) scale(1.1);
}

.links .single-link:hover .bottom-fade {
    height: 150%;
}

.links .single-link:hover .bottom-link {
    bottom: 30px;
}

.links .single-link:hover .bottom-link h3 {
    color: #fff;
}

.links .single-link:hover .bottom-link svg {
    opacity: 1;
    transform: translate(0, -35%) scale(1);
}

/* Transition  */

.links .single-link.fade-in:nth-child(1) {transform: translate(0, 60px);}
.links .single-link.fade-in:nth-child(2) {transform: translate(0, 60px);}
.links .single-link.fade-in:nth-child(3) {transform: translate(0, 60px);}
.links .single-link.fade-in:nth-child(4) {transform: translate(0, 60px);}

.links .single-link.fade-in {
    transition: all 2s cubic-bezier(0.87, 0, 0.13, 1); 
    opacity: 0;
}

.links .single-link.fade-in.appear:nth-child(1) {transform: translate(0, 0px);}
.links .single-link.fade-in.appear:nth-child(2) {transform: translate(0, -60px);}
.links .single-link.fade-in.appear:nth-child(3) {transform: translate(0, 0px);}
.links .single-link.fade-in.appear:nth-child(4) {transform: translate(0, -60px);}

.links .single-link.fade-in.appear {
    opacity: 1;
}

@media screen and (max-width: 1080px){
    
    .links {
        padding-top: 120px;
        padding-bottom: 120px;
    }

    .links .single-link .bottom-link h3 {
        font-size: 10px;
    }

    .links .single-link img, .links .single-link svg {
        transform: translate(-50%, -50%) scale(.8);
    }
    
    .links .single-link:hover img, .links .single-link:hover svg {
        transform: translate(-50%, -50%) scale(.9);
    }
}

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

    .links {
        padding-top: 120px;
        padding-bottom: 60px;
    }

    .links .single-link {
        width: calc(50% - 10px);
        margin-right: 20px;
        margin-bottom: 20px;
    }
    
    .links .single-link:last-child, .links .single-link:nth-child(2) {
        margin-right: 0;
    }
}

@media screen and (max-width: 400px){
    
    .links .single-link .bottom-link h3 {
        margin-right: 0px;
    }
    
    .links .single-link .bottom-link svg {
        display: none;
    }
}

/* ------------------------- About -------------------------------------------------- */

.about {
    padding-top: 300px;
    padding-bottom: 0;
    margin-bottom: 200px;
    overflow: visible;
}

.about .background-image {
    width: 100%;
    height: 80%;
    position: absolute;
    left: 0;
    top: 0;
}

.about .bottom-fade {
    width: 100%;
	top: 20%;
	height: 60%;
	float: left;
	position: absolute;
	background: linear-gradient(to top, black 0%, rgba(0, 0, 0, 0.738) 19%, rgba(0, 0, 0, 0.541) 34%, rgba(0, 0, 0, 0.382) 47%, rgba(0, 0, 0, 0.278) 56.5%, rgba(0, 0, 0, 0.194) 65%, rgba(0, 0, 0, 0.126) 73%, rgba(0, 0, 0, 0.075) 80.2%, rgba(0, 0, 0, 0.042) 86.1%, rgba(0, 0, 0, 0.021) 91%, rgba(0, 0, 0, 0.008) 95.2%, rgba(0, 0, 0, 0.002) 98.2%, transparent 100%);
}

.about .wrap-text {
    transform: translate(0, 150px);
}

.about p strong {
    font-size: 18px;
    line-height: 30px;
}

@media screen and (max-width: 1080px){
    .about {
        padding-top: 0px;
        padding-bottom: 0;
        margin-bottom: 200px;
    }
}

@media screen and (max-width: 640px){
    .about {
        padding-top: 60px;
        padding-bottom: 0px;
        margin-bottom: 0;
        display: flex;
        flex-direction: column;
    }

    .about .background-image {
        position: relative;
        height: 400px;
        width: 100%;
        margin-bottom: 40px;
    }

    .about .bottom-fade {
        display: none;
    }

    .about .wrap-text {
        transform: translate(0, 0);
        padding: 0 20px;
        position: relative;
        z-index: 2;
    }

    .about p {
        font-size: 14px;
        line-height: 24px;
        color: rgba(255, 255, 255, 0.8);
        margin-bottom: 0;
    }

    .about p strong {
        font-size: 16px;
        line-height: 26px;
    }
}

/* ------------------------- Circle Text -------------------------------------------------- */

.circle-wrap {
    width: 100%;
    float: left;
    padding-bottom: 110px;
}

.circle-text {
    width: 150px;
    height: 150px;
    background: #000;
    padding: 20px;
    position: relative;
    border-radius: 75px;
    float: right;
}

.circle-text svg {
    float: left;
    transform: rotate(115deg);
}

.circle-text svg path {
    fill: transparent;
}

.circle-text svg textPath {
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 4px;
    font-family: 'SilkaMono-Regular', sans-serif;
    text-align: center;
    fill: #fff;
}

/* Transition  */

.circle-text.fade-in svg {
    transform: rotate(25deg);
    transition: all 1s cubic-bezier(0.87, 0, 0.13, 1); 
}

.circle-text.fade-in.appear svg {
    transform: rotate(115deg);
}

@media screen and (max-width: 640px){ 
    .about .circle-wrap {
        padding-bottom: 40px;
    }  
}

/* ------------------------- Portfolio -------------------------------------------------- */

.portfolio {
    padding-top: 150px;
    padding-bottom: 0px;
}

.portfolio .wrap {
    height: 240px;
    margin-bottom: 250px;
}

#recent-projects {
    padding-top: 250px;
}

#recent-projects .wrap {
    margin-bottom: 175px;
}

.portfolio .single-image {
    width: 248px;
    background: #252525;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.portfolio .single-image .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
}

.portfolio .single-image svg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(.5);
    width: 34px;
    opacity: 0;
}

.portfolio .single-image:before {
    content: "";
    padding-top: 125%;
    display: block;
} 

.portfolio .single-image.landscape {
    width: 310px;
}

.portfolio .single-image.landscape:before {
    content: "";
    padding-top: 70%;
    display: block;
} 
 
.portfolio .wrap-text .bottom-link {
    height: 30px;
    position: relative;
    float: left;
    width: 100%;
    bottom: 20px;
    text-align: center;
    padding-top: 8px;
}

.portfolio .wrap-text .bottom-link h3 {
    font-size: 12px;
    display: inline-block;
    margin-right: 5px;
}

.portfolio .wrap-text .bottom-link svg {
    display: inline-block;
    left: auto;
    transform: translate(0, 4px);
    opacity: .6;
}

.portfolio .wrap-text .bottom-link:hover h3 {
    color: #fff;
}

.portfolio .wrap-text .bottom-link:hover svg {
    opacity: 1;
    transform: translate(0, 4px);
}

.portfolio .single-image:hover .overlay {
    background: rgba(0, 0, 0, 0.5);
}

.portfolio .single-image:hover svg {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Transition  */

.portfolio.fade-in .single-image:nth-child(1) { transform: translate(-50%, -50%) rotate(5deg); z-index: 3;}
.portfolio.fade-in .single-image:nth-child(2) { transform: translate(-50%, -50%) rotate(-10deg); z-index: 4;}
.portfolio.fade-in .single-image:nth-child(3) { transform: translate(-50%, -50%) rotate(10deg); z-index: 2;}
.portfolio.fade-in .single-image:nth-child(4) { transform: translate(-50%, -50%) rotate(-5deg); z-index: 1;}

.portfolio.fade-in .single-image {
    transition: all 1s cubic-bezier(0.87, 0, 0.13, 1); 
    transition-delay: .5s;
}

.portfolio.fade-in.appear .single-image:nth-child(1) { transform: translate(-95%, -75%) rotate(-5deg); z-index: 4;}
.portfolio.fade-in.appear .single-image:nth-child(2) { transform: translate(0, -85%) rotate(10deg); z-index: 5;}
.portfolio.fade-in.appear .single-image:nth-child(3) { transform: translate(-110%, -5%) rotate(-10deg); z-index: 2;}
.portfolio.fade-in.appear .single-image:nth-child(4) { transform: translate(-15%, -15%) rotate(5deg); z-index: 1;}

.portfolio.fade-in.appear .single-image:nth-child(1):hover { transform: translate(-105%, -85%) rotate(-10deg); z-index: 3; transition: all .3s cubic-bezier(0.7, 0, 0.3, 1); }
.portfolio.fade-in.appear .single-image:nth-child(2):hover { transform: translate(10%, -95%) rotate(15deg); z-index: 4; transition: all .3s cubic-bezier(0.7, 0, 0.3, 1); }
.portfolio.fade-in.appear .single-image:nth-child(3):hover { transform: translate(-120%, 5%) rotate(-15deg); z-index: 1; transition: all .3s cubic-bezier(0.7, 0, 0.3, 1); }
.portfolio.fade-in.appear .single-image:nth-child(4):hover { transform: translate(-5%, -5%) rotate(10deg); z-index: 2; transition: all .3s cubic-bezier(0.7, 0, 0.3, 1); }

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

    .portfolio {
        padding-top: 80px;
        padding-bottom: 60px;
    }

    .portfolio .wrap {
        height: auto;
        margin-bottom: 0;
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 20px;
    }

    .portfolio .single-image {
        width: 100%;
        background: #252525;
        position: relative;
        top: auto;
        left: auto;
        transform: none;
    }

    .portfolio .single-image.landscape {
        width: 100%;
    }

    .portfolio .single-image:before {
        padding-top: 60%;
    }

    #recent-projects {
        padding-top: 80px;
    }

    #recent-projects .wrap {
        margin-bottom: 40px;
    }

    /* Remove all the fancy positioning on mobile */
    .portfolio.fade-in .single-image:nth-child(1),
    .portfolio.fade-in .single-image:nth-child(2),
    .portfolio.fade-in .single-image:nth-child(3),
    .portfolio.fade-in .single-image:nth-child(4) {
        transform: none;
        position: relative;
    }

    .portfolio.fade-in.appear .single-image:nth-child(1),
    .portfolio.fade-in.appear .single-image:nth-child(2),
    .portfolio.fade-in.appear .single-image:nth-child(3),
    .portfolio.fade-in.appear .single-image:nth-child(4) {
        transform: none;
    }

    .portfolio.fade-in.appear .single-image:nth-child(1):hover,
    .portfolio.fade-in.appear .single-image:nth-child(2):hover,
    .portfolio.fade-in.appear .single-image:nth-child(3):hover,
    .portfolio.fade-in.appear .single-image:nth-child(4):hover {
        transform: none;
    }

}

/* ------------------------- Filter Tags -------------------------------------------------- */

.filter {
    padding-top: 160px;
    padding-bottom: 0px;
}

.filter .tags {
    float: left;
    width: 100%;
    text-align: center;
    position: absolute;
    height: 50px;
    left: 0;
    z-index: 12;
}

.filter .tags li {
    display: inline-block;
    padding: 0 10px;
}

.filter .tags li a{
    float: left;
    height: 50px;
    text-transform: uppercase;
    font-family: 'SilkaMono-Regular', sans-serif; 
    font-size: 13px; 
    color: rgba(255, 255, 255, .5); 
    text-transform: uppercase; 
    letter-spacing: 2px;
    line-height: 30px;
    padding: 10px;
}

.filter .tags li a.active {
    color: rgba(255, 255, 255, 1);
    font-family: 'SilkaMono-SemiBold', sans-serif; 
}

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

    .filter {
        padding-top: 140px;
        padding-bottom: 80px;
    }

    .filter .tags li {
        padding: 0;
    }

    .filter .tags li a{
        font-size: 11px; 
        letter-spacing: 1px;
        padding: 10px 7px 10px 7px;
    }
} 


/* ------------------------- Portfolio Grid -------------------------------------------------- */
 
.grid {
    padding-top: 0;
}

.grid .wrap-wide {
    padding-left: 25px;
    padding-right: 25px;
}

.photoswipe-wrapper {
    float: left;
    width: 100%;
}

.photoswipe-wrapper .photoswipe-item {
    float: left;
    padding: 15px;
    width: 25%;
}

.photoswipe-wrapper .photoswipe-item:nth-child(2), .photoswipe-wrapper .photoswipe-item:nth-child(4) {
    margin-top: 60px;
}

.photoswipe-wrapper .photoswipe-item a {
    float: left;
    width: 100%;
    position: relative;
    outline: 0;
    background: #252525;
}

.photoswipe-wrapper .photoswipe-item a img {
    float: left;
    width: 100% !important;
    border: 0;
    stroke: 0;
    outline: 0;
    height: auto !important;
}

.photoswipe-wrapper .photoswipe-item a .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
}

.photoswipe-wrapper .photoswipe-item a svg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(.5);
    width: 34px;
    opacity: 0;
}

.photoswipe-wrapper .photoswipe-item a:hover .overlay {
    background: rgba(0, 0, 0, 0.5);
}

.photoswipe-wrapper .photoswipe-item a:hover svg {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Transition  */

.photoswipe-wrapper.fade-in {
    transform: translate(0,100px);
    opacity: 0;
    transition: all 1s cubic-bezier(0.87, 0, 0.13, 1); 
    transition-delay: -.25s;
}

.photoswipe-wrapper.fade-in.appear {
    transform: translate(0,0);
    opacity: 1;
}

.photoswipe-wrapper .photoswipe-item.fade-in {
    opacity: 0;
    transition: all 1s cubic-bezier(0.87, 0, 0.13, 1);
}

.photoswipe-wrapper .photoswipe-item.fade-in.appear {
    opacity: 1;
}

@media screen and (max-width: 1080px){
    .photoswipe-wrapper .photoswipe-item {
        float: left;
        padding: 15px;
        width: 33.333%;
    }

    .photoswipe-wrapper .photoswipe-item:nth-child(4) {
        margin-top: 0px;
    }
}

@media screen and (max-width: 640px){ 
    .grid {
        padding-bottom: 0;
    }
    .grid .wrap-wide {
        padding-left: 10px;
        padding-right: 10px;
    }

    .photoswipe-wrapper .photoswipe-item {
        float: left;
        padding: 10px;
        width: 50%;
    }

    .photoswipe-wrapper .photoswipe-item:nth-child(2) {
        margin-top: 30px;
    }
}

/* ------------------------- Video Grid -------------------------------------------------- */

.pswp__zoom-wrap {
    text-align: center;
}

.pswp__zoom-wrap:before {
    content: '';
    display: inline-block;
    height: 100%;
    vertical-align: middle;
}

.grid .wrapper {
    line-height: 0;
    width: 100%;
    position: relative;
    display: inline-block;
    vertical-align: middle;
    margin: 0 auto;
    text-align: left;
    z-index: 1045;
}

.grid  .video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    padding-bottom: 45%;
    padding-top: 0;
    height: 0;
    width: 100%;
}

.grid  .video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}


/* ------------------------- Footer -------------------------------------------------- */

footer {
    float: left;
    width: 100%;
    position: relative;
    padding: 250px 0 130px 0;
}

footer .background-image, footer .left-fade, footer .top-fade {
    width: 75vw;
    position: absolute;
    height: 100%;
    right: 0;
    top: 0;
}

footer .left-fade {
    background: linear-gradient(270deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.95) 100%);
}

footer .top-fade {
    background: linear-gradient(0deg, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 100%);
}

footer .wrap-text {
    text-align: center;
}

footer .mail {
    font-family: 'SilkaMono-Medium', sans-serif;
    font-size: 42px;
    text-align: center;
    line-height: 60px;
    color: #fff;
    display: inline-block;
}

footer .mail:hover {
    text-decoration: underline;
}

footer .logo-row {
    float: left;
    width: 100%;
    text-align: center;
    margin: 120px 0 -50px -15px;
    display: flex;
    justify-content: center;
    align-items: center;
}

footer .logo-row img {
    height: 200px;
    width: auto;
}

footer .credits-row {
    float: left;
    width: 100%;
    text-align: center;
}

footer .credits-row li {
    display: inline-block;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 5px;
}

footer .credits-row li:nth-child(2) {
    margin: 0 3px;
}

footer .credits-row li a {
    color: rgba(255, 255, 255, 0.7);
}

footer .credits-row li a:hover {
    color: rgba(255, 255, 255, 1);
}



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

    footer {
        padding: 180px 0 50px 0;
    }

    footer .mail {
        font-size: 32px;
        line-height: 50px;
    }
}

@media screen and (max-width: 640px){
    footer {
        padding: 120px 0 80px 0;
    }

    footer .mail {
        font-size: 22px;
        line-height: 36px;
        word-break: break-word;
    }

    footer .background-image, footer .left-fade, footer .top-fade {
        width: 100vw;
    }

    footer .logo-row {
        margin: 80px 0 -40px -15px;
    }

    footer .logo-row img {
        height: 150px;
    }

}


/* ------------------------- Error -------------------------------------------------- */

main#error footer {
    display: none;
}
.error {
    height: 100vh;
}

.error .wrap-text {
    position: absolute;
    width: 640px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.error .background-image, .error .left-fade, .error .top-fade {
    width: 60vw;
    position: absolute;
    height: 100%;
    right: 0;
    top: 0;
}

.error .left-fade {
    background: linear-gradient(270deg, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 100%);
}

.error .top-fade {
    background: linear-gradient(0deg, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 100%);
}

@media screen and (max-width: 640px){
    .error .wrap-text {
        width: 100%;
    }

    .error .background-image, .error .left-fade, .error .top-fade {
        width: 100vw;
    }
}


/* ------------------------- Beerslider -------------------------------------------------- */

.textblock .iframe-div {
	margin-bottom: 30px;
}

.textblock .sellfy-buy-button {
	margin-bottom: 30px;
}

.textblock.first {
	padding-top: 200px;
	padding-bottom: 0px;
}

.textblock.more-text {
	padding-top: 80px;
	padding-bottom: 80px;
}

.beforeafter {
	padding: 0;
}

.beforeafter .beer-handle {
	background: rgba(255, 255, 255, 1);
}

.beforeafter .beer-range:focus ~ .beer-handle {
	background: rgba(255, 255, 255, 1);
}

.beforeafter .beer-slider[data-beer-label]:after, .beer-reveal[data-beer-label]:after {
	border-radius: 15px;
	font-size: 12px;
	padding: 10px 20px;
	top: 30px;
	font-family: 'SilkaMono-Medium', sans-serif;
	background: rgba(0, 0, 0, .3);
	color: #fff;
}

.beforeafter  .beer-slider[data-beer-label]:after {
	right: 30px;
}

.beforeafter  .beer-reveal[data-beer-label]:after {
	left: 30px;
}

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

	.textblock.first {
		padding-top: 150px;
		padding-bottom: 0;
	}
	
	.textblock.first h1 {
		margin-bottom: 60px;
	}
	
	.textblock.more-text {
		padding-top: 30px;
		padding-bottom: 30px;
	}
	
	.beforeafter .beer-slider[data-beer-label]:after, .beer-reveal[data-beer-label]:after {
		top: 10px;
		background: rgba(0, 0, 0, .3);
		color: #fff;
	}
	
	.beforeafter  .beer-slider[data-beer-label]:after {
		right: 10px;
	}
	
	.beforeafter  .beer-reveal[data-beer-label]:after {
		left: 10px;
	}


}

/* ------------------------- Back to Portfolio Button -------------------------------------------------- */

.back-to-portfolio {
    position: fixed;
    top: 40px;
    right: 40px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Silka-Medium', sans-serif;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s ease;
    z-index: 100;
}

.back-to-portfolio:hover {
    background: rgba(0, 0, 0, 0.8);
    color: rgba(255, 255, 255, 1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateX(-2px);
}

.back-to-portfolio svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.back-to-portfolio:hover svg {
    transform: translateX(-2px);
}

@media screen and (max-width: 640px) {
    .back-to-portfolio {
        top: 20px;
        right: 20px;
        padding: 8px 12px;
        font-size: 12px;
    }

    .back-to-portfolio span {
        display: none;
    }

    .back-to-portfolio svg {
        width: 18px;
        height: 18px;
    }
}

/* ------------------------- Animations -------------------------------------------------- */

.social-ico svg, .btn {
	-webkit-transition: all .25s ease-in-out;
	-moz-transition: all .25s ease-in-out;
	-ms-transition: all .25s ease-in-out;
	-o-transition: all .25s ease-in-out;
	transition: all .25s ease-in-out;  
}

.single-link h3, .single-link svg, .single-link img, .single-link .bottom-link, .single-link .bottom-fade, .single-image .overlay, .single-image svg, .bottom-link h3, .bottom-link svg, footer a, .photoswipe-item a svg, .photoswipe-item a .overlay, .photoswipe-item a, .social-ico-block {
    transition: all .3s cubic-bezier(0.7, 0, 0.3, 1); 
}

























/* ------------------------- Project Cards -------------------------------------------------- */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 30px;
    padding: 50px 0;
}

@media screen and (max-width: 640px){
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.project-card {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.3s ease;
}

.project-card:hover img {
    transform: scale(1.05);
    filter: brightness(0.7);
}

.project-card .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.8) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
}

.project-card:hover .overlay {
    opacity: 1;
}

.project-card .project-title {
    font-family: 'SilkaMono-Medium', sans-serif;
    font-size: 24px;
    color: #fff;
    margin-bottom: 8px;
    transform: translateY(20px);
    transition: transform 0.3s ease 0.1s;
}

.project-card:hover .project-title {
    transform: translateY(0);
}

.project-card .project-meta {
    font-family: 'SilkaMono-Regular', sans-serif;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 2px;
    transform: translateY(20px);
    transition: transform 0.3s ease 0.15s;
}

.project-card:hover .project-meta {
    transform: translateY(0);
}

/* Homepage Portfolio Project Titles */
.portfolio .single-image .overlay {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 100%);
    transition: background 0.3s ease;
}

.portfolio .single-image .project-title {
    font-family: 'SilkaMono-Medium', sans-serif;
    font-size: 18px;
    color: #fff;
    margin: 0;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.portfolio .single-image:hover .overlay {
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.85) 100%);
}

.portfolio .single-image:hover .project-title {
    opacity: 1;
    transform: translateY(0);
}

/* Hide SVG eye icon on homepage portfolio */
.portfolio .single-image svg {
    display: none;
}

/* Native HTML5 Video Player Styling */
.video-container {
    margin-bottom: 30px;
    background: #000;
    border-radius: 4px;
    overflow: hidden;
}

.video-container video {
    background: #000;
    object-fit: contain;
}

/* Enhance video controls */
video::-webkit-media-controls-panel {
    background: rgba(0, 0, 0, 0.9);
}

video::-webkit-media-controls-play-button,
video::-webkit-media-controls-mute-button,
video::-webkit-media-controls-volume-slider,
video::-webkit-media-controls-timeline {
    filter: brightness(1.2);
}

/* Firefox video controls */
video::-moz-media-controls {
    background: rgba(0, 0, 0, 0.9);
}

/* Loading state */
video:not([poster]) {
    background: #1a1a1a;
}
