/* Table of contents
––––––––––––––––––––––––––––––––––––––––––––––––––
  /* Responsive (ref only)
/* Structure
/* Grid rules
/* Typography
/* Quick spacing rules
/* Buttons & Tooltips
/* Navigation
/* Mobile Navigation
/* Home page
/* Work page
/* Project page
/* The Pharmacy
/* Footer
/* Animations
/* Responsive rules

*/

/* Responsive (ref only)
–––––––––––––––––––––––––––––––––––––––––––––––––– 

  /* Larger than phablet */
  @media (min-width: 550px) {
  }

  /* Larger than tablet */
  @media (min-width: 750px) {
  }
  
  /* Menu breakpoint */
  @media (min-width: 900px) {
  }

  /* Larger desktop screens */
  @media (min-width: 1200px) {
  }

  /* Huge desktop screens */
  @media (min-width: 1600px) {
  }


/* Structure
–––––––––––––––––––––––––––––––––––––––––––––––––– */
  html {
    scroll-behavior: smooth;
    overflow-x: hidden;
  }
  body {
    display: block;
    position: relative;
    margin: 0;
    overflow-x: hidden;
    font-family: niveau-grotesk,sans-serif;
    font-weight: 400;
    font-style: normal;
  }
  body.modal-open {
      overflow-y: hidden;
  }
  /* Menu breakpoint */
  @media (min-width: 900px) {
    body.modal-open {
      padding-right: 15px; /* Avoid width reflow */
    }
  }
  img {
    width: 100%;
  }
  *:focus {
      outline: none;
  }
  .image-wrap {
    background-size: cover; 
    background-position: center;
  }

/* Grid rules
–––––––––––––––––––––––––––––––––––––––––––––––––– */
  .container {
    width: calc(100% - 4rem);
    padding-left: 2rem;
    padding-right: 2rem;
    display: block;
    position: relative;
  }
  @media (min-width: 900px) {
    .container {
      width: 80%;
      margin-left: auto;
      margin-right: auto;
    }
  }
  .grid {
    width: calc(100% - 4rem);
    margin-right: auto;
    margin-left: auto;
    opacity: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
      grid-column-gap: 1rem; 
  }
  @media (min-width: 900px) {
    .grid {
      display: grid;
      width: 80%;
      margin-right: auto;
      margin-left: auto;
      grid-template-columns: repeat(12, 1fr);
        grid-column-gap: 2rem; 
    }
  }
  .grid > div {
      display: flex;
      flex-direction: column;
  }
  .col-1  {  grid-column: span 2; }
  .col-2  {  grid-column: span 2; }
  .col-3,
  .col-4,
  .col-5,
  .col-6,
  .col-7,
  .col-8,
  .col-9,
  .col-10,
  .col-11,
  .col-12 {
    grid-column: span 4;
  }
  .flex-end { align-self: flex-end;}

  @media (min-width: 900px) {
    .col-1  {  grid-column: span 1; }
    .col-2  {  grid-column: span 2; }
    .col-3  {  grid-column: span 3; }
    .col-5  {  grid-column: span 5; }
    .col-6  {  grid-column: span 6; }
    .col-7  {  grid-column: span 7; }
    .col-8  {  grid-column: span 8; }
    .col-9  {  grid-column: span 9; }
    .col-10 {  grid-column: span 10; }
    .col-11 {  grid-column: span 11; }
    .col-12 {  grid-column: span 12; }
    .m-col-1  {  grid-column: span 1; }
    .m-col-2  {  grid-column: span 2; }
    .m-col-3  {  grid-column: span 3; }
    .m-col-4  {  grid-column: span 4; }
    .m-col-5  {  grid-column: span 5; }
    .m-col-6  {  grid-column: span 6; }
    .m-col-7  {  grid-column: span 7; }
    .m-col-8  {  grid-column: span 8; }
    .m-col-9  {  grid-column: span 9; }
    .m-col-10 {  grid-column: span 10; }
    .m-col-11 {  grid-column: span 11; }
    .m-col-12 {  grid-column: span 12; }
  }
  @media (min-width: 1600px) {
    .l-col-1  {  grid-column: span 1; }
    .l-col-2  {  grid-column: span 2; }
    .l-col-3  {  grid-column: span 3; }
    .l-col-4  {  grid-column: span 4; }
    .l-col-5  {  grid-column: span 5; }
    .l-col-6  {  grid-column: span 6; }
    .l-col-7  {  grid-column: span 7; }
    .l-col-8  {  grid-column: span 8; }
    .l-col-9  {  grid-column: span 9; }
    .l-col-10 {  grid-column: span 10; }
    .l-col-11 {  grid-column: span 11; }
    .l-col-12 {  grid-column: span 12; }
  }

/* Typography
–––––––––––––––––––––––––––––––––––––––––––––––––– */
  h2, h2, h3, h4, h5, p, li {
    font-family: niveau-grotesk,sans-serif;
  }
  h1 {
    font-weight: normal;
    font-size: 2.7rem;
    line-height: 2.7rem;
    color: #95A8BB;
    margin-bottom: 0.9rem;
    margin-top: 0;
  }
  h2 {
    font-weight: normal;
    font-size: 2rem;
    line-height: 2.7rem;
    color: #95A8BB;
    margin-bottom: 0.9rem;
    margin-top: 0;
  }
  h3 {
    font-size: 1.3rem;
    letter-spacing: 0.04rem;
    line-height: 1.8rem;
  }
  h3, h4, h5, h6, p {
    font-weight: 400;
    color: #95A8BB;
    margin-bottom: 0.9rem;
    margin-top: 0;
  }
  h6 {
    font-size: 1rem;
  }
  .txt-bold {
    font-weight: 700;
    font-style: normal;
  }
  p {
    font-size: 1.2rem;
    line-height: 1.8rem;
    letter-spacing: 0.05rem;
    margin-bottom: 1.8rem;
  }
  @media (min-width: 900px) {
    h2 {
      font-size: 2.92vw;
      line-height: 1.1;
    }
    h3 {
      font-size: 1.6rem;
      letter-spacing: 0.05rem;
      line-height: 2.7rem;
    }
  }

/* Quick spacing rules
–––––––––––––––––––––––––––––––––––––––––––––––––– */
  .mt-0 {   margin-top: 0; }
  .mt-1 {   margin-top: 1rem; }
  .mt-2 {   margin-top: 2rem; }
  .mt-3 {   margin-top: 3rem; }
  .mt-4 {   margin-top: 4rem; }
  .mt-5 {   margin-top: 5rem; }
  .mt-6 {   margin-top: 6rem; }
  .mt-7 {   margin-top: 7rem; }
  .mt-8 {   margin-top: 8rem; }
  .mt-9 {   margin-top: 9rem; }
  .mt-10 {  margin-top: 10rem; }
  .mt-txt {   margin-top: 1.8rem; }

  .pt-5 {   padding-top: 5rem; }
  .pt-10 {  padding-top: 10rem; }
  .pt-15 {  padding-top: 15rem; }
  .pt-20 {  padding-top: 20rem; }

  .mb-0 {   margin-bottom: 0; }
  .mb-1 {   margin-bottom: 1rem; }
  .mb-2 {   margin-bottom: 2rem; }
  .mb-3 {   margin-bottom: 3rem; }
  .mb-4 {   margin-bottom: 4rem; }
  .mb-5 {   margin-bottom: 5rem; }
  .mb-6 {   margin-bottom: 6rem; }
  .mb-8 {   margin-bottom: 8rem; }
  .mb-10 {  margin-bottom: 10rem; }

  .pb-2 {   padding-bottom: 2rem; }
  .pb-5 {   padding-bottom: 5rem; }


  @media (min-width: 900px) {
    .l-mt-0 {   margin-top: 0; }
    .l-mt-2 {   margin-top: 2rem; }
    .l-mt-4 {   margin-top: 4rem; }
    .l-mt-6 {   margin-top: 6rem; }
    .l-mt-8 {   margin-top: 8rem; }
    .l-mt-10 {  margin-top: 10rem; }
  }
  @media (min-width: 1200px) {
    .x-mt-6 {   margin-top: 6rem; }
    .x-mt-8 {   margin-top: 8rem; }
    .x-mt-10 {  margin-top: 10rem; }

    .x-pb-10 {  padding-bottom: 10rem; }
  }

/* Buttons & Tooltips
–––––––––––––––––––––––––––––––––––––––––––––––––– */
  a {           text-decoration: none; color: #727070;}
  a:hover {     color: black; }
  .cool-guy {
    cursor: help;
    width: 3rem;
    font-size: 2.4rem;
  }
  .cool-guy:hover {
    color: var(--fishmeat);
  }
  .credits a {
    display: inline-block;
    margin-bottom: 1.8rem;
    border-bottom: 1px dotted #727070;
  }
  @media (min-width: 900px) {
    .credits a {
      margin-bottom: 2.2rem;
    }
  }
  a p {
    margin-bottom: 0;
    line-height: 1.4rem;
  }
  .back-top {
    display: block;
    text-align: center;
  }
  .back-top p {
    display: inline-block;
  }
  a.back-top:hover p {
    text-decoration: underline;
  }
  .arrow {
      width: 1rem;
      height: 1rem;
      border-top: 1px solid #727070;
      border-right: 1px solid #727070;
      margin: 0;
      display: inline-block;
  }
  .arrow.right {
      transform: rotate(45deg);
  }
  .arrow.left {
      transform: rotate(-135deg);
  }
  .arrow.down {
      transform: rotate(135deg);
  }
  /* Larger than tablet */
  @media (min-width: 900px) {
    .arrow {
        width: 1.8rem;
        height: 1.8rem;
    }
  }
  a.from-the-top {    
    flex-direction: row-reverse;  
    padding-top: 6rem;
    padding-bottom: 7rem;
    cursor: pointer;
    align-self: flex-end;
  }
  a.from-the-top p {  
    margin-right: 1.2rem;
    text-align: right; 
    display: inline-block;
  }
  a.from-the-top .ftt-arrow {
    width: .5rem;
    border-bottom: 1px solid #727070;
    border-right: 1px solid #727070;
    height: 1.8rem;
    position: relative;
    display: inline-block;
  }
  a.from-the-top .ftt-arrow:after {
    content: "";
    width: .4rem;
    border-bottom: 1px solid #727070;
    border-right: 1px solid #727070;
    height: .4rem;
    position: absolute;
    transform: rotate(-135deg);
    right: -.25rem;
  }
  svg.link-icon {
    stroke: #727070;
    fill: none;
    display: inline-block;
    transform: scale(1.1);
    margin-left: .3rem;
    height: 1rem;
    width: 1rem;
  }

/* Navigation
–––––––––––––––––––––––––––––––––––––––––––––––––– */
  .nav-menu {
    position: absolute;
    width: calc(100% - 4rem);
    margin-left: 2rem;
    margin-right: 2rem;
    z-index: 2;
    top: 10vh;
  }
  a.name {
    display: inline-block;
    position: relative;
    opacity: 1;
    transition: 0.4s ease-out;
    margin-top: 6vh;
    margin-bottom: 6vh;
  }
  a.name:hover {
    text-decoration: none;
    opacity: 0.66;
    transition: 0.15s ease-out;
  }
  a.name h1 {
    font-size: 1.8rem;
    line-height: 1.8rem;
    margin-bottom: 0;
  }
  a.name h4 {
    margin-top: 0.4rem;
    margin-bottom: 0;
  }
  /* Larger than tablet */
  @media (min-width: 900px) {
    .nav-menu {
      position: relative;
      width: 80%;
      margin-left: auto;
      margin-right: auto;
      top: unset;
    }
    a.name h1 {
      font-size: 2.2rem;
      line-height: 2.7rem;
    }
  }
  /* Larger than tablet */
  @media (min-width: 900px) {
    .nav-menu .nav-columns {
      display: flex;
    }
  }
  footer {
    border-top: 1px solid black
  }
  footer h6 {
    text-align: center;
    margin: auto 0;
    line-height: 6;
    font-size: 2.4vw;
    letter-spacing: 0.3vw;
  }
    @media (min-width: 550px) {
      footer h6 {
        font-size: 0.7rem;
        letter-spacing: 0.2rem;
      }
    }
    ul.nav-menu-items a {
      display: block;
    }
    ul.nav-menu-items a:nth-of-type(1) {
      margin-left: -4rem;
    }
    .is-active ul.nav-menu-items a:nth-of-type(1) {
      margin-left: 0;
      transition: 0.3s ease-in-out;
    }

/* Mobile Navigation
–––––––––––––––––––––––––––––––––––––––––––––––––– */
  .hamburger {
    z-index: 5;
    width: auto;
    right: 0;
    top: 0;
    padding: 1.4rem 2rem 1.4rem 1.4rem;
  }
  .hamburger:hover .hamburger-box {
    opacity: 0.66;
    transition: 0.15s ease-out;
  }
  @media (min-width: 900px) {
    .hamburger {
      padding: 1.8rem;
      top: 6vh;
      right: calc(10% - 1.8rem);
    }
  }
  .mob-menu {
    display: none;
    position: fixed;
    background-color: white;
    width: 100%;
    height: 100vh;
    z-index: 4;
    top: 0;
  }
  .mob-menu .grid {
      height: 100vh;
  }
  .mob-menu-inner {
      height: 100%;
      height: 100vh;
  }
  .grid.mob-menu-inner, .grid.mob-menu-inner .column {
      padding: 0;
  }
  ul.nav-menu-items {
    padding-left: 0;
  }
  .mob-menu ul.nav-menu-items a{
    text-decoration: none;
  }
  .mob-menu ul.nav-menu-items li{
    list-style: none;
    text-align: right;
    font-family: 'YoungSerif', serif;
    font-weight: normal;
    font-size: 13vw;
    line-height: .8;
    color: #727070;
    margin-bottom: 1.8rem;
    opacity: 1;
    transition: 0.4s ease-out;
    text-decoration: none;
  }
  .mob-menu ul.nav-menu-items li:hover{
    opacity: .66;
    transition: 0.15s ease-out;
  }
  .mob-menu .social {
    margin-bottom: 4rem;
  }
  .mob-menu .social p {
    text-align: right;
    margin: 0.4rem 0;
  }
  .mob-menu .social p a{
    padding: 0.6rem 0;
  }
  @media (min-width: 900px) {
    .mob-menu ul.nav-menu-items a{
      float: right;
      clear: both;
      margin-bottom: 2.7rem;
    }
    .mob-menu ul.nav-menu-items a:last-of-type{
      margin-bottom: 0;
    }
    .mob-menu ul.nav-menu-items li{
      font-size: 6rem;
      margin-bottom: 0;
    }
    .mob-menu .nav-columns {
      grid-row: 2;
      grid-column: 7/13;
      align-self: flex-end;
      margin-bottom: 12rem;
    }
    .mob-menu .social {
      grid-row: 2;
      grid-column: 1/7;
      margin-bottom: 12rem;
    }
    .mob-menu .social p {
      text-align: left;
      margin: 0.4rem 0;
    }
    .mob-menu .social p a{
      padding: 0.6rem 0;
    }
    .mob-menu .name h1 {
      font-size: 5rem;
      line-height: 1;
    }
  }

/* Home page
–––––––––––––––––––––––––––––––––––––––––––––––––– */
  section#about { 
    margin-top: 24vh; 
    margin-bottom: 6rem;
  }
  #about h2{
    max-width: 95%;
  }
  #about .image-wrap {
    grid-row: 1;    
    height: 30vh;
  }
  /* Larger than tablet */
  @media (min-width: 900px) {
    section#about { 
      margin-top: 5vh;
      margin-bottom: 0;
    }
    #about .image-wrap {
      grid-row: 3;
      height: auto
    }
    #about h2{
      max-width: unset;
      font-size: 2.95vw;
      line-height: 1;
      width: 101%;
    }
    #about h2:nth-of-type(2){
      grid-row: 2;
      margin-bottom: 2.7rem;
    }
    #about .bio {
      margin-top: 3vw;
      max-width: 36rem;
    }
  }
  #landing {
    height: 100vh;
    display: flex;
    background: linear-gradient(#CCECFF, #D6FFF7, transparent 40%);
  }
  #landing .logo {
    width: 10rem;
    margin: auto;
    margin-top: 25vh;
  }
  #landing .col-4 {
    text-align: center;
    margin-bottom: 1rem;
  }

  .categories img {
	width: 8rem;
    margin: auto;
    margin-bottom: 0;
  }
	.categories p {
		text-align: center;
	}
  #landing #intro-text {
    text-align: center;
    margin: 4rem auto;
    color: #95A8BB;
  }
  @media (min-width: 900px) {
    #landing .logo {
      width: 12rem;
    }
    #landing #intro-text {
      margin: auto;
    }
    #landing {
      width: 100%;
    }
    .categories img {
      margin-bottom: 1rem;
    }
    #landing .col-4 {
      margin-bottom: 6rem;
    }
  }

/* Foot-nav
–––––––––––––––––––––––––––––––––––––––––––––––––– */

/* Animations
–––––––––––––––––––––––––––––––––––––––––––––––––– */
  .animated, section {
    animation-duration: 1s;
    animation-fill-mode: both;
  }
  .animated-20 {
    animation-duration: 2s;
  }
  .animated-25 {
    animation-duration: 2.5s;
  }
  .animated-50 {
    animation-duration: 5s;
  }

  .channelAnim {  animation-name: channelAnim;}
  @keyframes channelAnim {
    0% {
      transform: translateY(10rem);
    }
    70% {
      transform: translateY(10rem);
    }
    100% {
      transform: translateY(0);
    }
  }

  .fadeIn {  animation-name: fadeIn;}
  @keyframes fadeIn {
    from {
      opacity: 0;
    }

    to {
      opacity: 1;
    }
  }
  .fadeInDown {  animation-name: fadeInDown;}
  @keyframes fadeInDown {
    from {
      opacity: 0;
      transform: translate3d(0, -3rem, 0);
    }

    to {
      opacity: 1;
      transform: none;
    }
  }
  .fadeInUp {  animation-name: fadeInUp;}
  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translate3d(0, 3rem, 0);
    }

    to {
      opacity: 1;
      transform: none;
    }
  }
  .fadeInRight {  animation-name: fadeInRight;}
  @keyframes fadeInRight {
    from {
      opacity: 0;
      transform: translate3d(-3rem, 0, 0);
    }

    to {
      opacity: 1;
      transform: none;
    }
  }
  .fadeInLeft {  animation-name: fadeInLeft;}
  @keyframes fadeInLeft {
    from {
      opacity: 0;
      transform: translate3d(3rem, 0, 0);
    }

    to {
      opacity: 1;
      transform: none;
    }
  }
  .fadeInNext {  animation-name: fadeInNext;}
  @keyframes fadeInNext {
    from {
      opacity: 0;
      transform: rotate(-90deg) translate(100%, 15%);
    }

    to {
      opacity: 1;
      transform: rotate(-90deg) translate(100%, -115%);
    }
  }

  @keyframes Gradient {
    0% {
      background-position: 0% 50%
    }
    50% {
      background-position: 100% 50%
    }
    100% {
      background-position: 0% 50%
    }
  }
  .blinking{
    animation:blinkingText .5s infinite;
  }
  @keyframes blinkingText{
      0%{     color: white;    }
      49%{    color: white; }
      60%{    color: red; }
      99%{    color: red;  }
      100%{   color: red;    }
  }

  .delay-01   { animation-delay:0.1s; }
  .delay-02   { animation-delay:0.2s; }
  .delay-03   { animation-delay:0.3s; }
  .delay-04   { animation-delay:0.4s; }
  .delay-05   { animation-delay:0.5s; }
  .delay-08   { animation-delay:0.8s; }
  .delay-10   { animation-delay:1.0s; }
  .delay-12   { animation-delay:1.2s; }
  .delay-18   { animation-delay:1.8s; }
  .delay-20   { animation-delay:2.0s; }
  .delay-22   { animation-delay:2.2s; }
  .delay-24   { animation-delay:2.4s; }
  .delay-25   { animation-delay:2.5s; }
  .delay-26   { animation-delay:2.6s; }
  .delay-27   { animation-delay:2.7s; }
  }

/* Responsive rules
–––––––––––––––––––––––––––––––––––––––––––––––––– */
  /* S (small)
  –––––––––––––––––––––––––––––––––––––––––––––––––– */
  .s-only {  display: block;  }
  .s-only.flex {  display: flex;  }
  .l-up { display: none; }
  .x-up { display: none; }

  /* M (medium)
  –––––––––––––––––––––––––––––––––––––––––––––––––– */
  @media (min-width: 550px) {
    .s-only {  display: none;  }
  }

  /* L (large)
  –––––––––––––––––––––––––––––––––––––––––––––––––– */
  @media (min-width: 900px) {
    .s-only {  display: none;  }
    .s-m-only { display: none;   }
    .l-up { display: block; }
  }

  /* X (x-large)
  –––––––––––––––––––––––––––––––––––––––––––––––––– */
  @media (min-width: 1200px) {
    .x-up { display: block; }
    .s-m-l-only { display: none;   }
  }