*, :after, :before {
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 24px;
  color: #666;
  -webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
}

/*
 * LOADER
 */

.no-js .loader {
  display: none;
}

.loader {
  position: fixed;
  width: 100%;
  height: 100%;
  background: #fff;
  z-index: 9999;
  text-align: center;
  -webkit-transition: all .5s ease;
  -moz-transition: all .5s ease;
  transition: all .5s ease;
  opacity: 1;
}
.spinner {
  width: 40px;
  height: 40px;
  position: relative;
  top: 50%;
  left: 50%;
  margin-left: -20px;
  margin-top: -20px;
}
.double-bounce1,
.double-bounce2 {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: #e74c3c;
  opacity: 0.6;
  position: absolute;
  top: 0;
  left: 0;
  -webkit-animation: bounce 2s infinite ease-in-out;
  animation: bounce 2s infinite ease-in-out;
}
.double-bounce2 {
  -webkit-animation-delay: -1s;
  animation-delay: -1s;
}
@-webkit-keyframes bounce {
  0%,
  100% {
    -webkit-transform: scale(0);
  }
  50% {
    -webkit-transform: scale(1);
  }
}
@keyframes bounce {
  0%,
  100% {
    transform: scale(0);
    -webkit-transform: scale(0);
  }
  50% {
    transform: scale(1);
    -webkit-transform: scale(1);
  }
}

/*
 * BUTTONS
 */

.btn {
  display: inline-block;
  padding: 14px 28px;
  min-width: 155px;
  background: white;
  border-radius: 20px;
  color: #e74c3c;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 1px;
  line-height: 1;
  text-decoration: none;
  text-align: center;
  text-transform: uppercase;
}
.btn.btn-inverted {
  background: #e74c3c;
  color: white;
}

/*
 * HEADER
 */

header {
  position: relative;
  background: url(../img/rover.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  padding: 70px 20px;
  color: white;
  display: flex;
  justify-content: center;
}

header:after {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  content: '';
  opacity: 0.2;
  background-color: black;
  z-index: 0;
}

header .header-contents {
  position: relative;
  z-index: 1;
  width: 960px;
}

header img {
  width: 6em;
}

header h1 {
  font-size: 40px;
  font-weight: 300;
  margin-bottom: 24px;
}

header p {
  font-size: 18px;
  line-height: 30px;
  margin-bottom: 20px;
}

header p:first-of-type {
  margin-bottom: 40px;
}

@media all and (min-width: 769px) {
  header {
    padding: 140px 20px;
  }
}

/*
 * SECTIONS
 */

section {
  padding: 50px 20px;
}

section.divider {
  padding-top: 0;
  padding-bottom: 0;
}

section.divider hr {
  width: 100%;
  border: 1px solid #e74c3c;
  border-width: 1px 0 0 0;
}

@media all and (min-width: 992px) {
  section {
    width: 100%;
    padding: 50px calc((100% - 960px) / 2);
    margin: 0 auto;
  }
}

section.grey {
  background: #f4f4f4;
}

/*
 * SECTION: SERVICES
 */

section.services ul {
  list-style: none;
  font-size: 14px;
  padding: 0;
}

section.services li {
  margin-bottom: 40px;
}

section.services ul li.blockchain:before { content:"\e02e"; }
section.services ul li.software-engineering:before { content:"\e034"; }
section.services ul li.security-auditing:before { content:"\e007"; }
section.services ul li.emergency-services:before { content:"\e059"; }

section.services ul li:before {
  font-family: et-line;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 75px;
  width: 75px;
  font-size: 40px;
  border: 2px solid #e74c3c;
  border-radius: 50%;
  color: #e74c3c;
  margin-bottom: 15px;
}

section.services ul h2 {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin-bottom: 16px;
}

@media all and (max-width: 768px) {
  section.services li div {
    display: flex;
    align-items: center;
  }
  section.services li div i.icon {
    margin: 0 10px 0 0;
  }
  section.services li div h2 {
    margin: 0;
  }
}

@media all and (min-width: 769px) {
  section.services ul {
    display: flex;
  }
  section.services ul li:before {
    height: 100px;
    width: 100px;
    font-size: 50px;
  }
  section.services li {
    flex-basis: 0;
    flex-grow: 1;
    margin-bottom: 0;
  }
  section.services li:not(:last-child) {
    margin-right: 40px;
  }
}

/*
 * SECTION: ABOUT
 */

section.about h2 {
  font-size: 32px;
  line-height: 44px;
  font-weight: 300;
  color: #333;
  margin-bottom: 24px;
}

section.about p {
  font-size: 16px;
  line-height: 30px;
}

section.about p + p {
  margin-top: 30px;
}

@media all and (min-width: 769px) {
  section.about {
    display: flex;
  }
  section.about div {
    flex-basis: 0;
    flex-grow: 1;
  }
  section.about div:first-child {
    margin-right: 40px;
  }
}

/*
 * SECTION: CASE STUDY
 */

section.case-study h1 {
  font-size: 32px;
  line-height: 44px;
  font-weight: 300;
  color: #333;
  margin-top: 0;
  margin-bottom: 24px;
}

section.case-study p {
  font-size: 16px;
  line-height: 30px;
}

section.case-study img {
  width: 100%;
}

@media all and (min-width: 769px) {
  section.case-study {
    display: flex;
  }
  section.case-study div {
    flex-basis: 0;
    flex-grow: 1;
  }
  section.case-study div:first-child {
    margin-right: 40px;
  }
}

/*
 * SECTION: TESTIMONIALS
 */

section.testimonials {
}

section.testimonials h1 {
  font-size: 32px;
  line-height: 44px;
  font-weight: 300;
  color: #333;
  text-align: center;
  margin-bottom: 24px;
}

section.testimonials ul {
  font-size: 0.9em;
  list-style: none;
  padding: 0;
  column-count: 1;
}

section.testimonials ul li {
  padding: 1.5em;
  width: 100%;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  break-inside: avoid;
  margin-bottom: 1.5em;
  background: #f6f6f6;
}

section.testimonials ul li p:first-child::before {
  content: "“";
}

section.testimonials ul li p:nth-last-child(3) {
  margin-bottom: 0;
}

section.testimonials ul li p:nth-last-child(3)::after {
  content: "”";
}

section.testimonials ul li p a {
  color: #e74c3c;
  text-decoration: underline;
}

@media all and (min-width: 769px) {
  section.testimonials ul {
    column-count: 2;
    column-gap: 1.5em;
  }
}

section.testimonials ul li p {
  margin-top: 0;
}

section.testimonials ul li p.testimonial-author {
  font-weight: bold;
  margin-bottom: 0.5em;
  line-height: 1.2em;
}

section.testimonials ul li p.testimonial-author::before {
  content: "—";
  margin: 0.5em 0;
  display: block;
}

section.testimonials ul li p.testimonial-role {
  margin: 0;
}

/*
 * SECTION: FOUNDERS
 */

section.founders {
}

section.founders h1 {
  font-size: 32px;
  line-height: 44px;
  font-weight: 300;
  color: #333;
  text-align: center;
  margin-bottom: 24px;
}

section.founders ul {
  list-style: none;
  padding: 0;
}

section.founders li {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 1em;
}

section.founders li img {
  border-radius: 50%;
  width: 50%;
}

section.founders h2 {
  margin-bottom: 0.5em;
  text-align: center;
}

section.founders h2 span {
  font-size: 0.6em;
  display: block;
  opacity: 0.8;
}

section.founders p.website {
  margin: 0 auto 1em;
  font-size: 12px;
  line-height: 12px;
}

section.founders p.website a {
  color: #e74c3c;
  font-weight: 600;
}

section.founders p {
  font-size: 14px;
  line-height: 24px;
}

section.founders p:not(.website) {
  width: 100%;
}

section.founders a {
  text-decoration: none;
  color: #333;
}

section.founders li:not(:last-child) {
  margin-bottom: 2em;
}

@media all and (min-width: 769px) {
  section.founders ul {
    display: flex;
    align-items: flex-start;
    justify-content: space-around;
  }

  section.founders li {
    width: 40%;
    margin-bottom: 0;
  }
}

/*
 * SECTION: CONTACT
 */

section.contact {
  text-align: center;
}

section.contact h1 {
  font-size: 32px;
  line-height: 44px;
  font-weight: 300;
  color: #333;
  margin-bottom: 24px;
}

section.contact p {
  font-size: 16px;
  line-height: 30px;
}

section.contact a {
  text-decoration: none;
  color: #333;
}

/*
 * SECTION: NAV
 */

nav {
  padding: 20px;
  background: #e74c3c;
  color: white;
}

nav .nav-contents a {
  display: flex;
  align-items: center;
  color: white;
  font-size: 24px;
  font-weight: normal;
}

nav .nav-contents img {
  margin-right: 10px;
  width: 50px;
}

@media all and (min-width: 992px) {
  nav .nav-contents {
    width: 960px;
    margin: 0 auto;
  }
}


/*
 * SECTION: CASE STUDY DETAILS
 */

section.case-study-details h1 {
  font-size: 32px;
  line-height: 44px;
  font-weight: normal;
  color: #333;
  margin-bottom: 24px;
}
section.case-study-details h1 span {
  display: block;
  font-weight: 300;
}

section.case-study-details quote {
  font-size: 0.9em;
  padding-left: 1em;
  border-left: 2px solid #666;
  display: block;
  font-style: italic;
}

section.case-study-details quote span {
  display: block;
}

section.case-study-details quote .testimonial-author::before {
  content: "—";
  display: block;
}

section.case-study-details quote .testimonial-author {
  font-weight: bold;
}

section.case-study-details quote .testimonial-link a {
  color: #e74c3c;
}

section.case-study-details img {
  width: 100%;
}

section.case-study-details img:first-of-type {
  margin-bottom: 10px;
}

section.case-study-details h2 {
  margin: 2em 0 1em;
}

@media all and (min-width: 769px) {
  section.case-study-details p.case-study-images {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin: 30px -180px;
  }
  section.case-study-details p.case-study-images.center {
    justify-content: center;
  }
  section.case-study-details p.case-study-images img {
    width: 49%;
  }
}

/*
 * FOOTER
 */

footer {
  background: #e74c3c;
  color: white;
}

footer a {
  color: white;
}

footer div {
  display: flex;
  flex-direction: column;
  text-align: center;
}

footer div:last-child {
  font-size: 18px;
  font-weight: 600;
  background: #bf2718;
}

@media all and (min-width: 769px) {
  footer {
    height: 150px;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
  }

  footer div {
    flex-direction: row;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  footer div:first-child {
    padding: 0 20px;
  }

  footer div:first-child p:not(:last-child) {
    margin-right: 2em;
  }

  footer div:last-child {
    font-size: 18px;
    padding: 0 40px;
  }
}
