/* 프로젝트 / 어바웃 페이지 공용 스타일 (색·여백·크기 값은 design.css) */
:root {
  --ease-out: cubic-bezier(.2, .8, .2, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: Manrope, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  animation: page-in .5s ease both;
}
@keyframes page-in { from { opacity: 0; } }
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
video::-webkit-media-controls { display: none !important; }   /* 사파리가 자동 재생을 막을 때 띄우는 재생 막대 숨김 */
.label { font-size: 11px; letter-spacing: var(--tracking); text-transform: uppercase; color: var(--muted); }

/* ---------- 상단 내비 ---------- */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px var(--page-pad);
  font-size: 11px; letter-spacing: var(--tracking); text-transform: uppercase;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.nav .home { font-weight: 500; }
.nav .links { display: flex; gap: 20px; }
.nav .links a { color: var(--muted); transition: color .2s; }
.nav .links a:hover, .nav .links a.on { color: var(--fg); }

/* ---------- 글자 마스크 애니메이션 (랜딩과 동일) ---------- */
.split { display: flex; flex-wrap: wrap; align-items: center; column-gap: .28em; }
.split .br { flex-basis: 100%; height: 0; }   /* 엔터 줄바꿈 */
.word { display: flex; align-items: center; }
.mask { display: inline-block; overflow: hidden; }
.ch {
  display: inline-block; line-height: 1.05;
  transform: translateY(110%);
  transition: transform .8s var(--ease-out);
  transition-delay: calc(var(--i) * 14ms);
}
.split.in .ch { transform: none; }
.ul { border-bottom: 1px solid currentColor; }

/* ---------- 본문 ---------- */
.page { padding: 0 var(--page-pad) var(--section-gap); }
.hero { padding: calc(var(--section-gap) * .55) 0 calc(var(--section-gap) * .45); }
.hero h1 {
  font-size: min(var(--title-size), 13vw); font-weight: 500;
  letter-spacing: -0.02em; text-transform: uppercase;
}
.hero .dot { width: .16em; height: .16em; border-radius: 50%; margin-left: .06em; align-self: flex-end; margin-bottom: .14em; flex-shrink: 0; }

.meta {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px;
  margin-top: 56px; padding-top: 16px; border-top: 1px solid var(--line);
  font-size: 14px;
}
.meta dt { margin-bottom: 6px; }
.summary { font-size: calc(var(--body-size) * 1.35); line-height: 1.4; max-width: 900px; margin-top: 48px; }

.frame-media { position: relative; border-radius: var(--card-radius); overflow: hidden; background: var(--card-bg); }
.frame-media.empty { aspect-ratio: 16 / 9; }
.frame-media .media { width: 100%; height: auto; }
.placeholder {
  position: absolute; inset: 0; display: grid; place-items: center;
  color: #9a9a9a; font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
}
figcaption { margin-top: 10px; font-size: 12px; color: var(--muted); }

/* 2단 그리드: 왼쪽 소제목, 오른쪽 본문, 이미지는 전체 너비 */
.blocks {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  column-gap: var(--col-gap, 40px); row-gap: 40px; margin-top: calc(var(--section-gap) * .6);
}
.b-heading { grid-column: 1; margin-top: calc(var(--section-gap) * .4); }
.b-heading, .b-heading + .b-text { border-top: 1px solid var(--line); padding-top: 16px; }
.b-heading { position: relative; }
.b-heading::after { content: ""; position: absolute; top: -1px; left: 100%; width: var(--col-gap, 40px); border-top: 1px solid var(--line); }   /* 왼쪽 소제목 선과 오른쪽 본문 선 사이(칸 간격)를 이어서 한 줄로 */
.b-heading + .b-text { margin-top: calc(var(--section-gap) * .4); }
.b-text { grid-column: 2; font-size: var(--body-size); line-height: 1.6; max-width: var(--content-width); }
.b-text p + p { margin-top: 1em; }
.b-image { grid-column: 1 / -1; }

/* ---------- 다음 프로젝트 ---------- */
.next {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 20px;
  margin-top: var(--section-gap); padding-top: 20px; border-top: 1px solid var(--line);
}
.next .t { font-size: min(calc(var(--title-size) * .55), 9vw); font-weight: 500; text-transform: uppercase; letter-spacing: -0.01em; line-height: 1.05; transition: color .35s ease; }
.next .arrow { font-size: min(calc(var(--title-size) * .55), 9vw); line-height: 1; transition: transform .4s var(--ease-out); }
.next:hover .arrow { transform: translateX(10px); }

/* ---------- 어바웃 ---------- */
.statement h1 { font-size: min(calc(var(--title-size) * .55), 9vw); line-height: 1.1; max-width: 1200px; }
.statement .ch { line-height: 1.15; }
/* 어바웃: 랜딩과 같은 틀 (위 메뉴 바 · 좌우 여백 · 인트로 글자), 자기소개 아래로 학력 · 경력 · 연락처 (왼쪽 라벨 + 오른쪽 목록) */
[data-page="about"] { --side-gutter: max(var(--side-pad, 8vw), calc((100vw - var(--layout-max, 1240px)) / 2)); }
[data-page="about"] .nav { height: var(--nav-h, 60px); padding: 0 var(--side-gutter); border-bottom: 1px solid var(--line); font-size: 13px; }
[data-page="about"] .nav .home { font-weight: 400; }
[data-page="about"] .page { padding: calc(min(var(--side-top, 52px), 6vh) + 15px) var(--side-gutter) var(--section-gap); }
.about-blocks { margin-top: 0; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); --col-gap: 60px; }
/* 자기소개: 랜딩 인트로와 같은 글자 (크기 · 자간 · 대문자 · 단어 간격) */
.bio { grid-column: 1 / -1; display: flex; flex-direction: column; gap: var(--intro-gap); max-width: var(--about-width, 509px);
  font-size: var(--intro-size); letter-spacing: var(--tracking); text-transform: uppercase; }
.bio .split { gap: 2.5px 6.67px; padding: 2px 5px; }
.bio .ch { line-height: 1.3; }
/* @ 자리 도형 (랜딩 인트로와 같음), 천천히 회전 */
.ch.shape { display: inline-flex; align-items: center; vertical-align: middle; }
.ch.shape svg { width: .9em; height: .9em; margin: 0 .22em 0 .04em; display: block; animation: shape-spin 14s linear infinite; }
@keyframes shape-spin { to { transform: rotate(360deg); } }
/* bounceIn: 글자가 아래에서 살짝 튀어 오르며 제자리에 (랜딩 인트로 bounce 와 같은 값) */
.split.bounce .mask { overflow: visible; }
.split.bounce .ch { transform: translateY(.75em); opacity: 0; transition: transform .6s cubic-bezier(.3, 1.9, .55, 1), opacity .22s ease; transition-delay: 0s; }
.split.bounce .ch.v { transform: none; opacity: 1; }
/* 도형은 제 차례 글자와 함께 톡 커짐 */
.split.bounce .ch.shape svg { scale: 0; transition: scale .6s cubic-bezier(.3, 1.8, .5, 1); }
.split.bounce .ch.shape.v svg { scale: 1; }
/* 어바웃 목록 사이 간격 (--about-gap) */
.about-blocks { row-gap: 0; }
.about-blocks .b-heading, .about-blocks .b-heading + .b-text { margin-top: var(--about-gap); }
.about-blocks .bio + .b-heading, .about-blocks .bio + .b-heading + .b-text { margin-top: calc(var(--about-gap) * 2.6); }   /* 자기소개 → Education 간격은 더 넓게 */
.rows { grid-column: 2; font-size: 15px; }
.rows .r { display: flex; flex-wrap: wrap; gap: 0 .5em; padding: 12px 0; border-bottom: 1px solid var(--line); }
.rows .r .ds { color: var(--muted); }
.rows .r:last-child { border-bottom: 0; }   /* 목록 마지막 줄 아래 선 없음 */
.rows .r .ds:not(:empty)::before { content: "· "; }
.contact { grid-column: 2; display: flex; flex-direction: column; font-size: 15px; text-transform: uppercase; letter-spacing: var(--tracking); }
.contact a { padding: 12px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; transition: opacity .2s; }
.contact:hover a { opacity: .35; }
.contact a:hover { opacity: 1; }

@media (max-width: 760px) {
  .nav, .page, [data-page="about"] .nav, [data-page="about"] .page { padding-left: var(--m-pad); padding-right: var(--m-pad); }
  .meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .blocks { grid-template-columns: minmax(0, 1fr); row-gap: 24px; }
  .b-heading, .b-text, .bio, .rows, .contact { grid-column: 1; }
  .b-heading + .b-text { margin-top: 0; border-top: 0; padding-top: 0; }
  .b-heading::after { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; transition-delay: 0ms !important; animation: none !important; }
}
