/* main.css ???ì­ ?ì´?ì & ê³µíµ ì»´í¬?í¸ */

/* ??? ê¸°ë³¸ ????????????????????????????????????????????? */
html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-sans);
}

/* ??? ?¸í¸ë¡?ë¡ë© ????????????????????????????????????? */
#intro-screen {
  position: fixed;
  inset: 0;
  z-index: var(--z-intro);
  background: var(--c-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-8);
  transition: opacity 0.8s var(--ease-out), visibility 0.8s;
}

#intro-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-4);
}

.intro-logo-mark {
  width: 72px;
  height: 72px;
  opacity: 0;
  animation: fadeInScale 0.8s var(--ease-out) 0.2s forwards;
}

.intro-logo-mark svg {
  width: 100%;
  height: 100%;
}

.intro-title {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  color: var(--c-text);
  letter-spacing: 0.15em;
  opacity: 0;
  animation: fadeInUp 0.6s var(--ease-out) 0.5s forwards;
}

.intro-subtitle {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--c-text-muted);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeInUp 0.6s var(--ease-out) 0.7s forwards;
}

.intro-terminal {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--c-accent);
  letter-spacing: 0.05em;
  min-height: 1.4em;
  opacity: 0;
  animation: fadeIn 0.4s ease 1.0s forwards;
}

.intro-terminal::after {
  content: '??;
  display: inline-block;
  animation: blink 0.8s step-end infinite;
}

.intro-progress {
  width: 200px;
  height: 1px;
  background: var(--c-text-dim);
  position: relative;
  overflow: hidden;
  opacity: 0;
  animation: fadeIn 0.4s ease 1.0s forwards;
}

.intro-progress-bar {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: var(--c-accent);
  width: 0%;
  transition: width 0.1s linear;
  box-shadow: 0 0 8px var(--c-accent);
}

/* ??? ë©ì¸ ?í¼ ????????????????????????????????????????? */
#main-wrapper {
  position: fixed;
  inset: 0;
  overflow: hidden;
}

/* ??? ?¤ë¹ê²ì´?????????????????????????????????????????? */
#site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-5) var(--sp-8);
  background: linear-gradient(to bottom, rgba(6,8,10,0.9) 0%, transparent 100%);
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

#site-nav.visible {
  opacity: 1;
  transform: translateY(0);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.nav-logo-icon {
  width: 28px;
  height: 28px;
}

.nav-logo-text {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: var(--text-xs);
  color: var(--c-text-muted);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.nav-title {
  font-family: var(--font-serif);
  font-size: var(--text-sm);
  color: var(--c-text);
  letter-spacing: 0.1em;
}

.nav-links {
  display: flex;
  gap: var(--sp-6);
  align-items: center;
}

.nav-link {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: var(--text-xs);
  color: var(--c-text-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: color var(--dur-fast);
}

.nav-link:hover { color: var(--c-accent); }

.nav-link.active { color: var(--c-accent); }

.nav-divider {
  width: 1px;
  height: 14px;
  background: var(--c-text-dim);
  opacity: .5;
  margin: 0 var(--sp-1);
}

.nav-link-external {
  color: var(--c-text-dim);
  font-size: 10px;
  letter-spacing: .1em;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.nav-link-external::after {
  content: "↗";
  font-size: 11px;
  opacity: .7;
}

.nav-link-external:hover { color: var(--c-text-muted); }

/* ??? ?í°??ìºë²??????????????????????????????????????? */
#particle-canvas {
  position: fixed;
  inset: 0;
  z-index: var(--z-canvas);
  pointer-events: none;
}

/* ??? ?ë¨ ?í¸ ????????????????????????????????????????? */
.scroll-hint {
  position: fixed;
  bottom: var(--sp-8);
  left: 50%;
  transform: translateX(-50%);
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.scroll-hint.visible { opacity: 1; }

.scroll-hint-text {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: var(--text-xs);
  color: var(--c-text-dim);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.scroll-hint-line {
  width: 1px;
  height: 30px;
  background: linear-gradient(to bottom, var(--c-text-dim), transparent);
  animation: pulseDown 2s ease-in-out infinite;
}

/* ??? ? í¸ë¦¬í° ?ì¤????????????????????????????????????? */
.label-number {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: var(--text-xs);
  color: var(--c-accent);
  letter-spacing: 0.2em;
}

.label-ko {
  font-family: var(--font-serif);
  font-weight: 500;
}

.label-en {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: var(--text-xs);
  color: var(--c-text-muted);
  letter-spacing: 0.1em;
}

/* ??? ?¤í?ì ????????????????????????????????????????? */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.8); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

@keyframes pulseDown {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50%       { opacity: 0.8; transform: scaleY(1.2); }
}

@keyframes pulseRing {
  0%   { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(2.5); opacity: 0; }
}

@keyframes glitch {
  0%   { clip-path: inset(20% 0 60% 0); transform: translate(-3px, 0); }
  25%  { clip-path: inset(60% 0 10% 0); transform: translate(3px, 0); }
  50%  { clip-path: inset(40% 0 40% 0); transform: translate(0, 0); }
  75%  { clip-path: inset(10% 0 70% 0); transform: translate(-2px, 0); }
  100% { clip-path: inset(50% 0 20% 0); transform: translate(2px, 0); }
}



/* âââ BGM ì¤ëì¤ ë²í¼ ì¤íì¼ âââââââââââââââââââââââââ */
.nav-audio-btn {
  background: none;
  border: none;
  color: var(--c-text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 4px var(--sp-2);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: var(--text-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: color var(--dur-fast);
  outline: none;
  position: relative;
}

.nav-audio-btn:hover {
  color: var(--c-accent);
}

.nav-audio-btn.active {
  color: var(--c-accent);
}

.audio-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(92, 200, 196, 0.3);
  transition: background 0.3s, box-shadow 0.3s;
}

@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 2px var(--c-accent);
    opacity: 0.6;
  }
  100% {
    box-shadow: 0 0 10px var(--c-accent), 0 0 14px var(--c-accent);
    opacity: 1;
  }
}
