/* ==========================================================================
   안태호 · Game Designer Portfolio
   ========================================================================== */

:root {
  --bg:        #0d0f13;
  --bg-alt:    #12151b;
  --surface:   #171b23;
  --surface-2: #1d222c;
  --line:      #262c38;
  --line-soft: #1e232d;

  --text:      #e9ecf1;
  --text-dim:  #9aa3b2;
  --text-mute: #6b7383;

  --accent:      #f0b23c;
  --accent-soft: rgba(240, 178, 60, 0.14);
  --accent-line: rgba(240, 178, 60, 0.35);

  --nav-h: 68px;
  --maxw: 1140px;
  --radius: 14px;

  --serif: 'Playfair Display', 'Noto Serif KR', Georgia, serif;
  --sans: 'Pretendard', 'Noto Sans KR', -apple-system, BlinkMacSystemFont,
          'Apple SD Gothic Neo', 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { margin: 0; line-height: 1.3; letter-spacing: -0.02em; }

::selection { background: var(--accent); color: #10131a; }

/* --------------------------------------------------------- layout helpers */

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

.section { padding: 110px 0; }
.section--alt { background: var(--bg-alt); }
.section--tight { padding: 76px 0; }

.section-head { margin-bottom: 52px; }
.section-head--center { text-align: center; }

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(28px, 4.2vw, 42px);
  font-weight: 700;
}

.section-desc {
  margin: 14px 0 0;
  color: var(--text-dim);
  max-width: 62ch;
}
.section-head--center .section-desc { margin-inline: auto; }

/* ------------------------------------------------------------------- nav */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  transition: background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s;
  border-bottom: 1px solid transparent;
}
.nav.is-solid {
  background: rgba(13, 15, 19, 0.88);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--line-soft);
}

.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  position: relative;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-dim);
  padding: 6px 0;
  transition: color 0.2s ease;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav-links a:hover,
.nav-links a.is-active { color: var(--text); }
.nav-links a:hover::after,
.nav-links a.is-active::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  display: block;
  width: 18px; height: 1.5px;
  background: currentColor;
  position: relative;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 18px; height: 1.5px;
  background: currentColor;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top:  6px; }

/* ------------------------------------------------------------------ hero */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  overflow: hidden;
  padding: calc(var(--nav-h) + 40px) 24px 80px;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background: url('../img/hero.jpg') center 45% / cover no-repeat;
  transform: scale(1.12);
  filter: blur(6px) saturate(0.7) brightness(0.62);
}
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 92% at 50% 46%, rgba(13,15,19,0.58) 0%, rgba(13,15,19,0.92) 60%, var(--bg) 100%),
    linear-gradient(180deg, rgba(13,15,19,0.86) 0%, rgba(13,15,19,0.45) 40%, var(--bg) 100%);
}

.hero__inner { position: relative; z-index: 2; }

.hero__role {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 20px;
}
.hero__name {
  font-family: var(--serif);
  font-size: clamp(52px, 11vw, 104px);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.05;
  margin: 0;
  text-shadow: 0 4px 40px rgba(0,0,0,0.55);
}
.hero__tag {
  margin: 22px auto 0;
  max-width: 46ch;
  color: #cfd5e0;
  font-size: clamp(15px, 2vw, 18px);
  text-shadow: 0 2px 18px rgba(0,0,0,0.6);
}
.hero__meta {
  margin: 30px 0 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 12px;
  list-style: none;
  padding: 0;
}
.hero__meta li {
  font-size: 13px;
  color: #dbe0ea;
  padding: 7px 15px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  background: rgba(13,15,19,0.42);
  backdrop-filter: blur(6px);
}

.hero__scroll {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-mute);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.hero__scroll::after {
  content: '';
  width: 1px; height: 44px;
  background: linear-gradient(var(--accent), transparent);
  animation: scrollPulse 2.2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.25; transform: scaleY(0.6); transform-origin: top; }
  50%      { opacity: 1;    transform: scaleY(1);   transform-origin: top; }
}

/* --------------------------------------------------------- page header */

.pagehead {
  position: relative;
  padding: calc(var(--nav-h) + 96px) 0 76px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
}
.pagehead::before {
  content: '';
  position: absolute;
  inset: -40% 0 auto 0;
  height: 80%;
  background: radial-gradient(50% 60% at 50% 50%, var(--accent-soft), transparent 70%);
  pointer-events: none;
}
.pagehead .wrap { position: relative; }
.pagehead h1 {
  font-family: var(--serif);
  font-size: clamp(34px, 5.6vw, 56px);
}
.pagehead p {
  margin: 16px 0 0;
  color: var(--text-dim);
  max-width: 60ch;
}

/* ------------------------------------------------------------- about */

.about {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 60px;
  align-items: start;
}
.about__photo {
  position: relative;
  border-radius: 50%;
  overflow: hidden;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}
.about__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 22%;
}
.about__lead {
  font-size: clamp(19px, 2.4vw, 23px);
  font-weight: 600;
  line-height: 1.62;
  margin: 0 0 22px;
}
.about__lead em {
  font-style: normal;
  color: var(--accent);
}
.about__body p {
  color: var(--text-dim);
  margin: 0 0 16px;
}
.about__body p:last-child { margin-bottom: 0; }

.about__facts {
  margin: 30px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--line-soft);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 18px 26px;
  list-style: none;
}
.about__facts dt {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 4px;
}
.about__facts dd { margin: 0; font-size: 15px; font-weight: 500; }
.about__facts dd a:hover { color: var(--accent); }

/* -------------------------------------------------------------- stats */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat {
  background: var(--bg);
  padding: 34px 26px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.section--alt .stat { background: var(--bg-alt); }
.stat__num {
  font-family: var(--serif);
  font-size: clamp(32px, 4.4vw, 46px);
  font-weight: 700;
  color: var(--accent);
  line-height: 1.1;
  /* 숫자와 텍스트형 지표의 행 높이를 통일해 4개 카드의 라벨을 같은 선에 맞춘다 */
  min-height: clamp(36px, 4.84vw, 51px);
}
.stat__num small { font-size: 0.5em; font-weight: 600; margin-left: 2px; }
.stat__num--text {
  font-size: clamp(21px, 2.5vw, 28px);
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  justify-content: center;
}
.stat__label {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-dim);
}

/* ------------------------------------------------------------ strengths */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 34px 30px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.card:hover { border-color: var(--line); transform: translateY(-3px); }
.card__icon {
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 20px;
}
.card__icon svg { width: 22px; height: 22px; }
.card h3 { font-size: 18px; margin-bottom: 12px; }
.card p { margin: 0; color: var(--text-dim); font-size: 15px; }

/* ---------------------------------------------------------------- skills */

.skills {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}
.skill {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 26px 28px;
}
.skill__key {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
  border: 1px solid var(--accent-line);
  border-radius: 8px;
  padding: 4px 12px;
  white-space: nowrap;
  flex-shrink: 0;
}
.skill p { margin: 0; font-size: 15px; color: var(--text-dim); }

/* -------------------------------------------------------------- timeline */

.timeline {
  position: relative;
  padding-left: 30px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 5px; top: 8px; bottom: 8px;
  width: 1px;
  background: linear-gradient(var(--accent-line), var(--line));
}
.tl-item { position: relative; padding-bottom: 46px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: '';
  position: absolute;
  left: -30px; top: 9px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
}
.section--alt .tl-item::before { background: var(--bg-alt); }
.tl-item--past::before { border-color: var(--line); }

.tl-period {
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--accent);
  font-weight: 600;
}
.tl-item--past .tl-period { color: var(--text-mute); }
.tl-title {
  font-size: 20px;
  margin: 6px 0 2px;
}
.tl-company {
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 16px;
}
.tl-company b { color: var(--text); font-weight: 600; }

/* 플랫폼 · 장르 태그 — 회사 단위(단일 프로젝트) 또는 역할 단위(복수 프로젝트)에 붙는다 */
.tl-tags,
.tl-role .tl-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: -8px 0 16px;
  padding: 0;
}
/* .tl-role ul / .tl-role li 의 불릿 목록 스타일에 잡아먹히지 않도록 우선순위를 맞춘다 */
.tl-tags li,
.tl-role .tl-tags li {
  position: static;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--text-mute);
  padding: 2px 10px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  white-space: nowrap;
}
.tl-role .tl-tags li::before { content: none; }
.tl-role .tl-tags--role { margin: 0 0 12px; }

/* 플랫폼·장르 태그와 스토어 링크를 한 줄로 묶는다 */
.tl-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  margin: 0 0 12px;
}
.tl-role .tl-meta .tl-tags { margin: 0; }
.tl-role .tl-meta .store-link { margin-top: 0; }

.tl-roles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.tl-role {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 18px 22px;
}
.tl-role__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
  margin-bottom: 8px;
}
.tl-role__name { font-size: 15px; font-weight: 700; }
.tl-role__date { font-size: 12.5px; color: var(--text-mute); }
.tl-role ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 5px;
}
.tl-role li {
  position: relative;
  padding-left: 15px;
  font-size: 14.5px;
  color: var(--text-dim);
}
.tl-role li::before {
  content: '';
  position: absolute;
  left: 2px; top: 11px;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--text-mute);
}

.store-link {
  display: inline-block;
  margin-top: 13px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  opacity: 0.82;
  transition: opacity 0.2s ease;
}
.store-link:hover { opacity: 1; text-decoration: underline; }
.store-link--pd { margin-top: 20px; font-size: 14px; }

/* -------------------------------------------------------------- projects */

.proj-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 26px;
}
.proj {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.proj:hover {
  transform: translateY(-5px);
  border-color: var(--accent-line);
  box-shadow: 0 22px 50px rgba(0,0,0,0.45);
}
.proj__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0a0c10;
}
.proj__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.proj:hover .proj__media img { transform: scale(1.06); }
.proj__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(23,27,35,0.92) 100%);
}
.proj__badge {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 2;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(13,15,19,0.78);
  border: 1px solid rgba(255,255,255,0.16);
  backdrop-filter: blur(6px);
}
.proj__body { padding: 26px 28px 30px; flex: 1; display: flex; flex-direction: column; }
.proj__role {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.proj__title { font-size: 21px; margin: 8px 0 4px; }
.proj__sub { font-size: 13.5px; color: var(--text-mute); margin: 0 0 16px; }
.proj__desc { font-size: 15px; color: var(--text-dim); margin: 0 0 20px; flex: 1; }
.proj__kpis {
  list-style: none;
  margin: 0 0 22px;
  padding: 16px 0 0;
  border-top: 1px solid var(--line-soft);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.proj__kpis strong {
  display: block;
  font-family: var(--serif);
  font-size: 20px;
  color: var(--text);
  line-height: 1.2;
}
.proj__kpis span { font-size: 12px; color: var(--text-mute); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  align-self: flex-start;
}
.link-arrow svg { width: 15px; height: 15px; transition: transform 0.25s ease; }
.proj:hover .link-arrow svg,
.link-arrow:hover svg { transform: translateX(4px); }

/* --------------------------------------------------- project detail page */

.pd {
  padding: 96px 0;
  border-bottom: 1px solid var(--line-soft);
}
.pd:nth-child(even) { background: var(--bg-alt); }
.pd:last-of-type { border-bottom: 0; }

.pd__top {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 52px;
  align-items: center;
}
.pd__art {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0a0c10;
  box-shadow: 0 24px 60px rgba(0,0,0,0.45);
}
.pd__art img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16/9; }
.pd__art--tall img { aspect-ratio: 4/5; object-position: center 30%; }

.pd__title {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 40px);
  margin: 10px 0 8px;
}
.pd__role {
  font-size: 15px;
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 20px;
}
.pd__summary { color: var(--text-dim); margin: 0 0 26px; }

.pd__tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 26px; }
.pd__tags li {
  font-size: 12.5px;
  color: var(--text-dim);
  padding: 5px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.spec {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  margin-top: 8px;
}
.spec th, .spec td {
  padding: 12px 4px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line-soft);
}
.spec th {
  width: 118px;
  font-weight: 600;
  color: var(--text-mute);
  font-size: 13px;
  letter-spacing: 0.04em;
}
.spec td { color: var(--text-dim); }
.spec tr:last-child th, .spec tr:last-child td { border-bottom: 0; }

.pd__kpi-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 46px 0;
}
.pd__kpi {
  background: var(--bg);
  padding: 26px 24px;
}
.pd:nth-child(even) .pd__kpi { background: var(--bg-alt); }
.pd__kpi strong {
  display: block;
  font-family: var(--serif);
  font-size: 30px;
  color: var(--accent);
  line-height: 1.15;
}
.pd__kpi span { font-size: 13px; color: var(--text-dim); }

.work-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin: 0 0 20px;
}
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 18px;
}
.work {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 24px 26px;
}
.pd:nth-child(even) .work { background: var(--surface); }
.work__no {
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.1em;
}
.work h4 { font-size: 16px; margin: 8px 0 10px; line-height: 1.45; }
.work p { margin: 0; font-size: 14.5px; color: var(--text-dim); }

.note {
  margin: 22px 0 0;
  font-size: 12.5px;
  color: var(--text-mute);
}

/* ------------------------------------------------- 작업 상세 이미지 */

.details { margin-top: 54px; }

.detail { margin-bottom: 46px; }
.detail:last-child { margin-bottom: 0; }

.detail__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
  padding-bottom: 14px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line-soft);
}
.detail__no {
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.1em;
}
.detail__title { font-size: 18px; margin: 0; }
.detail__desc {
  margin: 0 0 22px;
  font-size: 15px;
  color: var(--text-dim);
  max-width: 68ch;
}

.shots { display: grid; gap: 16px; }
.shots--wide { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.shots--tall { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.shots--mini { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* 세로로 지나치게 긴 이미지는 높이를 제한해 한 화면에 읽히게 한다 */
.shots--wide .shot img { max-height: 700px; object-fit: contain; }
/* 홍보 이미지들은 원본 비율이 제각각이라 상자를 통일하고 잘리지 않게 맞춘다 */
.shots--mini .shot img { aspect-ratio: 4 / 3; object-fit: contain; }

.shot {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.shot:hover { border-color: var(--accent-line); transform: translateY(-3px); }
.shot img {
  width: 100%;
  height: auto;
  display: block;
  background: #0a0c10;
}
.shot figcaption {
  padding: 11px 15px 13px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-mute);
}
.blurred {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11px;
  color: var(--text-dim);
  white-space: nowrap;
}

@media (max-width: 720px) {
  .details { margin-top: 40px; }
  .detail { margin-bottom: 36px; }
  .shots--tall { grid-template-columns: 1fr 1fr; }
  .shots--mini { grid-template-columns: 1fr 1fr; }
}

/* ----------------------------------------------- 홈: 플레이 이력 요약 */

.play-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}
.play-sum {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 28px 28px 24px;
}
.play-sum__head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding-bottom: 14px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
}
.play-sum__count {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.play-sum__count small { font-size: 0.5em; font-weight: 600; margin-left: 2px; }
.play-sum__name { font-size: 15px; font-weight: 600; }

.play-sum__list { list-style: none; margin: 0; padding: 0; }
.play-sum__list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  font-size: 14.5px;
  color: var(--text-dim);
}
.play-sum__list b {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-mute);
}

.play-more { margin-top: 30px; }

/* ------------------------------------------------------ 플레이 이력 */

.play-platform {
  padding-bottom: 56px;
  margin-bottom: 56px;
  border-bottom: 1px solid var(--line-soft);
}
.play-platform:last-child { padding-bottom: 0; margin-bottom: 0; border-bottom: 0; }

.play-platform__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 16px;
  margin-bottom: 30px;
}
.play-platform__title {
  font-family: var(--serif);
  font-size: clamp(24px, 3.4vw, 32px);
}
.play-platform__meta {
  font-size: 13px;
  color: var(--text-mute);
}

/* 장르별 게임 수가 제각각이라 그리드 대신 다단 흐름으로 — 빈칸 없이 채워진다 */
.play-genres {
  columns: 3 300px;
  column-gap: 20px;
}

.play-genre {
  break-inside: avoid;
  margin-bottom: 20px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 22px 24px 18px;
}
.play-genre__name {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
/* 강점 카드(.card__icon)와 같은 언어를 축소 적용 */
.play-genre__icon {
  flex-shrink: 0;
  width: 26px; height: 26px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
}
.play-genre__icon svg { width: 15px; height: 15px; }

.play-list { list-style: none; margin: 0; padding: 0; }

.play-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line-soft);
}
.play-item:last-child { border-bottom: 0; padding-bottom: 0; }
.play-item__name { font-size: 15px; font-weight: 500; }

/* 플레이 타임 + 과금액을 함께 표기하는 경우 */
.play-metrics {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  flex-shrink: 0;
}
.play-spend {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--text-dim);
  white-space: nowrap;
}

/* 플레이 타임 구간을 색 농도로 구분해 한눈에 비중이 읽히게 */
.play-hours {
  flex-shrink: 0;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
}
/* 플랫폼과 무관하게 동일한 절대 기준: t4 500h+ / t3 100h+ / t2 20h+ / t1 2h+ */
.play-hours--t4 { background: var(--accent); color: #14171d; }
.play-hours--t3 { background: var(--accent-soft); color: var(--accent); border-color: var(--accent-line); }
.play-hours--t2 { color: var(--text-dim); border-color: var(--line); }
.play-hours--t1 { color: var(--text-mute); border-color: var(--line-soft); }

.play-note {
  margin: 22px 0 0;
  font-size: 12.5px;
  color: var(--text-mute);
}

@media (max-width: 720px) {
  .play-platform { padding-bottom: 40px; margin-bottom: 40px; }
  .play-genres { columns: 1; }
}

/* --------------------------------------------------------------- resume */

.res-block { margin-bottom: 66px; }
.res-block:last-child { margin-bottom: 0; }
.res-block > h2 {
  font-family: var(--serif);
  font-size: 26px;
  padding-bottom: 14px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--line);
}
.res-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.res-table th, .res-table td {
  padding: 14px 6px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line-soft);
}
.res-table th {
  width: 140px;
  color: var(--text-mute);
  font-weight: 600;
  font-size: 13.5px;
}
.res-table td { color: var(--text-dim); }
.res-table td b { color: var(--text); font-weight: 600; }

.dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 26px;
  border-radius: 999px;
  background: var(--accent);
  color: #14171d;
  font-weight: 700;
  font-size: 15px;
  transition: filter 0.2s ease, transform 0.2s ease;
}
.dl-btn:hover { filter: brightness(1.08); transform: translateY(-2px); }
.dl-btn svg { width: 17px; height: 17px; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.btn-ghost:hover { border-color: var(--accent-line); color: var(--accent); transform: translateY(-2px); }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* -------------------------------------------------------------- contact */

.contact { text-align: center; }
.contact__title {
  font-family: var(--serif);
  font-size: clamp(32px, 5vw, 50px);
  margin-bottom: 16px;
}
.contact__desc { color: var(--text-dim); max-width: 50ch; margin: 0 auto 40px; }
.contact__eyebrow { margin-bottom: 32px; }
.contact__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.contact__list a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 15px;
  transition: border-color 0.22s ease, color 0.22s ease, transform 0.22s ease;
}
.contact__list a:hover {
  border-color: var(--accent-line);
  color: var(--accent);
  transform: translateY(-2px);
}
.contact__list svg { width: 17px; height: 17px; }

/* --------------------------------------------------------------- footer */

.footer {
  border-top: 1px solid var(--line-soft);
  padding: 34px 0;
  font-size: 13.5px;
  color: var(--text-mute);
}
.footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  justify-content: space-between;
  align-items: center;
}
.footer a:hover { color: var(--accent); }

/* ------------------------------------------------------------- reveal fx */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1),
              transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__scroll::after { animation: none; }
}

/* ---------------------------------------------------------- responsive */

@media (max-width: 900px) {
  .about { grid-template-columns: 1fr; gap: 34px; }
  .about__photo { width: 168px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .pd__top { grid-template-columns: 1fr; gap: 34px; }
  .pd__art--tall img { aspect-ratio: 16/10; }
}

@media (max-width: 720px) {
  .section { padding: 78px 0; }
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(13,15,19,0.97);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line-soft);
    padding: 8px 24px 18px;
    transform: translateY(-14px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
  }
  .nav-links.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a { padding: 14px 0; font-size: 16px; border-bottom: 1px solid var(--line-soft); }
  .nav-links li:last-child a { border-bottom: 0; }
  .nav-links a::after { display: none; }

  .proj__kpis { grid-template-columns: 1fr; gap: 10px; }
  .pagehead { padding: calc(var(--nav-h) + 60px) 0 52px; }
  .pd { padding: 66px 0; }
  .res-table th { width: 104px; font-size: 12.5px; }
  .spec th { width: 92px; }
}

@media (max-width: 460px) {
  .stats { grid-template-columns: 1fr; }
  .stat { padding: 26px 20px; }
  .card, .skill { padding: 26px 22px; }
  .proj__body { padding: 22px 22px 26px; }
}
