*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg:      #000000;
  --surface: #111111;
  --primary: #00FFC3;
  --accent:  #FF5C00;
  --white:   #FFFFFF;
  --sub:     #888888;
  --border:  rgba(255,255,255,0.08);
  --fh: 'Inter', sans-serif;
  --fb: 'Pretendard Variable', 'Pretendard', -apple-system, sans-serif;
  --max: 1280px;
  --px:  80px;
  --e:   cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--white); font-family: var(--fb); line-height: 1.6; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── SCROLL REVEAL ── */
.rv { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--e), transform .7s var(--e); }
.rv.on { opacity: 1; transform: translateY(0); }
.rv-d1 { transition-delay: .1s; }
.rv-d2 { transition-delay: .2s; }
.rv-d3 { transition-delay: .3s; }

/* ── HEADER ── */
#hd {
  position: fixed; inset: 0 0 auto; z-index: 1000;
  height: 68px; padding: 0 var(--px);
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.hd-back {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--fb); font-size: 13px; font-weight: 600;
  color: var(--sub); transition: color .2s var(--e);
}
.hd-back:hover { color: var(--white); }
.hd-back::before { content: '←'; font-size: 16px; }

.logo { font-family: var(--fh); font-size: 16px; font-weight: 800; letter-spacing: .07em; color: var(--white); }
.logo b { color: var(--primary); }

.hd-cta {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: #fff;
  background: #2bb89a; border-radius: 100px; padding: 9px 20px;
  transition: opacity .2s;
}
.hd-cta:hover { opacity: .85; }

/* ── HERO ── */
.hero {
  padding: calc(68px + 60px) var(--px) 60px;
  max-width: var(--max); margin: 0 auto;
}
.hero-eyebrow {
  font-family: var(--fb); font-size: 11px; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase; color: var(--primary);
  display: flex; align-items: center; gap: 10px; margin-bottom: 20px;
}
.hero-eyebrow::before { content: ''; width: 22px; height: 1px; background: var(--primary); }
.hero-title {
  font-family: var(--fh); font-size: clamp(52px, 8vw, 112px);
  font-weight: 900; line-height: .95; letter-spacing: -.04em;
  color: var(--white); margin-bottom: 24px;
}
.hero-desc { font-size: 15px; color: var(--sub); max-width: 560px; line-height: 1.75; }

/* ── DIVIDER ── */
.divider { border: none; border-top: 1px solid var(--border); margin: 0 var(--px); }

/* ── PORTFOLIO GRID ── */
.grid-wrap { max-width: var(--max); margin: 0 auto; padding: 60px var(--px) 120px; }

.grid-label {
  font-size: 11px; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--sub); margin-bottom: 32px;
}

/* Masonry-style 2-col grid */
.pg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.pg.wide { grid-template-columns: 1fr; }

/* Individual portfolio card */
.pc {
  background: var(--surface);
  border-radius: 16px; overflow: hidden;
  border: 1px solid var(--border);
  transition: transform .3s var(--e), border-color .3s var(--e);
  cursor: default;
}
.pc:hover { transform: translateY(-4px); border-color: rgba(255,255,255,0.16); }

.pc-img {
  width: 100%; aspect-ratio: 16/9;
  object-fit: cover; display: block;
  background: #1a1a1a;
}
.pc-img.tall { aspect-ratio: 4/3; }
.pc-img.short { aspect-ratio: 21/9; }

/* placeholder when no image */
.pc-placeholder {
  width: 100%; aspect-ratio: 16/9;
  background: linear-gradient(135deg, #1a1a1a 0%, #222 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 48px;
}

.pc-body { padding: 20px 24px 24px; }
.pc-tag {
  font-size: 10px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 6px;
}
.pc-title { font-family: var(--fh); font-size: 18px; font-weight: 700; line-height: 1.3; margin-bottom: 8px; }
.pc-desc { font-size: 13px; color: var(--sub); line-height: 1.65; }

/* ── STATS STRIP ── */
.stats {
  display: flex; gap: 0;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  margin: 0 var(--px);
}
.stat {
  flex: 1; padding: 32px 40px;
  border-right: 1px solid var(--border);
}
.stat:last-child { border-right: none; }
.stat-num {
  font-family: var(--fh); font-size: clamp(32px, 4vw, 52px);
  font-weight: 900; color: var(--primary); letter-spacing: -.03em; line-height: 1;
  margin-bottom: 6px;
}
.stat-label { font-size: 13px; color: var(--sub); }

/* ── CTA ── */
.cta-wrap {
  text-align: center; padding: 80px var(--px) 100px;
  max-width: var(--max); margin: 0 auto;
}
.cta-title {
  font-family: var(--fh); font-size: clamp(28px, 4vw, 48px);
  font-weight: 900; margin-bottom: 12px;
}
.cta-sub { font-size: 14px; color: var(--sub); margin-bottom: 32px; }
.cta-btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--fb); font-size: 15px; font-weight: 700;
  color: #000; background: var(--primary);
  border-radius: 100px; padding: 16px 36px;
  transition: opacity .2s;
}
.cta-btn:hover { opacity: .85; }

/* ── MOBILE ── */
@media (max-width: 767px) {
  :root { --px: 20px; }

  /* Header */
  #hd { height: 56px; padding: 0 16px; gap: 0; }
  .hd-back { font-size: 0; }
  .hd-back::before { font-size: 18px; }
  .logo { font-size: 15px; }
  .hd-cta { font-size: 12px; padding: 8px 14px; }

  /* Hero */
  .hero { padding: calc(56px + 40px) var(--px) 40px; }
  .hero-title { font-size: clamp(48px, 13vw, 72px); }
  .hero-desc { font-size: 14px; }

  /* Divider */
  .divider { margin: 0 var(--px); }

  /* Stats — 2×2 grid */
  .stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin: 0 var(--px);
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
  }
  .stat {
    padding: 24px 20px;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }
  .stat:nth-child(2n) { border-right: none; }
  .stat:nth-child(3), .stat:nth-child(4) { border-bottom: none; }
  .stat-num { font-size: clamp(24px, 7vw, 36px); }
  .stat-label { font-size: 12px; }

  /* Portfolio grid — 1 col */
  .grid-wrap { padding: 40px var(--px) 80px; }
  .pg { grid-template-columns: 1fr; gap: 12px; }

  /* CTA */
  .cta-wrap { padding: 60px var(--px) 80px; }
  .cta-btn { font-size: 14px; padding: 14px 28px; }
}
