@keyframes rtY {
    0% { transform: rotateY(0turn) rotate(45deg); }
  100% { transform: rotateY(1turn) rotate(90deg); }
}

header {
  background-color: #ebebe0;
  border-top: 3px solid #e0bd52;
}
header .logo {
  line-height: 1.1rem;
  font-variant: small-caps;
}
header .logo>div:first-child {
  font-size: 1.8rem;
  font-weight: bold;
  letter-spacing: 0.1rem;
}
header .logo>div:last-child {
  font-size: 1.3rem;
  letter-spacing: 0.2rem;
  color: #926c5d;
}

header nav li {
  position: relative;
}
header nav li:hover {
  color: white;
  text-shadow: 0px 0px 3px #555;
  background-color: rgba(100,100,100,.3);
}

header nav li::after {
  content: '';
  display: block;
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 0px;
  background-image: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,.15) 100%);
  transition: height .5s ease;
  pointer-events: none;
}
header nav li:hover::after {
  height: 40px;
}

footer {
  background-color: #c9cbcf;
  line-height: 40px;
}
footer .copy {
  text-align: right;
}

#footer-2nd {
  background-image: linear-gradient(to bottom, #ebebeb 0%, #c9cbcf 100%);
}
#footer-2nd .container {
  padding: 40px 20px;
}
#footer-2nd .contact .box {
  padding: 40px 20px;
  border: 1px solid white;
}
#footer-2nd .contact .box .logo {
  display: block;
  margin: 0 auto;
  height: 50px;
  width: auto;
}

#footer-2nd .site-map ul li {
  position: relative;
  line-height: 22px;
  perspective: 500px;
}
#footer-2nd .site-map ul li:hover::before {
  content: '';
  position: absolute;
  display: block;
  left: -22px;
  margin: 8px;
  width: 6px;
  height: 6px;
  border: 1px solid black;
  animation: rtY 1.5s linear infinite;
}
#footer-2nd .site-map ul li.email:hover::before {
  margin: 0;
  width: 22px;
  height: 22px;
  background-image: url('/lib/open-iconic/svg/envelope-closed.svg');
  background-repeat: no-repeat;
  background-size: 14px 14px;
  background-position: center;
  border: none;
  animation: none;
}

@media only screen and (min-width: 801px) {
  #footer-2nd > .container {
    display: flex;
  }
  #footer-2nd .contact {
    flex: 1;
    order: 1;
  }
  #footer-2nd .site-map {
    flex: 2;
    padding: 0 20px;
  }
}
@media only screen and (max-width: 800px) {
  #footer-2nd .contact .box {
    padding: 0 20px;
    border: none;
  }
}