@font-face {
  font-family: 'Paperlogy';
  src: url('/comm/fonts/Paperlogy-6SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Paperlogy';
  src: url('/comm/fonts/Paperlogy-7Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Paperlogy';
  src: url('/comm/fonts/Paperlogy-8ExtraBold.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-display: 'Paperlogy', 'Pretendard Variable', Pretendard, system-ui, sans-serif;
  --font-body: 'Pretendard Variable', Pretendard, system-ui, -apple-system, 'Malgun Gothic', sans-serif;
  --color-navy: #10305f;
  --color-sub: #3c5580;
  --color-point: #6b3ae0;
}

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

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-navy);
  background-color: #9fd4f5;
  -webkit-text-size-adjust: 100%;
  overflow: hidden;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 100;
  padding: 10px 18px;
  border-radius: 0 0 10px 10px;
  background: #10305f;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: top .2s ease;
}

.skip-link:focus {
  top: 0;
}

/* 로딩 화면: 배경 이미지 없이 하늘색 그라데이션만 깔고
   캐릭터가 앞으로 걸어가는 모습으로 대기 상태를 보여준다. */
.loader {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #c6e9fc 0%, #9fd4f5 48%, #f3dcec 100%);
  transition: opacity .5s ease, visibility .5s ease;
}

.loader {
  opacity: 0;
  transition: opacity .3s ease;
}

.loader.is-shown {
  opacity: 1;
}

.loader.is-done {
  opacity: 0;
  visibility: hidden;
}

.loader__box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

/* 캐릭터 + 발밑 그림자 + 뒤로 흐르는 길 */
.loader__walk {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.loader__char {
  display: block;
}

/* 전신 캐릭터라 세로가 길다. 가로 기준으로 잡으면 너무 커지므로 세로 기준으로 맞춘다.
   애니메이션은 <picture>가 아니라 <img>에 직접 건다.
   picture는 렌더링 박스가 아닌 래퍼라서 transform을 걸면 합성이 불안정하다. */
.loader__char img {
  display: block;
  height: clamp(116px, 17vh, 176px);
  width: auto;
  transform-origin: 50% 100%;
  animation: char-walk .78s ease-in-out infinite;
  filter: drop-shadow(0 8px 12px rgba(40, 70, 130, .22));
}

/* 걸음에 맞춰 늘었다 줄어드는 발밑 그림자 */
.loader__shadow {
  display: block;
  width: clamp(50px, 4.6vw, 70px);
  height: 8px;
  margin-top: -3px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(40, 70, 130, .30) 0%, rgba(40, 70, 130, 0) 72%);
  animation: char-shadow .78s ease-in-out infinite;
}

/* 무지개 길이 뒤로 흘러가서, 캐릭터가 앞으로 나아가는 것처럼 보이게 한다 */
.loader__road {
  display: block;
  width: clamp(150px, 14vw, 208px);
  height: 6px;
  margin-top: 6px;
  border-radius: 999px;
  background-image: repeating-linear-gradient(90deg,
    #2eb6ff 0 13px,
    #7b5cff 13px 26px,
    #ff6fb8 26px 39px,
    rgba(255, 255, 255, .8) 39px 52px);
  background-size: 52px 100%;
  animation: road-run .62s linear infinite;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 24%, #000 76%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 24%, #000 76%, transparent 100%);
  opacity: .9;
}

.loader__track {
  width: clamp(84px, 8vw, 112px);
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .55);
  box-shadow: 0 2px 8px rgba(30, 60, 120, .18);
  overflow: hidden;
}

.loader__bar {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #2eb6ff, #7b5cff 55%, #ff6fb8);
  transition: width .25s ease;
}

/* 두 걸음이 한 주기. 위아래로 살짝 뛰면서 좌우로 기울어진다. */
@keyframes char-walk {
  0%   { transform: translateY(0) rotate(-1.8deg); }
  25%  { transform: translateY(-7px) rotate(0deg); }
  50%  { transform: translateY(0) rotate(1.8deg); }
  75%  { transform: translateY(-7px) rotate(0deg); }
  100% { transform: translateY(0) rotate(-1.8deg); }
}

@keyframes char-shadow {
  0%, 50%, 100% { transform: scaleX(1); opacity: .9; }
  25%, 75%      { transform: scaleX(.76); opacity: .45; }
}

@keyframes road-run {
  from { background-position: 0 0; }
  to   { background-position: -52px 0; }
}

.stage {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background-color: #9fd4f5;
}

.stage__media {
  position: absolute;
  inset: 0;
}

.stage__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}

.stage__video.is-visible {
  opacity: 1;
}

.stage__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  padding: clamp(96px, 22vh, 280px) 20px clamp(24px, 5vh, 64px);
  text-align: center;
}

.hero {
  padding: 0 8px;
}

.hero,
.enter {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s ease, transform .8s ease;
}

.is-ready .hero {
  opacity: 1;
  transform: none;
  transition-delay: .15s;
}

.is-ready .enter {
  opacity: 1;
  transform: none;
  transition-delay: .4s;
}

.hero__eyebrow {
  margin: 0 0 clamp(8px, 1.2vh, 14px);
  font-family: var(--font-body);
  font-size: clamp(14px, 1.5vw, 20px);
  font-weight: 600;
  letter-spacing: -.01em;
  color: #fff;
  text-shadow: 0 2px 6px rgba(8, 26, 60, .45), 0 1px 2px rgba(8, 26, 60, .35);
}

.hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(30px, 4.8vw, 66px);
  line-height: 1.24;
  letter-spacing: -.025em;
  color: #fff;
  text-shadow: 0 4px 12px rgba(8, 26, 60, .5), 0 1px 3px rgba(8, 26, 60, .4);
}

.hero__title em {
  font-style: normal;
  color: #ffe27a;
  text-shadow: 0 4px 12px rgba(60, 30, 4, .5), 0 1px 3px rgba(60, 30, 4, .42);
}

.hero__desc {
  margin: clamp(12px, 1.8vh, 22px) 0 0;
  font-family: var(--font-body);
  font-size: clamp(14px, 1.2vw, 18px);
  font-weight: 600;
  line-height: 1.7;
  letter-spacing: -.01em;
  color: #fff;
  text-shadow: 0 2px 7px rgba(8, 26, 60, .48), 0 1px 2px rgba(8, 26, 60, .38);
}

.enter {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  /* flex 아이템이라 세로 공간이 부족하면 높이가 눌려 타원이 된다.
     모바일에서 동그라미가 찌그러지던 원인이므로 줄어들지 않게 고정한다. */
  flex: 0 0 auto;
  aspect-ratio: 1 / 1;
  width: clamp(168px, 15.5vw, 232px);
  height: clamp(168px, 15.5vw, 232px);
  margin-top: auto;
  margin-bottom: clamp(10px, 8vh, 84px);
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  isolation: isolate;
  filter: drop-shadow(0 20px 44px rgba(28, 46, 104, .4)) drop-shadow(0 0 26px rgba(160, 205, 255, .6));
  transition: transform .28s cubic-bezier(.22, 1, .36, 1), filter .28s ease;
}

/* 무지개 conic 그라데이션은 배경의 무지개 길과 색이 부딪혀서
   하늘색 계열 구슬로 바꿨다. (theme-color #7fd0ff, body #9fd4f5 와 같은 계열) */
.enter__orb {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 36% 26%,
      #dcf2ff 0%,
      #92d8ff 22%,
      #4fa1e6 55%,
      #2b63b2 82%,
      #1f4a8c 100%);
}

/* 흰 테두리 링(inset 0 0 0 2px)을 제거했다 */
.enter__gloss {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 22%, rgba(255, 255, 255, .9) 0%, rgba(255, 255, 255, .2) 20%, rgba(255, 255, 255, 0) 42%),
    radial-gradient(circle at 50% 72%, rgba(10, 38, 84, .42) 0%, rgba(10, 38, 84, .12) 50%, rgba(10, 38, 84, 0) 76%);
  box-shadow:
    inset 0 -16px 38px rgba(16, 48, 95, .42),
    inset 0 16px 30px rgba(255, 255, 255, .28);
}

.enter__body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.enter:hover,
.enter:focus-visible {
  transform: translateY(-6px) scale(1.05);
  filter: drop-shadow(0 26px 54px rgba(28, 46, 104, .48)) drop-shadow(0 0 38px rgba(190, 225, 255, .85));
}

.enter:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 7px;
}

.enter:active {
  transform: translateY(-2px) scale(.99);
}

.enter__arrows {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.enter__arrows svg {
  width: clamp(24px, 2.3vw, 33px);
  height: auto;
  fill: none;
  stroke: #fff;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 1px 3px rgba(40, 50, 120, .45));
  animation: enter-arrow 1.9s ease-in-out infinite;
}

.enter__arrows svg:last-child {
  opacity: .6;
  animation-delay: .2s;
}

.enter__label {
  margin-top: 5px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(23px, 2.3vw, 33px);
  letter-spacing: -.025em;
  color: #fff;
  text-shadow: 0 2px 10px rgba(46, 40, 120, .5), 0 1px 2px rgba(46, 40, 120, .45);
}

@keyframes enter-arrow {
  0%, 100% { transform: translateY(2px); }
  50% { transform: translateY(-4px); }
}

@keyframes enter-halo {
  0% { transform: scale(.94); opacity: .75; }
  70% { transform: scale(1.2); opacity: 0; }
  100% { transform: scale(1.2); opacity: 0; }
}

@keyframes orb-spin {
  to { transform: rotate(1turn); }
}

@media (max-width: 1024px) {
  .stage__inner {
    padding-top: clamp(80px, 18vh, 200px);
  }
}

@media (max-width: 767px) {
  .stage__inner {
    padding: clamp(72px, 16vh, 150px) 16px clamp(20px, 4vh, 44px);
  }

  .hero {
    padding: 22px 22px 24px;
    border-radius: 22px;
  }

  .hero__eyebrow {
    font-size: 14px;
  }

  .hero__title {
    font-size: clamp(27px, 7.4vw, 38px);
    line-height: 1.3;
  }

  .hero__desc {
    font-size: 14px;
    line-height: 1.65;
  }

  .enter {
    width: 158px;
    height: 158px;
    margin-bottom: clamp(18px, 7vh, 56px);
  }

  .enter__arrows svg {
    width: 24px;
  }

  .enter__label {
    font-size: 23px;
  }

}

@media (max-width: 767px) and (orientation: landscape) {
  .stage__inner {
    padding-top: 20px;
  }

  .hero {
    padding: 14px 18px 16px;
  }

  .hero__title {
    font-size: 24px;
  }

  .hero__desc {
    display: none;
  }

  .enter {
    width: 112px;
    height: 112px;
    margin-bottom: 12px;
  }

  .enter__arrows svg {
    width: 18px;
  }

  .enter__label {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero,
  .enter {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .enter::after,
  .enter__orb,
  .enter__arrows svg {
    animation: none;
  }

  .enter:hover,
  .enter:focus-visible {
    transform: none;
  }

  .stage__video,
  .loader {
    transition: none;
  }

  .loader__char img,
  .loader__shadow,
  .loader__road {
    animation: none;
  }

  /* 동작을 줄이는 설정에서는 영상을 재생하지 않으므로,
     빈 화면이 되지 않도록 배경 이미지를 대신 깐다. */
  .stage {
    background-image: url('/images/back.jpg');
    background-image: image-set(url('/images/back.webp') type('image/webp'), url('/images/back.jpg') type('image/jpeg'));
    background-position: center top;
    background-size: cover;
    background-repeat: no-repeat;
  }
}

.stage__inner {
  justify-content: flex-end;
  padding-top: 0;
  padding-bottom: clamp(28px, 6vh, 72px);
}

.hero {
  margin-top: auto;
  margin-bottom: clamp(18px, 3.4vh, 44px);
}

.hero__eyebrow {
  margin-bottom: clamp(6px, 1vh, 12px);
}

@media (max-width: 1023px) {
  .stage__inner {
    justify-content: flex-end;
    padding-top: 0;
    padding-bottom: clamp(24px, 5vh, 56px);
  }

  .hero {
    margin-bottom: clamp(14px, 2.6vh, 30px);
  }
}

@media (max-width: 767px) {
  .stage__inner {
    padding-top: 0;
    padding-bottom: 30px;
  }

  .hero__title {
    font-size: clamp(25px, 7vw, 34px);
  }
}

.stage__inner {
  justify-content: flex-end !important;
  padding-top: 0 !important;
}

.hero {
  margin-top: auto !important;
  margin-bottom: clamp(4px, .9vh, 14px) !important;
}

.hero {
  margin-top: auto !important;
  margin-bottom: clamp(-14px, -1.2vh, -4px) !important;
}

.stage__inner {
  padding-bottom: clamp(20px, 4vh, 52px) !important;
}

@media (max-width: 767px) {
  .hero {
    margin-bottom: -10px !important;
  }

  .stage__inner {
    padding-bottom: 22px !important;
  }
}

.enter {
  margin-top: 0 !important;
}

.hero {
  margin-top: auto !important;
  margin-bottom: clamp(-16px, -1.4vh, -6px) !important;
}

.enter__orb {
  background:
    radial-gradient(circle at 34% 24%, #f2fbff 0%, #7fd8ff 18%, #1f9bff 48%, #0a5ad6 78%, #063f9e 100%) !important;
  box-shadow:
    0 26px 60px rgba(10, 90, 214, .5),
    0 0 0 10px rgba(31, 155, 255, .18),
    inset 0 -18px 34px rgba(4, 44, 110, .38),
    inset 0 14px 26px rgba(255, 255, 255, .5) !important;
}

.enter__gloss {
  opacity: .75 !important;
}

.enter__label {
  color: #fff !important;
  text-shadow: 0 3px 10px rgba(4, 40, 100, .55) !important;
}

.enter__arrows svg path {
  stroke: #fff !important;
}

@media (min-width: 1024px) {
  .stage__inner {
    justify-content: flex-end !important;
    padding-bottom: clamp(90px, 15vh, 200px) !important;
  }

  .hero {
    margin-top: auto !important;
    margin-bottom: clamp(10px, 2vh, 26px) !important;
  }

  .enter {
    margin-bottom: 0 !important;
  }
}
