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

html, body {
  height: 100%;
}

body {
  font-family: 'Manrope', sans-serif;
  background: #ffffff;
  color: #111;
  padding: 0 30px;
}

.portfolio {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ── Nav ── */
/* ── 데스크탑 Nav (12컬럼 그리드 적용) ── */
.nav {
  display: flex;
  align-items: center;
  height: 42px;
  flex-shrink: 0;
  border-bottom: 1px solid #111;
  background: #ffffff;
  padding: 0; /* body의 padding 30px이 전체 margin 역할을 함 */
}

/* 1~2컬럼: 로고 (약 16.6%) */
.nav-left-logo {
  flex: 0 0 calc(((100% - (11 * 30px)) / 12) * 2 + (1 * 30px));
}

.nav-left-logo a {
  font-size: 24px;
  font-weight: 400;
  color: #111;
  text-decoration: none;
}

/* 3~6컬럼: 메뉴 (약 33.3%) */
.nav-center-menu {
  flex: 0 0 calc(((100% - (11 * 30px)) / 12) * 4 + (3 * 30px));
  display: flex;
  gap: 40px;
}

/* 7~11컬럼: 정보 (약 41.6%) */
.nav-right-info {
  flex: 0 0 calc(((100% - (11 * 30px)) / 12) * 5 + (4 * 30px));
  display: flex;
  justify-content: flex-end;
  gap: 40px;
}

/* 12컬럼: 언어 (약 8.3%) */
.nav-lang {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.nav a {
  font-size: 18px;
  color: #313131;
  text-decoration: none;
  cursor: pointer;
  letter-spacing: 0.01em;
  transition: color 0.15s;
}

.nav a:hover { color: #111; }
.nav a.active {
  color: #111;
  font-weight: 600;
}

/* ── About layout ── */
.about-wrap {
  flex: 1;
  padding: 60px 234px;
  overflow-y: auto;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
}

.col-left {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.profile-img {
  width: 100%;
  aspect-ratio: 1 / 0.6ah;
  background: #e0e0e0;
  overflow: hidden;
}

.profile-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-links a {
  font-size: 14px;
  color: #313131;
  text-decoration: none;
  transition: color 0.15s;
}

.contact-links a:hover { color: #111; }

.col-right {
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding-top: 8px;
}

.bio {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.bio p {
  font-size: 22px;
  font-weight: 400;
  color: #111;
  line-height: 1.5;
}

.section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.section-title {
  font-size: 14px;
  font-weight: 600;
  color: #111;
  margin-top: 8px;
}

.section-rows {
  display: flex;
  flex-direction: column;
}

.row {
  display: flex;
  gap: 40px;
  padding: 8px 0;
  border-top: 1px solid #e0e0e0;
  font-size: 14px;
  color: #313131;
}

.row:last-child {
  border-bottom: 1px solid #e0e0e0;
}

.year {
  width: 72px;
  flex-shrink: 0;
  color: #888;
}

.detail {
  flex: 1;
  color: #111;
}

/* ══════════════════════════════════
   모바일 (768px 이하)
══════════════════════════════════ */
.nav-mobile { display: none; }
.mobile-menu { display: none; }
.mobile-about { display: none; }

@media (max-width: 768px) {

  html, body {
    height: auto;
    overflow: auto;
  }

  body { padding: 0; }

  .portfolio {
    min-width: unset;
  }

  .nav { display: none; }
  .about-wrap { display: none; }

  /* ── 모바일 nav ── */
  .nav-mobile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 48px;
    padding: 0 20px;
    border-bottom: 1px solid #111;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
  }

  .nav-mobile-title {
    font-size: 15px;
    font-weight: 400;
    color: #111;
    text-decoration: none;
    letter-spacing: 0.08em;
  }

  .hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
  }

  .hamburger span {
    display: block;
    width: 22px;
    height: 1px;
    background: #111;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .hamburger.open span:first-child {
    transform: translateY(6px) rotate(45deg);
  }

  .hamburger.open span:last-child {
    transform: translateY(-6px) rotate(-45deg);
  }

  .mobile-menu {
    position: fixed;
    top: 48px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid #111;
    display: flex;
    flex-direction: column;
    padding: 20px;
    gap: 16px;
    z-index: 99;
    transform: translateY(-110%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    pointer-events: none;
  }

  .mobile-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-menu a {
    font-size: 16px;
    color: #313131;
    text-decoration: none;
  }

  .mobile-menu a.active {
    color: #111;
    font-weight: 600;
  }

  /* ── 모바일 About 콘텐츠 ── */
  .mobile-about {
    display: flex;
    flex-direction: column;
  }

  .mobile-profile-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #e0e0e0;
    overflow: hidden;
  }

  .mobile-profile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .mobile-about-content {
    padding: 24px 20px 60px;
    display: flex;
    flex-direction: column;
    gap: 32px;
  }

  .mobile-bio {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .mobile-bio p {
    font-size: 16px;
    line-height: 1.6;
    color: #111;
  }

  .mobile-contact {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .mobile-contact a {
    font-size: 13px;
    color: #555;
    text-decoration: none;
  }

  .mobile-section {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .mobile-section-title {
    font-size: 13px;
    font-weight: 600;
    color: #111;
    margin-bottom: 8px;
  }

  .mobile-row {
    display: flex;
    gap: 16px;
    padding: 8px 0;
    border-top: 1px solid #e0e0e0;
    font-size: 13px;
  }

  .mobile-row:last-child {
    border-bottom: 1px solid #e0e0e0;
  }

  .mobile-year {
    width: 60px;
    flex-shrink: 0;
    color: #888;
  }

  .mobile-detail {
    flex: 1;
    color: #111;
  }
}

@keyframes pageIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes pageOut {
  from { opacity: 1; }
  to   { opacity: 0; }
}