/* KMC GAMES — same visual language as the "Kay Em Cee" music video:
   near-black, warm ink, one orange accent, HUD details, heavy wide display type. */
:root {
  --bg: #070605;
  --bg-2: #0e0c0a;
  --line: rgba(243, 238, 230, 0.12);
  --line-2: rgba(243, 238, 230, 0.22);
  --ink: #f3eee6;
  --dim: #8a847b;
  --or: #ff5a1f;
  --or-hot: #ff9a4a;
  --or-glow: rgba(255, 90, 31, 0.45);
  --display: 'Archivo', 'Pretendard Variable', sans-serif;
  --body: 'Pretendard Variable', Pretendard, -apple-system, 'Malgun Gothic', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
  --pad: clamp(20px, 5vw, 72px);
  --max: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  word-break: keep-all;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
/* film grain + faint dot grid, like the video */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(rgba(243, 238, 230, 0.07) 1px, transparent 1.2px);
  background-size: 32px 32px;
}
body::after {
  content: '';
  position: fixed; inset: -50%; z-index: 100; pointer-events: none; opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.6s steps(3) infinite;
}
@keyframes grain { 0% { transform: translate(0, 0); } 33% { transform: translate(-3%, 2%); } 66% { transform: translate(2%, -3%); } }

a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
em { font-style: normal; color: var(--or); }
main, .site-header, .site-footer { position: relative; z-index: 1; }

/* scroll progress */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; background: transparent; }
.progress span { display: block; height: 100%; width: 0; background: var(--or); box-shadow: 0 0 12px var(--or-glow); }

/* ---------- header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 32px;
  padding: 18px var(--pad);
  background: linear-gradient(var(--bg) 40%, rgba(7, 6, 5, 0));
}
.brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--display); font-weight: 800; font-stretch: 112%; letter-spacing: 0.14em; font-size: 15px; }
.brand-flame { width: 18px; height: 24px; filter: drop-shadow(0 0 8px var(--or-glow)); animation: flicker 1.6s infinite; transform-origin: 50% 100%; }
@keyframes flicker { 0%, 100% { transform: scaleY(1); } 30% { transform: scaleY(1.07) skewX(-2deg); } 60% { transform: scaleY(0.96) skewX(2deg); } }
.nav { display: flex; gap: 28px; margin-left: auto; font-size: 15px; color: var(--dim); }
.nav a { position: relative; transition: color 0.2s; }
.nav a:hover { color: var(--ink); }
.nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--or); transform: scaleX(0); transition: transform 0.25s; }
.nav a:hover::after { transform: scaleX(1); }

/* ---------- buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px;
  font-family: var(--display); font-weight: 800; font-stretch: 112%; letter-spacing: 0.08em; font-size: 15px;
  border: 1.5px solid var(--line-2);
  transition: transform 0.15s, background 0.2s, border-color 0.2s, box-shadow 0.2s, color 0.2s;
}
.btn:active { transform: scale(0.96); }
.btn-small { padding: 9px 18px; font-size: 13px; font-family: var(--body); font-weight: 600; letter-spacing: 0; }
.btn-small:hover { border-color: var(--or); color: var(--or); }
.btn-primary { background: var(--or); border-color: var(--or); color: #120603; box-shadow: 0 0 0 0 var(--or-glow); }
.btn-primary:hover { box-shadow: 0 0 32px var(--or-glow); background: var(--or-hot); border-color: var(--or-hot); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-large { padding: 20px 34px; font-size: clamp(14px, 2.2vw, 18px); }
.btn-icon { font-size: 0.8em; }
:focus-visible { outline: 2px solid var(--or); outline-offset: 3px; }

/* ---------- hero */
.hero {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(32px, 5vw, 80px); align-items: center;
  max-width: var(--max); margin: 0 auto; padding: clamp(24px, 6vh, 72px) var(--pad) clamp(56px, 10vh, 120px);
  min-height: calc(100svh - 70px);
}
.hud-label { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 28px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.18em; color: var(--dim); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--or); box-shadow: 0 0 10px var(--or); animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: 0.25; } }
.hero-title {
  margin: 0; font-family: var(--body); font-weight: 900; letter-spacing: -0.03em; line-height: 1.08;
  font-size: clamp(48px, 8.4vw, 116px);
}
.hero-title em { text-shadow: 0 0 36px var(--or-glow); }
.hero-lead { margin: 28px 0 36px; max-width: 30em; color: #cfc8be; font-size: clamp(16px, 1.6vw, 19px); }
.hero-lead strong { color: var(--ink); font-weight: 700; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* music player */
.player {
  display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 14px;
  margin-top: 44px; padding: 12px 18px 12px 12px; max-width: 460px;
  border: 1px solid var(--line); border-radius: 14px; background: rgba(14, 12, 10, 0.72); backdrop-filter: blur(6px);
}
.player-btn { width: 42px; height: 42px; border-radius: 10px; border: 0; background: var(--or); color: #120603; display: grid; place-items: center; cursor: pointer; }
.player-btn svg { width: 18px; height: 18px; fill: currentColor; }
.player .i-pause, .player.is-playing .i-play { display: none; }
.player.is-playing .i-pause { display: block; }
.player-meta { display: flex; flex-direction: column; line-height: 1.25; }
.player-title { font-weight: 700; font-size: 15px; }
.player-sub { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; color: var(--dim); }
.player-bar { height: 3px; background: var(--line-2); border-radius: 2px; cursor: pointer; }
.player-bar span { display: block; width: 0; height: 100%; background: var(--or); border-radius: 2px; }
.player-time { font-family: var(--mono); font-size: 12px; color: var(--dim); min-width: 3.2em; text-align: right; }

/* HUD screen frame (hero + MV) */
.hero-screen { justify-self: center; width: min(100%, 400px); }
.screen { position: relative; aspect-ratio: 9 / 16; border-radius: 22px; overflow: hidden; background: #000; border: 1px solid var(--line-2); box-shadow: 0 0 0 8px rgba(243, 238, 230, 0.03), 0 30px 80px rgba(255, 90, 31, 0.16); }
.screen video { width: 100%; height: 100%; object-fit: cover; }
.corner { position: absolute; width: 22px; height: 22px; border: 2px solid rgba(243, 238, 230, 0.7); pointer-events: none; }
.corner.tl { top: 14px; left: 14px; border-right: 0; border-bottom: 0; }
.corner.tr { top: 14px; right: 14px; border-left: 0; border-bottom: 0; }
.corner.bl { bottom: 14px; left: 14px; border-right: 0; border-top: 0; }
.corner.br { bottom: 14px; right: 14px; border-left: 0; border-top: 0; }
.screen-tag { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px; border-radius: 6px; background: rgba(0, 0, 0, 0.55); font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; white-space: nowrap; }
.rec { width: 7px; height: 7px; border-radius: 50%; background: var(--or); animation: blink 1s infinite; }
.screen-caption { margin: 14px 0 0; text-align: center; font-family: var(--mono); font-size: 12px; letter-spacing: 0.2em; color: var(--dim); }
.screen-caption b { color: var(--ink); font-weight: 700; }

/* ---------- marquee */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--bg-2); }
.marquee-track { display: flex; width: max-content; gap: 34px; padding: 18px 0; animation: marquee 32s linear infinite; font-family: var(--display); font-weight: 900; font-stretch: 125%; font-size: clamp(18px, 2.6vw, 30px); letter-spacing: 0.02em; white-space: nowrap; }
.marquee-track i { font-style: normal; color: var(--or); }
.marquee-track span:nth-of-type(4n + 2) { color: transparent; -webkit-text-stroke: 1.2px var(--ink); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections */
.section { max-width: var(--max); margin: 0 auto; padding: clamp(80px, 14vh, 150px) var(--pad); }
.section-head { max-width: 760px; }
.stage { margin: 0 0 16px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.22em; color: var(--or); }
.section h2 { margin: 0; font-family: var(--display); font-weight: 900; font-stretch: 125%; line-height: 0.98; letter-spacing: -0.01em; font-size: clamp(40px, 7vw, 92px); }
.section-lead { margin: 22px 0 0; color: #cfc8be; font-size: clamp(16px, 1.6vw, 19px); }

/* play cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); margin-top: clamp(40px, 7vh, 72px); }
.card { position: relative; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--bg-2); transition: transform 0.35s, border-color 0.35s, box-shadow 0.35s; }
.card:hover { transform: translateY(-6px); border-color: rgba(255, 90, 31, 0.6); box-shadow: 0 24px 60px rgba(255, 90, 31, 0.12); }
.card-media { aspect-ratio: 4 / 3.4; overflow: hidden; background: #000; }
.card-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; transition: transform 0.6s; }
.card:hover .card-media img { transform: scale(1.05); }
.card-body { padding: 26px 26px 30px; display: flex; flex-direction: column; flex: 1; }
.card-no { margin: 0 0 12px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; color: var(--or); }
.card h3 { margin: 0 0 12px; font-size: clamp(22px, 2.2vw, 28px); font-weight: 800; line-height: 1.3; letter-spacing: -0.02em; }
.card-body p { margin: 0; color: #bfb8ae; font-size: 15.5px; }
.card-tag { margin-top: auto !important; padding-top: 22px; font-family: var(--mono); font-size: 11px !important; letter-spacing: 0.18em; color: var(--dim) !important; }

/* studio */
.studio { border-top: 1px solid var(--line); }
.studio-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.quote { margin: 0 0 24px; font-size: clamp(24px, 2.6vw, 34px); font-weight: 800; line-height: 1.35; letter-spacing: -0.02em; }
.studio-copy p:not(.quote) { color: #cfc8be; margin: 0 0 16px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: clamp(48px, 8vh, 88px) 0 0; border-top: 1px solid var(--line-2); }
.stats div { padding: 24px 24px 0 0; }
.stats div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.stats dt { font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; color: var(--dim); }
.stats dd { margin: 8px 0 0; font-family: var(--display); font-weight: 800; font-stretch: 112%; font-size: clamp(20px, 2.4vw, 30px); }

/* music video */
.mv { border-top: 1px solid var(--line); }
.mv-grid { display: grid; grid-template-columns: 1fr 380px; gap: clamp(32px, 6vw, 96px); align-items: center; }
.mv-facts { display: flex; gap: 32px; margin: 36px 0 0; padding: 0; list-style: none; font-family: var(--display); font-weight: 800; font-size: 26px; }
.mv-facts span { display: block; font-family: var(--mono); font-weight: 400; font-size: 11px; letter-spacing: 0.2em; color: var(--dim); }
.mv-player { width: min(100%, 380px); justify-self: end; }

/* contact */
.contact { border-top: 1px solid var(--line); text-align: center; }
.contact-inner { display: flex; flex-direction: column; align-items: center; }
.continue { font-size: clamp(40px, 10vw, 150px) !important; }
.countdown { margin: 12px 0 0; width: clamp(120px, 16vw, 180px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; border: 3px solid rgba(243, 238, 230, 0.12); position: relative; }
.countdown::before { content: ''; position: absolute; inset: -3px; border-radius: 50%; border: 3px solid var(--or); clip-path: inset(0 0 0 50%); animation: spin 1s linear infinite; filter: drop-shadow(0 0 8px var(--or-glow)); }
@keyframes spin { to { transform: rotate(360deg); } }
.countdown span { font-family: var(--display); font-weight: 900; font-size: clamp(56px, 8vw, 88px); color: var(--or); text-shadow: 0 0 30px var(--or-glow); }
.choice { margin-top: 40px; }
.mail { margin-top: 18px; font-family: var(--mono); font-size: 15px; color: var(--dim); border-bottom: 1px solid var(--line-2); transition: color 0.2s, border-color 0.2s; }
.mail:hover { color: var(--or); border-color: var(--or); }

/* footer */
.site-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; padding: 40px var(--pad) 48px; border-top: 1px solid var(--line); color: var(--dim); font-size: 14px; }
.site-footer p { margin: 0; }
.site-footer a:hover { color: var(--or); }
.site-footer .copy { margin-left: auto; font-family: var(--mono); font-size: 12px; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s cubic-bezier(.2, .7, .2, 1), transform 0.8s cubic-bezier(.2, .7, .2, 1); }
.reveal.is-in { opacity: 1; transform: none; }
.cards .card:nth-child(2) { transition-delay: 0.1s; }
.cards .card:nth-child(3) { transition-delay: 0.2s; }

/* ---------- responsive */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; min-height: 0; text-align: left; }
  .hero-screen { width: min(100%, 360px); }
  .cards { grid-template-columns: 1fr; max-width: 560px; }
  .studio-grid, .mv-grid { grid-template-columns: 1fr; }
  .mv-player { justify-self: start; }
}
@media (max-width: 720px) {
  .nav { display: none; }
  .site-header .btn-small { margin-left: auto; }
  .stats { grid-template-columns: 1fr; }
  .stats div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .player { grid-template-columns: auto 1fr auto; }
  .player-bar { grid-column: 1 / -1; grid-row: 2; }
  .site-footer .copy { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
