@font-face {
  font-family: "klight";
  src: url("assets/fonts/klight.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "nicomoji";
  src: url("assets/fonts/nicomoji.ttf") format("truetype");
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #ffffff;
}

:root {
  --frame-width: 870px;
  --frame-height: 550px;
  --frame-display-width: min(870px, 94vw, calc(88vh * 1.581818));
  --frame-display-height: calc(var(--frame-display-width) * 0.632184);
  --frame-top-bottom-thickness: 8px;
  --frame-left-right-thickness: 30px;
  --frame-radius: 8px;
  --frame-inner-radius: 20px;
  --frame-color: #111111;
}

.pose-stage {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 10;
  pointer-events: none;
}

.pose-depth {
  display: grid;
  place-items: center;
  transform: translate3d(0, 0, 0) scale(1);
  transform-origin: center center;
  will-change: transform;
}

.pose-motion {
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translate3d(0, 72px, 0) scale(2.9);
  transform-origin: center center;
  will-change: transform, opacity;
}

.landing-pose {
  display: block;
  width: auto;
  height: min(78vh, 760px);
  max-width: 88vw;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

.frame-stage {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 20;
  pointer-events: none;
}

.frame-motion {
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translate3d(0, 46px, 0) scale(1.85);
  transform-origin: center center;
  will-change: transform, opacity;
}

.film-frame {
  width: var(--frame-display-width);
  height: var(--frame-display-height);
  max-width: none;
  max-height: none;
  display: block;
  overflow: visible;
}

.landing-copy-shell {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  display: block;
  padding: 112px 26px 26px 40px;
  opacity: 1;
  transform: none;
  filter: none;
  pointer-events: none;
}

.cloud-text {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  overflow-y: auto;
  overflow-x: hidden;
  box-sizing: border-box;
  padding: 2px 6px 10px 2px;
  font-family: "klight", sans-serif;
  font-size: 15.5px;
  line-height: 1.46;
  color: #aaaaaa;
  scrollbar-width: thin;
  pointer-events: auto;
  overscroll-behavior: contain;
}

.cloud-text::-webkit-scrollbar {
  width: 4px;
}

.cloud-text::-webkit-scrollbar-thumb {
  background: rgba(160, 175, 189, 0.35);
  border-radius: 10px;
}

.cloud-text a,
.cloud-text a:visited {
  color: #000000;
}

.cloud-text a:hover,
.cloud-text a:focus {
  color: #000000;
}



@media (max-width: 900px) {
  .landing-copy-shell {
    padding-left: 38px;
    padding-right: 24px;
  }

  .cloud-text {
    font-size: 17px;
    line-height: 1.44;
  }
}

@media (max-width: 720px) {
  .landing-copy-shell {
    padding-left: 34px;
    padding-right: 20px;
  }

  .cloud-text {
    font-size: 20px;
    line-height: 1.42;
    padding-right: 6px;
  }
}

@media (max-width: 560px) {
  .landing-copy-shell {
    padding-left: 30px;
    padding-right: 18px;
  }

  .cloud-text {
    font-size: 24px;
    line-height: 1.4;
  }
}

@media (max-width: 480px) {
  .landing-copy-shell {
    padding-left: 28px;
    padding-right: 16px;
  }

  .cloud-text {
    font-size: 25.5px;
    line-height: 1.4;
    padding-right: 7px;
    -webkit-mask-image: linear-gradient(
      to bottom,
      transparent 0,
      #000 8px,
      #000 calc(100% - 20px),
      transparent 100%
    );
    mask-image: linear-gradient(
      to bottom,
      transparent 0,
      #000 8px,
      #000 calc(100% - 20px),
      transparent 100%
    );
  }

  .cloud-text::-webkit-scrollbar {
    width: 8px;
  }

  .other-pages-btn {
    width: min(320px, 88vw);
    min-width: 0;
    height: auto;
    min-height: 30px;
    padding: 6px 10px;
    font-size: 8px;
    line-height: 1.25;
    white-space: normal;
    overflow: hidden;
    text-align: center;
  }

  .other-pages-btn span {
    width: 100%;
    min-width: 0;
    white-space: normal;
  }

  .other-pages-btn span::after {
    content: " (not mobile friendly, sorry!)";
  }
}

@media (max-width: 360px) {
  .cloud-text {
    font-size: 30px;
    line-height: 1.38;
  }
}

@media (max-width: 280px) {
  .cloud-text {
    font-size: 33px;
    line-height: 1.36;
  }

  .cloud-text::-webkit-scrollbar {
    width: 10px;
  }
}

.other-pages-btn {
  position: fixed;
  left: 50%;
  top: calc(50% + var(--frame-display-height) / 2 + 18px);
  z-index: 30;
  min-width: 132px;
  height: 36px;
  padding: 0 18px;
  border: 0;
  background: transparent;
  color: #ffffff;
  font-family: "nicomoji", sans-serif;
  font-size: 13px;
  letter-spacing: 0.08em;
  cursor: pointer;
  overflow: hidden;
  transform: translateX(-50%);
  pointer-events: none;
}

.other-pages-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #111111;
  transform: scaleX(0);
  transform-origin: left center;
  animation: otherPagesHighlight 0.62s cubic-bezier(0.22, 1, 0.36, 1) 3.48s forwards;
}

.other-pages-btn span {
  position: relative;
  z-index: 1;
  display: block;
  clip-path: inset(0 100% 0 0);
  animation: otherPagesTextReveal 0.54s cubic-bezier(0.22, 1, 0.36, 1) 3.56s forwards;
}

.other-pages-btn:hover::before {
  background: #2b2b2b;
}

@keyframes otherPagesHighlight {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

@keyframes otherPagesTextReveal {
  from {
    clip-path: inset(0 100% 0 0);
  }

  to {
    clip-path: inset(0 0 0 0);
  }
}

.landing-cover {
  position: fixed;
  inset: 0;
  z-index: 1000000;
  pointer-events: none;
}

.curtain-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
  shape-rendering: geometricPrecision;
}

.curtain-panel {
  fill: #666b6f;
}

.cover-divider {
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 100%;
  background: #8f9498;
  transform: translateX(-50%);
  animation: dividerFade 0.16s ease-out 0.74s forwards;
}

@keyframes dividerFade {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

.cover-white-line {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 3px;
  height: 100%;
  background: #ffffff;
  transform: translateX(-50%) scaleY(0);
  transform-origin: bottom center;
  animation:
    whiteLineRise 0.42s cubic-bezier(0.22, 0.8, 0.28, 1) 0.32s forwards,
    whiteLineFade 0.16s ease-out 0.74s forwards;
  will-change: transform, opacity;
}

@keyframes whiteLineRise {
  from {
    transform: translateX(-50%) scaleY(0);
  }

  to {
    transform: translateX(-50%) scaleY(1);
  }
}

@keyframes whiteLineFade {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}
