p{font-size: 2vh}

#pre_footer p{font-size: 18px;}
.hero{
    position: relative; 
    width: 100%; min-height: 100vh;
  }

  sup{
    font-size: 0.5em;
    transform: translateY(-50%);
  }
  
  body .hero .hero_bg{
    position: absolute; 
    top: 0; left: 50%;
    transform: translateX(-50%); 
    width: 150%; height: 100%; 
    background: var(--light-grey);
    background-size: auto 100%!important; 
    background-position: center!important;
    
    
    
  }

  body.dark_red .hero .hero_bg{
    background: var(--primary-color);
  }
  
  .hero_bg .bg_layout{
    position: absolute; top: 60%; left: 70%; 
    scale: 0.8;
  }

.hero_bg .bg_layout .totem{
    width: 1300px; height: 1300px; 
    background: url(images/brand/totam-1.svg);
    position: absolute; 
    top: 50%; 
    left: 66%; 
    transform: translateX(-50%) translateY(-50%) rotate(-5deg);
}

.webWrapper{
    width: calc(100% - 80px);
    max-width: 1900px;
    margin: 0 auto;
    position: relative;
    height: 100%; 
  }
  
  .webWrapper_hero{
    width: calc(100% - 80px);
    max-width: 1900px;
    margin: 0 auto;
    height: 100vh; 
    position: relative;
    display: flex; 
    align-items: center;
  }
  
  .webWrapper_hero > div{
    width: 60%;
    transform: translateY(300px);
    opacity: 0; 
    transition-duration: 1s;
    transition-delay: 0.5s;
  }
  
  .webWrapper_hero.do_show > div{
      transform: translateY(0);
      opacity: 1;
      
  }
  
  .webWrapper_hero > div h1{
    font-weight: 300;
    line-height: 1.5em;
    margin-bottom: 0.5em;
  }

  @media(min-width: 1200px){
    .webWrapper_hero > div h1{font-size: 70px; line-height: 1.1em;}

    .webWrapper_hero > div p{width: 70%;}
  }

  @media(min-width: 940px){

    .webWrapper_hero > div{margin: 40px 0;}
    .webWrapper_hero > div h1{font-size: 40px; line-height: 1.1em;}

    .webWrapper_hero > div p{width: 70%; }
  }

  body.dark_red .webWrapper_hero > div h1, body.dark_red .webWrapper_hero > div p{
    color: white;
  } 
  
  .webWrapper_hero > div h1 strong{font-weight: 700; font-size: 48px;}

  body.dark_red #Masthead .nav > li > a{color: white;}

  body.dark_red #Masthead .nav > li::after{border-right: 2px solid white;}

  body.dark_red #Masthead .nav > li:last-child::after{border-right: 0px none;}


  @media(max-width: 840px){
    

    .webWrapper_hero > div h1{font-size: 1em;}
	  
	  .webWrapper_hero > div h1 strong {
		  font-size: 24px;
	  }

    

    #deck_1 .grid.grid_1_1{grid-gap: 0;}
    .webWrapper_hero{height: initial; padding: 60px 0;}
    .hero{height: initial;}

    body .hero .hero_bg{
        position: relative; 
        height: 100vh;
    }

    body.dark_red .webWrapper_hero > div h1, body.dark_red .webWrapper_hero > div p{color: #151515;}

    .webWrapper_hero > div p{font-size: 0.9em;}
    

    
    .hero .hero_bg{position: relative; top: initial; left: initial;}

    .webWrapper_hero > div{
        position: relative; 
        width: 100%; 
        
    }
}

#deck_2{padding: 120px 0;}

.totem_layout{
    position: relative;
    min-height: 100vh; 
}

.totem_layout .totem_img{
    position: relative; 
    width: 100%; height: 400px;
    margin: 0 auto;
    background: url(images/brand/totam-1.svg) no-repeat;
    background-size: contain; 
    background-position: center;
}

@media(min-width: 840px){
    .totem_layout{
        min-height: 100vh; 
    }

    .totem_layout .totem_img{
        position: absolute; 
    top: 50%; left: 0; 
    transform: translateY(-50%);
    width: 100%; 
    height: 80%; 
    }

    body .totem_text p{position: absolute; font-size: 18px; width: 33vw;}

    .totem_text p::after{
        content: "";
        position: absolute;
        bottom: -10px;
        left: 0;
        width: calc(50vw - 60px); 
        border-bottom: 1px solid #151515;
    }

    .totem_text p:nth-child(3):after, .totem_text p:nth-child(4):after{left: initial; right: 0;}

 

    .totem_text p:nth-child(1){left: 0%; top: 7%;}
    

    .totem_text p:nth-child(2){left: 0%; bottom: 35%;}

    .totem_text p:nth-child(3){left: initial; right: 0%; top: 13%;}

    .totem_text p:nth-child(4){left: initial; right: 0%; bottom: 25%;}
/*
    .totem_text p:nth-child(1), .totem_text p:nth-child(2){left: -30%; }
    .totem_text p:nth-child(3), .totem_text p:nth-child(4){right: -30%;}
	*/

    
}

@media(min-width: 1100px){
    body .totem_text p{width: 30%;}
    .totem_text p::after{ width: 440px; }

    .totem_text p:nth-child(1), .totem_text p:nth-child(2){left: 5%; }
    .totem_text p:nth-child(3), .totem_text p:nth-child(4){right: 5%; text-align: right;}



}

@media(min-width: 1200px){
	.totem_text p::after{ width: 485px; }
	
	.totem_text p:nth-child(1), .totem_text p:nth-child(2)::after{
		width: 510px;
	}
}

@media(max-width: 840px){
    .totem_text{margin-top: 2em;}

    .totem_layout{min-height: initial;}
}


#deck_3{padding: 120px 0; background: var(--light-grey);}

#deck_3 .dot_grid{
    display: grid; 
    grid-template-columns: 80px 1fr;
    align-items: center;
    margin: 0 0 2em 0;
}

#deck_3 .dot_grid .dot_wrapper{transform: translateY(-0.5em);}

#deck_3 .dot_grid .dot{width: 35px; height: 35px; border-radius: 50%; margin: 5px; background: var(--secondary-color);}

#deck_4{background: var(--primary-color); color: white;}

#deck_4, #deck_5{padding: 120px 0;}

#deck_4 .iframe_wrapper{
    margin: 40px 0;
    display: block; min-height: 100vh;
    width: 100%; background: var(--secondary-color);
}

#deck_4 .iframe_wrapper iframe{
	width: 100%; height: 100vh;
}

#deck_5{background: var(--light-grey);}

#deck_5 .services_grid > div{
    padding: 50px 50px 120px 50px;
    position: relative;
}

@media(min-width: 1100px){
    #deck_5 .services_grid{
        display: grid; 
		grid-template-columns: 1fr 1fr; 
		grid-gap: 2em;
        justify-content: center;
        flex-wrap: wrap;
    }


}



#deck_5 .services_grid > div a{
    position: absolute; 
    bottom: 50px; left: 50%; 
    transform: translateX(-50%);
}

#deck_5 .services_grid > div .icon{
    display: block; 
    width: 85px; height: 85px; 
    background-size: contain!important;
    background-position: center!important;
    margin: 0 auto 2em auto;
}

#deck_5 .services_grid > div:nth-child(1) .icon{background: url(images/buttons/service-2-red.svg) no-repeat;}
#deck_5 .services_grid > div:nth-child(2) .icon{background: url(images/buttons/service-3-red.svg) no-repeat;}
#deck_5 .services_grid > div:nth-child(3) .icon{background: url(images/buttons/service-4-red.svg) no-repeat;}
#deck_5 .services_grid > div:nth-child(4) .icon{background: url(images/buttons/service-5-red.svg) no-repeat;}




#deck_6{
		padding: 120px 0 120px 0;
	background: var(--light-grey);
	}

#deck_6.padding_top_0{
	padding-top: 0;
}

#deck_6 h2{font-size: 2em; font-weight: normal;}

#deck_6 img{width: 100%; border-radius: 50%; }

#deck_6 > .webwrapper .grid_1_1{
    margin: 80px 0 -4em 0;
}

#deck_6 .grid .textwrapper{
    padding: 0 0 100px 100px;
    position: relative;
}

#deck_6 .grid .textwrapper a{
    position: absolute; bottom: 0; left: 100px;
}

#deck_6 .grid.grid_1_1 > div{position: relative;}

#deck_6 .grid > div .box{width: 100%; height: 100%; position: relative;}
#deck_6 .grid > div .box:hover{z-index: 5;}

#deck_6 .grid > div .box h2{font-size: 1.6em; padding-bottom: 0.5em;}

#deck_6 .grid > div .box .bg{
    position: absolute; top: 0; left: 0; 
    width: 100%; height: 100%;
    transition-duration: 0.25s;
    transform: translateX(0) translateY(0);

}

#deck_6 .grid > div .box:hover .bg{
    width: calc(100% + 80px);
    height: calc(100% + 80px);
    transform: translateX(-40px) translateY(-40px);
    background: var(--primary-color);
    box-shadow: 0 0 20px #999;
}


#deck_6 .grid > div .box h3, #deck_3 .grid > div .box p{color: var(--text-color); transition-duration: 0.25s;}
#deck_6 .grid > div .box:hover h2, #deck_6 .grid > div .box:hover p{color: white;}

#deck_6 .grid > div .icon{width: 85px; height: 85px; position: absolute; top: 0; left: 0; }




#deck_6 .grid > div .icon .icon_1, #deck_6 .grid > div .icon .icon_2{
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; 
    background-size: cover!important; background-position: center!important;
    transition-duration: 0.25s;
}

#deck_6 .grid > div .icon .icon_2{opacity: 0;}

#deck_6 .grid > div:hover .icon .icon_1{opacity: 0;}
#deck_6 .grid > div:hover .icon .icon_2{opacity: 1;}

#deck_6 .grid > div .box a.button{
    position: absolute; 
    bottom: 20px; 
    left: 100px;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
    transition-duration: 0.25s;
}

#deck_6 .grid > div .box:hover a.button{
    border: 2px solid white; 
    color: white;
}


@media(max-width: 1100px){
    .webWrapper_hero > div{
        width: 50%;
      }

      .hero .hero_bg{
        transform: translateX(-40%);
      }

      #deck_6 .grid.grid_1_2{
        grid-template-columns: 1fr;
      }
      #deck_6 .imgwrapper{text-align: center;}
      #deck_6 img{max-width: 350px; margin: 0 auto;}

      #deck_6 {
        padding: 80px 0;
      }
}


@media(max-width: 840px){
    #deck_3 .grid_1_1{
        grid-template-columns: 1fr;
    }

    #deck_2, #deck_3, #deck_4, #deck_5{padding: 80px 0;}
	
	.webWrapper_hero > div{
        width: 100%;
      }
}

@media(max-width: 540px){
    #deck_3 .dot_grid .dot{width: 25px; height: 25px; 
    margin: 2px; }

    #deck_3 .dot_grid{grid-template-columns: 40px 1fr;}
}

  @media(min-width: 1024px){
	#deck_2 h2, #deck_5 h2, #deck_6 h2{font-size: 3em; font-weight: normal; }
}

#deck_5 .services_grid h2{padding-bottom: 0.5em; font-size: 28px;}