/* =========================================================
   Playrah — 공용 스타일

   색을 바꾸려면 아래 두 덩어리만 고치면 됩니다.
   :root                 밝은 화면일 때
   [data-theme="dark"]   어두운 화면일 때

   사이트 전체 폭은 --maxw 값으로 조절합니다.
   ========================================================= */

:root {
  --bg:      #F4EFE3;                /* 바탕색 */
  --fg:      #17261F;                /* 글씨색 */
  --green:   #0C8F4F;                /* 브랜드 초록 */
  --muted:   #6B7A70;                /* 흐린 글씨 */
  --tile:    #2E2B26;                /* 썸네일 로딩 전 배경 */
  --line:    rgba(23, 38, 31, 0.10); /* 구분선 */
  --veil:    rgba(12, 143, 79, 0.88);/* 썸네일 덮개 */
  --veil-fg: #F4EFE3;                /* 덮개 위 글씨 */

  --maxw: 1320px;

  /* 격자에서 썸네일을 얼마나 눌러둘지.
     1 이면 손대지 않은 원래 색. 낮출수록 한 톤으로 묶입니다.
     0.5 정도까지 내려도 되고, 끄고 싶으면 둘 다 1 로 두세요. */
  --tile-sat: 1;
  --tile-dim: 1;
}

[data-theme="dark"] {
  --bg:      #101A15;
  --fg:      #E7E3D7;
  --green:   #16A85C;
  --muted:   #8A968C;
  --tile:    #1B2620;
  --line:    rgba(231, 227, 215, 0.12);
  --veil:    rgba(9, 24, 16, 0.86);
  --veil-fg: #F4EFE3;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Pretendard Variable", Pretendard, -apple-system,
    BlinkMacSystemFont, system-ui, "Apple SD Gothic Neo", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- 헤더 ---------- */

.site-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  padding: 38px 0 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: inherit;
}

.brand svg { flex: none; display: block; color: var(--green); }

.brand-name {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--green);
  line-height: 1.1;
}

.brand-sub {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
}

.head-right {
  display: flex;
  align-items: center;
  gap: 22px;
  padding-bottom: 4px;
}

.site-nav { display: flex; gap: 24px; }

.site-nav a {
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s;
}

.site-nav a:hover { color: var(--green); }

.site-nav a[aria-current="page"] {
  color: var(--green);
  border-bottom-color: var(--green);
}

.theme-btn {
  background: none;
  border: 0;
  padding: 4px;
  cursor: pointer;
  color: var(--muted);
  display: flex;
  align-items: center;
  transition: color 0.2s;
}

.theme-btn:hover { color: var(--green); }
.theme-btn svg { display: block; }
.theme-btn .icon-moon { display: none; }
[data-theme="dark"] .theme-btn .icon-sun { display: none; }
[data-theme="dark"] .theme-btn .icon-moon { display: block; }

/* ---------- 작업물 격자 ---------- */

.grid {
  list-style: none;
  margin: 0 0 80px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.tile { margin: 0; }

/* 썸네일 아래 캡션.
   화면이 좁으면서 마우스도 쓸 수 없는 기기, 즉 휴대폰에서만 나타납니다.
   두 조건을 다 만족해야 하므로 PC에서는 창을 좁혀도 나오지 않습니다.
   아예 끄려면 아래 블록 안의 display 를 none 으로 바꾸세요. */
.tile-cap { display: none; }

@media (max-width: 560px) and (hover: none) {
  .tile-cap { display: block; margin-top: 7px; }

  .tile-cap-title {
    margin: 0;
    font-size: 12px;
    font-weight: 500;
    color: var(--fg);
    line-height: 1.35;
  }

  .tile-cap-client {
    margin: 1px 0 0;
    font-size: 11px;
    color: var(--muted);
    line-height: 1.35;
  }
}

.tile-fill {
  align-self: start;
  aspect-ratio: 16 / 9;
  border: 0.5px solid var(--green);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  opacity: 0.22;
  pointer-events: none;
  animation: none !important;
  transform: none !important;
}

.tile-fill svg { width: 20px; height: auto; }

.tile-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--tile);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 16 / 9;
  cursor: pointer;
}

.tile-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(var(--tile-sat)) brightness(var(--tile-dim));
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
              filter 0.4s ease;
}

.tile-veil {
  position: absolute;
  inset: 0;
  background: var(--veil);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 3px;
  padding: 18px;
  opacity: 0;
  transition: opacity 0.28s ease;
  text-align: left;
}

.tile-cat {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(244, 239, 227, 0.75);
  margin-bottom: 6px;
}

.tile-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--veil-fg);
  line-height: 1.35;
}

.tile-meta {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(244, 239, 227, 0.72);
}

.tile-wave { margin-top: 10px; width: 100%; height: 14px; overflow: visible; }

.tile-wave polyline {
  fill: none;
  stroke: rgba(244, 239, 227, 0.9);
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 260;
  stroke-dashoffset: 260;
}

.tile-btn:hover .tile-veil,
.tile-btn:focus-visible .tile-veil { opacity: 1; }

.tile-btn:hover img,
.tile-btn:focus-visible img {
  transform: scale(1.04);
  filter: saturate(1) brightness(1);
}

.tile-btn:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

/* ---------- 글이 들어가는 페이지 ---------- */

.page { padding: 12px 0 88px; max-width: 680px; }

.page h1 {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 0 0 32px;
}

.page h2 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--green);
  margin: 46px 0 12px;
}

.page p { margin: 0 0 18px; }

.page .lead { font-size: 19px; line-height: 1.75; }

.mailto {
  font-size: 26px;
  font-weight: 600;
  color: var(--green);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.mailto:hover { border-bottom-color: var(--green); }

.placeholder {
  border-left: 2px solid var(--green);
  padding: 3px 0 3px 16px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.page .mailto { display: inline-block; margin-top: 6px; }

/* ---------- 푸터 ---------- */

.site-foot {
  border-top: 1px solid var(--line);
  padding: 24px 0 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.site-foot a { color: var(--muted); text-decoration: none; }
.site-foot a:hover { color: var(--green); }

.leaf-mark {
  position: fixed;
  right: -52px;
  bottom: -64px;
  width: 280px;
  color: var(--green);
  opacity: 0.07;
  pointer-events: none;
  z-index: 0;
}

[data-theme="dark"] .leaf-mark { opacity: 0.1; }

/* ---------- 영상 재생창 ---------- */

.player[hidden] { display: none; }

.player {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(9, 18, 13, 0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px;
}

.player-head {
  width: min(1100px, 100%);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 12px;
}

.player-title { font-size: 15px; font-weight: 600; color: #F4EFE3; margin: 0; }

.player-close {
  background: none;
  border: 0;
  color: rgba(244, 239, 227, 0.75);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 4px;
}

.player-close:hover { color: #F4EFE3; }

.player-frame {
  width: min(1100px, 100%);
  max-height: 62vh;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 4px;
  overflow: hidden;
}

.player-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

.player-meta {
  width: min(1100px, 100%);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding-top: 16px;
  margin-top: 14px;
  border-top: 1px solid rgba(244, 239, 227, 0.14);
}

.player-client { margin: 0; font-size: 12px; color: rgba(244, 239, 227, 0.55); }
.player-scope { margin: 4px 0 0; font-size: 13px; color: #F4EFE3; }

.player-credits:not(:empty) { margin-top: 10px; }
.player-credit {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: rgba(244, 239, 227, 0.62);
}
.player-credit + .player-credit { margin-top: 2px; }

.player-stat { text-align: right; flex: none; }
.player-stat:empty { display: none; }
.player-num {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  color: #16A85C;
  line-height: 1;
}
.player-num-label {
  margin: 5px 0 0;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(244, 239, 227, 0.5);
}

/* ---------- 장르 한 줄 ---------- */

.genres {
  font-size: 12px;
  letter-spacing: 0.09em;
  color: var(--muted);
  margin: 18px 0 0;
  line-height: 1.9;
}

/* ---------- Artists 페이지 ---------- */

.artist-head { margin: 0 0 34px; }

.artist-name {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 0;
}

.artist-role {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  margin: 8px 0 0;
}

.artist-bio { font-size: 17px; line-height: 1.75; margin: 14px 0 0; max-width: 600px; }
.artist-bio + .artist-bio { margin-top: 10px; }


/* ---------- 화면이 좁아질 때 ---------- */

@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  .site-head { padding: 24px 0 22px; flex-wrap: wrap; align-items: center; }
  .brand-name { font-size: 21px; }
  .head-right { gap: 16px; }
  .site-nav { gap: 18px; }
  .grid { gap: 9px; margin-bottom: 52px; }
  .tile-veil { padding: 12px; }
  .tile-title { font-size: 13px; }
  .tile-meta { font-size: 11px; }
  .tile-wave { display: none; }
  .page h1 { font-size: 28px; }
  .page .lead { font-size: 17px; }
  .mailto { font-size: 20px; }
  .leaf-mark { width: 180px; right: -38px; bottom: -44px; }
  .artist-name { font-size: 25px; }
  .artist-bio { font-size: 16px; }
  .player-meta { flex-direction: column; gap: 12px; }
  .player-stat { text-align: left; }
  .player-num { font-size: 22px; }
}

/* 손가락으로 쓰는 화면에서는 덮개 없이 바로 재생창이 열립니다 */
@media (hover: none) {
  .tile-btn:hover .tile-veil { opacity: 0; }
  .tile-btn:hover img { transform: none; }
}

/* ---------- 움직임 ---------- */

@media (prefers-reduced-motion: no-preference) {
  .tile {
    opacity: 0;
    transform: translateY(10px);
    animation: rise 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: calc(var(--i, 0) * 70ms);
  }

  .tile-btn:hover .tile-wave polyline,
  .tile-btn:focus-visible .tile-wave polyline {
    animation: draw 1.1s cubic-bezier(0.33, 1, 0.68, 1) forwards;
  }

  @keyframes rise { to { opacity: 1; transform: none; } }
  @keyframes draw { to { stroke-dashoffset: 0; } }
}

/* ---------- About 페이지의 덩굴 ---------- */

.page-vine { position: relative; }

.vine {
  position: absolute;
  left: 760px;
  top: 4px;
  height: 100%;
  width: auto;
  color: var(--green);
  opacity: 0.5;
  pointer-events: none;
}

.vine path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vine .bloom {
  opacity: 0;
  transform: scale(0.3);
  transform-box: fill-box;
  transform-origin: center;
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.34, 1.4, 0.64, 1);
}

.vine .bloom.is-open { opacity: 1; transform: scale(1); }
.vine .bloom circle { fill: currentColor; stroke: none; }

@media (max-width: 1180px) {
  .vine { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .vine .bloom { opacity: 1; transform: none; transition: none; }
}
