/* ============================================================
   게임 기획자 정용우 포트폴리오 — 원본 PDF 디자인 기반
   ============================================================ */
:root {
  --dark: #1d1d21;
  --dark-2: #2a2a2f;
  --bg: #e9e9ec;
  --bg-soft: #f2f2f5;
  --card: #ffffff;
  --card-gray: #ececef;
  --text: #17171a;
  --text-sub: #4c4c52;
  --line: #c9c9ce;
  --line-dark: #55555c;
  --radius: 18px;
  --grad-purple: linear-gradient(100deg, #7c3aed 0%, #a855f7 55%, #c026d3 100%);
  --grad-green: linear-gradient(100deg, #16a34a 0%, #0ea5e9 60%, #4f46e5 100%);
  --grad-pink: linear-gradient(100deg, #db2777 0%, #ef4444 100%);
  --shadow: 0 10px 30px rgba(20, 20, 30, .08);
  --shadow-lift: 0 18px 44px rgba(20, 20, 30, .16);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  word-break: keep-all;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.nowrap { white-space: nowrap; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.on { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Nav ---------- */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(29, 29, 33, .92);
  backdrop-filter: blur(10px);
  color: #fff;
  transition: box-shadow .3s;
}
#nav.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,.35); }
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.nav-logo { font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.nav-logo-sub { font-size: 12px; font-weight: 500; color: #b9b9c2; margin-left: 8px; }
.nav-menu { display: flex; gap: 6px; }
.nav-menu a {
  display: block; padding: 8px 14px; border-radius: 999px;
  font-size: 15px; font-weight: 600; color: #d6d6dd;
  transition: background .25s, color .25s;
}
.nav-menu a:hover { color: #fff; background: rgba(255,255,255,.1); }
.nav-menu a.active { color: #fff; background: rgba(255,255,255,.16); }
.nav-menu a.nav-contact { background: #fff; color: var(--dark); }
.nav-menu a.nav-contact:hover { background: #e2e2e8; }
#nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 10px; }
#nav-toggle span { display: block; width: 22px; height: 2px; background: #fff; margin: 5px 0; border-radius: 2px; transition: .3s; }

/* ---------- Hero (p.1) ---------- */
#hero {
  display: grid; grid-template-columns: minmax(320px, 42fr) 58fr;
  min-height: 100vh; padding-top: 60px;
}
.hero-photo { position: relative; background: #dcdcdf; overflow: hidden; }
.hero-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 30%;
  filter: grayscale(1);
}
.hero-body {
  background: var(--bg);
  padding: clamp(40px, 7vh, 90px) clamp(28px, 5vw, 80px);
  display: flex; flex-direction: column; justify-content: center;
}
.hero-title h1 {
  font-size: clamp(30px, 3.6vw, 52px);
  font-weight: 900; letter-spacing: -.03em; line-height: 1.25;
}
.hero-sub {
  font-size: clamp(16px, 1.6vw, 23px);
  color: var(--text-sub); font-weight: 500; margin-top: 6px;
}
.hero-rule { height: 5px; background: var(--dark-2); margin-top: 22px; border-radius: 3px; }

.hero-info { margin-top: clamp(24px, 4vh, 48px); }
.info-row {
  display: grid; grid-template-columns: 110px 1fr;
  gap: 16px; padding: 16px 0;
  border-bottom: 1px solid var(--line-dark);
  align-items: start;
}
.info-row:last-child { border-bottom: 0; }
.info-row dt { font-size: 17px; font-weight: 800; padding-top: 1px; }
.info-row dd { text-align: right; font-size: 15px; color: var(--text); }
.info-row dd strong { font-size: 16px; font-weight: 800; display: block; }
.info-row dd strong.mt { margin-top: 12px; }
.info-row dd ul li { color: var(--text-sub); font-size: 13.5px; line-height: 1.7; }
.info-row dd .note { display: block; font-size: 12.5px; color: var(--text-sub); }
.contact-link { font-weight: 600; border-bottom: 1px solid transparent; transition: border-color .2s; }
.contact-link:hover { border-color: var(--text); }

/* ---------- Section bar ---------- */
.section-bar { background: var(--dark); color: #fff; padding: 34px 0; position: relative; overflow: hidden; }
/* 배경 워터마크 영문 */
.section-bar::before {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  font-size: clamp(40px, 9.5vw, 150px); font-weight: 900; letter-spacing: .16em;
  line-height: 1; color: rgba(255,255,255,.07);
  white-space: nowrap; pointer-events: none; user-select: none;
}
#whoami   .section-bar::before { content: "ABOUT"; }
#career   .section-bar::before { content: "CAREER"; }
#activity .section-bar::before { content: "ACTIVITY"; }
#awards   .section-bar::before { content: "AWARDS"; }

.section-bar h2 {
  position: relative; z-index: 1;
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  font-size: clamp(26px, 2.8vw, 40px); font-weight: 900; letter-spacing: -.01em;
  text-shadow: 3px 3px 0 rgba(255,255,255,.14);
  display: flex; align-items: center; justify-content: center;
  gap: clamp(16px, 2.5vw, 34px);
}
/* 제목 좌우 페이드 라인 (아웃트로 ◆ 모티프와 동일한 결) */
.section-bar h2::before,
.section-bar h2::after {
  content: ""; flex: 1 1 0; min-width: 0; max-width: 200px;
  height: 3px; border-radius: 2px;
}
.section-bar h2::before { background: linear-gradient(90deg, transparent, rgba(255,255,255,.5)); }
.section-bar h2::after  { background: linear-gradient(270deg, transparent, rgba(255,255,255,.5)); }
.section-body { padding: clamp(40px, 6vh, 72px) 24px; }

/* ---------- WHO AM I (p.2) ---------- */
.whoami-row {
  display: grid; grid-template-columns: 300px 1fr;
  gap: clamp(20px, 4vw, 56px); align-items: center;
  padding: clamp(28px, 4vh, 44px) 0;
}
.pill {
  background: var(--dark); color: #fff;
  border-radius: 26px; padding: 20px 10px;
  font-size: clamp(20px, 2vw, 29px); font-weight: 800; text-align: center;
  box-shadow: var(--shadow);
  transition: transform .3s, box-shadow .3s;
}
.whoami-row:hover .pill { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.whoami-text h3 { font-size: clamp(20px, 2.2vw, 30px); font-weight: 900; letter-spacing: -.02em; margin-bottom: 10px; }
.whoami-text p { font-size: clamp(14px, 1.35vw, 17px); color: var(--text-sub); }
.whoami-text b { color: var(--text); }
hr.thin { border: 0; border-top: 1px solid var(--line); }

/* ---------- Career (p.3 / p.4) ---------- */
.career-split { display: grid; grid-template-columns: 38fr 62fr; }
.career-intro { color: #fff; display: flex; align-items: center; }
.career-intro-inner { padding: clamp(48px, 8vh, 100px) clamp(28px, 4vw, 64px); width: 100%; }
.career-intro p { font-size: clamp(14px, 1.3vw, 16.5px); color: #d8d8de; margin-top: 20px; }
.career-intro p b { color: #fff; }
.career-period { font-weight: 700; color: #fff !important; }

.bepex-panel {
  background:
    radial-gradient(ellipse 90% 55% at 25% 68%, rgba(56, 189, 248, .28), transparent 60%),
    radial-gradient(ellipse 70% 40% at 75% 45%, rgba(14, 165, 233, .14), transparent 65%),
    #050508;
}
.bepex-logo { width: clamp(170px, 19.5vw, 260px); height: auto; }

.dalcom-panel {
  background: linear-gradient(160deg, #2e1065 0%, #4c1d95 55%, #3b0764 100%);
}
.dalcom-logo {
  width: clamp(200px, 23vw, 285px);
  aspect-ratio: 478 / 69;      /* 원본 위아래 투명 여백을 잘라낸 로고 실제 비율 */
  object-fit: cover;
  filter: brightness(0) invert(1);   /* 먹색 원본을 보라 패널용 흰색으로 */
}
.dalcom-shots { margin-top: 28px; border-radius: 10px; box-shadow: 0 12px 30px rgba(0,0,0,.4); }
.ss-icons { margin-top: 18px; width: 78%; }

.career-content { background: var(--bg-soft); padding: clamp(36px, 5vh, 60px) clamp(24px, 3.5vw, 56px); }

.game-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(20px, 2.5vw, 36px); }
.game-grid > *, .hyper-card > *, .career-split > *, .awards-split > * { min-width: 0; }
.game-card {
  background: var(--card-gray); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
  transition: transform .3s, box-shadow .3s;
}
.game-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.game-shots { border-radius: 12px; width: 100%; cursor: zoom-in; }
.game-title { display: flex; align-items: center; gap: 12px; margin: 18px 0 14px; }
.game-icon { width: 52px; height: 52px; border-radius: 13px; }
.game-pill {
  background: #000; color: #fff; border-radius: 999px;
  padding: 8px 22px; font-size: clamp(15px, 1.4vw, 19px); font-weight: 800;
}
.game-desc { font-size: 14.5px; color: var(--text-sub); margin-bottom: 14px; }
.game-list { background: #e0e0e4; border-radius: 12px; padding: 16px 20px; }
.game-list li { font-size: 13.8px; color: var(--text-sub); line-height: 1.85; position: relative; padding-left: 14px; }
.game-list li::before { content: "–"; position: absolute; left: 0; color: #9a9aa2; }

.hyper-card {
  margin-top: clamp(20px, 2.5vw, 36px);
  background: var(--card-gray); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
  display: grid; grid-template-columns: 280px 1fr; gap: 28px; align-items: center;
  transition: transform .3s, box-shadow .3s;
}
.hyper-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.hyper-shots { border-radius: 12px; cursor: zoom-in; }
.hyper-titles { display: flex; flex-wrap: wrap; gap: 14px 26px; margin-bottom: 18px; }
.hyper-item { display: flex; align-items: center; gap: 10px; }
.hyper-item img { width: 46px; height: 46px; border-radius: 12px; }

.dalcom-content { display: flex; flex-direction: column; gap: clamp(20px, 3vh, 30px); justify-content: center; }
.role-card {
  background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
  transition: transform .3s, box-shadow .3s;
}
.role-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }
.role-head { color: #fff; padding: 16px 26px; border-radius: var(--radius); margin: 10px; }
.role-head h3 { font-size: clamp(17px, 1.7vw, 22px); font-weight: 800; }
.role-head span { font-size: 14px; opacity: .92; }
.grad-purple { background: var(--grad-purple); }
.grad-green { background: var(--grad-green); }
.grad-pink { background: var(--grad-pink); }
.role-list { padding: 8px 30px 22px; }
.role-list li { font-size: 14.5px; color: var(--text-sub); line-height: 1.9; position: relative; padding-left: 16px; }
.role-list li::before { content: "•"; position: absolute; left: 0; color: #9a9aa2; }
.role-list b { color: var(--text); }

/* ---------- Activity (p.5) ---------- */
#activity { background: linear-gradient(180deg, var(--bg) 0%, #e4e4f0 100%); }
.photo-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; margin-bottom: clamp(36px, 5vh, 56px); }
.photo { position: relative; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; cursor: zoom-in; transition: transform .45s; }
.photo:hover img { transform: scale(1.05); }
.photo figcaption { position: absolute; right: 12px; bottom: 12px; }
.photo-pill {
  background: #000; color: #fff; border: 2px solid #fff; border-radius: 999px;
  padding: 6px 16px; font-size: 14px; font-weight: 800;
}
.activity-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 28px; }
.activity-card {
  background: var(--card); border-radius: 14px; overflow: hidden;
  box-shadow: var(--shadow); transition: transform .3s, box-shadow .3s;
}
.activity-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }
.activity-card h3 {
  background: var(--dark); color: #fff;
  font-size: clamp(15.5px, 1.5vw, 19px); font-weight: 800;
  padding: 13px 22px;
}
.activity-card ul { padding: 14px 24px 18px; }
.activity-card li { font-size: 14.5px; color: var(--text-sub); line-height: 1.9; position: relative; padding-left: 15px; }
.activity-card li::before { content: "•"; position: absolute; left: 0; color: #9a9aa2; }

/* ---------- Awards (p.6) ---------- */
#awards .section-body { background: #fff; }
#awards { background: #fff; }
.awards-split { display: grid; grid-template-columns: 60fr 40fr; gap: clamp(28px, 4vw, 64px); align-items: start; }
.award { margin-bottom: clamp(22px, 3.4vh, 34px); }
.award h3 {
  font-size: clamp(16.5px, 1.7vw, 21px); font-weight: 900; letter-spacing: -.015em;
  padding-bottom: 10px; border-bottom: 3px solid var(--dark); margin-bottom: 10px;
}
.award ul li { font-size: 14.5px; color: var(--text-sub); line-height: 1.8; position: relative; padding-left: 15px; }
.award ul li::before { content: "•"; position: absolute; left: 0; color: #9a9aa2; }
.awards-photos { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 16px; }
.awards-photos img { border-radius: 12px; box-shadow: var(--shadow); cursor: zoom-in; transition: transform .3s; }
.awards-photos img:hover { transform: scale(1.02); }
.awards-photos-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ---------- Outro / Contact (p.7) ---------- */
#contact { background: var(--bg); }
.outro { padding: clamp(90px, 18vh, 180px) 24px; }
.outro-title { display: flex; align-items: center; justify-content: center; gap: 22px; text-align: center; }
.outro-line { flex: 0 1 220px; height: 3px; background: var(--line-dark); border-radius: 2px; }
.outro-diamond { color: var(--dark); font-size: 20px; }
.outro-title h2 { font-size: clamp(26px, 3.4vw, 46px); font-weight: 900; letter-spacing: -.02em; }
.outro-title p { font-size: clamp(15px, 1.6vw, 21px); color: var(--text-sub); margin-top: 6px; }

.site-footer { background: #dfdfe3; padding: 40px 24px 48px; text-align: center; }
.footer-title { font-size: 17px; font-weight: 800; }
.footer-contact {
  margin: 14px auto 0; padding-top: 14px; max-width: 560px;
  border-top: 1px solid var(--line-dark);
  display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 28px;
  font-size: 15px;
}
.footer-label { font-weight: 800; }
.footer-contact a { color: var(--text-sub); transition: color .2s; }
.footer-contact a:hover { color: var(--text); }

/* ---------- To top ---------- */
#to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--dark); color: #fff; border: 0; font-size: 18px;
  cursor: pointer; opacity: 0; pointer-events: none; transform: translateY(10px);
  transition: opacity .3s, transform .3s, background .2s;
  box-shadow: 0 8px 22px rgba(0,0,0,.25);
}
#to-top.show { opacity: 1; pointer-events: auto; transform: none; }
#to-top:hover { background: #3a3a41; }

/* ---------- Lightbox ---------- */
#lightbox[hidden] { display: none; }
#lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(10, 10, 14, .92);
  display: flex; align-items: center; justify-content: center;
  padding: 4vmin; cursor: zoom-out;
}
#lightbox img { max-width: 92vw; max-height: 90vh; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
#lightbox-close {
  position: absolute; top: 18px; right: 26px; color: #fff;
  font-size: 26px; cursor: pointer; opacity: .8;
}
#lightbox-close:hover { opacity: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .career-split { grid-template-columns: 1fr; }
  .career-intro-inner { padding: 48px 32px; }
  .ss-icons { width: 60%; min-width: 300px; }
  .awards-split { grid-template-columns: 1fr; }
  .awards-photos { position: static; }
}
@media (max-width: 860px) {
  #hero { grid-template-columns: 1fr; }
  .hero-photo { max-height: 56vh; }
  .hero-photo img { object-position: center 22%; }
  .info-row dd { text-align: left; }
  .info-row { grid-template-columns: 92px 1fr; }
  .desktop-br { display: none; }
  .game-grid { grid-template-columns: minmax(0,1fr); }
  .hyper-card { grid-template-columns: 1fr; }
  .hyper-shots { max-width: min(100%, 340px); margin: 0 auto; }
  .photo-grid { grid-template-columns: 1fr; }
  .photo img { aspect-ratio: 16 / 10; }
  .activity-grid { grid-template-columns: 1fr; }
  .whoami-row { grid-template-columns: 1fr; gap: 16px; }
  .pill { max-width: 300px; padding: 14px 10px; }

  #nav-toggle { display: block; }
  .nav-menu {
    position: absolute; top: 60px; left: 0; right: 0;
    background: rgba(29, 29, 33, .97); flex-direction: column; gap: 0;
    padding: 10px 18px 18px;
    display: none;
  }
  .nav-menu.open { display: flex; }
  .nav-menu a { padding: 13px 10px; border-radius: 10px; }
  .nav-menu a.nav-contact { text-align: center; margin-top: 8px; }
}
