/* general */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    
    color: #444;
    font-family: "Montserrat", sans-serif;
    font-size: 100%;
    font-weight: 300;
}



/* #region fonts */

/* montserrat-300 - latin */
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 300;
    src: url('../fonts/montserrat-v25-latin-300.eot'); /* IE9 Compat Modes */
    src: local(''),
         url('../fonts/montserrat-v25-latin-300.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
         url('../fonts/montserrat-v25-latin-300.woff2') format('woff2'), /* Super Modern Browsers */
         url('../fonts/montserrat-v25-latin-300.woff') format('woff'), /* Modern Browsers */
         url('../fonts/montserrat-v25-latin-300.ttf') format('truetype'), /* Safari, Android, iOS */
         url('../fonts/montserrat-v25-latin-300.svg#Montserrat') format('svg'); /* Legacy iOS */
  }
  
  /* montserrat-500 - latin */
  @font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 500;
    src: url('../fonts/montserrat-v25-latin-500.eot'); /* IE9 Compat Modes */
    src: local(''),
         url('../fonts/montserrat-v25-latin-500.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
         url('../fonts/montserrat-v25-latin-500.woff2') format('woff2'), /* Super Modern Browsers */
         url('../fonts/montserrat-v25-latin-500.woff') format('woff'), /* Modern Browsers */
         url('../fonts/montserrat-v25-latin-500.ttf') format('truetype'), /* Safari, Android, iOS */
         url('../fonts/montserrat-v25-latin-500.svg#Montserrat') format('svg'); /* Legacy iOS */
  }
  
  /* montserrat-700 - latin */
  @font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/montserrat-v25-latin-700.eot'); /* IE9 Compat Modes */
    src: local(''),
         url('../fonts/montserrat-v25-latin-700.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
         url('../fonts/montserrat-v25-latin-700.woff2') format('woff2'), /* Super Modern Browsers */
         url('../fonts/montserrat-v25-latin-700.woff') format('woff'), /* Modern Browsers */
         url('../fonts/montserrat-v25-latin-700.ttf') format('truetype'), /* Safari, Android, iOS */
         url('../fonts/montserrat-v25-latin-700.svg#Montserrat') format('svg'); /* Legacy iOS */
  }
  
  /* montserrat-300italic - latin */
  @font-face {
    font-family: 'Montserrat';
    font-style: italic;
    font-weight: 300;
    src: url('../fonts/montserrat-v25-latin-300italic.eot'); /* IE9 Compat Modes */
    src: local(''),
         url('../fonts/montserrat-v25-latin-300italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
         url('../fonts/montserrat-v25-latin-300italic.woff2') format('woff2'), /* Super Modern Browsers */
         url('../fonts/montserrat-v25-latin-300italic.woff') format('woff'), /* Modern Browsers */
         url('../fonts/montserrat-v25-latin-300italic.ttf') format('truetype'), /* Safari, Android, iOS */
         url('../fonts/montserrat-v25-latin-300italic.svg#Montserrat') format('svg'); /* Legacy iOS */
  }

  /* #endregion */



h2,
h3,
h4,
p,
section ul li,
a {
    line-height: 2;
    text-decoration: none;
}

h1,
h2,
h2 a,
h3 {
    font-weight: 500;
}

h1 {
    font-size: 2rem;
    line-height: 1.3;
}

a {
    color: #000;
    position: relative;
}

footer a {
    font-size: 0.9rem;
}



/* grid */

.grid-page {
    display: grid;
    grid-template-columns: 1fr min(80vw, 1200px) 1fr;
}

.grid-content {
    grid-column: 2;
}

.grid-content > * {
    margin-top: 2rem;
    width: 100%;
}

.grid-info {
    grid-column: 2;
}



/* header + footer */

header {
    height: calc(var(--vh, 1vh) * 65);
}

.header-small {
    height: calc(var(--vh, 1vh) * 35);
}

header nav {
    grid-column: 2;
    margin-top: 2rem;
}

header nav li,
footer li {
    display: inline-block;
    margin-right: 1rem;
}

.footer-index {
    bottom: 0;
    left: 0;
    position: fixed;
    width: 100%;
}

footer ul {
    grid-column: 2;
    margin: 15vh 0 2rem 0;
}

footer li:nth-child(3) {
    float: right;
    margin-right: 0;
}



/* hero */

#hero-video {
    height: 115%;
    object-fit: cover;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: -1;
}

#hero-image,
#hero-text {
    grid-template-rows: calc(var(--vh, 1vh) * 35);
}

#hero-image img {
    align-self: end;
    grid-column: 1/4;
    width: 100%;
}

#hero-text section {
    align-self: end;
    grid-column: 2;
    margin-bottom: min(10vw, 10vh);
    width: 100%;
}



/* main */

figure,
section {
    margin-top: min(10vw, 10vh);
}

section h2,
section h3,
section h4,
section p {
    margin-bottom: 1rem;
}

/* section h4,
section p {
    margin-top: 0.5rem;
} */



/* #region mediaqueries */

@media (min-width: 768px) {


    /* fonts */

    a:after {
        content: '';
        position: absolute;
        width: 100%;
        transform: scaleX(0);
        height: 1px;
        bottom: 0;
        left: 0;
        background-color: #000;
        transform-origin: bottom right;
        transition: transform 0.25s ease-out;
    }
    
    a:hover:after {
        transform: scaleX(1);
        transform-origin: bottom left;
    }



    /* grid */

    .grid-content {
        display: grid;
        gap: 0 1rem;
        grid-template-columns: repeat(5, 1fr);
    }

    .grid-1 {
        grid-column: 1;
    }

    .grid-1-3 {
        grid-column: 1/3;
    }

    .grid-1-4 {
        grid-column: 1/4;
    }

    .grid-1-5 {
        grid-column: 1/5;
    }

    .grid-1-6 {
        grid-column: 1/6;
    }

    .grid-2 {
        grid-column: 2;
    }

    .grid-2-4 {
        grid-column: 2/4;
    }

    .grid-2-5 {
        grid-column: 2/5;
    }

    .grid-2-6 {
        grid-column: 2/6;
    }

    .grid-3 {
        grid-column: 3;
    }

    .grid-3-5 {
        grid-column: 3/5;
    }

    .grid-3-6 {
        grid-column: 3/6;
    }

    .grid-4 {
        grid-column: 4;
    }

    .grid-4-6 {
        grid-column: 4/6;
    }

    .grid-5 {
        grid-column: 5;
    }



    /* hero */

    #hero-image {
        grid-template-rows: none;
    }

    #hero-image img {
        grid-column: 2/4;
        width: 100%;
    }   
    }

/* #endregion */