/* ---------- 색상 (여기 값만 바꾸면 전체 톤이 바뀝니다) ---------- */
:root {
  --bg: #ffffff;          /* 배경 */
  --fg: #111111;          /* 기본 글자 */
  --text: #3d3d3d;        /* 본문 글자 */
  --muted: #6b6b6b;       /* 보조 글자 */
  --line: #e4e4e4;        /* 구분선 */
  --border: #d4d4d4;      /* 버튼 테두리 */
  --tile: #f2f2f2;        /* 썸네일 빈 칸 */
  --overlay: rgba(255, 255, 255, .97); /* 영상 팝업 배경 */
  --accent: #2b4bff;      /* 강조색 — data.js 의 accent 값으로 덮어씀 */
  --on-accent: #ffffff;   /* 강조색 위 글자/아이콘 */
  --display: 'Space Grotesk', 'Noto Sans KR', sans-serif;
  --body: Inter, 'Noto Sans KR', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--body); -webkit-font-smoothing: antialiased; }
a { color: var(--fg); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent); }
h1, h2, p { margin: 0; }

.wrap { max-width: 1440px; margin: 0 auto; padding: 0 clamp(16px, 5vw, 80px); }

/* header */
.site-header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding: 32px 0; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -0.01em; }
.logo-icon { width: 28px; height: 28px; object-fit: contain; display: block; } /* 로고 아이콘 크기 */
.site-header nav { display: flex; gap: 28px; font-size: 15px; }

/* hero */
.hero { padding: 96px 0 112px; display: flex; flex-direction: column; gap: 32px; }
.eyebrow { font-size: 14px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.hero h1 { font-family: var(--display); font-weight: 700; font-size: clamp(48px, 8vw, 120px); line-height: .95; letter-spacing: -0.035em; max-width: 1100px; }
.intro { font-size: 18px; line-height: 1.6; color: var(--muted); max-width: 560px; }

/* work */
.work { display: flex; flex-direction: column; gap: 40px; padding-bottom: 140px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; border-top: 1px solid var(--line); padding-top: 28px; }
h2 { font-family: var(--display); font-weight: 500; font-size: 32px; letter-spacing: -0.02em; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; padding: 0 18px; border-radius: 999px; font: inherit; font-size: 14px; border: 1px solid var(--border); background: transparent; color: var(--fg); cursor: pointer; transition: all .2s; }
.chip:hover { border-color: var(--fg); }
.chip.on { background: var(--fg); border-color: var(--fg); color: var(--bg); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 56px 32px; }
.thumb { all: unset; cursor: pointer; display: flex; flex-direction: column; gap: 14px; }
.thumb:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
.frame { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 6px; background: var(--tile); }
.frame img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.thumb:hover .frame img, .thumb:focus-visible .frame img { transform: scale(1.04); }
.frame .noimg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--display); color: var(--muted); letter-spacing: .1em; font-size: 13px; }
.play { position: absolute; inset: 0; margin: auto; width: 76px; height: 76px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: flex; align-items: center; justify-content: center; opacity: 0; transform: scale(.85); transition: opacity .3s, transform .3s; box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.thumb:hover .play, .thumb:focus-visible .play { opacity: 1; transform: scale(1); }
.caption { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.caption strong { font-family: var(--display); font-size: 20px; font-weight: 500; letter-spacing: -0.01em; }
.caption span { font-size: 13px; color: var(--muted); white-space: nowrap; }
.thumb { opacity: 0; transform: translateY(24px); animation: rise .7s cubic-bezier(.2,.7,.2,1) forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }

.more { align-self: center; min-height: 48px; padding: 0 32px; border-radius: 999px; border: 1px solid var(--border); background: transparent; color: var(--fg); font: inherit; cursor: pointer; }
.more:hover { border-color: var(--fg); }

/* about */
.about { display: flex; flex-wrap: wrap; gap: 48px; border-top: 1px solid var(--line); padding: 56px 0 120px; }
.about h2 { flex: 1 1 280px; }
.about > div { flex: 2 1 480px; display: flex; flex-direction: column; gap: 20px; font-size: 18px; line-height: 1.7; color: var(--text); }
.muted { color: var(--muted); }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 72px 0 56px; display: flex; flex-direction: column; gap: 48px; }
.big-cta { font-family: var(--display); font-weight: 700; font-size: clamp(36px, 6vw, 88px); letter-spacing: -0.03em; line-height: 1; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 14px; color: var(--muted); }
.links { display: flex; flex-wrap: wrap; gap: 24px; }

/* player */
dialog { border: 0; padding: 24px; margin: 0; width: 100vw; height: 100vh; max-width: none; max-height: none; background: var(--overlay); color: var(--fg); display: none; align-items: center; justify-content: center; }
dialog[open] { display: flex; animation: fade .3s ease; }
dialog::backdrop { background: transparent; }
@keyframes fade { from { opacity: 0; } }
.player-inner { width: 100%; max-width: 1120px; display: flex; flex-direction: column; gap: 20px; }
.video { position: relative; aspect-ratio: 16 / 9; background: #000; box-shadow: 0 24px 60px rgba(0,0,0,.15); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-meta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; }
.player-meta strong { display: block; font-family: var(--display); font-size: 28px; font-weight: 500; letter-spacing: -0.02em; }
.player-meta span { font-size: 14px; color: var(--muted); }
.close { position: absolute; top: 20px; right: 20px; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--border); background: var(--bg); color: var(--fg); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.close:hover { border-color: var(--fg); }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .thumb { opacity: 1; transform: none; }
}
