@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Noto+Sans+KR:wght@400;500;700;900&family=Noto+Sans+JP:wght@400;500;700;900&display=swap');

@keyframes drift { 0%{transform:translate(0,0)} 50%{transform:translate(-16px,14px)} 100%{transform:translate(0,0)} }
@keyframes twinkle { 0%,100%{opacity:.25} 50%{opacity:.9} }
@keyframes barbounce { 0%,100%{transform:scaleY(.3)} 50%{transform:scaleY(1)} }

* { box-sizing: border-box; font-family: 'Noto Sans KR', 'Noto Sans JP', sans-serif; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; background: #faf7f0; }
::selection { background: #f2c464; color: #12142e; }
a { text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

.page { width: 100%; background: #faf7f0; overflow: hidden; transition: opacity 0.22s ease; opacity: 1; }
.page.lang-fade { opacity: 0; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal.reveal-reset { transition: none !important; }
.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }

/* ---------- NAV ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 56px;
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(242,196,100,0.15);
  background-color: #112F74B8;
}
.nav-brand { display: flex; align-items: baseline; gap: 10px; transition: opacity .2s ease; }
.nav-brand:hover { opacity: 0.85; }
.nav-logo { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 22px; color: #faf7f0; letter-spacing: 0.5px; }
.nav-tagline { font-size: 12px; color: #f2c464; font-weight: 500; }
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-link { color: #e7e4f5; font-size: 14px; font-weight: 500; transition: color .2s; }
.nav-link:hover { color: #f2c464; }
.nav-langs { display: flex; gap: 8px; }
.lang-btn { font-size: 13px; font-weight: 700; padding: 9px 18px; border-radius: 999px; cursor: pointer; border: 1.5px solid; transition: all .15s; }

/* ---------- HERO ---------- */
.hero { position: relative; min-height: 940px; overflow: hidden; background: #0b0c1e; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.9; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,12,30,0.75) 0%, rgba(11,12,30,0.35) 45%, rgba(11,12,30,0.15) 100%); }
.hero-inner { position: relative; z-index: 2; display: flex; align-items: center; max-width: 1440px; margin: 0 auto; padding: 70px 56px 0; min-height: 900px; }
.hero-copy { flex: 0 1 420px; max-width: 420px; padding-right: 20px; position: relative; z-index: 3; }
.hero-badge { display: inline-flex; align-items: center; gap: 10px; background: rgba(242,196,100,0.12); border: 1px solid rgba(242,196,100,0.4); padding: 7px 16px; border-radius: 999px; margin-bottom: 28px; }
.hero-badge-dot { width: 7px; height: 7px; border-radius: 50%; background: #f2c464; }
.hero-badge-text { color: #f6d98a; font-size: 12px; font-weight: 700; letter-spacing: 1.5px; }
.hero-title { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 118px; line-height: 0.92; color: #faf7f0; margin: 0 0 6px; letter-spacing: -2px; }
.hero-subtitle { font-size: 34px; font-weight: 900; color: #f2c464; margin-bottom: 22px; letter-spacing: 1px; }
.hero-subtitle small { color: rgba(250,247,240,0.4); font-weight: 500; font-size: 20px; }
.hero-desc { color: rgba(231,228,245,0.75); font-size: 17px; line-height: 1.7; max-width: 480px; margin: 0 0 30px; width: 420px; }
.hero-quote { background: rgba(255,255,255,0.05); border-left: 3px solid #f2c464; padding: 16px 20px; border-radius: 6px; max-width: 480px; margin-bottom: 34px; }
.hero-quote p { margin: 0; color: #f6d98a; font-size: 15px; font-style: italic; line-height: 1.6; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; width: 409px; height: 50px; }
.btn-primary { display: inline-flex; align-items: center; gap: 8px; background: #f2c464; color: #12142e; font-weight: 700; font-size: 15px; padding: 14px 28px; border-radius: 999px; transition: background .2s; }
.btn-primary:hover { background: #f6d98a; }
.btn-secondary { display: inline-flex; align-items: center; gap: 8px; background: transparent; border: 1.5px solid rgba(250,247,240,0.4); color: #faf7f0; font-weight: 600; font-size: 15px; padding: 13px 28px; border-radius: 999px; transition: all .2s; }
.btn-secondary:hover { border-color: #f2c464; color: #f2c464; }
.hero-stats { display: flex; gap: 40px; margin-top: 52px; }
.hero-stat-label { color: #f2c464; font-size: 12px; font-weight: 700; letter-spacing: 1px; }
.hero-stat-value { color: #faf7f0; font-size: 16px; font-weight: 600; margin-top: 4px; }
.hero-art-wrap { flex: 1; min-width: 480px; position: relative; display: flex; justify-content: center; align-items: flex-end; height: 900px; margin-left: -140px; }
.hero-art-glow { position: absolute; width: 640px; height: 640px; border-radius: 50%; background: radial-gradient(circle, rgba(242,196,100,0.35) 0%, transparent 70%); filter: blur(10px); }
.hero-art { position: relative; z-index: 2; height: 960px; max-width: none; width: auto; object-fit: contain; filter: drop-shadow(0 30px 60px rgba(0,0,0,0.5)); }

/* ---------- ABOUT ---------- */
.about { max-width: 1280px; margin: 0 auto; padding: 120px 56px; display: flex; gap: 64px; align-items: center; flex-wrap: wrap; }
.about-text { flex: 30 1 320px; min-width: 320px; }
.eyebrow { color: #8b7bd8; font-size: 13px; font-weight: 700; letter-spacing: 2px; }
.section-title { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 44px; color: #12142e; margin: 14px 0 22px; line-height: 1.2; }
.about-desc { color: #4a4a58; font-size: 16px; line-height: 1.85; margin: 0 0 28px; max-width: 520px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.tag { background: #12142e; color: #f2c464; font-size: 13px; font-weight: 600; padding: 8px 16px; border-radius: 999px; }
.profile-table { background: #f2eee1; border-radius: 16px; display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
.profile-col { }
.profile-col + .profile-col { border-left: 1px solid rgba(18,20,46,0.06); }
.profile-row { display: flex; border-bottom: 1px solid rgba(18,20,46,0.06); }
.profile-row:last-child { border-bottom: none; }
.profile-key { width: 100px; flex-shrink: 0; padding: 14px 16px; color: #8b7bd8; font-size: 13px; font-weight: 700; }
.profile-val { padding: 14px 16px; color: #12142e; font-size: 14px; font-weight: 600; }
.about-art { flex: 70 1 380px; min-width: 340px; position: relative; }
.about-art-glow { position: absolute; top: -24px; right: -24px; width: 100px; height: 100px; border-radius: 50%; background: #f2c464; opacity: 0.25; filter: blur(20px); }
.about-art-frame { position: relative; border-radius: 24px; overflow: visible; box-shadow: 0 24px 60px rgba(18,20,46,0.18); height: 520px; background: #0b0c1e; }
.about-art-bg-wrap { position: absolute; inset: 0; border-radius: 24px; overflow: hidden; }
.about-art-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.about-art-char { position: absolute; left: 45%; bottom: 0; transform: translateX(-50%); height: 117%; max-width: none; width: auto; object-fit: contain; z-index: 2; filter: drop-shadow(0 20px 40px rgba(0,0,0,0.4)); }

/* ---------- STAGE ---------- */
.stage { background: #12142e; padding: 120px 56px; position: relative; overflow: hidden; }
.stage-glow { position: absolute; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, #8b7bd8 0%, transparent 70%); opacity: 0.28; top: -140px; right: -120px; filter: blur(40px); }
.stage-glow-2 { position: absolute; width: 460px; height: 460px; border-radius: 50%; background: radial-gradient(circle, #f2c464 0%, transparent 70%); opacity: 0.16; bottom: -160px; left: -120px; filter: blur(50px); }
.stage-inner { max-width: 1100px; margin: 0 auto; position: relative; z-index: 1; text-align: center; }
.stage-title { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 40px; color: #faf7f0; margin: 14px 0 16px; }
.stage-desc { color: rgba(231,228,245,0.7); font-size: 16px; margin: 0 0 44px; }
.stage-video { border-radius: 20px; overflow: hidden; box-shadow: 0 30px 70px rgba(0,0,0,0.5); border: 1px solid rgba(242,196,100,0.2); }
.stage-video-inner { position: relative; padding-top: 56.25%; background: #000; }
.stage-video-inner iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }

/* ---------- HISTORY ---------- */
.history { max-width: 1100px; margin: 0 auto; padding: 120px 56px; }
.hashtags { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.history-image { border-radius: 20px; overflow: hidden; box-shadow: 0 16px 40px rgba(18,20,46,0.15); margin-bottom: 40px; }
.history-image img { width: 100%; display: block; object-fit: cover; object-position: 50% 45%; height: 140px; }
.history-grid { background: #f2eee1; border-radius: 16px; display: grid; grid-template-columns: repeat(4,1fr); align-items: start; }
.history-col { padding: 20px 18px; border-right: 1px solid rgba(18,20,46,0.06); }
.history-col:last-child { border-right: none; }
.history-col-heading { color: #8b7bd8; font-size: 12px; font-weight: 700; letter-spacing: 1.5px; margin-bottom: 14px; }
.history-items { display: flex; flex-direction: column; gap: 8px; font-size: 12.5px; color: #4a4a58; line-height: 1.5; }

/* ---------- VOICEBANK ---------- */
.voicebank { max-width: 1280px; margin: 0 auto; padding: 120px 56px; }
.vb-rule { width: 40px; height: 2px; background: #12142e; margin-bottom: 18px; }
.vb-title { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 40px; color: #12142e; margin: 14px 0 16px; }
.vb-desc { color: #4a4a58; font-size: 16px; line-height: 1.7; margin: 0 0 48px; }
.vb-row { position: relative; display: flex; align-items: center; gap: 16px; width: 100%; }
.vb-arrow { width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; border: 1px solid rgba(18,20,46,0.15); background: #faf7f0; color: #12142e; font-size: 16px; cursor: pointer; z-index: 6; position: relative; }
.vb-track-wrap { flex: 1; min-width: 0; overflow-x: auto; overflow-y: visible; scroll-behavior: smooth; scrollbar-width: none; padding: 10px 0; }
.vb-track-wrap::-webkit-scrollbar { display: none; }
.vb-track { display: flex; gap: 16px; align-items: stretch; }
.vb-col { flex: 0 0 calc((100% - 48px) / 4); min-width: 180px; display: flex; flex-direction: column; gap: 24px; }
.vb-fade-right { position: absolute; top: 0; right: 56px; bottom: 0; width: 90px; background: linear-gradient(to right, rgba(250,247,240,0), #faf7f0 85%); pointer-events: none; z-index: 5; }
.vb-item-thumb { position: relative; cursor: pointer; border-radius: 14px; overflow: hidden; width: 100%; height: 200px; background: linear-gradient(135deg,#f2eee1,#e7ddc4); display: flex; align-items: center; justify-content: center; text-align: center; padding: 12px; }
.vb-item-thumb span { color: #8b7bd8; font-size: 13px; font-weight: 700; position: relative; z-index: 1; }
.vb-item-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; transition: transform 0.35s ease; }
.vb-item-thumb:hover .vb-item-img { transform: scale(1.08); }
.vb-dl-badge { position: absolute; bottom: 8px; right: 8px; background: rgba(18,20,46,0.75); color: #f2c464; font-size: 11px; font-weight: 700; padding: 5px 10px; border-radius: 999px; }
.vb-item-title { color: #12142e; font-size: 15px; font-weight: 700; line-height: 1.3; margin-top: 14px; min-height: 39px; }
.vb-item-desc { color: #6b6b78; font-size: 12.5px; line-height: 1.5; margin-top: 6px; min-height: 37.5px; }

/* ---------- GALLERY ---------- */
.gallery { background: #f2eee1; padding: 120px 56px; }
.gallery-inner { max-width: 1280px; margin: 0 auto; }
.gallery-head { text-align: center; margin-bottom: 56px; }
.gallery-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.gallery-slot { position: relative; width: 100%; height: 280px; border-radius: 18px; overflow: hidden; background: repeating-linear-gradient(135deg, #e7ddc4, #e7ddc4 10px, #f2eee1 10px, #f2eee1 20px); display: flex; align-items: center; justify-content: center; text-align: center; padding: 16px; border: 1.5px dashed rgba(18,20,46,0.15); }
.gallery-slot span { color: #8b7bd8; font-size: 14px; font-weight: 700; position: relative; z-index: 1; }
.gallery-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; z-index: 0; }
#fanart-4 .gallery-img { object-position: left center; }

/* ---------- TERMS ---------- */
.terms { max-width: 1100px; margin: 0 auto; padding: 120px 56px; }
.terms-credit { color: #6b6b78; font-size: 13px; margin: 0 0 40px; }
.terms-grid { background: #f2eee1; border-radius: 16px; display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background-color: rgba(18,20,46,0.08); overflow: hidden; }
.terms-card { padding: 24px 22px; background: #f2eee1; }
.terms-card-title { color: #8b7bd8; font-size: 12px; font-weight: 700; letter-spacing: 1.5px; margin-bottom: 12px; }
.terms-line { color: #4a4a58; font-size: 12.5px; line-height: 1.75; margin: 0; }

/* ---------- FOOTER ---------- */
.footer { background: #12142e; padding: 80px 56px 40px; }
.footer-top { max-width: 1280px; margin: 0 auto; display: flex; align-items: flex-start; flex-wrap: wrap; gap: 64px; border-bottom: 1px solid rgba(250,247,240,0.1); padding-bottom: 48px; }
.footer-logo { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 24px; color: #faf7f0; margin-bottom: 10px; }
.footer-desc { color: rgba(231,228,245,0.55); font-size: 14px; max-width: 320px; line-height: 1.7; }
.footer-contact-title { color: #f2c464; font-size: 13px; font-weight: 700; letter-spacing: 1.5px; margin-bottom: 14px; }
.footer-contact-item { font-size: 13px; line-height: 1.6; color: #e7e4f5; margin-bottom: 10px; }
.footer-contact-item span { color: rgba(231,228,245,0.5); }
.social-links { display: flex; gap: 14px; margin-left: auto; }
.social-btn { width: 46px; height: 46px; border-radius: 50%; background: rgba(250,247,240,0.08); color: #f2c464; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; transition: all .2s; }
.social-btn:hover { background: #f2c464; color: #12142e; }
.footer-bottom { max-width: 1280px; margin: 24px auto 0; color: rgba(231,228,245,0.4); font-size: 12px; }

@media (max-width: 1100px) {
  .nav { padding: 16px 24px; flex-wrap: wrap; gap: 12px; }
  .nav-links { gap: 20px; flex-wrap: wrap; }
  .hero-inner, .about, .history, .voicebank, .gallery-inner, .terms { padding-left: 24px; padding-right: 24px; }
  .hero-title { font-size: 72px; }
  .history-grid, .terms-grid { grid-template-columns: repeat(2,1fr); }
  .gallery-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 680px) {
  .hero { min-height: 640px; }
  .hero-inner { position: relative; padding-top: 90px; padding-bottom: 40px; min-height: 0; }
  .hero-copy { flex: none; max-width: 100%; padding-right: 0; position: relative; z-index: 3; }
  .hero-title { font-size: 52px; }
  .hero-desc, .hero-quote { width: auto; max-width: 100%; }
  .hero-cta { width: auto; }
  .hero-stats { flex-wrap: wrap; row-gap: 16px; }
  .hero-art-wrap {
    position: absolute;
    top: auto;
    bottom: -40px;
    right: -110px;
    width: 90%;
    height: 640px;
    min-width: 0;
    margin: 0;
    z-index: 1;
    justify-content: flex-end;
    align-items: flex-end;
    transform: scale(1.2);
    transform-origin: left bottom;
  }
  .hero-art { height: 640px; }
}

/* ---------- BACK TO TOP ---------- */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 32px;
  z-index: 60;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1.5px solid rgba(242,196,100,0.4);
  background: rgba(18,20,46,0.9);
  color: #f2c464;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity .25s ease, transform .25s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: #f2c464; color: #12142e; border-color: #f2c464; }
.back-to-top-arrow { font-size: 17px; line-height: 1; }
.back-to-top-label { font-size: 9px; font-weight: 700; letter-spacing: 1.5px; }

@media (max-width: 680px) {
  .back-to-top { right: 16px; bottom: 20px; width: 46px; height: 46px; }
  .back-to-top-arrow { font-size: 15px; }
  .back-to-top-label { font-size: 8px; }
}
