/*
  VOICE   조용한 스튜디오 소개. 말은 적게, 도트 그림이 말한다.
  IDEA    도트 게임의 타이틀 화면. 픽셀 글꼴의 이름, 픽셀 테두리를 두른 그림 액자, 게임 속 대화창 같은 배지.
  PICTURE 첫 화면은 「빈 성 앞의 신입」을 깐 위의 스튜디오 이름, 그 아래 대표 그림 하나를 크게 둔 갤러리.
  COLOUR  그림의 밤하늘 남색 바탕, 금빛 하나가 강조. 밤 장면이라 테마와 상관없이 한 벌.
  TYPE    제목 · 내비 · 배지 · 그림 설명은 Galmuri11(한글 픽셀 글꼴, OFL, fonts/ 에 쓰는 글자만 남겨 넣었다), 본문은 Pretendard(막힌 곳은 Noto Sans KR).
          픽셀 글꼴은 12의 배수(12 · 24 · 36 · 48 · 72px)에서 또렷하다.
  LAYOUT  첫 화면 → 게임 로고와 준비 중 → 3열 갤러리(첫 그림 두 칸 x 두 줄) → 이름 이야기 → 푸터.
*/
@font-face { font-family: "Galmuri11"; src: url("fonts/galmuri11-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Galmuri11"; src: url("fonts/galmuri11.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  color-scheme: dark;
  --night: #0b0f1d;
  --deep: #121a33;
  --gold: #f2c45a;
  --gold-dk: #9c6a1c;
  --ink: #f1ead8;
  --mute: #a8aec2;
  --line: rgb(241 234 216 / 0.12);
  --px: "Galmuri11", "Pretendard Variable", Pretendard, "Noto Sans KR", sans-serif;
  --sans: "Pretendard Variable", Pretendard, "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", sans-serif;
  /* 네 귀퉁이를 한 칸씩 깎은 픽셀 모서리 */
  --notch: polygon(0 6px, 6px 6px, 6px 0, calc(100% - 6px) 0, calc(100% - 6px) 6px, 100% 6px, 100% calc(100% - 6px), calc(100% - 6px) calc(100% - 6px), calc(100% - 6px) 100%, 6px 100%, 6px calc(100% - 6px), 0 calc(100% - 6px));
}
* { box-sizing: border-box; min-width: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font: 16px/1.75 var(--sans);
  word-break: keep-all;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
h1, h2, p, dl, figure { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
.band { padding: clamp(72px, 10vw, 128px) max(5vw, 20px); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* 상단 */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 10px max(5vw, 20px);
  background: rgb(11 15 29 / 0.72);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 3px 0 rgb(0 0 0 / 0.35);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-height: 44px; font: 700 24px/1 var(--px); }
.brand svg { width: 24px; height: 24px; fill: none; stroke: var(--gold); stroke-width: 2; shape-rendering: crispEdges; }
.nav nav { display: flex; gap: 4px; }
.nav nav a { text-decoration: none; font: 400 12px/1 var(--px); font-size: 12px; color: var(--mute); padding: 16px 12px; }
.nav nav a:hover { color: var(--gold); }
@media (min-width: 601px) { .nav nav a { font-size: 24px; padding: 10px 14px; } .brand { font-size: 24px; } }

/* 첫 화면 */
.hero { position: relative; min-height: 100svh; display: grid; place-items: center; overflow: hidden; isolation: isolate; text-align: center; }
.hero-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; z-index: -2; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(rgb(11 15 29 / 0.55), rgb(11 15 29 / 0.25) 35%, rgb(11 15 29 / 0.35) 65%, var(--night));
}
.hero-in { padding: 24px; }
.hero h1 {
  font: 700 48px/1.2 var(--px);
  letter-spacing: 0.02em;
  color: var(--ink);
  text-shadow: 4px 4px 0 #1a0f22, 0 0 0 #000;
}
@media (min-width: 720px) { .hero h1 { font-size: 72px; text-shadow: 6px 6px 0 #1a0f22; } }
@media (min-width: 1200px) { .hero h1 { font-size: 96px; text-shadow: 8px 8px 0 #1a0f22; } }
.lead { margin-top: 20px; font-size: clamp(17px, 2vw, 20px); font-weight: 500; color: var(--ink); text-shadow: 0 2px 12px rgb(0 0 0 / 0.8); }
.down { position: absolute; bottom: 20px; left: 50%; translate: -50% 0; width: 44px; height: 44px; display: grid; place-items: center; color: var(--ink); animation: bob 1.6s steps(2) infinite; }
.down svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: square; stroke-linejoin: miter; }
@keyframes bob { 50% { transform: translateY(4px); } }

/* 작품: 로고, 준비 중, 갤러리 */
.works-head { display: flex; flex-direction: column; align-items: center; gap: 24px; margin-bottom: clamp(36px, 5vw, 56px); text-align: center; }
.logo { width: min(78vw, 380px); filter: drop-shadow(0 6px 24px rgb(0 0 0 / 0.6)); }
/* 게임 속 대화창 같은 배지: 픽셀 모서리, 두 겹 테두리 */
.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px 10px 16px;
  background: var(--deep);
  font: 700 24px/1 var(--px);
  color: var(--gold);
  clip-path: var(--notch);
  box-shadow: inset 0 0 0 3px var(--gold), inset 0 0 0 6px var(--deep), inset 0 0 0 9px rgb(242 196 90 / 0.25);
}
.pulse { width: 9px; height: 9px; background: var(--gold); animation: blink 1.2s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0.2; } }

.gallery {
  width: min(1240px, 100%);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 22px);
}
.art { display: grid; gap: 10px; }
.art.feature { grid-column: span 2; grid-row: span 2; }
.art button {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #000;
  cursor: zoom-in;
  aspect-ratio: 16 / 9;
  clip-path: var(--notch);
  box-shadow: inset 0 0 0 3px #000;
}
.art.feature button { aspect-ratio: auto; height: 100%; min-height: 0; }
.art img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s steps(4); }
.art.feature img { position: absolute; inset: 0; }
/* 그림 둘레의 두 겹 픽셀 테두리(검정 + 밝은 안선) */
.art button::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 3px #000, inset 0 0 0 6px rgb(255 255 255 / 0.12); pointer-events: none; }
.art button:hover img { transform: scale(1.04); }
.art figcaption { font: 400 12px/1 var(--px); font-size: 12px; color: var(--mute); padding-left: 2px; }
.art figcaption::before { content: "▸ "; color: var(--gold); }
.art.feature { grid-template-rows: 1fr auto; }

/* 크게 보기 */
.viewer { padding: 0; border: 0; background: transparent; max-width: 94vw; max-height: 92vh; overflow: visible; }
.viewer::backdrop { background: rgb(5 8 15 / 0.92); }
.viewer img { max-width: 94vw; max-height: 92vh; width: auto; clip-path: var(--notch); }
.close {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 44px;
  height: 44px;
  border: 0;
  background: var(--deep);
  color: var(--gold);
  display: grid;
  place-items: center;
  cursor: pointer;
  clip-path: var(--notch);
  box-shadow: inset 0 0 0 3px var(--gold);
}
.close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: square; }

/* 스튜디오 */
.studio { text-align: center; background: linear-gradient(var(--night), var(--deep)); }
.studio-in { max-width: 620px; margin-inline: auto; }
.studio h2 { font: 700 24px/1.6 var(--px); color: var(--ink); text-wrap: balance; }
@media (min-width: 720px) { .studio h2 { font-size: 36px; line-height: 1.5; } }
.studio p { margin-top: 22px; color: var(--mute); font-size: 17px; }

/* 푸터 */
.foot { padding: 48px max(5vw, 20px) 40px; background: #070a14; color: var(--mute); font-size: 14px; box-shadow: inset 0 3px 0 rgb(0 0 0 / 0.5), inset 0 6px 0 rgb(242 196 90 / 0.15); }
.foot-in { width: min(1240px, 100%); margin-inline: auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px 48px; }
.foot-name { color: var(--ink); font: 700 24px/1 var(--px); margin-bottom: 10px; }
.biz { display: grid; gap: 6px; }
.biz div { display: flex; gap: 16px; }
.biz dt { width: 9em; flex: none; opacity: 0.7; }
.biz dd { margin: 0; color: var(--ink); }
.copy { width: min(1240px, 100%); margin: 36px auto 0; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pulse, .down { animation: none; }
  .art img { transition: none; }
}
@media (max-width: 860px) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .art.feature { grid-column: span 2; grid-row: auto; }
  .art.feature button { aspect-ratio: 16 / 9; height: auto; }
  .art.feature img { position: static; }
}
@media (max-width: 560px) {
  .gallery { grid-template-columns: 1fr; }
  .art.feature { grid-column: auto; }
  .brand span { display: none; }
  .biz dt { width: 7.5em; }
}
