/* NEON PRECINCT — 회사 홈페이지
   점 하나에서 게임이 만들어진다 — 도트 효과 하나로 승부한다.
   스캔라인 · 비네트 · 자석 단추 · 글자 올라오기는 넣지 않는다 (BRIEF 3절). */

:root {
  --ground: #07080C; --text: #E9EDF5; --soft: #BCC4D2; --dim: #8A93A6; --line: #1C2130; --edge: #39425A;
  --tool: #5EEAD4; --sword: #E5484D; --chef: #F4B860;
  --gutter: 28px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--text);
       font-family: 'Noto Sans KR', system-ui, -apple-system, sans-serif; }
html[lang="ja"] body { font-family: 'Noto Sans JP', system-ui, -apple-system, sans-serif; }
a { color: var(--tool); }
:focus-visible { outline: 2px solid var(--tool); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skiplink { position: fixed; top: 8px; left: 8px; z-index: 10; padding: 10px 16px;
            background: var(--text); color: var(--ground); font-size: 14px; transform: translateY(-200%); }
.skiplink:focus { transform: none; }

/* 머리 — 이름 · 언어 */
header.top { position: fixed; top: 0; left: 0; right: 0; z-index: 6; display: flex; align-items: center;
             justify-content: space-between; gap: 16px; padding: 18px var(--gutter); pointer-events: none; }
/* 로고 — 도트 글자 (scripts/make_logo.py 가 만든 logo.svg). 칸이 정수배로 커지게 높이를 30 의 배수로 */
.mark { display: block; pointer-events: auto; line-height: 0; margin-left: -6px; }
.mark img { display: block; height: 30px; width: auto; image-rendering: pixelated; }
@media (min-width: 1100px) { .mark img { height: 45px; } }
.langs { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; pointer-events: auto; }
.langs a { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 36px;
           padding: 0 8px; font-size: 12px; letter-spacing: .08em; color: var(--dim); text-decoration: none; }
.langs a:hover { color: var(--text); }
.langs a[aria-current="page"] { color: var(--text); box-shadow: inset 0 -1px 0 var(--text); }

/* ① 첫 화면 — 점 하나에서 그림이 드러나고, 게임 그림이 도트로 돈다 */
#hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; }
#heroCv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; }
.heroText { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 var(--gutter) 12vh;
            max-width: 1180px; margin: 0 auto; pointer-events: none; }
.heroText::before { content: ''; position: absolute; inset: -40vh calc(50% - 50vw) 0; z-index: -1;
            background: linear-gradient(180deg, rgba(7,8,12,0) 0%, rgba(7,8,12,.55) 45%, rgba(7,8,12,.9) 100%);
            opacity: 0; transition: opacity 1.2s ease; }
.eyebrow { margin: 0 0 18px; font-size: 12px; letter-spacing: .24em; color: var(--tool); }
.lines { margin: 0; font-family: 'Black Han Sans', 'Noto Sans KR', sans-serif; font-weight: 400;
         font-size: clamp(40px, 7.4vw, 104px); line-height: 1.08; color: #fff; letter-spacing: -.01em; }
html[lang="en"] .lines { font-family: Anton, sans-serif; letter-spacing: .01em; line-height: 1.02; }
html[lang="ja"] .lines { font-family: 'Noto Sans JP', sans-serif; font-weight: 900; font-size: clamp(36px, 6.6vw, 92px); }
.lines span { display: block; opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.sub { margin: 26px 0 0; max-width: 620px; font-size: 17px; line-height: 1.8; color: var(--soft); opacity: 0; transition: opacity .8s ease .9s; }
#hero.done .heroText::before { opacity: 1; }
#hero.done .lines span { opacity: 1; transform: none; }
#hero.done .lines span:nth-child(2) { transition-delay: .25s; }
#hero.done .lines span:nth-child(3) { transition-delay: .5s; }
#hero.done .sub { opacity: 1; }
.hint { position: absolute; left: 50%; top: calc(50% + 34px); transform: translateX(-50%); margin: 0;
        font-size: 13px; letter-spacing: .08em; color: var(--dim); transition: opacity .6s ease; pointer-events: none; white-space: nowrap; }
#hero.touched .hint, #hero.done .hint { opacity: 0; }
.skip { position: absolute; right: var(--gutter); bottom: 28px; z-index: 3; min-height: 40px; padding: 0 14px;
        background: transparent; border: 1px solid var(--line); color: var(--dim); font: inherit; font-size: 13px; cursor: pointer; }
.skip:hover { color: var(--text); border-color: var(--dim); }
#hero.done .skip { display: none; }
.now { position: absolute; right: var(--gutter); bottom: 32px; margin: 0; font-size: 12px; letter-spacing: .18em;
       color: var(--dim); opacity: 0; transition: opacity .6s ease; pointer-events: none; }
#hero.done .now { opacity: 1; }

/* ② 게임 소개 — 따라 내려온 도트가 내려앉아 그림을 짓는다 */
.prod { max-width: 1180px; margin: 0 auto; padding: 120px var(--gutter);
        display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: center; }
.prod:nth-of-type(even) { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.prod:nth-of-type(even) .panel { order: 2; }
.panel { position: relative; aspect-ratio: 16 / 10; background: #0b0c11; border: 1px solid var(--line); }
.panel canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.prod h2 { margin: 0; font-family: Anton, sans-serif; font-weight: 400; font-size: clamp(34px, 4.6vw, 60px); line-height: 1.05; color: #fff; }
.prod .eyebrow { margin-bottom: 14px; color: var(--accent); }
.prod .body { margin: 20px 0 0; font-size: 16px; line-height: 1.85; color: var(--soft); }
.prod .meta { margin: 14px 0 0; font-size: 13px; line-height: 1.8; color: var(--dim); }
.prod .copy { opacity: .25; transform: translateY(10px); transition: opacity .8s ease, transform .8s ease; }
.prod.built .copy { opacity: 1; transform: none; }
html:not(.js) .prod .copy { opacity: 1; transform: none; }
[data-accent="tool"]  { --accent: var(--tool); }
[data-accent="sword"] { --accent: var(--sword); }
[data-accent="chef"]  { --accent: var(--chef); }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn { display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 24px; font-size: 15px;
       text-decoration: none; border: 1px solid var(--edge); color: var(--text); }
.btn.solid { background: var(--accent); color: var(--ground); font-weight: 700; border-color: transparent; }
.btn.solid:hover { filter: brightness(1.08); }
.btn.off { color: var(--dim); border-style: dashed; }
#fly { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 5; }

/* 꼬리 */
footer { max-width: 1180px; margin: 0 auto; padding: 56px var(--gutter) 80px; border-top: 1px solid var(--line); }
footer p { margin: 0 0 8px; font-size: 13px; line-height: 1.8; color: var(--dim); }
footer a { color: var(--soft); }

/* 스크립트가 없으면 — 그림과 글을 그냥 보여 준다 */
html:not(.js) #hero { background: url(/assets/bg_hero.jpg) center / cover; }
html:not(.js) .lines span, html:not(.js) .sub, html:not(.js) .heroText::before { opacity: 1; transform: none; }
html:not(.js) .hint, html:not(.js) .skip { display: none; }

@media (max-width: 820px) {
  :root { --gutter: 20px; }
  header.top { padding-top: 12px; padding-bottom: 12px; }
  .heroText { padding-bottom: 14vh; }
  .sub { font-size: 15px; }
  .prod, .prod:nth-of-type(even) { grid-template-columns: 1fr; gap: 28px; padding: 88px var(--gutter); }
  .prod:nth-of-type(even) .panel { order: 0; }
  .ctas .btn { flex: 1 1 100%; justify-content: center; }
  .now { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .lines span, .sub, .heroText::before, .hint, .prod .copy { transition: none !important; }
}
