/* Focused curtain intro styles. Kept separate so the live intro is not dependent on pending style.css work. */
#page-intro {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: auto;
  cursor: pointer;
}

body.intro-active {
  overflow: hidden;
}

.grain-overlay {
  position: fixed;
  inset: 0;
  z-index: 9001;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  background-repeat: repeat;
}

.curtain-panel {
  position: fixed;
  top: 0;
  width: 50vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #fdfdfd;
  transition: transform 2s cubic-bezier(0.77, 0, 0.175, 1);
  z-index: 9999;
}

.left-panel {
  left: 0;
}

.right-panel {
  right: 0;
}

.left-panel.open {
  transform: translateX(-100%);
}

.right-panel.open {
  transform: translateX(100%);
}

.logo-half {
  position: absolute;
  top: 50%;
  width: 220px;
  height: 220px;
  opacity: 1;
  transform: translateY(-50%);
}

.logo-left {
  left: calc(100% - 110px);
}

.logo-right {
  left: -110px;
}

.logo-half svg {
  display: block;
  width: 220px;
  height: 220px;
}

body:not(.intro-active) #page-intro {
  display: none;
  pointer-events: none;
}