/* 창조회 시안 — 메인(S모루 · 2026-10-12 v8)
   배우님 10-12 「하작가님 사이트를 레퍼로 하라는 건 카테고리 배치 얘기 · 창조 로고 교체 · 세로 기둥으로 올라가는 디자인을 다시」
   = 화면 가득 작품 기둥이 세로로 올라가고(v5/v6) · 가운데 원본 「창조」(도록 표지 PDF 선 그림 · #C83E69)
   카테고리 배치 = 하현주 사이트(hahyunju.pages.dev)처럼: PC 위 왼쪽 · 오른쪽에 두 줄씩 세로로 / 폰 오른쪽 위 「메뉴」 + 아래 가운데 알약
   작품은 자르지 않음(원본 비율) · 움직이는 건 기둥 전체의 위치뿐(transform 하나 · 폰에서도 가볍게)
   (v1 파편 · v2 기둥 + 자주 판 · v3 여러 점 무대 · v4 한 점 · v7 하현주 첫 화면 틀 · 아래 칸은 git 기록에 있음) */
.hm { position: relative; overflow: hidden; background: var(--wall); height: 100vh; height: 100svh; min-height: 520px;
  --cols: 5; --gap: 18px; }
.hm-stage { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(var(--cols), 1fr); column-gap: var(--gap); padding: 0 var(--gap); }
.hm-col { position: relative; min-width: 0; }
.hm-track { will-change: transform; animation: hm-up var(--dur, 60s) linear infinite; animation-delay: var(--delay, 0s); }
@keyframes hm-up { to { transform: translateY(-50%); } }      /* 한 바퀴 분량을 두 번 이어 붙였으니 -50% 에서 처음과 똑같은 그림 → 끊김 없음 */
.hm-col a { display: block; margin-bottom: var(--gap); line-height: 0; }   /* 사이는 gap 대신 아래 여백 — 그래야 반 바퀴 길이가 정확히 맞는다 */
.hm-col img { width: 100%; height: auto; display: block; box-shadow: 0 1px 2px rgba(40, 30, 25, .06), 0 10px 26px rgba(40, 30, 25, .10); }
.hm-col:hover .hm-track { animation-play-state: paused; }   /* 손을 올린 기둥은 멈춤 */
.hm.is-paused .hm-track, .hm.is-off .hm-track { animation-play-state: paused; }   /* 멈춤 · 화면 밖 · 다른 탭 */
/* 위아래 가장자리와 가운데를 한지색으로 번지게 — 판(프레임) 없이 로고가 읽히도록 */
.hm::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(var(--wall), rgba(247, 244, 240, .7) 9%, rgba(247, 244, 240, 0) 17%, rgba(247, 244, 240, 0) 88%, var(--wall)),
              radial-gradient(closest-side at 50% 50%, rgba(247, 244, 240, .94), rgba(247, 244, 240, .72) 50%, rgba(247, 244, 240, 0)) center / min(620px, 140%) min(520px, 70%) no-repeat; }
/* PC 카테고리 뒤 — 위 왼쪽 · 오른쪽 모서리만 한지색으로 번지게(판 없이 · 어두운 작품이 지나가도 글자가 읽히게 · 10-12 우리모루 지적) */
.hm::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(247, 244, 240, .96), rgba(247, 244, 240, .82) 55%, rgba(247, 244, 240, 0)) left -60px top -50px / 420px 260px no-repeat,
              radial-gradient(closest-side, rgba(247, 244, 240, .96), rgba(247, 244, 240, .82) 55%, rgba(247, 244, 240, 0)) right -60px top -50px / 420px 260px no-repeat; }
@media (max-width: 767px) { .hm::after { background: radial-gradient(closest-side, rgba(247, 244, 240, .9), rgba(247, 244, 240, 0)) right -40px top -30px / 220px 150px no-repeat; } }   /* 폰은 오른쪽 위 「메뉴」 뒤만 */
.hm-logo { position: absolute; z-index: 2; left: 50%; top: 50%; transform: translate(-50%, -50%); margin: 0; line-height: 0; pointer-events: none; }
.hm-logo svg { width: clamp(150px, 15vw, 220px); height: auto; display: block; }
.hm-logo .hm-en { display: none; }

/* 카테고리 — 하현주 사이트 배치: PC 위 왼쪽 · 오른쪽에 두 줄씩 세로로(글자만 · 작품 위에서도 읽히게 한지색 번짐) */
.hm-nav { position: absolute; z-index: 3; top: 26px; display: flex; flex-direction: column; }
.hm-nav.l { left: var(--side); } .hm-nav.r { right: var(--side); align-items: flex-end; }
.hm-nav.r a { justify-content: flex-end; }
.hm-nav a { display: flex; align-items: center; min-height: 44px; min-width: 56px; font-size: 17px; font-weight: var(--w-strong); color: var(--ink); text-decoration: none;
  text-shadow: 0 0 10px var(--wall), 0 0 18px var(--wall), 0 0 2px var(--wall); }
.hm-nav a[aria-disabled="true"] { opacity: .55; }
.hm-nav a:hover, .hm-nav a:focus-visible { text-decoration: underline; text-underline-offset: 6px; }
.hm-nav a:focus-visible, .hm-pause.ico:focus-visible, .hm-menu:focus-visible, .hm-pill a:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
/* 멈춤 — PC 오른쪽 아래 동그라미(하현주 사이트의 쪽 표시 자리) · 폰은 메뉴 안 */
.hm-pause.ico { position: absolute; z-index: 3; right: var(--side); bottom: 26px; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(28, 26, 27, .55); background: rgba(247, 244, 240, .85); cursor: pointer; display: grid; place-items: center; }
.hm-pause.ico span { width: 10px; height: 12px; border-left: 3px solid var(--ink); border-right: 3px solid var(--ink); }
.hm-pause.ico[aria-pressed="true"] span { width: 0; height: 0; border: 0; border-left: 11px solid var(--ink); border-top: 7px solid transparent; border-bottom: 7px solid transparent; margin-left: 3px; }
.menu-sheet .hm-pause { min-height: 48px; padding: 0 22px; border: 1px solid var(--ink); border-radius: 999px; background: transparent; color: var(--ink); font: inherit; font-size: 16px; cursor: pointer; }   /* 한지색 메뉴 창(menu.js) 안 */
.menu-sheet .hm-pause:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
/* 폰: 오른쪽 위 「메뉴」 글자 단추 + 아래 가운데 알약(하현주 사이트 배치) */
.hm-menu { display: none; position: fixed; z-index: 30; top: 14px; right: 12px; min-width: 56px; min-height: 48px; padding: 0 8px; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: 16px; font-weight: 600; color: var(--ink); text-shadow: 0 0 10px var(--wall), 0 0 18px var(--wall); }
.hm-pill { display: none; position: fixed; z-index: 25; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); transform: translateX(-50%); gap: 4px; padding: 4px; border-radius: 99px; background: rgba(28, 26, 27, .62); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.hm-pill a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 99px; color: #fff; font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.hm-pill a:first-child { background: #fff; color: var(--ink); }

@media (max-width: 1279px) { .hm { --cols: 4; --gap: 14px; } }
@media (max-width: 767px) {
  .hm { --cols: var(--phone-cols, 2); --gap: 10px; }      /* 폰 기둥 = 2줄(한 점이 손바닥 반 폭 · 그림이 알아보이는 크기) — ?cols=3 으로 견줌 */
  .hm-nav, .hm-pause.ico { display: none; }
  .hm-menu, .hm-pill { display: flex; }
  /* 폰: 로고를 가운데에서 위 가운데로 작게(배우님 10-12 「모바일에서 창조 로고가 너무 튀고 그림이 죽어 보여 · 중앙에 있으면 안 될 것 같아」)
     → 다른 쪽 머리줄 로고와 같은 크기 · 가운데 한지색 덮개는 걷어 그림이 제 색으로 · 위 띠만 한지색으로 번짐 */
  .hm-logo { top: 18px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 4px; line-height: 1; }
  .hm-logo svg { width: 44px; }
  .hm-logo .hm-en { display: block; font-size: 15px; font-weight: var(--w); letter-spacing: .08em; color: var(--ink-2); }
  .hm::before { background: linear-gradient(var(--wall) 0, rgba(247, 244, 240, .9) 11%, rgba(247, 244, 240, 0) 19%, rgba(247, 244, 240, 0) 86%, var(--wall)); }
  .hm::after { display: none; }
  .sian-badge { top: auto !important; bottom: 84px !important; }
}
@media (prefers-reduced-motion: reduce) { .hm-track { animation: none; } .hm-pause { display: none !important; } }
