/* 빌런창고 — 토큰 */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable.min.css');
@font-face {
  font-family: 'Paperlogy';
  font-weight: 800;
  font-display: swap;
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-8ExtraBold.woff2') format('woff2');
}
@font-face {
  font-family: 'Paperlogy';
  font-weight: 700;
  font-display: swap;
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-7Bold.woff2') format('woff2');
}

:root {
  color-scheme: light dark;
  --ink: #33305A;
  --ink-2: #66627F;
  --bg: #FFFFFF;
  --mist: #F4F1FB;
  --lav: #C9B8F5;
  --sky: #A9CDFF;
  --lemon: #FFE28A;
  --mint: #B9E6C9;
  --peach: #FFC9B5;
  --tint-mix: 100%;
  --shadow: 0 24px 60px rgb(51 48 90 / .12);
  --display: 'Paperlogy', 'Pretendard Variable', Pretendard, 'Malgun Gothic', sans-serif;
  --body: 'Pretendard Variable', Pretendard, 'Malgun Gothic', sans-serif;
  --gutter: clamp(20px, 5vw, 64px);
  --max: 1120px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #F4F1FB;
    --ink-2: #DAD6EC;
    --bg: #1B1930;
    --mist: #26233D;
    --tint-fallback: #26233D; /* color-mix 미지원 브라우저: 다크에선 틴트 원색 위 흰 글자가 안 보이므로 미스트로 */
    --tint-mix: 34%;
    --shadow: 0 24px 60px rgb(0 0 0 / .35);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-feature-settings: 'ss05';
  word-break: keep-all;
  overflow-wrap: break-word;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 3px solid var(--sky); outline-offset: 4px; border-radius: 4px; }
h1, h2 { font-family: var(--display); font-weight: 800; margin: 0; }

/* 상단 바 */
.top {
  position: absolute; inset: 0 0 auto 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--max); margin: 0 auto; padding: 22px var(--gutter);
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 1.125rem; letter-spacing: -0.01em; }
.brand .mark { width: 28px; height: 28px; }
.lang { font-size: .9375rem; color: var(--ink-2); padding: 6px 2px; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.lang:hover { color: var(--ink); border-color: var(--lav); }

/* 히어로 */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: clamp(24px, 5vw, 72px);
  max-width: var(--max); margin: 0 auto; padding: 120px var(--gutter) 72px;
}
.hero::before {
  content: ''; position: absolute; z-index: -1; inset: 0 calc(50% - 50vw); background: var(--mist);
}
.hero-copy { max-width: 560px; }
.hero h1 { font-size: clamp(2.4rem, 5.4vw, 4.6rem); line-height: 1.1; letter-spacing: -0.03em; text-wrap: balance; }
.sub { margin: 22px 0 0; font-size: clamp(1.0625rem, 1.5vw, 1.25rem); color: var(--ink-2); }
.hero-mail, .contact-mail {
  display: inline-block; margin-top: 30px; padding-bottom: 2px;
  font-family: var(--display); font-weight: 700; letter-spacing: -0.01em;
  border-bottom: 3px solid var(--lav); transition: border-color .25s;
}
.hero-mail { font-size: 1.125rem; }
.hero-mail:hover, .contact-mail:hover { border-color: var(--sky); }

.hero-art { position: relative; aspect-ratio: 1; width: min(100%, 520px); margin-left: auto; }
.pebble { position: absolute; width: 56%; filter: drop-shadow(0 30px 40px rgb(51 48 90 / .14)); }
.pebble-lemon { left: 22%; top: 0; }
.pebble-lavender { left: 0; top: 40%; }
.pebble-sky { left: 44%; top: 40%; }

/* 선반 */
.shelf { position: relative; padding: clamp(72px, 10vw, 128px) 0; }
.track {
  display: flex; gap: 24px; align-items: stretch;
  --track-pad: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter)));
  padding-inline: var(--track-pad);
  scroll-padding-inline: var(--track-pad);
  overflow-x: auto; scroll-snap-type: x proximity;
  scrollbar-color: var(--lav) transparent; padding-bottom: 14px; /* 정적 모드: 스크롤바가 곧 "더 있다"는 신호 */
}
.motion .track { scrollbar-width: none; padding-bottom: 0; }
.motion .track::-webkit-scrollbar { display: none; }
.card {
  position: relative; flex: 0 0 min(360px, 78vw); min-height: 440px;
  padding: 36px 30px 30px; scroll-snap-align: start;
  display: flex; flex-direction: column;
}
.card-link { position: absolute; inset: 0; z-index: 2; border-radius: 28px; }
/* 모션 모드에서는 GSAP이 transform을 쥐고 있으므로 CSS 전환·호버는 정적 모드에서만 */
html:not(.motion) .card:has(.card-link):hover .card-icon { transform: translateY(-4px); }
html:not(.motion) .card-icon { transition: transform .3s ease; }
.card-link:focus-visible { outline: 3px solid var(--sky); }
.card-tint { position: absolute; inset: 0; border-radius: 28px; background: var(--tint-fallback, var(--tint)); background: color-mix(in oklab, var(--tint) var(--tint-mix), var(--bg)); }
@media (prefers-color-scheme: dark) {
  /* 파스텔 틴트는 어두운 바탕에 섞이면 색이 죄다 회보라로 뭉치므로, 채도가 있는 원색(--tint-dark)을 섞는다 */
  .card-tint { background: var(--tint-fallback); background: color-mix(in oklab, var(--tint-dark, var(--tint)) 30%, var(--bg)); }
}
.card-icon { position: relative; width: 132px; height: 132px; border-radius: 24%; box-shadow: var(--shadow); margin-bottom: auto; }
.card-name { position: relative; font-size: 1.5rem; letter-spacing: -0.02em; margin-top: 28px; }
.card-line { position: relative; margin: 8px 0 0; color: var(--ink-2); font-size: .9375rem; line-height: 1.55; }
.card-platform { position: relative; margin-top: 18px; font-size: .8125rem; color: var(--ink-2); }
.card-platform::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--lav); margin-right: 8px; vertical-align: 1px; }

/* 문의 */
.contact {
  max-width: var(--max); margin: 0 auto; padding: clamp(72px, 10vw, 128px) var(--gutter);
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.contact-art { position: relative; width: 168px; margin-bottom: 28px; }
.envelope { width: 100%; }
.pebble-mini { position: absolute; left: -22px; bottom: 18px; width: 30px; height: 30px; border-radius: 50%; background: var(--sky); box-shadow: inset -4px -5px 0 rgb(0 0 0 / .06); }
.contact-line { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(1.25rem, 2.6vw, 1.75rem); letter-spacing: -0.02em; text-wrap: balance; max-width: 22ch; }
.contact-mail { font-size: clamp(1.4rem, 3.4vw, 2.6rem); margin-top: 22px; }

/* 푸터 */
.site {
  max-width: var(--max); margin: 0 auto; padding: 40px var(--gutter) 56px;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px;
  border-top: 1px solid color-mix(in oklab, var(--ink-2) 30%, transparent);
  font-size: .8125rem; color: var(--ink-2); line-height: 1.8;
}
.legal span { display: block; }

/* 상시 마크 */
.mark-float { position: fixed; right: 22px; bottom: 22px; width: 36px; height: 36px; z-index: 6; pointer-events: none; }
.mark-float svg { width: 100%; height: 100%; }

/* 모션 모드(JS가 켬): 데스크톱 선반은 GSAP가 이동시키므로 스크롤바를 뗀다 */
@media (min-width: 1024px) {
  .motion .shelf { min-height: 100vh; padding: 0; display: flex; align-items: center; overflow: hidden; }
  .motion .card { min-height: clamp(440px, 56vh, 520px); }
  /* 카드 5장이 한 줄에 다 들어오는 넓은 화면: 고정 없이 가운데 정렬된 한 줄 */
  .shelf-static .shelf { min-height: 0; padding: clamp(72px, 10vw, 128px) 0; }
  .shelf-static .track { justify-content: center; }
  .motion .track { overflow: visible; scroll-snap-type: none; will-change: transform; }
  .motion .hero-copy > *, .motion .pebble { will-change: transform, opacity; }
}

/* 모바일 */
@media (max-width: 767px) {
  .hero { grid-template-columns: 1fr; min-height: 88vh; min-height: 88svh; padding-top: 104px; gap: 24px; align-content: center; }
  .mark-float { display: none; } /* 좁은 화면에선 카드 글자를 가린다 */
  .hero-art { order: -1; width: min(72vw, 320px); margin: 0 auto; }
  .hero-copy { max-width: none; }
  .hero h1 { font-size: clamp(2.1rem, 9.5vw, 2.8rem); }
  .track { flex-direction: column; gap: 16px; overflow: visible; scroll-snap-type: none; }
  .card { flex: none; min-height: 0; padding: 28px 24px 24px; }
  .card-icon { width: 96px; height: 96px; }
  .site { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* ===== 스포트라이트: 앱마다 한 화면 ===== */
.spots { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.spot {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(32px, 6vw, 96px);
  min-height: 86vh; min-height: 86svh; padding: clamp(48px, 8vh, 96px) 0;
}
.spot:nth-child(even) .spot-art { order: -1; }
.spot-copy { max-width: 26rem; }
.spot:nth-child(even) .spot-copy { margin-left: auto; }
.spot-icon { width: 64px; height: 64px; border-radius: 24%; box-shadow: var(--shadow); margin-bottom: 22px; }
.spot h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); letter-spacing: -0.03em; line-height: 1.15; }
.spot-line { margin: 12px 0 0; color: var(--ink-2); font-size: 1.0625rem; }
.spot-points { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 12px; }
.spot-points li { position: relative; padding-left: 26px; font-family: var(--display); font-weight: 700; font-size: 1.125rem; letter-spacing: -0.01em; }
.spot-points li::before { content: ''; position: absolute; left: 0; top: .5em; width: 12px; height: 12px; border-radius: 50%; background: var(--tint-dark, var(--lav)); }
.spot-art { position: relative; height: clamp(440px, 60vh, 620px); }
.phone {
  position: absolute; top: 50%; left: 50%; width: clamp(200px, 22vw, 268px); aspect-ratio: 9 / 19.2;
  transform: translate(-50%, -50%); border-radius: 40px; padding: 10px;
  background: var(--phone-frame); box-shadow: 0 30px 70px rgb(51 48 90 / .22);
}
/* 폰 프레임은 글자색을 따라가면 다크에서 하얗게 뜬다 → 항상 자두색 계열 */
:root { --phone-frame: #33305A; }
@media (prefers-color-scheme: dark) { :root { --phone-frame: #46426F; } .phone { box-shadow: 0 30px 70px rgb(0 0 0 / .45); } }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 30px; background: var(--shot-bg, #fff); }
/* 폰 비율보다 넓은 스크린샷(웹 렌더)은 자르지 않고 위에 맞춰 넣는다. 남는 아래쪽은 앱 배경색으로 채운다 */
.spot-art[data-fit="contain"] .phone img { object-fit: contain; }
.phone-front { z-index: 2; }
.phone-back { z-index: 1; transform: translate(calc(-50% + 34%), calc(-50% - 9%)) scale(.9) rotate(4deg); opacity: .85; }
.spot:nth-child(even) .phone-back { transform: translate(calc(-50% - 34%), calc(-50% - 9%)) scale(.9) rotate(-4deg); }
.spot-art::before { /* 틴트 판: 카드와 같은 색 언어 */
  content: ''; position: absolute; inset: 8% 6%; border-radius: 48px; z-index: 0;
  background: var(--tint-fallback, var(--tint)); background: color-mix(in oklab, var(--tint) var(--tint-mix), var(--bg));
}
@media (prefers-color-scheme: dark) {
  .spot-art::before { background: var(--tint-fallback); background: color-mix(in oklab, var(--tint-dark, var(--tint)) 30%, var(--bg)); }
}

/* ===== 얼굴들 ===== */
.faces { position: relative; padding: clamp(72px, 10vw, 128px) var(--gutter); text-align: center; }
.faces::before { content: ''; position: absolute; z-index: -1; inset: 0; background: var(--mist); }
.faces-title, .principles-title { font-size: clamp(1.6rem, 2.6vw, 2.2rem); letter-spacing: -0.03em; margin-bottom: clamp(32px, 5vw, 56px); }
.faces-row { display: flex; justify-content: center; align-items: flex-end; gap: clamp(20px, 5vw, 72px); flex-wrap: wrap; max-width: var(--max); margin: 0 auto; }
.face { margin: 0; width: min(26vw, 280px); }
.face img { width: 100%; height: auto; filter: drop-shadow(0 26px 34px rgb(51 48 90 / .16)); }
.face figcaption { margin-top: 18px; display: grid; gap: 4px; }
.face b { font-family: var(--display); font-weight: 800; font-size: 1.375rem; letter-spacing: -0.02em; }
.face span { color: var(--ink-2); font-size: .9375rem; }

/* ===== 만드는 방식 ===== */
.principles { max-width: var(--max); margin: 0 auto; padding: clamp(72px, 10vw, 128px) var(--gutter); text-align: center; }
.principles-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 48px); text-align: left; }
.principle img { width: 128px; height: 128px; filter: drop-shadow(0 18px 24px rgb(51 48 90 / .14)); margin-bottom: 18px; }
.principle h3 { font-family: var(--display); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.02em; margin: 0; }
.principle p { margin: 8px 0 0; color: var(--ink-2); font-size: .9875rem; line-height: 1.6; }

@media (max-width: 767px) {
  .spot { grid-template-columns: 1fr; min-height: 0; gap: 24px; padding: 40px 0; }
  .spot .spot-art, .spot:nth-child(even) .spot-art { order: -1; height: 400px; }
  .spot:nth-child(even) .spot-copy { margin-left: 0; }
  .phone { width: 176px; border-radius: 30px; padding: 7px; }
  .phone img { border-radius: 23px; }
  .face { width: min(40vw, 200px); }
  .principles-row { grid-template-columns: 1fr; gap: 36px; }
  .principle img { width: 96px; height: 96px; }
}
