@font-face {
  font-family: "Trivia Grotesk";
  src: url("../fonts/TriviaGroteskR3.woff");
  font-weight: normal;
  font-display: swap;
}

@font-face {
  font-family: "Trivia Grotesk";
  src: url("../fonts/TriviaGroteskR3-Bold.woff");
  font-weight: bold;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

*:focus-visible {
  outline-color: currentColor;
  outline-style: solid;
  outline-offset: .5rem;
  outline-width: .375rem;
  border-radius: .125rem;
}

@media (prefers-reduced-motion: no-preference) {
  *:focus-visible {
    animation: outline-bounce .5s;
  }
}

@keyframes outline-bounce {
  0% {
    outline-offset: .5rem
  }

  50% {
    outline-offset: .75rem
  }

  100% {
    outline-offset: .5rem
  }
}



html {
  font-family: "Trivia Grotesk", sans-serif;
  color: #333;
  height: 100%;
  font-size: 62.5%;
  line-height: 62.5%;
  letter-spacing: -0.0125rem;

}

body {
  background-color: #F7F7F7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin-top: -0.1rem;
  /* remove margin top**************************/
}


a {
  cursor: pointer;
  text-decoration: none;
  /*  border-bottom: 0.125rem #FF504E solid;*/
  color: inherit;
  transition: .2s;
  letter-spacing: -0.0125rem;
  text-decoration: none;
  text-shadow: 1px 1px 0 #F7F7F7, -1px 1px 0 #F7F7F7, 2px 0 0 #F7F7F7, -2px 0 0 #F7F7F7;
  box-shadow: inset 0 -1px 0 0 #F7F7F7, inset 0 -3px 0 0 #FF504E;

}

a:hover {
  color: #FF504E;
}

img {
  transition: .2s;
}

#normalfigures {
  font-variant-numeric: normal;
}


/* RESET ***************************/
p,
a,
ul,
figcaption {
  padding: 0;
  margin: 0;
  list-style-type: none;
  font-size: 2.2rem;
  line-height: 3.4rem;
  font-variant-numeric: oldstyle-nums;
}




.intro p {
  text-indent: 1.5em;
}

.intro p:first-child {
  text-indent: 0;
}





figure {
  margin: 0 0 5rem;
}


h1 {
  padding: 0;
  margin: 0;
  font-size: 6rem;
  line-height: 6.4rem;
  color: #FF504E;
}

h2 {
  padding: 0;
  margin: 0;
  font-size: 2.5rem;
  line-height: 3.2rem;
  font-weight: bold;
  margin-bottom: 1.7rem;
}


noscript {
  display: block;
  font-size: 1rem;
  line-height: 1.2rem;
}



/* HEADER ***************************/
header {
  width: 100%;
}

.row>.col--offset4 {
  display: flex;
  align-items: center;
}


.logo a {
  font-weight: bold;
  text-align: left;
  font-size: 2.5rem;
  color: #333;
  transition: .5s;
  text-decoration: none;
  text-shadow: none;
  box-shadow: none;


}

.logo a:hover {
  color: #FF504E;
}


/* LAYOUT  ***************************/




/* KEYVISUAL ***************************/

.keyvisual {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 4rem;
}

.keyvisual__img {
  max-width: 540px;
  width: 100%;
}

.keyvisual__img img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 1080/704;
}


/* TITLE ***************************/


.title {
  margin-bottom: 6.1rem;
}


.pullup-over-image {
  margin-top: -18.8rem;
  margin-bottom: 6.1rem;
}


/* COPYRIGHT-CREDITS ***************************/


.keyvisual__credits {
  font-size: 1.5rem;
  color: rgba(0, 0, 0, 0.7);
}


/* SECTION ***************************/

section {
  margin-bottom: 4.7rem;
}




/* PROJECTS ***************************/


.projects-aligner {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  margin-top: 2.4rem;
  margin-bottom: -0.7rem;
}

.projects img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 512/288;
}

.projects a {
  text-decoration: none;
  text-shadow: none;
  box-shadow: none;
  display: table;
  margin-bottom: 2.3rem;
}


.projects-aligner>div>a>img:hover {
  opacity: 0.9;
}

.projects>figure {
  margin: 0;
}


/* CLIENTS ***************************/


section .clients {
  display: inline;
}


.clients ul {
  display: inline-block;
  letter-spacing: -0.0125rem;
  width: 45rem;
}

.clients li {
  width: 50%;
  float: left;
  display: inline;
}


section .clients li:before {
  color: #FF504E;
  content: '› ';
}

.sc {
  font-variant-caps: all-small-caps;
}



/* ASIDE ***************************/

.contact {
  width: 100%;
}



/* FOOTER ***************************/


footer {
  padding: 4rem 0;
  width: 100%;
  background-color: #1f1f1f;
  color: #878788;

}


footer ul {
  display: flex;
  gap: 2rem;
}


.bottom__nav {
  width: 100%;
}

.bottom__nav a {
  color: inherit;
  text-shadow: 1px 1px 0 #1f1f1f, -1px 1px 0 #1f1f1f, 2px 0 0 #1f1f1f, -2px 0 0 #1f1f1f;
  box-shadow: inset 0 -1px 0 0 #1f1f1f, inset 0 -3px 0 0 #F7F7F750;
}

.bottom__nav a:hover {
  color: #F7F7F7;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/*
########################################################
########################################################
########################################################
########################################################
########################################################
########################################################
########################################################
########################################################
########################################################
########################################################
########################################################
########################################################
########################################################
########################################################
########################################################
*/





@media screen and (max-width: 998px) {
  /* SMALL & MEDIUM DEVICES */

  html {
    overflow-x: hidden;
  }

  body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
  }

  p,
  a,
  ul {
    padding: 0;
    margin: 0;
    list-style-type: none;
    font-size: 1.7rem;
    line-height: 2.6rem;
    font-variant-numeric: oldstyle-nums;
  }

  p,
  ul {
    margin: 0 3vw 0 3vw;
  }

  h1 {
    padding: 0;
    margin: 4vw 3vw 4vw 3vw;
    font-size: 4rem;
    line-height: 4rem;
    color: #FF504E;
  }

  h2 {
    padding: 0;
    margin: 3vw;
    font-size: 2.2rem;
    line-height: 2.8rem;
    font-weight: bold;
    margin-bottom: 1.7rem;
  }

  figure {
    margin: 0 0 1rem;
  }

  figcaption {
    padding: 0 1rem;
  }

  /* LOGO ***************************/

  .logo {
    width: 100%;
    align-self: center;
    text-align: center;
  }

  .logo a {
    font-weight: bold;
    font-size: 2.2rem;
    color: #333;
    transition: .5s;
    text-decoration: none;
    text-shadow: none;
    box-shadow: none;
  }

  .logo a:hover {
    color: #FF504E;
  }

  /* KEYVISUAL ***************************/



  .keyvisual {

    display: initial;
    align-items: flex-start;
    margin-bottom: 4rem;
  }

  .keyvisual__img {
    align-items: flex-start;
  }

  .keyvisual__img img {
    width: 100%;
    display: block;
  }


  /* TITLE h1 ***************************/

  .title {

    margin-top: 0;
    margin-bottom: 0;
  }


  /* CREDITS ***************************/




  .projects-aligner {
    flex-direction: row;
    flex-wrap: wrap;
    margin: 3vw;
  }

  .projects img {
    display: block;
    width: 100%;
    height: auto;
  }

  .projects a {
    text-decoration: none;
    text-shadow: none;
    box-shadow: none;
  }


  .clients li {

    float: initial;
    display: block;
  }


  .contact {
    margin-bottom: 1.6rem;
  }


  .relativ {
    order: 1;
    margin-bottom: 4rem;

  }

}