* { cursor: auto !important; }
:root {
  --bg:    #f5f4f0;
  --black: #111111;
  --mid:   #888880;
  --line:  #ddddda;
  --hover: #eeecea;
  --sans:  'Pretendard', -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--black);
  font-family: var(--sans);
  font-weight: 300;
  overflow-x: hidden;
  opacity: 0;
  animation: body-in .32s ease forwards;
}
@keyframes body-in { to { opacity: 1; } }

/* CURSOR */


/* NAV */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; justify-content: space-between; align-items: center;
  padding: 26px 48px;
  transition: background .25s, padding .25s, border-color .25s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(245,244,240,.96); backdrop-filter: blur(10px);
  padding: 16px 48px; border-color: var(--line);
}
.nav.on-hero .nav-logo { color: #fff; }
.nav.on-hero .nav-links a { color: rgba(255,255,255,.5); }
.nav.on-hero .nav-links a:hover { color: #fff; }
.nav.scrolled .nav-logo { color: var(--black); }
.nav.scrolled .nav-links a { color: var(--mid); }
.nav.scrolled .nav-links a:hover { color: var(--black); }
.nav-logo {
  font-size: .78rem; font-weight: 700; letter-spacing: .22em;
  text-transform: uppercase; color: var(--black);
  text-decoration: none; transition: color .2s;
}
.nav-links { display: flex; list-style: none; }
.nav-links a {
  font-size: .68rem; font-weight: 400; letter-spacing: .06em;
  text-transform: uppercase; color: var(--mid);
  text-decoration: none; padding: 6px 14px; transition: color .18s;
}

/* REVEAL */
.rv { opacity: 0; transform: translateY(14px); transition: opacity .72s ease, transform .72s ease; }
.rv.on { opacity: 1; transform: none; }
.rv.d1 { transition-delay: .07s; }
.rv.d2 { transition-delay: .14s; }
.rv.d3 { transition-delay: .21s; }

/* SECTION */
section { scroll-margin-top: 62px; }

/* ─── HERO ─── */
#hero {
  height: 100vh; min-height: 600px;
  position: relative; overflow: hidden;
  background: #111;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.hero-dim {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(17,17,17,.88) 0%, rgba(17,17,17,.1) 55%, transparent 100%);
}
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .48; }
.hero-inner { position: relative; z-index: 2; padding: 0 48px 60px; }
.hero-inner h1 {
  font-size: clamp(3.5rem, 9vw, 9rem); font-weight: 700;
  letter-spacing: -.04em; line-height: .9; color: #fff; margin-bottom: 18px;
}
.hero-inner h1 em { font-style: normal; font-weight: 300; opacity: .38; }
.hero-inner p { font-size: .75rem; font-weight: 300; letter-spacing: .08em; color: rgba(255,255,255,.38); margin-bottom: 36px; }
.hero-cta {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .68rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.65); text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.2); padding-bottom: 4px;
  transition: color .2s, border-color .2s, gap .2s;
}
.hero-cta:hover { color: #fff; border-color: rgba(255,255,255,.5); gap: 12px; }
.hero-cta svg { width: 14px; }
.hero-scroll {
  position: absolute; right: 48px; bottom: 60px; z-index: 2;
  writing-mode: vertical-lr; font-size: .56rem; font-weight: 300;
  letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.2);
}

/* ─── ABOUT ─── */
#about { background: var(--bg); }
.about-intro { padding: 100px 48px 52px; max-width: 720px; border-bottom: 1px solid var(--line); }
.about-intro h2 { font-size: clamp(2.2rem, 5vw, 4.5rem); font-weight: 700; letter-spacing: -.04em; line-height: .92; margin-bottom: 26px; word-break: keep-all; }
.about-intro h2 em { font-style: normal; font-weight: 300; color: var(--mid); }
.about-intro p { font-size: .88rem; font-weight: 300; color: #555; line-height: 1.85; }

.about-stats { display: grid; grid-template-columns: repeat(3,1fr); border-bottom: 1px solid var(--line); }
.ast { padding: 32px 48px; border-right: 1px solid var(--line); }
.ast:last-child { border-right: none; }
.ast-n { font-size: 2.4rem; font-weight: 700; letter-spacing: -.05em; line-height: 1; margin-bottom: 5px; }
.ast-l { font-size: .54rem; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; color: var(--mid); }

.about-row { display: grid; grid-template-columns: 180px 1fr; padding: 48px; border-bottom: 1px solid var(--line); gap: 56px; }
.ar-label { font-size: .58rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--mid); padding-top: 3px; }
.ar-body p { font-size: .88rem; font-weight: 300; color: #444; line-height: 1.88; margin-bottom: 14px; }
.ar-body p:last-child { margin-bottom: 0; }
.ar-body strong { font-weight: 600; color: var(--black); }

.cl-item { display: grid; grid-template-columns: 52px 1fr; gap: 0 18px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.cl-item:last-child { border-bottom: none; }
.cl-year { font-size: .66rem; font-weight: 300; color: var(--mid); padding-top: 2px; }
.cl-title { font-size: .88rem; font-weight: 600; margin-bottom: 2px; }
.cl-desc { font-size: .74rem; font-weight: 300; color: var(--mid); }

.skills-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: var(--line); }
.sk { padding: 18px 20px; background: var(--bg); transition: background .15s; }
.sk:hover { background: var(--hover); }
.sk-cat { font-size: .46rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--mid); margin-bottom: 5px; }
.sk-name { font-size: .82rem; font-weight: 600; margin-bottom: 1px; }
.sk-detail { font-size: .6rem; font-weight: 300; color: var(--mid); }

/* ─── PORTFOLIO ─── */
#portfolio { background: var(--bg); }
.port-head { padding: 80px 48px 0; display: flex; justify-content: space-between; align-items: flex-end; }
.port-head h2 { font-size: clamp(1.8rem, 3.5vw, 3rem); font-weight: 700; letter-spacing: -.03em; }
#portCount { font-size: .65rem; font-weight: 300; color: var(--mid); }

.cat-bar {
  padding: 0 48px; display: flex; align-items: center;
  border-bottom: 1px solid var(--line);
  position: sticky; top: 62px; z-index: 50;
  background: rgba(245,244,240,.96); backdrop-filter: blur(10px);
  height: 48px;
}
.cat-btn {
  font-family: var(--sans); font-size: .65rem; font-weight: 400;
  letter-spacing: .06em; text-transform: uppercase;
  background: none; border: none; color: var(--mid);
  padding: 0 16px; height: 48px;
  position: relative; transition: color .18s;
}
.cat-btn:hover { color: var(--black); }
.cat-btn.on { color: var(--black); }
.cat-btn.on::after { content: ''; position: absolute; bottom: 0; left: 16px; right: 16px; height: 1.5px; background: var(--black); }

.port-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 2px; padding: 2px 48px; }
.pcard { position: relative; overflow: hidden; background: var(--hover); }
.pcard-thumb {
  width: 100%; aspect-ratio: 16/9; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: clamp(1.2rem,2.5vw,2rem); font-weight: 700; color: var(--line);
  transition: transform .75s cubic-bezier(.16,1,.3,1);
}
.pcard:hover .pcard-thumb { transform: scale(1.04); }
.pcard-over {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(17,17,17,.78) 0%, transparent 52%);
  opacity: 0; transition: opacity .22s;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 16px 18px;
}
.pcard:hover .pcard-over { opacity: 1; }
.pc-meta { font-size: .5rem; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.5); margin-bottom: 4px; }
.pc-title { font-size: .88rem; font-weight: 600; color: #fff; line-height: 1.2; }

.port-pages { padding: 20px 48px; display: flex; justify-content: center; align-items: center; gap: 4px; border-top: 1px solid var(--line); }
.pp-num {
  font-family: var(--sans); width: 32px; height: 32px;
  border: 1px solid var(--line); background: transparent;
  font-size: .65rem; font-weight: 400; color: var(--mid); transition: all .15s;
  display: flex; align-items: center; justify-content: center;
}
.pp-num.on { background: var(--black); color: #fff; border-color: var(--black); }
.pp-num:hover:not(.on) { border-color: var(--black); color: var(--black); }
.pp-arr {
  font-family: var(--sans); width: 32px; height: 32px;
  border: 1px solid var(--line); background: transparent;
  color: var(--mid); transition: all .15s;
  display: flex; align-items: center; justify-content: center;
}
.pp-arr svg { width: 13px; }
.pp-arr:hover:not(:disabled) { border-color: var(--black); color: var(--black); }
.pp-arr:disabled { opacity: .28; pointer-events: none; }

/* ─── CONTACT ─── */
#contact { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.ct-left { background: #111; color: #fff; padding: 80px 48px 56px; display: flex; flex-direction: column; justify-content: space-between; }
.ct-left h2 { font-size: clamp(2.5rem,5vw,4.5rem); font-weight: 700; letter-spacing: -.04em; line-height: .92; margin-bottom: 20px; word-break: keep-all; }
.ct-left h2 em { font-style: normal; font-weight: 300; color: rgba(255,255,255,.3); }
.ct-left > div > p { font-size: .8rem; font-weight: 300; color: rgba(255,255,255,.38); line-height: 1.75; margin-bottom: 40px; }
.clist { display: flex; flex-direction: column; }
.ci { display: flex; align-items: center; gap: 13px; padding: 13px 0; border-top: 1px solid rgba(255,255,255,.07); text-decoration: none; transition: opacity .18s; }
.ci:last-child { border-bottom: 1px solid rgba(255,255,255,.07); }
.ci:hover { opacity: .65; }
.ci-ic { width: 28px; height: 28px; border-radius: 50%; border: 1px solid rgba(255,255,255,.14); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ci-ic svg { width: 11px; stroke: rgba(255,255,255,.4); }
.ci-l { font-size: .46rem; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.25); margin-bottom: 2px; }
.ci-v { font-size: .72rem; font-weight: 300; color: rgba(255,255,255,.65); }
.avail { display: flex; align-items: center; gap: 7px; margin-top: 40px; }
.av-dot { width: 5px; height: 5px; background: #5cd97a; border-radius: 50%; animation: blink 2.5s infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.2} }
.av-txt { font-size: .52rem; font-weight: 300; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.25); }

.ct-right { padding: 80px 48px 56px; }
.ct-right h3 { font-size: .9rem; font-weight: 600; margin-bottom: 3px; }
.ct-sub { font-size: .72rem; font-weight: 300; color: var(--mid); margin-bottom: 32px; }
.form { display: flex; flex-direction: column; }
.fg { position: relative; padding: 16px 0 6px; border-bottom: 1px solid var(--line); margin-bottom: 2px; transition: border-color .18s; }
.fg:focus-within { border-color: var(--black); }
.fg label { position: absolute; top: 16px; left: 0; font-size: .52rem; font-weight: 400; letter-spacing: .12em; text-transform: uppercase; color: var(--mid); pointer-events: none; transition: all .16s; }
.fg input:focus+label, .fg input:not(:placeholder-shown)+label,
.fg textarea:focus+label, .fg textarea:not(:placeholder-shown)+label { top: 2px; font-size: .44rem; color: var(--black); }
.fg input, .fg textarea { width: 100%; background: transparent; border: none; outline: none; font-family: var(--sans); font-size: .85rem; font-weight: 300; color: var(--black); padding-top: 8px; resize: none; }
.fg textarea { height: 80px; }
.fg input::placeholder, .fg textarea::placeholder { color: transparent; }
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.chips-wrap { margin: 12px 0 6px; }
.chips-lbl { font-size: .46rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--mid); margin-bottom: 7px; }
.chips { display: flex; gap: 3px; flex-wrap: wrap; }
.chip { font-family: var(--sans); font-size: .56rem; font-weight: 300; letter-spacing: .04em; text-transform: uppercase; border: 1px solid var(--line); background: transparent; color: var(--mid); padding: 4px 10px; transition: all .14s; }
.chip.on, .chip:hover { background: var(--black); color: #fff; border-color: var(--black); }
.sbtn { margin-top: 20px; display: flex; align-items: center; justify-content: space-between; background: var(--black); color: #fff; border: none; padding: 14px 18px; font-family: var(--sans); font-size: .64rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; width: 100%; transition: background .18s; }
.sbtn:hover { background: #333; }
.sbtn svg { width: 13px; transition: transform .18s; }
.sbtn:hover svg { transform: translateX(3px); }
.form-done { display: none; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 44px 0; gap: 10px; }
.form-done.on { display: flex; }
.form-done svg { width: 32px; stroke: var(--black); margin-bottom: 4px; }
.form-done strong { font-size: .95rem; font-weight: 600; }
.form-done span { font-size: .7rem; font-weight: 300; color: var(--mid); }

/* FOOTER */
.footer { padding: 28px 48px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.footer-copy { font-size: .62rem; font-weight: 300; color: var(--mid); }
.footer-sns { display: flex; gap: 20px; }
.footer-sns a { font-size: .62rem; font-weight: 300; color: var(--mid); text-decoration: none; transition: color .15s; }
.footer-sns a:hover { color: var(--black); }

/* RESPONSIVE */
@media (max-width: 900px) {
  .nav { padding: 18px 24px; }
  .nav.scrolled { padding: 13px 24px; }
  .hero-inner { padding: 0 24px 48px; }
  .hero-scroll { display: none; }
  .about-intro { padding: 72px 24px 40px; }
  .about-stats { grid-template-columns: repeat(3,1fr); }
  .ast { padding: 22px 16px; }
  .about-row { grid-template-columns: 1fr; padding: 36px 24px; gap: 14px; }
  .skills-grid { grid-template-columns: repeat(2,1fr); }
  .port-head { padding: 56px 24px 0; }
  .cat-bar { padding: 0 24px; top: 50px; }
  .port-grid { grid-template-columns: 1fr 1fr; padding: 2px 24px; }
  .port-pages { padding: 16px 24px; }
  #contact { grid-template-columns: 1fr; }
  .ct-left { padding: 60px 24px 44px; }
  .ct-right { padding: 44px 24px 52px; }
  .frow { grid-template-columns: 1fr; }
  .footer { padding: 22px 24px; flex-direction: column; gap: 10px; text-align: center; }
  .footer-sns { justify-content: center; }
}
