/* 정적 페이지(작업·목록·회사 소개) — styles.css 의 게임 화면용 전체 화면 고정을 풀고 문서처럼 스크롤한다. */
html:has(.page),
body.page {
  height: auto;
  overflow: auto;
}

body.page {
  background: var(--paper);
}

.page a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: max(16px, env(safe-area-inset-top)) 32px 16px;
  background: rgba(13, 14, 17, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-brand {
  font-weight: 900;
  letter-spacing: 0.12em;
  text-decoration: none;
}

.site-header nav {
  display: flex;
  gap: 20px;
  font-size: 14px;
  font-weight: 700;
}

.site-header nav a {
  text-decoration: none;
  color: var(--muted);
}

.site-header nav a:hover,
.site-header .site-fly {
  color: var(--ink);
}

.page main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 0 64px;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 24px 32px 0;
  font-size: 12px;
  color: var(--muted);
}

.crumbs a {
  text-decoration: none;
}

.page-head {
  display: grid;
  gap: 16px;
  padding: 40px 32px 32px;
}

.page-head h1 {
  font-size: clamp(32px, 6vw, 56px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.03em;
  word-break: keep-all;
}

.lead {
  max-width: 720px;
  font-size: 17px;
  line-height: 1.8;
  color: rgba(242, 242, 242, 0.85);
  word-break: keep-all;
}

/* 작업 상세 */
.work .gallery {
  display: grid;
  gap: 16px;
  padding: 0 32px;
}

.work .gallery img {
  width: 100%;
  height: auto;
}

.work .viewer {
  margin: 0 32px;
}

.work .stage {
  flex: none;
  aspect-ratio: 1918 / 1310;
  max-height: 72vh;
  margin: 0 auto;
  width: 100%;
}

.work .meta {
  margin: 32px 32px 0;
}

.work .work-nav {
  margin: 32px 32px 0;
}

.work .work-nav a {
  display: grid;
  gap: 4px;
  padding: 14px 0 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
}

.work .work-nav a:last-child {
  text-align: right;
}

.work .work-nav a:hover b {
  text-decoration: underline;
}

.page-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 40px 32px 0;
}

.page .btn {
  display: inline-block;
  text-decoration: none;
}

.page .btn:not(.ghost) {
  color: var(--paper);
}

/* 작업 목록 — 도감 타일을 링크로 */
a.tile {
  text-decoration: none;
}

/* img 의 width·height 속성이 정사각 비율을 덮어쓰지 않게 한다. */
a.tile img {
  height: auto;
}

/* 회사 소개 */
.section {
  padding: 32px;
  border-top: 1px solid var(--line);
}

.section h2 {
  margin-bottom: 24px;
  font-size: 20px;
  font-weight: 900;
}

.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.services h3,
.faq h3 {
  margin: 8px 0 12px;
  font-size: 17px;
  font-weight: 800;
}

.services p:not(.eyebrow),
.faq p {
  font-size: 15px;
  line-height: 1.8;
  color: rgba(242, 242, 242, 0.82);
  word-break: keep-all;
}

.faq {
  display: grid;
  gap: 28px;
  max-width: 760px;
}

.faq h3 {
  margin-top: 0;
}

.site-footer {
  padding: 32px 32px max(32px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}

.site-footer dl {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.site-footer dt {
  font-weight: 700;
  color: var(--ink);
}

.site-footer dd {
  margin: 4px 0 0;
}

@media (max-width: 860px) {
  .site-header,
  .crumbs,
  .page-head,
  .section,
  .page-cta,
  .site-footer {
    padding-left: 20px;
    padding-right: 20px;
  }
  .site-header nav {
    gap: 14px;
  }
  .site-header .site-fly {
    display: none;
  }
  .work .gallery,
  .work .viewer {
    padding: 0;
    margin: 0;
  }
  .work .meta,
  .work .work-nav {
    margin-left: 20px;
    margin-right: 20px;
  }
  .services {
    grid-template-columns: 1fr;
  }
}
