/* KINORA Sound — 넓은 그로테스크 제목 + 모노 라벨 */
@import url('https://fonts.googleapis.com/css2?family=Archivo:wdth,wght@62..125,100..900&family=JetBrains+Mono:wght@400;500&display=swap');
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css');

:root {
  --paper: #f3f2ee;
  --ink: #0f0e0c;
  --mute: #85827b;
  --accent: #a8433a;
  --line: rgba(15, 14, 12, 0.16);
  --paper-dim: rgba(243, 242, 238, 0.6);
  --sans: "Archivo", "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Hiragino Sans", "Noto Sans JP", sans-serif;
  --mono: "JetBrains Mono", "Pretendard Variable", Pretendard, ui-monospace, Menlo, monospace;
  --pad: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; }
body { margin: 0; font-family: var(--sans); line-height: 1.65; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; word-break: keep-all; overflow-wrap: break-word; }
a { color: inherit; }
.mono, .time, .lang { font-family: var(--mono); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; }
.sub { color: var(--mute); }

/* 일본어는 낱말 사이에 띄어쓰기가 없어서 기본 줄바꿈 규칙을 씁니다 (쉼표가 줄 맨 앞에 오지 않게). */
html[lang="ja"] body { word-break: normal; line-break: strict; }

/* 머리말 */
header.site { position: sticky; top: 0; z-index: 20; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px 24px; padding: 18px var(--pad); background: var(--paper); border-bottom: 1px solid var(--line); }
header.site .logo { font-stretch: 125%; font-weight: 800; font-size: 14px; letter-spacing: 0.22em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
header.site nav { display: flex; gap: clamp(16px, 4vw, 56px); }
header.site nav a { text-decoration: none; font-size: 14px; letter-spacing: 0.12em; padding-bottom: 2px; border-bottom: 1px solid transparent; white-space: nowrap; }
header.site nav a:hover { color: var(--accent); }
header.site nav a.active { border-bottom-color: currentColor; }
.lang { justify-self: end; display: flex; gap: 10px; font-size: 13px; color: var(--mute); }
.lang button { border: 0; border-bottom: 1px solid transparent; background: none; padding: 0 0 2px; font: inherit; letter-spacing: inherit; color: inherit; cursor: pointer; }
.lang button:hover { color: var(--accent); }
.lang button.active { color: var(--ink); border-bottom-color: currentColor; }
@media (max-width: 760px) {
  header.site { display: flex; flex-wrap: wrap; justify-content: space-between; }
  header.site nav { order: 3; width: 100%; justify-content: space-between; }
}

/* 버튼 */
.btn { display: inline-flex; align-items: center; gap: 24px; border: 1px solid currentColor; padding: 16px 22px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; text-decoration: none; background: none; color: inherit; cursor: pointer; white-space: nowrap; }
.btn::after { content: "→"; font-size: 16px; letter-spacing: 0; }
.btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.cta { margin: 80px 0 0; }

/* 홈 */
.hero { background: var(--ink); color: var(--paper); min-height: calc(100vh - 58px); display: flex; flex-direction: column; justify-content: space-between; padding: 28px var(--pad) 36px; }
.hero-top { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; color: var(--paper-dim); }
.hero-mark { margin: 7vh 0 6vh; display: flex; flex-direction: column; font-stretch: 125%; font-weight: 500; font-size: clamp(46px, 12vw, 240px); line-height: 0.88; letter-spacing: -0.015em; }
.hero-mark span:last-child { align-self: flex-end; }
.hero-bottom { display: grid; grid-template-columns: 1fr minmax(0, 1.5fr) auto; gap: 24px 40px; align-items: end; }
.hero-bottom p { margin: 0; }
.hero-lead p:first-child { font-size: clamp(16px, 1.7vw, 23px); line-height: 1.5; color: var(--paper-dim); }
.hero-lead .mono { margin-top: 14px; }
.hero .btn:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
@media (max-width: 900px) { .hero-bottom { grid-template-columns: 1fr; } .hero-bottom .btn { justify-self: start; } }

.index { position: relative; min-height: 560px; padding: 72px var(--pad); }
.index-item { position: absolute; display: block; font-family: var(--mono); font-size: 13px; line-height: 1.95; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; }
.index-item span { display: block; white-space: nowrap; }
.index-item .n { display: inline-block; width: 3.4em; }
.index-item:hover { color: var(--accent); }
@media (max-width: 760px) {
  .index { min-height: 0; }
  .index-item { position: relative !important; left: auto !important; top: auto !important; margin: 0 0 48px; }
  .index-item:nth-child(even) { margin-left: 18%; }
  .index-item span { white-space: normal; }
}

/* 안쪽 페이지 공통 */
main.page { max-width: 1180px; margin: 0 auto; padding: 0 var(--pad) 120px; }
.page-head { padding: 72px 0 28px; }
h1 { margin: 0; font-stretch: 125%; font-weight: 600; font-size: 32px; line-height: 1.2; }
h2 { margin: 72px 0 20px; padding-bottom: 8px; border-bottom: 1px solid var(--line); font-stretch: 125%; font-weight: 600; font-size: 22px; }
h3 { margin: 0; font-stretch: 125%; font-weight: 600; font-size: 18px; line-height: 1.5; }
main.page > p { max-width: 760px; white-space: pre-line; }

/* 크레딧 */
.credit-year { display: grid; grid-template-columns: 140px 1fr; gap: 8px 24px; padding: 24px 0; border-top: 1px solid var(--line); }
#credits .credit-year:first-child { border-top: 0; padding-top: 0; }
ul.credits { list-style: none; margin: 0; padding: 0; }
ul.credits li { padding: 8px 0; border-bottom: 1px solid var(--line); }
ul.credits li:last-child { border-bottom: 0; }
@media (max-width: 600px) { .credit-year { grid-template-columns: 1fr; } }

/* 포스터 슬라이드 */
.slider { display: flex; align-items: center; gap: 10px; }
.slide-btn { flex: none; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--ink); background: none; color: var(--ink); font-size: 22px; line-height: 1; cursor: pointer; padding: 0 0 3px; }
.slide-btn:hover { background: var(--ink); color: var(--paper); }
.posters { flex: 1; min-width: 0; display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.posters::-webkit-scrollbar { display: none; }
.posters img { flex: 0 0 calc((100% - 36px) / 4); min-width: 0; aspect-ratio: 7 / 10; object-fit: cover; display: block; scroll-snap-align: start; }
.posters .missing { flex: 1; }
@media (max-width: 600px) { .posters img { flex-basis: calc((100% - 12px) / 2); } }

/* 포트폴리오 챕터 */
.chapter { padding: 56px 0; border-top: 1px solid var(--line); }
.chapter-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.chapter-name { font-stretch: 125%; font-size: 26px; font-weight: 700; line-height: 1.1; letter-spacing: 0.01em; }
.title-text { font-size: 15px; color: var(--mute); }
.chapter-head { flex-wrap: wrap; }
.chapter-head .sub { white-space: nowrap; font-size: 15px; }
.chapter-title { display: block; max-height: 56px; max-width: min(240px, calc(100% - 80px)); }
.chapter-videos { margin-top: 28px; }
.chapter-videos.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; align-items: start; }
.chapter-videos.row .track-name { font-weight: 700; }
/* 영상이 하나일 때도 두 개 나란히 놓일 때의 한 칸과 같은 크기 */
.chapter-video { max-width: calc((100% - 20px) / 2); margin: 0 auto; text-align: center; }
@media (max-width: 600px) { .chapter-video { max-width: none; } }
.chapter-videos.row .chapter-video { max-width: none; width: 100%; }
.track-name { margin-bottom: 6px; }

/* 음원 플레이어 */
.player { display: grid; grid-template-columns: 40px 1fr auto; column-gap: 16px; row-gap: 2px; align-items: center; padding: 13px 0; border-top: 1px solid var(--line); }
.player .play { grid-row: 1 / 3; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--ink); background: none; color: var(--ink); cursor: pointer; display: grid; place-items: center; padding: 0; }
.player .play:hover, .player.playing .play { background: var(--ink); color: var(--paper); }
.player-title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.time { font-size: 12px; letter-spacing: 0.08em; color: var(--mute); font-variant-numeric: tabular-nums; white-space: nowrap; }
.bar { height: 14px; display: flex; align-items: center; cursor: pointer; }
.player .bar { grid-column: 2 / 4; }
.rail { width: 100%; height: 2px; background: var(--line); overflow: hidden; }
.fill { height: 100%; width: 0; background: var(--ink); }

/* 영상 플레이어 */
.vplayer .stage { position: relative; background: #000; cursor: pointer; border-radius: 4px; overflow: hidden; }
.vplayer video { display: block; width: 100%; }
.vplayer .stage:fullscreen { border-radius: 0; }
.vplayer .stage:fullscreen video { height: 100%; object-fit: contain; }
.vplayer .big-play { position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; border-radius: 50%; background: rgba(0, 0, 0, 0.45); border: 1px solid #fff; color: #fff; display: grid; place-items: center; }
.vplayer .big-play svg { width: 26px; height: 26px; }
.vplayer.playing .big-play { display: none; }
.vcontrols { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 8px; padding: 28px 12px 8px; background: linear-gradient(transparent, rgba(0, 0, 0, 0.75)); color: #fff; cursor: default; transition: opacity 0.2s; }
.vplayer.playing .vcontrols { opacity: 0; }
.vplayer.playing .stage:hover .vcontrols, .vplayer .vcontrols:focus-within { opacity: 1; }
.vcontrols button { width: 28px; height: 28px; flex: none; border: 0; background: none; color: #fff; cursor: pointer; padding: 0; display: grid; place-items: center; }
.vcontrols button svg { width: 18px; height: 18px; }
.vcontrols .time { color: #fff; flex: none; }
.vcontrols .bar { flex: 1; min-width: 40px; }
.vcontrols .rail { background: rgba(255, 255, 255, 0.35); }
.vcontrols .fill { background: #fff; }
.vcontrols .volume { flex: none; width: 60px; height: 3px; accent-color: #fff; cursor: pointer; }

.chapter > .missing { margin-top: 8px; }
.missing { background: rgba(15, 14, 12, 0.05); border: 1px dashed var(--mute); color: var(--mute); font-size: 13px; padding: 8px; margin-top: 4px; word-break: break-all; }

/* 문의 */
form { max-width: 760px; margin-top: 48px; }
form label { display: block; margin: 24px 0 2px; color: var(--mute); }
form input, form textarea { width: 100%; padding: 10px 0; font: inherit; color: var(--ink); background: none; border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; outline: none; }
form input:focus, form textarea:focus { border-bottom-color: var(--accent); }
form textarea { min-height: 160px; resize: vertical; }
form .btn { margin-top: 36px; }
.direct p { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--line); max-width: 760px; }
.direct a { text-decoration: none; }
.direct a:hover { color: var(--accent); }

/* 꼬리말 */
footer.site-foot { background: var(--ink); color: var(--paper); padding: clamp(56px, 9vw, 140px) var(--pad) 48px; }
.foot-mark { font-stretch: 125%; font-weight: 500; font-size: clamp(54px, 13vw, 230px); line-height: 0.9; letter-spacing: -0.015em; }
.foot-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: clamp(40px, 7vw, 110px); padding-top: 40px; border-top: 1px solid rgba(243, 242, 238, 0.25); color: var(--paper-dim); }
.foot-name { font-family: var(--sans); font-stretch: 125%; font-weight: 800; font-size: 14px; letter-spacing: 0.22em; color: var(--paper); margin-bottom: 14px; }
.foot-grid a { display: block; color: var(--paper); text-decoration: none; margin-bottom: 14px; }
.foot-grid a:hover { color: var(--paper-dim); }
.foot-copy { text-align: right; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-copy { text-align: left; } }
