@font-face {
  font-family: 'khdesertregular';
  src: url('https://399.michaelkennedy.ch/fonts/khdesert-webfont.woff2') format('woff2'),
       url('https://399.michaelkennedy.ch/fonts/khdesert-webfont.woff') format('woff');
  font-weight: normal;
  font-style: normal;

}
        
@font-face {
  font-family: 'Routine Pro Medium';
  src: url('https://399.michaelkennedy.ch/fonts/RoutinePro-Medium.eot');
  src: url('https://399.michaelkennedy.ch/fonts/RoutinePro-Medium.eot?#iefix') format('embedded-opentype'),
       url('https://399.michaelkennedy.ch/fonts/RoutinePro-Medium.woff2') format('woff2'),
       url('https://399.michaelkennedy.ch/fonts/RoutinePro-Medium.woff') format('woff'),
       url('https://399.michaelkennedy.ch/fonts/RoutinePro-Medium.ttf')  format('truetype'),
       url('https://399.michaelkennedy.ch/fonts/RoutinePro-Medium.svg#Routine Pro') format('svg');
}


@font-face {
  font-family: 'Routine Pro';
  src:  url('https://399.michaelkennedy.ch/fonts/RoutinePro-Bold.eot');
  src:  url('https://399.michaelkennedy.ch/fonts/RoutinePro-Bold.eot?#iefix') format('embedded-opentype'),
        url('https://399.michaelkennedy.ch/fonts/RoutinePro-Bold.woff2') format('woff2'),
        url('https://399.michaelkennedy.ch/fonts/RoutinePro-Bold.woff') format('woff'),
        url('https://399.michaelkennedy.ch/fonts/RoutinePro-Bold.ttf') format('truetype'),
        url('https://399.michaelkennedy.ch/fonts/RoutinePro-Bold.svg#Routine Pro') format('svg');
}

/* colors

rgba(224, 187, 96, 1) e0bb60
rgba(211, 91, 90, 1) d35b5a
rgba(236, 183, 209, 1) ecb7d1
rgba(98, 122, 160, 1) 627aa0
rgba(85, 186, 168, 1) 55baa8
rgba(229, 156, 115, 1) e59c73
rgba(235, 239, 189, 1) ebefbd

*/


:root {
  --font-color: black;
  --font-color-hover: white;
  --font-color-dl-mobile: black;
  --font-color-dl-desktop: white;
  --menu-background: rgba(224, 187, 96, 1);
  --gradient: linear-gradient(to bottom, rgba(224, 187, 96, 1) 0%, rgba(211, 91, 90, 1) 17%, rgba(236, 183, 209, 1) 34%, rgba(98, 122, 160, 1) 51%, rgba(85, 186, 168, 1) 68%, rgba(229, 156, 115, 1) 85%, rgba(235, 239, 189, 1) 100%);
  --media-query-width: 600px;
  --desktop-font-size: 1.2em;
}

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


body {
  background:rgba(224, 187, 96, 1);
  font-family: 'Routine Pro Medium', serif,  Helvetica, Arial, sans-serif;
  color: var(--font-color);
  margin: 0;
  font-size: calc(13px + (20 - 13) * ((100vw - 600px) / (2000 - 600)));
  color: var(--font-color);
}

p a {
  color: var(--font-color);
}

p a:hover{
  color: var(--font-color-hover);
}
/*nav - mobile first*/

header {
  background-color: var(--menu-background);
  text-align: center;
  position: fixed;
  width: 100%;
  z-index: 2;
}

nav {
  position: absolute;
  display: grid;
  top: 100%;
  width: 100%;
  height: calc(100vh - 100%);
  background: var(--menu-background);
  transform: scale(1,0);
  transform-origin: top;
  transition: transform 400ms ease-in-out;
  z-index: 2;
}

nav ul {
  align-self: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

nav li {
  margin-top: 2.5em;

}

nav li a {
  color: var(--font-color);
  text-decoration: none;
  font-size: 2.5em;
  opacity: 0;
  transition: opacity 150ms ease-in-out;
  
}

.nav-toggle:checked ~ nav {
  transform: scale(1,1)
  
}

.nav-toggle:checked ~ nav a {
  opacity: 1;
  transition: opacity 250ms ease-in-out 250ms;
  
}

.nav-toggle{
  display: none;
}

.dlLink{
  position: fixed;
  width: 100%;
  bottom: 0;
  background: var(--menu-background);
  background-size: 100% 20000px;
  background-image: var(--gradient);

}

.dlLink:hover{
  background: var(--font-color);
  border: var(--font-color) solid 1px;

 
}

.dlLink h1 {
  color: var(--font-color-dl-mobile);
}

header h1{
  font-size: 1.8em;
  margin: 0;
  padding-top: 0.2em;
  text-transform: uppercase;
}

header a{
  color: var(--font-color-dl-mobile);
}

header a:hover{
  color: var(--font-color-hover);
}

header a:active {
  color: var(--font-color-hover);
}

.nav-toggle-label:hover{
  color: var(--font-color-hover);
}


/* nav - desktop */

@media screen and (min-width: 670px){
  .nav-toggle-label{
    display: none;
  }

  header {
    display: grid;
    background: transparent;
  }

  nav {
    all: unset;
    text-align: left;
  }

  nav li a {
    opacity: 1;
    font-size: var(--desktop-font-size);
    color: var(--font-color-desktop);
  }

  nav li a:hover {
    color: var(--font-color-hover);
  }

  nav ul {
    display: flex;
  }

  nav li {
    margin-left: 1.5em;
    margin-top: 0;
    padding: 0.5em;
  }
 /*  .dlLink {
    width: 10em;
    padding: 0.4em;
    text-align: left;
    bottom: unset;
    right: 0;
    top: 0;
    background: unset;
  } */

  .dlLink {
    width: auto;
   padding: 0.4em 1em 0.3em 1em;
   text-align: center;
   bottom: unset;
   right: 1em;
   top: 0.5em;
   background: unset;
   border: var(--font-color-dl-desktop) solid 0.06em;
   border-radius: 3em;
 }

  header h1 {
    font-size: var(--desktop-font-size);
    color: var(--font-color-dl-desktop);
  }

}


/* image sequence */

.bwImgSeqLength {
  height: 20200px;
}

.interactiveExplainerImgSeqLength {
  height: 22000px;
}

.imgSeqSection{
  position: absolute;
  width: 100%;
  background-image: var(--gradient);
}

.imgSeqContainer{
  width: 100%;
  height: 100vh;
  position: fixed;
  display: grid;
  grid-template-columns: auto;
}

.imgSeq{
  justify-self: center;
  align-self: center;
  height: 100vh;
  box-shadow: 10px 10px 101px -55px rgba(0,0,0,0.75);
}

.nbrOverlay1, #nbrOverlay2{
  font-family: 'khdesertregular';
  font-size: 25vh;
  position: fixed;
  text-align: center;
  width: 100%;
  top:42vh;
  pointer-events:none;
}

.nbrOverlay1{
  color: white;
  mix-blend-mode: difference;  
}

#nbrOverlay2{
  background-size: 100% 20000px;
  background-image: var(--gradient);
  background-position: 0 100px;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  mix-blend-mode: multiply;
}



@media (orientation: landscape){
  .imgSeq{
    transform: rotate(-90deg);
    height:  95vh;
  }

}

@media screen and (min-width: 670px) and (orientation: portrait){
  .imgSeq{
    height: 80vh;
  }

}




/* interactive explaner */

.stickySection{
  z-index: 1;
	position: relative;
	padding-left: 10px;
  padding-right: 10px;
}

.stickyContent {
	position: sticky;
	position: -webkit-sticky;
	width: 90%;
  top: 20%;
  margin: 0em 1.3em 0em 1.3em;
  
}
.stickyContent h1{
  font-size: var(--desktop-font-size);
}

.stickyContent p{
  font-size: 2em;
}

.stickyContentLast{
  color: rgb(91, 163, 227);
  
}

/* 0 title sticky section(2) */
.stickySection:nth-of-type(2) {
  height: 100vh;
  padding-top: 30vh;
}

/* 1st step sticky section(3) */
.stickySection:nth-of-type(3) {
  height: 1900px;
}

/* 2nd step sticky section(4) */
.stickySection:nth-of-type(4) {
  height: 2300px;
}

/* 3rd step sticky section(5) */
.stickySection:nth-of-type(5) {
  height: 2300px;
}

/* 4th step sticky section(6) */
.stickySection:nth-of-type(6) {
  height: 5830px;
}

/* 5th step sticky section(7) */
.stickySection:nth-of-type(7) {
  height: 5250px;
}

/* 6th step sticky section(8) */
.stickySection:nth-of-type(8) {
  height: 2300px;
}

/* 7th step sticky section(9) */
.stickySection:nth-of-type(9) {
  height: 1300px;
}