html,body{
  margin:0;
  height:100%;
  overflow:hidden;
  background:#09090d;
}

html,
body,
#field,
#overlay,
canvas{
  touch-action:none;
}

/* Type */

    @font-face {
      font-family: 'SyneMono';
      src: url('../../font/SyneMono-Regular.woff2') format('woff2');
      font-weight: normal;
      font-style: normal;
    }

	body {
      font-family: 'SyneMono', monospace;
      color: #fff;
      font-size: 12px;
      line-height: 1.5;
    }

	strong, b {
		color: #ffffff;
		font-weight: 700;
	}

	em, i {
		font-style: italic;
	}
	
	

html, body {
  overflow-x: hidden;
  overflow-y: auto;
}

#entry-veil{
  position:fixed;
  inset:0;
  background:#09090d;
  z-index:999999;
  opacity:1;
  pointer-events:none;
  transition:opacity 1.8s cubic-bezier(.7,0,.9,1);
}

#scene{
  position:relative;
  width:100%;
  height:100vh;
  overflow:hidden;
  background:#09090d;
  transition:opacity 2.2s ease;
}

#hero{
  position:absolute;
  inset:0;
  background:center/cover no-repeat;
  opacity:1;
  transition: opacity 4s cubic-bezier(.4,0,.08,1);
  z-index:7;
}

#stars{
  position:absolute;
  inset:0;
  z-index:4;
  pointer-events:none;
}

#field{
  position:absolute;
  inset:0;
  z-index:3;
}

#caption{
  position:absolute;
  left:32px;
  bottom:28px;
  color:#fff;
  opacity:1 !important;
  z-index:5;
}

#caption div{
  font-size:12px;
  line-height:1.5;
}

.title{
  color:#fff;
  color:rgba(255,255,255,.95);
}

.meta1{
  color:#fff;
  color:rgba(255,255,255,.8);
}

.meta2{
  color:#fff;
  color:rgba(255,255,255,.6);
}

#caption a{
  color:inherit;
  text-decoration:none;
}

#caption a:visited,
#caption a:active{
  color:inherit;
  text-decoration:none;
}

#caption a:hover{
  opacity:.85;
}

#note{
  position:absolute;
  right:32px;
  bottom:28px;
  color:#fff;
  z-index:5;
  font-size:12px;
  line-height:1.5;
  opacity:0;
  text-align:right;
  max-width:280px;
  pointer-events:none;
  transition:opacity 2.2s ease;
  cursor:pointer;
  display:block;
}

#note:hover{opacity:.9}
#note:active{opacity:.9}
#note.show{opacity:.75;
  pointer-events:auto;}

#overlay{
  position:absolute;
  inset:0;
  background:linear-gradient(
   to bottom,
   rgba(9,9,13,.62) 0%,
   rgba(9,9,13,.62) 72%,
   rgba(9,9,13,.02) 100%
  );
  opacity:0;
  pointer-events:none;

  transition:
    opacity 2.8s cubic-bezier(.22,.61,.36,1);

  z-index:10;

  display:flex;

  align-items:flex-start;
  justify-content:center;

  padding:40px;

  padding-top:32vh;
}

#overlay::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:28vh;
  pointer-events:none;
  background:linear-gradient(
    to bottom,
    rgba(9,9,13,0),
    rgba(9,9,13,1)
  );
  z-index:2;
}

#overlay.show{
  opacity:1;
  pointer-events:auto;
}


#overlay .inner{
    
  position:relative;
  z-index:1;

  max-width:580px;

  max-height:calc(100vh - 200px);

  min-height:0;

  overflow-y:auto;
  -webkit-overflow-scrolling:touch;

  scrollbar-width:none;
  -ms-overflow-style:none;
  
  line-height:2.2;

  opacity:0;
  transform:translateY(12px);
  transition:opacity 1.2s ease,transform 1.2s ease;
}

#overlay .inner::-webkit-scrollbar{
  display:none;
}

#overlay.show .inner{
  opacity:.92;
  transform:translateY(0);
}

.signal-field-text{

  font-size:14px;
  
  padding-right:12px;
  padding-bottom:20vh;

  text-align:left;

  line-height:2.2;
}

.emblem{
  display:block;
  width:100px;
  height:auto;
  margin-bottom:20px;
  opacity:.99;
}

#overlay a{
  color:inherit;
  text-decoration:none;
}

#overlay a:visited,
#overlay a:active{
  color:inherit;
  text-decoration:none;
}

#overlay a:hover{
  opacity:.75;
  text-decoration:none;
}


.fine-dots{
  width:100%;
  height:1px;
  margin:28px 0;
  background-image:radial-gradient(
    circle,
    rgba(255,255,255,.82) 0.25px,
    transparent 0.5px
  );
  background-size:3px 1px;
  background-repeat:repeat-x;
}

@media (orientation:portrait){

  .signal-field-text{
    max-height:calc(100vh - 120px);

    padding-right:4px;
    padding-bottom:160px;

    line-height:2.2;
  }

}

.node{
  position:absolute;
  width:28px;
  height:28px;
  border-radius:50%;
  overflow:hidden;
  opacity:0;
  transform:none;
  transition:opacity 7s ease;
  will-change:
    opacity,
    transform;
  pointer-events:auto;
}

.node.visible{
  opacity:1;
}

.node.leaving-fast{
  opacity:0;
  transition:opacity 850ms ease;
  pointer-events:none;
}

.node.leaving-selected{
  opacity:0;
  transition:opacity 1100ms ease;
  pointer-events:none;
}

.node.small{
  width:24px;
  height:24px;
}

.node.large{
  width:32px;
  height:32px;
}

.node-drift{
  width:100%;
  height:100%;
}

.node-drift img{
  width:112%;
  height:112%;
  margin-left:-6%;
  margin-top:-6%;
  object-fit:cover;
  display:block;
}

html{
  scrollbar-gutter: stable;
}

@media (orientation:portrait){

  #caption{
    left:20px;
    right:20px;

    bottom:
      calc(env(safe-area-inset-bottom) + 46px);
  }

  #note{
    left:20px;
    right:20px;

    bottom:
      calc(env(safe-area-inset-bottom) + 122px);

    text-align:right;

    max-width:none;
  }
  
    #overlay{
    padding-top:18vh;
  }
}

.story-link-wrap{
  margin-top:28px;
  text-align:right;
}

.story-link{
  color:rgba(255,255,255,.65);
}

@media (pointer:coarse) and (min-width: 680px) {

  #caption{
    top:28px;
    bottom:auto;
  }

  #note{
    top:28px;
    bottom:auto;
  }

}

#overlay,
#overlay .inner,
.signal-field-text{
  cursor:pointer;
}

#overlay{
  user-select:none;
}
