:root{
    --highlight-color: #fecf00;
    
}

.video_wrapper{
    position: relative;
    display: block;
    width: 100%;
    height: 80vh;
    overflow: hidden;
    z-index: 0;
}

.video_wrapper .text_wrapper{
    position: absolute;
    width: 50%;
   text-align: left;
   left: 40px; bottom: 40px;
   
    
}

.headline_deck  h1{
    font-size: 90px; 
    font-weight: 700;
    color: var(--highlight-color);
    margin-bottom: 0em;
}

.headline_deck p{
    padding: 1em;
    font-size: 22px;
    line-height: 1.5em;
    text-align: center;
}

.newsgrid{
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 4em;
    align-items: center;
    margin: 60px 0 0 0;
}

.newsgrid.reversed div:nth-child(1){
    grid-column: 2/3;
    grid-row: 1/2;
}

.newsgrid.reversed div:nth-child(2){
    grid-column: 1/2;
    grid-row: 1/2;
    text-align: right;
}

.newsgrid.reversed div a{margin-right: 10px;}

.newsgrid.reversed h2::before{left: initial; right: 0;}

@media(max-width: 840px){
    .newsgrid{grid-template-columns: 1fr;
    grid-gap: 2em;}

    .newsgrid.reversed div:nth-child(1), .newsgrid.reversed div:nth-child(2){grid-column: initial; grid-row: initial; text-align: left;}
}

.newsgrid img{width: 100%; display: block;}

.newsgrid h2{position: relative;
    color: var(--highlight-color);
    padding: 10px 0;
}

.newsgrid h2::before{
    content: "";
    position: absolute;
    top: -10px;
    left: 0;
    width: 15px;
    border-top: 1px solid var(--highlight-color);
}

.newsgrid p{margin: 10px 0; font-size: 16px; line-height: 1.5em;}
.newsgrid a{margin-top: 20px!important; font-size: 13px;}

.services.grid{
    width: calc(100% - 200px);
    margin: 80px auto 0 auto;
    display: grid;
    grid-gap: 10px;
    grid-template-columns: 1fr 1fr 1fr;


}


.services.grid .item{
    float: left;
    position: relative;
    z-index: 1;
    color: #151515; text-decoration: none;
}

.services.grid .item .img_wrapper{
    width: 100%; height: 200px;
    background-size: cover!important; background-position: center;
    margin: 0 0 10px 0;
    position: relative;
    
}

.services.grid .item .img_wrapper::before{
    content: "";
    position: absolute;
    top: 0; left: 0;
    border-top: 1px solid var(--highlight-color);
    width: 0%;
    transition-duration: 0.25s;
}

.services.grid .item:hover .img_wrapper::before{
    width: 100%;
}

.services.grid .item .text{
    display: block;
    width: 100%;
    padding: 20px 0 30px 0;
}

.services.grid .item.item2{position: relative;}


.services.grid .item.item2 .text{
    padding: 40px;
    margin: 0 auto;
    width: 180px; 
    height: 180px;
    position: relative;
    text-align: center;

}


.services.grid .item.item2 .text::after{
    content: "";
    position: absolute;
    top: 50%; left: 50%;
    width: 190px; height: 190px;
    border: 1px solid var(--highlight-color);
    transform: translateY(-50%) translateX(-50%) rotate(45deg);
    border-radius: 20px;
}

.services.grid .item.item2 .text h3{
    position: relative; margin-top: 50%;
    transform: translateY(-50%);

}



.services.grid .item .text h3{
    color: white;
    font-weight: 400;
    position: relative;
    font-size: 16px;
}

.services.grid .item .text h3::before{
    content: "";
    position: absolute; 
    top: -9px; left: 0;
    width: 15px;
    border-top: solid 1px var(--highlight-color);
    transition-duration: 0.2s;
}

.services.grid .item:hover .text h3::before{width: 100%;}

#service_deck .services.grid .item:hover .text h3::before{
    width: 100px;
}

.services.grid .item.item2 .text h3::before{left: 50%; transform: translateX(-50%);}




.team.grid{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-gap: 5em;
    text-align: center;
    margin: 40px auto;
}

.team.grid .item{
    position: relative;
}



.team.grid .item .avatar{
    width: 100%; height: 320px;

    display: block;
    background-size: cover!important;
    background-position: center!important;
    position: relative;
    margin: 0 auto 20px auto;
    filter: grayscale(100%);
}

.team.grid .item .avatar .mask{
    position: absolute; top: 0; left: 0;
    width: 100%; height: 0%;
    background: rgba(0,0,0,0.5);
    transition-duration: 0.25s;
}

.team.grid .item .avatar:hover .mask{
    height: 100%;
}

.team.grid .item .avatar .widget{
    position: absolute;
    bottom: 0px; right: 00px;
    width: 30px; height: 30px;
    transform: translateX(-50%) translateY(-50%) rotate(0deg);
    border: 1px solid white;
    border-radius: 50%;
    opacity: 0;
    transition-duration: 0.25s;

}

.team.grid .item .avatar:hover .widget{
    transform: translateX(-50%) translateY(-50%) rotate(90deg);
    opacity: 1;
}

.team.grid .item .avatar .widget::after{
    content: "";
    position: absolute;
    top: 50%; left: 50%; 
    transform: translateX(-50%) translateY(-50%);
    width: 15px;
    height: 1px;
    background: white;
}

.team.grid .item .avatar .widget::before{
    content: "";
    position: absolute;
    top: 50%; left: 50%; 
    transform: translateX(-50%) translateY(-50%) rotate(90deg);
    width: 15px;
    height: 1px;
    background: white;
}

.team.grid .item .text{
    display: block;
    width: 100%;
    margin: 35px auto;
    text-align: left;
}

.team.grid .item .text a{margin-left: 10px;}

.team.grid .item h3{
    color: var(--highlight-color);
    margin-bottom: 5px;
    font-size: 1.2em;
    position: relative;
}

.team.grid .item h3::before{
    content: "";
    position: absolute; 
    top: -9px; left: 0;
    width: 15px;
    border-top: solid 1px var(--highlight-color);
}




.realisations.grid{
    width: calc(100% - 200px);
    margin: 80px auto 0 auto;
    display: grid;
    grid-gap: 10px;
    grid-template-columns: 1fr 1fr 1fr;


}

.realisations.grid .item{position: relative; padding-bottom: 35px;}

.realisations.grid .avatar{
    display: block;
    width: 100%; height: 250px; 
    background-size: cover!important; background-position: center!important;
}

.realisations.grid .text{
    margin: 20px 0 0 0;
}

.realisations.grid .text h3{position: relative; padding-bottom: 1em;}

.realisations.grid .text h3::before{
    content: "";
    position: absolute; 
    top: -9px; left: 0;
    width: 15px;
    border-top: solid 1px var(--highlight-color);
}

.realisations.grid .text a{position: absolute; bottom: 0; left: 10px;}


.item_slider{
    display: block;
    width: calc(100% - 200px);
    
    margin: 40px auto;

}

.item_slider .item{
    
}

.item_slider .item .image{
    width: 100%; height: 150px;
    background-size: contain!important;
    background-position: center!important;
}

.item_slider .item h3{display: block; text-align: center; font-size: 0.8em;}

#team_wrapper{
    margin: 40px auto;
    width: calc(50%);
    text-align: center;
}

#team_wrapper h2{
    font-size: 36px;
    position: relative;
    display: inline-block;
    width: calc(100% - 80px);
    margin: 0 auto 40px auto;
    text-transform: initial!important;
    transform: skew(-5deg);
}

#team_wrapper strong{display: block; margin-bottom: 10px;}

#recruitment_deck{position: relative;  color: #FFFFFF;}





#recruitment_deck .imagewrapper{
    position: relative;
    display: block;
    height: 500px;
    width: 100%;
    background-size: cover!important;
    background-position: center!important;
    clip-path: polygon(0% 0%, 100% 0, 100% 100%, 0% 80%);

}

#recruitment_deck .text{
    width: 100%;
    margin: 80px 0 0 0;
    padding: 0px 0;
    text-align: center;
}

#recruitment_deck .text > div{}

#recruitment_deck.deck.yellow{padding: 0 0 180px 0!important; }

@media(max-width: 1500px){
    #recruitment_deck .text{
        width: 600px;
        margin-left: calc(50% - 300px);
    }
}

#recruitment_deck .text h2{
    font-size: 40px;
    margin-bottom: 10px;
    position: relative;
    
}

/*#recruitment_deck .text h2::before{
    content: "";
    position: absolute;
    top: -10px; left: 0;
    width: 15px; 
    border-top: 1px solid var(--highlight-color);
}*/

.service_grid{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-gap: 4em;
}

.service_grid div:nth-child(1){grid-column: 1/3; grid-row: 1/3;}

.service_grid h2{font-size: 22px; position: relative; margin-bottom: 10px; color: var(--highlight-color);}
.service_grid h2::before{
    content: "";
    position: absolute;
    top: -10px;
    left: 0;
    width: 15px;
    border-top: 1px solid var(--highlight-color);
}

@media(max-width: 1023px){
    .service_grid{grid-template-columns: 1fr 1fr;}

    .service_grid div:nth-child(1){grid-column: 1/3; grid-row: 1/3;}
}

@media(max-width: 640px){
    .service_grid{grid-template-columns: 1fr;}

    .service_grid div:nth-child(1){grid-column: 1/2; grid-row: 1/2;}
}



#service_deck p, #recruitment_deck .text p{font-size: 18px; line-height: 1.5em;}

#service_deck ul{
    padding: 0; margin: 10px 0; text-indent: 0;
}

#service_deck ul li{
    list-style: none; font-size: 18px; line-height: 1.5em;
    padding: 0 0 10px 30px;
    position: relative;
    display: block;
}

#service_deck ul li::before{
    content: "";
    position: absolute;
    top: 13px;
    left: 0;
    width: 20px;
    border-top: 1px solid var(--highlight-color);
}

#recruitment_deck .text a{margin: 20px 0 0 10px; font-size: 13px;}

.deck.yellow{
    background-image: radial-gradient(#151515, #333333);
    color: #151515;
}


.video_wrapper .text_wrapper .action_target{
    transform: translateY(0px);
    opacity: 1;
    transition-duration: 0.25s;
}

.video_wrapper .text_wrapper.off .action_target{
    transform: translateY(100px);
    opacity: 0;
}

.video_wrapper .text_wrapper .action_target:nth-child(1){transition-delay: 0.1s;}
.video_wrapper .text_wrapper .action_target:nth-child(2){transition-delay: 0.3s;}
.video_wrapper .text_wrapper .action_target:nth-child(3){transition-delay: 0.5s;}
.video_wrapper .text_wrapper .action_target:nth-child(4){transition-delay: 0.7s;}

.video_wrapper .bg_shape{
    position: absolute;
    top: 50%; left: 50%;
    transform: translateX(-50%) translateY(-50%) rotate(45deg);
    width: 600px; height: 600px;
    background: rgba(254, 207,0, 0.8);
    border-radius: 50px;
    border: 10px solid #151515;
    transition-duration: 0.5s;
}

.video_wrapper .bg_shape.off{
    transform: translateX(-50%) translateY(-50%) rotate(365deg);
    opacity: 0;
}

.video_wrapper .mask{
    position: absolute;
    top: 0; left: 0; 
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
}

.deck h1{
    text-align: center;
}

.deck h1::before{
    content: "";
    left: 50%;
    transform: translateX(-50%);
    width: 100px; height: 2px;
    background: var(--highlight-color);

}

.light_grey_deck{background-image: linear-gradient(90deg, #777, #AAA);}
.dark_grey_deck{background-image: linear-gradient(90deg, #151515, #252525);}
.dark_grey_deck2{background-image: linear-gradient(90deg, #252525, #151515);}
.dark_grey_deck3{background-image: linear-gradient(90deg, #050505, #454545);}
.dark_grey_deck4{background-image: linear-gradient(90deg, #333333, #454545);}

@media(max-width: 1500px){
    .services.grid{width: 1000px; margin: 80px auto; grid-template-columns: 1fr 1fr 1fr;}
}

@media(max-width: 1200px){
    .services.grid{width: 100%; }
    .deck h1{font-size: 72px;}
    .deck h1::before{top: -20px;}
    .deck_padding{padding: 120px 0;}
    .team.grid{grid-template-columns: 1fr 1fr;}
    .headline_deck h1{font-size: 70px;}

    .realisations.grid{width: 100%;}

    #recruitment_deck{min-height: initial;}
    #recruitment_deck.deck_padding{padding: 60px;}
}

@media(min-width: 1100px){
    #recruitment_deck .imagewrapper{height: 550px;}
}



@media(min-width: 1200px){
    #recruitment_deck .imagewrapper{height: 650px;}
}

@media(max-width: 1024px){
    #recruitment_deck .imagewrapper{
        left: 0;
        height: 450px;
        width: 100%;

        clip-path: polygon(0% 0%, 100% 0, 100% 100%, 0% 80%);

    }

    #recruitment_deck .text{
        width: calc(100% - 40px);
        margin: 0 auto;
        padding-top: 150px;
    }

    #recruitment_deck .text > div{margin-top: initial; transform: translateY(0);}
    #recruitment_deck .text h2{font-size: 30px;}

}

@media(max-height: 770px){

    .video_wrapper{height: 100vh;}

    .video_wrapper .text_wrapper{bottom: 20px;}
}


@media(max-width: 900px){
    .services.grid{width: 100%; grid-template-columns: 1fr 1fr;}
    .deck h1{font-size: 30px;}
    .deck h1::before{top: -15px;}

    .deck_padding{padding: 90px 0;}

    .video_wrapper .text_wrapper h1{font-size: 60px;}
    .video_wrapper .text_wrapper p{font-size: 14px;}

    .button.yellow_button{font-size: 14px;}

    #team_wrapper h2{font-size: 24px;}

    .realisations.grid {
        grid-template-columns: 1fr 1fr;
        grid-gap: 2em;
    }
}

@media(max-width: 940px){
.deck h1{font-size: 60px;}}

@media(max-width: 740px){
    .services.grid{width: 100%; grid-template-columns: 1fr ;}
.deck h1{font-size: 36px;}

    .deck_padding{padding: 60px 0;}
    .team.grid{grid-template-columns: 1fr;}

    .video_wrapper .text_wrapper{width: 100%;}

    .video_wrapper .text_wrapper h1{font-size: 48px;}

    #team_wrapper h2{font-size: 20px;}

    
}

@media(max-width: 640px){
    .realisations.grid {
        grid-template-columns:  1fr;
        
    }
    #recruitment_deck .text h2{font-size: 22px;}
    
    .narrow_webwrapper{width: 100%;}
    .services.grid .item.item2 .text{padding: 24px;}
    
}

.videoContainer {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

iframe.youtube {
  /* optional */
  width: 100%;
  height: 100%; 
}


.video-background {
  background: #000;
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: -99;
}
.video-foreground,
.video-background iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
#vidtop-content {
	top: 0;
	color: #fff;
}
.vid-info { position: absolute; top: 0; right: 0; width: 33%; background: rgba(0,0,0,0.3); color: #fff; padding: 1rem; font-family: Avenir, Helvetica, sans-serif; }
.vid-info h1 { font-size: 2rem; font-weight: 700; margin-top: 0; line-height: 1.2; }
.vid-info a { display: block; color: #fff; text-decoration: none; background: rgba(0,0,0,0.5); transition: .6s background; border-bottom: none; margin: 1rem auto; text-align: center; }
@media (min-aspect-ratio: 16/9) {
  .video-foreground { height: 300%; top: -100%; }
}
@media (max-aspect-ratio: 16/9) {
  .video-foreground { width: 300%; left: -100%; }
}
@media all and (max-width: 600px) {
.vid-info { width: 50%; padding: .5rem; }
.vid-info h1 { margin-bottom: .2rem; }
}
@media all and (max-width: 500px) {
.vid-info .acronym { display: none; }
}

.narrow_webwrapper h1{margin-bottom: 1em;}

