/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/
html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}
body {
  line-height: 1;
}
ol,
ul {
  list-style: none;
}
blockquote,
q {
  quotes: none;
}
blockquote:before,
blockquote:after,
q:before,
q:after {
  content: "";
  content: none;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/*
* Fonts
*/
@font-face {
  font-family: "NexaRegular";
  src: url("../fonts/NexaRegular.woff2") format("woff2"),
    url("../fonts/NexaRegular.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "NexaBold";
  src: url("../fonts/NexaBold.woff2") format("woff2"),
    url("../fonts/NexaBold.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "NexaLight";
  src: url("../fonts/NexaLight.woff2") format("woff2"),
    url("../fonts/NexaLight.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

/*
* General
*/
html,
body {
  font-family: "NexaLight", Arial, Helvetica Neue, Helvetica, sans-serif;
  font-size: 18px;
  font-weight: 200;
  line-height: 24px;
  color: #000000;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}

body {
  background-color: #fbfbfa;
  background: url(../images/ui/backgrounds/main.svg),
    url(../images/ui/backgrounds/header-bg.svg) no-repeat;
  background-size: 225px 1px, 5200px;
  background-position: 0 50%, 50% -400px;
  overflow-x: hidden;
}

.hidden {
  display: none;
}

.mobileBreak {
  display: none;
}

.noselect {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.enableParallax {
  position: relative;
}

/*
* Typography
*/
h1 {
  font-size: 64px;
  line-height: 72px;
  text-transform: uppercase;
  color: #4bb9a8;
}

h2 {
  font-size: 64px;
  line-height: 72px;
  color: #020202;
}

h3 {
  font-size: 24px;
  line-height: 32px;
  text-transform: uppercase;
  color: #4bb9a8;
}

strong {
  font-family: "NexaBold", Arial, Helvetica Neue, Helvetica, sans-serif;
  font-size: 18px;
  line-height: 24px;
  color: #020202;
  font-weight: 400;
}

small {
  font-size: 16px;
  line-height: 18px;
  color: #000000;
}

a {
  outline: none;
}

/*
* General layout
*/
nav,
section,
footer {
  float: left;
  width: 100%;
}

section {
  margin-bottom: 110px;
}

nav .centerWrapper.mobile {
  display: none;
}

nav .centerWrapper,
section .centerWrapper,
footer .centerWrapper {
  width: 90%;
  max-width: 1680px;
  padding: 0 5%;
  margin: 0 auto;
}

img {
  max-width: 100%;
}

/*
* Navigation
*/
nav {
  position: absolute;
  z-index: 1;
  top: 0;
  height: 140px;
  line-height: 140px;
}

nav .centerWrapper,
nav ul {
  overflow: hidden;
  height: 100%;
}

nav li {
  float: right;
  height: 100%;
  margin-left: 50px;
}

nav li.logo {
  float: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-left: 0;
}

nav li.logo a {
  display: block;
  width: 260px;
  height: 55px;
  background: transparent url(../images/ui/logo/logo-bottom.svg) no-repeat;
  background-size: 100% auto;
}

nav li a {
  font-family: "NexaRegular", Arial, Helvetica Neue, Helvetica, sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: #040404;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.2s linear;
}

nav li a:hover,
nav li a:focus,
nav li a:active {
  color: #4bb9a8;
}

/*
* Loading screen
*/
section.loadingScreen {
  position: fixed;
  height: 100vh;
  width: 100vw;
  background-color: #ffffff;
  z-index: 100;
  overflow: hidden;
}

section.loadingScreen svg {
  width: 5200px;
  height: 3000px;
  position: absolute;
  left: 50%;
  margin-left: -2600px;
  top: 50%;
  margin-top: -1100px;
}

/*
* Header
*/
section.header {
  text-align: center;
  min-height: 100vh;
  display: flex;
  margin-bottom: 20px;
}

section.header .centerWrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
}

section.header .heightSpacer {
  margin-right: -40px;
}

section.header .centerWrapper .hint {
  position: absolute;
  bottom: 30px;
  width: 90%;
}

section.header .centerWrapper .hint a {
  display: inline-block;
  text-decoration: none;
  color: #020202;
  font-size: 18px;
  position: relative;
  top: 0;
  min-height: 60px;
  transition: all 0.2s linear;
}

section.header .centerWrapper .hint a:hover,
section.header .centerWrapper .hint a:focus {
  top: -10px;
}

section.header .centerWrapper .hint a:before {
  content: "";
  display: inline-block;
  width: 35px;
  height: 20px;
  background: transparent
    url(data:img/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAARCAMAAACLgl7OAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAmVBMVEVoxbFoxbFoxbFoxbFoxbFoxbFoxbFoxbFoxbFoxbFoxbFoxbFoxbFoxbFoxbFoxbFoxbFoxbFoxbFoxbFoxbFoxbFoxbFoxbFoxbFoxbFoxbFoxbFoxbFoxbFoxbFoxbFoxbFoxbFoxbFoxbFoxbFoxbFoxbFoxbFoxbFoxbFoxbFoxbFoxbFoxbFoxbFoxbFoxbFoxbEAAABUNjWWAAAAMXRSTlMAqvhxcPau+nh7+WiEiGZp/V+UAZdbogNXpU6vBq2yTEu7CrZCvsYP8UE9N+wv4N4tyHwciQAAAAFiS0dEMkDSTMgAAAAJcEhZcwAACxIAAAsSAdLdfvwAAAAHdElNRQfiBAcUBwJFb3IXAAAArUlEQVQoz33R6xZCQBSG4d1BOinFEEklSun03f/NtWdNrSYZ/tjjeWctA3W6PTJefWtANjA0+QgY0wTAtNkdphnRnG+Owd2FHGSx9Ors+exCzcIFfM/sqghC3cMAsFffteCzRFoRRuyxviPmYp18Vsmm7qpI30WSAta2/tY7C9hncsoO7Pn/sXMuCi6yotlVcTxJL8/Nn/ZSciG9Mv2cios2V8W1xYlu98fz98kLqfAWDi29QowAAAAASUVORK5CYII=)
    no-repeat;
  background-size: 95%;
  position: absolute;
  bottom: 0px;
  left: 50%;
  margin-left: -17.5px;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

section.header .centerWrapper .hint a:hover:before,
section.header .centerWrapper .hint a:focus:before {
  bottom: 5px;
}

/*
* Header text slideInOut 
*/
@keyframes hide {
  from {
    top: 0;
  }
  to {
    top: 77px;
  }
}

@keyframes show {
  from {
    top: -77px;
  }
  to {
    top: 0px;
  }
}

@keyframes showContainer {
  from {
    top: -100px;
    opacity: 0;
  }
  to {
    top: 0px;
    opacity: 1;
  }
}

section.header .contentWrapper[data-status="hidden"] {
  position: relative;
  animation: showContainer 0.6s ease-out;
  opacity: 1;
  top: 0;
  transition: all 0.3s linear;
}

section.header .contentWrapper[data-status="visible"] {
  position: relative;
  top: 0;
  opacity: 1;
}

section.header .slideText {
  position: relative;
  overflow: hidden;
  height: 77px;
  line-height: 77px;
}

section.header .slideText .content {
  position: absolute;
  width: 100%;
  text-align: center;
  left: 0;
}

section.header .slideText .content[data-status="visible"] {
  animation: show 0.8s ease-in;
  top: 0;
}

section.header .slideText .content[data-status="hidden"] {
  position: absolute;
  animation: hide 0.6s ease-out;
  top: 77px;
}

/*
* Teenused
*/
section.teenused .centerWrapper {
  text-align: center;
  padding-top: 64px;
}

section.teenused .centerWrapper h2 {
  color: #4bb9a8;
  margin-bottom: 46px;
  font-size: 56px;
}

section.teenused .centerWrapper h3 {
  margin-bottom: 24px;
  color: #000000;
  font-weight: 600;
}

section.teenused .centerWrapper p {
  max-width: 960px;
  margin: 0 auto 0 auto;
  text-align: center;
}

section.teenused .centerWrapper span.hiddenText {
  display: none;
}

section.teenused .centerWrapper a {
  cursor: pointer;
  text-decoration: underline;
}

section.teenused .centerWrapper a:hover {
  text-decoration: none;
}

/*
* Kogemused
*/
section.kogemused .centerWrapper {
  text-align: center;
  padding-top: 64px;
}

section.kogemused .centerWrapper h2 {
  color: #4bb9a8;
  margin-bottom: 46px;
  font-size: 56px;
}

section.kogemused .centerWrapper h3 {
  margin-bottom: 24px;
  color: #000000;
}

section.kogemused .centerWrapper p {
  max-width: 960px;
  margin: 0 auto 24px auto;
  text-align: center;
}

/*
* Experiences
*/
section.experience .centerWrapper {
  display: flex;
  align-items: center;
  flex-direction: row;
}

section.experience .contentWrapper {
  width: 50%;
  display: flex;
  align-items: flex-start;
  align-content: center;
  flex-direction: column;
  box-sizing: border-box;
  margin-left: 50px;
  position: relative;
  overflow: hidden;
}

section.experience .centerWrapper:hover .imageWrapper img {
  filter: grayscale(0);
}

section.experience .contentWrapper h3,
section.experience .contentWrapper strong,
section.experience .contentWrapper p,
section.experience .contentWrapper small {
  position: relative;
}

@keyframes flyIn {
  from {
    left: -100%;
  }
  to {
    left: 0;
  }
}

@keyframes flyOut {
  from {
    left: 0;
  }
  to {
    left: -100%;
  }
}

/*
		* Move in
		*/
section.experience[data-status="active"] .contentWrapper h3 {
  animation: 1.1s ease-in-out -0.8s flyIn;
  left: 0;
}

section.experience[data-status="active"] .contentWrapper strong {
  animation: 1.2s ease-in-out -0.6s flyIn;
  left: 0;
}

section.experience[data-status="active"] .contentWrapper p {
  animation: 1.3s ease-in-out -0.4s flyIn;
  left: 0;
}

section.experience[data-status="active"] .contentWrapper small {
  animation: 1.4s ease-in-out -0.2s flyIn;
  left: 0;
}

/*
		* Move out
		*/
section.experience[data-status="inactive"] .contentWrapper h3 {
  animation: 1.1s ease-in-out -0.8s flyOut;
  left: -100%;
}

section.experience[data-status="inactive"] .contentWrapper strong {
  animation: 1.4s ease-in-out -0.6s flyOut;
  left: -100%;
}

section.experience[data-status="inactive"] .contentWrapper p {
  animation: 1.6s ease-in-out -0.4s flyOut;
  left: -100%;
}

section.experience[data-status="inactive"] .contentWrapper small {
  animation: 1.8s ease-in-out -0.2s flyOut;
  left: -100%;
}

section.experience[data-status="active"] .contentWrapper h3 {
  color: #4bb9a8;
}

section.experience[data-status="active"] .contentWrapper strong,
section.experience[data-status="active"] .contentWrapper p,
section.experience[data-status="active"] .contentWrapper small {
  color: #000000;
}

section.experience .contentWrapper h3,
section.experience .contentWrapper p {
  margin-bottom: 17px;
}

section.experience .imageWrapper {
  width: 50%;
  max-width: 1320px;
  overflow: hidden;
  position: relative;
}

section.experience .imageWrapper img {
  position: relative;
  z-index: 2;
  transition: all 0.7s linear;
  opacity: 1;
  display: block;
  transform: scale(1);
  filter: grayscale(100%);
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

section.experience .imageWrapper img:nth-child(2) {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  transition: all 0.7s linear;
}

section.experience[data-status="active"] .imageWrapper img:first-child {
  opacity: 0;
  transform: scale(1.05);
}

section.experience[data-status="active"] .imageWrapper img:nth-child(2) {
  transform: scale(1.05);
}

/*
* Footer
*/
footer {
  padding-top: 60px;
  margin-bottom: 100px;
}

footer h2 {
  color: #4bb9a8;
  margin-bottom: 64px;
  font-size: 56px;
  text-align: center;
}

footer .centerWrapper {
  display: flex;
  align-items: center;
  flex-direction: row;
}

footer .contentWrapper {
  width: 50%;
  float: right;
  margin-left: 50px;
}

footer .contentWrapper .logo {
  display: block;
  width: 260px;
  height: 55px;
  background: transparent url(../images/ui/logo/logo-bottom.svg) no-repeat;
  background-size: 100% auto;
  margin-bottom: 12px;
}

footer .contentWrapper p {
  padding-top: 10px;
}

footer h3 {
  padding-top: 10px;
  margin-bottom: 20px;
}

footer .contact p {
  margin-bottom: 12px;
  padding-top: 0;
}

footer h3 p {
  color: #000000;
  font-size: 18px;
}

footer .contentWrapper a {
  font-family: "NexaRegular", Arial, Helvetica Neue, Helvetica, sans-serif;
  font-weight: 400;
  color: #4bb9a8;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 14px;
  clear: both;
}

footer .contentWrapper .eee {
  max-width: 110px;
  margin-top: 10px;
}

footer .contentWrapperExtended {
  width: 50%;
  max-width: 1320px;
  overflow: hidden;
  position: relative;
  float: right;
  box-sizing: border-box;
}

footer .contentWrapperExtended img {
  width: 100%;
  float: left;
}

@media screen and (max-width: 768px) {
  body {
    background-size: 160px 1px, 2600px;
    background-position: 5vw center, 50% -300px;
  }

  /*
	* Typography
	*/
  h1,
  h2 {
    font-size: 28px !important;
    line-height: 32px;
  }

  .mobileBreak {
    display: inherit;
  }

  /*
	* Navigation
	*/
  nav {
    height: 60px;
    line-height: 60px;
    text-align: right;
    padding-top: 15px;
  }

  nav ul,
  nav .centerWrapper {
    overflow: visible;
  }

  nav .centerWrapper.mobile {
    display: block;
  }

  .nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 62px;
  }

  .navbar .menu-items {
    display: flex;
  }

  .navbar .nav-container li {
    list-style: none;
  }

  .navbar .nav-container a {
    text-decoration: none;
    color: #0e2431;
    font-weight: 500;
    font-size: 1.2rem;
    padding: 0.7rem;
  }
  .navbar .nav-container a:hover {
    font-weight: bolder;
  }

  .nav-container {
    display: block;
    position: relative;
    height: 60px;
  }

  .nav-container .checkbox {
    position: absolute;
    display: block;
    height: 32px;
    width: 32px;
    top: 12px;
    right: 0;
    z-index: 5;
    opacity: 0;
    cursor: pointer;
  }

  .nav-container .hamburger-lines {
    display: block;
    height: 26px;
    width: 32px;
    position: absolute;
    top: 17px;
    right: 2px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .nav-container .hamburger-lines .line {
    display: block;
    height: 4px;
    width: 100%;
    border-radius: 10px;
    background: #0e2431;
  }

  .nav-container .hamburger-lines .line1 {
    transform-origin: 0% 0%;
    transition: transform 0.4s ease-in-out;
  }

  .nav-container .hamburger-lines .line2 {
    transition: transform 0.2s ease-in-out;
  }

  .nav-container .hamburger-lines .line3 {
    transform-origin: 0% 100%;
    transition: transform 0.4s ease-in-out;
  }

  .navbar .menu-items {
    padding-top: 120px;
    box-shadow: inset 0 0 2000px rgba(255, 255, 255, 0.5);
    height: 100vh;
    width: 100%;
    transform: translate(-150%);
    display: flex;
    flex-direction: column;
    margin-left: -40px;
    padding-left: 50px;
    transition: transform 0.5s ease-in-out;
    text-align: center;
  }

  .navbar .menu-items li {
    margin-bottom: 1.2rem;
    font-size: 1.5rem;
    font-weight: 500;
  }

  .logo {
    position: absolute;
    top: 25px;
    left: 15px;
    font-size: 1.2rem;
    color: #0e2431;
  }

  .nav-container input[type="checkbox"]:checked ~ .menu-items {
    transform: translateX(0);
  }

  .nav-container input[type="checkbox"]:checked ~ .hamburger-lines .line1 {
    transform: rotate(45deg);
  }

  .nav-container input[type="checkbox"]:checked ~ .hamburger-lines .line2 {
    transform: scaleY(0);
  }

  .nav-container input[type="checkbox"]:checked ~ .hamburger-lines .line3 {
    transform: rotate(-45deg);
  }

  .nav-container input[type="checkbox"]:checked ~ .logo {
    display: none;
  }

  nav .centerWrapper.mobile ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 56px;
    height: 100vh;
    background-color: #ffffff;
  }

  nav .centerWrapper.mobile ul .logo {
    display: none;
  }

  nav .centerWrapper.desktop {
    display: none;
  }

  nav li a {
    font-size: 14px;
  }

  nav li:first-child a {
    display: inline-block;
  }

  nav li:nth-child(2),
  nav li:nth-child(3) {
    display: inline-block;
    margin-left: 20px;
    text-align: center;
  }

  section.header .centerWrapper .hint {
    bottom: 17vh;
  }

  nav li {
    margin-left: 0 !important;
    height: 50px;
    line-height: 50px;
    margin-bottom: 0;
  }

  /*
	* Sections
	*/
  section {
    margin-bottom: 30px;
  }

  section.header .slideText {
    line-height: 35px;
  }

  section.experience .centerWrapper,
  footer .centerWrapper {
    display: block;
  }

  section.experience .contentWrapper,
  footer .contentWrapper {
    float: left;
    width: 100%;
    display: block;
    box-sizing: border-box;
    padding: 30px 0;
    margin-left: 0;
  }

  section.experience .imageWrapper,
  footer .contentWrapperExtended,
  footer .contentWrapperExtended .content {
    float: left;
    width: 100%;
    overflow: hidden;
    position: relative;
    padding-left: 0;
  }

  footer .contentWrapperExtended img,
  footer .contentWrapperExtended h3,
  footer .contentWrapperExtended p {
    float: left;
    clear: both;
    margin: 0 auto;
  }

  footer .contentWrapperExtended img {
    position: relative;
    width: 100%;
    max-width: 100%;
  }

  section.experience .imageWrapper img:nth-child(2) {
    z-index: 3;
  }

  section.experience .contentWrapper h3,
  section.experience .contentWrapper strong,
  section.experience .contentWrapper p,
  section.experience .contentWrapper small {
    margin-bottom: 10px;
    animation: none;
    left: 0;
  }

  section.experience .contentWrapper h3 {
    color: #4bb9a8;
    font-family: "NexaRegular";
  }

  section.experience .contentWrapper strong,
  section.experience .contentWrapper p,
  section.experience .contentWrapper small {
    color: #000000;
  }

  section.experience .imageWrapper img {
    position: relative;
    z-index: 2;
    transition: all 0.7s linear;
    opacity: 1;
    display: block;
    transform: scale(1);
    filter: grayscale(0);
    aspect-ratio: 16 / 9;
    object-fit: cover;
  }

  footer .contentWrapper .logo {
    width: 190px;
    height: 35px;
  }

  footer .contact p {
    margin-bottom: 0;
  }
}
