/* STARTUP INTRO */

.startup-intro {
  --startup-tear-height: clamp(54px, 7.2vw, 112px);

  position: fixed;
  top: 0;
  left: 0;
  z-index: 9997;

  width: 100%;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;

  background: #ffffff;
  color: #78684f;

  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);

  transition:
    transform 1.05s var(--ease-premium),
    visibility 0s linear 1.05s;
  will-change: transform;
}

.startup-intro::before {
  content: "";
  position: absolute;
  left: 0;
  top: calc(var(--startup-tear-height) * -1);
  z-index: 4;

  width: 100%;
  height: var(--startup-tear-height);

  background-image: url("../img/border-bottom.png");
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: 100% 100%;
  pointer-events: none;
}

.startup-intro.is-hidden {
  visibility: hidden;
  pointer-events: none;
  transform: translateY(calc(100dvh + var(--startup-tear-height)));
}

.startup-intro__frame {
  position: relative;

  width: min(960px, 72vw);
  aspect-ratio: 1.82;

  background-image: url("../img/startup-paper.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.startup-slide {
  position: absolute;
  inset: 0;

  padding: clamp(80px, 8vh, 106px) clamp(90px, 7vw, 130px) clamp(70px, 7vh, 96px);

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  text-align: center;

  opacity: 0;
  transform: translateY(18px);
  filter: blur(8px);
  pointer-events: none;

  transition:
    opacity 0.85s var(--ease-premium),
    transform 0.85s var(--ease-premium),
    filter 0.85s var(--ease-premium);
}

.startup-slide.is-active {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  pointer-events: auto;
}

.startup-slide__korean {
  max-width: 850px;
  margin: 0 0 34px;

  font-family: Helvetica, Arial, sans-serif;
  font-size: 40px;
  font-weight: 300;
  letter-spacing: -0.04em;

  color: #78684f;
}

.startup-slide__translation {
  max-width: 760px;
  margin: 0;

  font-family: var(--font-mono);
  font-size: 16px;
  line-height: 18px;
  font-weight: 400;
  letter-spacing: -0.04em;

  color: #78684f;
}

.startup-slide__caption {
  display: none;
}

.startup-slide__sound-icon {
  width: 96px;
  margin: 0 0;
}

.startup-slide__sound-icon img {
  display: block;
  width: 100%;
  height: auto;
}

.startup-slide__title {
  max-width: 700px;
  margin: 0 0 26px;

  font-family: var(--font-mono);
  font-size: 20px;
  line-height: 28px;
  font-weight: 400;
  letter-spacing: -0.04em;

  color: #78684f;
}

.startup-intro__button {
  position: relative;

  min-width: 260px;
  min-height: 40px;
  padding: 14px 44px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 0;
  background: transparent;
  color: #78684f;

  font-family: var(--font-mono);
  font-size: 20px;
  line-height: 1;
  letter-spacing: -0.04em;

  cursor: pointer;
  transform: rotate(-1deg);
}

.startup-intro__button::before {
  content: "";
  position: absolute;
  inset: -12px -26px;
  z-index: -1;

  background-image: url("../img/button-paper-2.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;

  filter: drop-shadow(0 12px 18px rgba(90, 74, 52, 0.12));
}

.startup-intro__button:hover {
  transform: translateY(-3px) rotate(0.5deg);
  filter: drop-shadow(0 10px 16px rgba(90, 74, 52, 0.14));
}

.startup-slide__notice {
  width: min(520px, 78%);
  margin: 18px 0 0;

  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 16px;
  letter-spacing: -0.04em;

  color: rgba(120, 104, 79, 0.62);
}

.startup-slide[data-startup-slide="0"].is-active {
  cursor: pointer;
}

@media (max-width: 1200px) {
  .startup-intro__frame {
    width: min(980px, 82vw);
  }

  .startup-slide__korean {
    font-size: clamp(36px, 4.4vw, 52px);
    line-height: 0.72;
  }

  .startup-slide__translation {
    font-size: clamp(15px, 1.7vw, 20px);
    line-height: 1.2;
  }
}

@media (max-width: 760px) {
  .startup-intro__frame {
    width: 94vw;
    aspect-ratio: 0.86;
  }

  .startup-slide {
    padding: 86px 34px 60px;
  }

  .startup-slide__korean {
    font-size: clamp(28px, 8vw, 38px);
    line-height: 0.8;
    margin-bottom: 24px;
  }

  .startup-slide__translation {
    font-size: 14px;
  }

  .startup-slide__sound-icon {
    width: 76px;
    margin-bottom: 22px;
  }

  .startup-slide__title {
    font-size: 18px;
    line-height: 22px;
  }

  .startup-intro__button {
    min-width: min(280px, 74vw);
    min-height: 64px;
    font-size: 20px;
  }
}
