/* =====================================================================
   장세희 포트폴리오 - 스타일
   PPT 원본의 색(남색 #234B7D, 연한 파랑 #DAEAFF)과 글꼴(Gmarket Sans)을 그대로 사용
   ===================================================================== */

/* ---------- 글꼴 (인터넷 연결 시 자동으로 받아옵니다) ---------- */
@font-face { font-family: 'GmarketSans'; font-weight: 300; font-style: normal; font-display: swap;
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/GmarketSansLight.woff') format('woff'); }
@font-face { font-family: 'GmarketSans'; font-weight: 500; font-style: normal; font-display: swap;
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/GmarketSansMedium.woff') format('woff'); }
@font-face { font-family: 'GmarketSans'; font-weight: 700; font-style: normal; font-display: swap;
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/GmarketSansBold.woff') format('woff'); }

/* ---------- 색상/공통 값 ---------- */
:root {
  --navy: #234B7D;
  --navy-deep: #1A3A63;
  --navy-ink: #10233F;
  --ice: #DAEAFF;
  --ice-soft: #EEF4FB;
  --panel: #F4F6F9;
  --line: #D9E1EA;
  --line-soft: #E9EEF4;
  --text: #223247;
  --muted: #7C889A;
  --green: #5D6B2C;
  --white: #ffffff;
  --font: 'GmarketSans', 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', 'Noto Sans KR', sans-serif;
  --radius: 16px;
  --shadow: 0 12px 34px rgba(35, 75, 125, 0.14);
  --shadow-soft: 0 4px 16px rgba(35, 75, 125, 0.08);
  --header-h: 64px;
  --container: 1200px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-weight: 500; color: var(--text); background: var(--white);
  line-height: 1.6; word-break: keep-all; overflow-wrap: anywhere;
}
body.no-scroll { overflow: hidden; }
button, a, .project-card { -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, h6, p, dl, dd, figure { margin: 0; }
mark { background: var(--ice); color: inherit; padding: 0 .15em; border-radius: 3px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
b, strong { font-weight: 700; }
:focus-visible { outline: 3px solid rgba(35, 75, 125, .45); outline-offset: 3px; border-radius: 4px; }

.container { width: min(var(--container), 100% - 48px); margin-inline: auto; }
.section { padding: 110px 0; scroll-margin-top: var(--header-h); }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--navy); color: #fff; padding: 10px 14px; border-radius: 8px; }
.skip-link:focus { top: 12px; }

/* ---------- 상단 메뉴 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line); transition: box-shadow .3s;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(35, 75, 125, .08); }
.scroll-progress { position: absolute; left: 0; bottom: -1px; width: 100%; height: 2px; background: var(--navy); transform: scaleX(0); transform-origin: left; pointer-events: none; }
.header-inner { width: min(var(--container), 100% - 48px); margin-inline: auto; height: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.brand { font-weight: 700; color: var(--navy); letter-spacing: .06em; font-size: 15px; }
.site-nav { display: flex; gap: 34px; }
.site-nav a { font-size: 13px; letter-spacing: .12em; color: var(--muted); position: relative; padding: 6px 0; transition: color .2s; }
.site-nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--navy); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.site-nav a:hover, .site-nav a.is-active { color: var(--navy); }
.site-nav a.is-active::after { transform: scaleX(1); }
.header-sig { justify-self: end; font-size: 13px; color: var(--navy); font-weight: 300; }
.header-sig b { font-weight: 700; }
.nav-toggle { display: none; width: 40px; height: 40px; justify-self: end; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .3s, opacity .3s; }

/* ---------- 표지 ---------- */
.hero { position: relative; min-height: 100svh; background: var(--navy); color: #fff; overflow: hidden; display: flex; align-items: center; }
.hero-arcs { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-arcs .arc { transform-box: fill-box; transform-origin: center; animation: drift 36s ease-in-out infinite alternate; }
.hero-arcs .arc-2 { animation-duration: 44s; animation-delay: -10s; }
.hero-arcs .arc-3 { animation-duration: 52s; animation-delay: -20s; }
.hero-arcs .arc-4 { animation-duration: 40s; animation-delay: -5s; }
@keyframes drift { from { translate: 0 0; } to { translate: 34px -22px; } }
.hero-inner { position: relative; width: min(var(--container), 100% - 48px); margin-inline: auto; padding: 120px 0 140px; will-change: transform, opacity; }
.hero-arcs { will-change: transform; transform-origin: center; }
.hero-kicker { font-size: clamp(16px, 2vw, 24px); letter-spacing: .06em; margin-bottom: 4px; }
.hero-kicker .thin { font-weight: 300; }
.hero-kicker .bold { font-weight: 700; }
.hero-kicker.navy { color: var(--navy); }
.hero-title { animation: rise 1.1s var(--ease) both .15s; font-size: clamp(40px, 12vw, 168px); word-break: keep-all; overflow-wrap: normal; font-weight: 700; line-height: .95; letter-spacing: -.01em; margin: 0 0 34px; }
.hero-sub { font-weight: 300; font-size: clamp(15px, 1.4vw, 19px); line-height: 1.55; opacity: .85; margin-bottom: 40px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 70px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 999px; font-size: 14px; font-weight: 700; letter-spacing: .02em; transition: transform .25s var(--ease), box-shadow .25s, background .25s, color .25s; }
.btn:hover { transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--navy); box-shadow: 0 8px 24px rgba(0, 0, 0, .18); }
.btn-ghost { border: 1px solid rgba(255, 255, 255, .55); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.btn-navy { background: var(--navy); color: #fff; box-shadow: 0 10px 26px rgba(35, 75, 125, .28); }
.btn-outline { border: 1px solid var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--ice-soft); }
.hero-contact { display: flex; flex-direction: column; gap: 2px; font-size: 13px; font-weight: 300; }
.hero-contact .label { font-weight: 700; font-size: 12px; letter-spacing: .1em; margin-bottom: 4px; }
.hero-contact a:hover { text-decoration: underline; }
.scroll-cue { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); width: 24px; height: 44px; display: flex; justify-content: center; }
.scroll-cue-line { width: 1px; height: 100%; background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff); animation: cue 1.8s ease-in-out infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); opacity: 0; } 40% { opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- 섹션 제목 ---------- */
@keyframes rise { from { clip-path: inset(0 0 100% 0); transform: translateY(40px); } to { clip-path: inset(-10% 0 -10% 0); transform: none; } }
.section-head { margin-bottom: 44px; }
.section-head.reveal .kicker, .section-head.reveal .section-title { clip-path: inset(0 0 110% 0); transform: translateY(18px); transition: clip-path .9s var(--ease), transform .9s var(--ease); }
.section-head.reveal .section-title { transition-delay: .08s; }
.section-head.reveal.in .kicker, .section-head.reveal.in .section-title { clip-path: inset(-10% 0 -10% 0); transform: none; }
.kicker { font-weight: 300; font-size: 15px; letter-spacing: .14em; color: var(--navy); margin-bottom: 4px; }
.section-title { font-size: clamp(36px, 5vw, 56px); font-weight: 700; color: var(--navy); line-height: 1.05; letter-spacing: -.01em; }
.section-title .range { font-weight: 300; font-size: .42em; letter-spacing: .04em; margin-left: 10px; }
.section-desc { margin-top: 14px; color: var(--muted); font-weight: 300; font-size: 15px; }

/* ---------- 소개 / 이력 ---------- */
.intro { overflow-x: clip; }
.intro-grid { display: grid; grid-template-columns: 340px 1fr; gap: 56px; align-items: start; }
.profile-card { position: sticky; top: calc(var(--header-h) + 24px); }
.profile-photo-wrap { position: relative; width: 240px; height: 240px; margin-bottom: 26px; }
.profile-arc { position: absolute; inset: -34px; width: calc(100% + 68px); height: calc(100% + 68px); pointer-events: none; }
.profile-photo { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; box-shadow: 0 16px 40px rgba(35, 75, 125, .18); }
.profile-name { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.profile-name .ko { font-size: 30px; font-weight: 700; color: var(--navy); }
.profile-name .en { font-size: 24px; font-weight: 300; color: var(--navy); letter-spacing: .02em; }
.profile-list { display: grid; gap: 8px; }
.profile-list div { display: grid; grid-template-columns: 96px 1fr; align-items: baseline; }
.profile-list dt { font-weight: 500; color: var(--navy); font-size: 15px; letter-spacing: .04em; }
.profile-list dd { font-weight: 300; color: var(--navy); font-size: 15px; }
.profile-list dd a:hover { text-decoration: underline; }

.resume-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px 40px; }
.resume-block h3 { font-size: 20px; font-weight: 700; color: var(--navy); letter-spacing: .04em; margin-bottom: 18px; }
.resume-list li { display: grid; grid-template-columns: 58px 1fr; gap: 10px; padding: 8px 0; align-items: baseline; }
.resume-list .year { color: var(--green); font-weight: 500; font-size: 17px; }
.resume-list b { display: block; font-weight: 500; font-size: 17px; color: var(--text); }
.resume-list .sub { display: block; font-weight: 300; color: var(--text); font-size: 15px; }
.timeline { position: relative; padding-left: 22px; }
.timeline::before { content: ''; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 1px; background: var(--line); transform: scaleY(0); transform-origin: top; transition: transform 1.4s var(--ease) .2s; }
.resume-block.in .timeline::before { transform: scaleY(1); }
.timeline li { position: relative; padding: 6px 10px 12px; border-radius: 10px; transition: background .25s; }
.timeline li::before { content: ''; position: absolute; left: -21px; top: 15px; width: 11px; height: 11px; border-radius: 50%; background: #fff; border: 2px solid var(--navy); transform: scale(0); transition: background .25s, transform .5s var(--ease); }
.resume-block.in .timeline li::before { transform: scale(1); }
.resume-block.in .timeline li:nth-child(1)::before { transition-delay: .3s; }
.resume-block.in .timeline li:nth-child(2)::before { transition-delay: .55s; }
.resume-block.in .timeline li:nth-child(3)::before { transition-delay: .8s; }
.resume-block.in .timeline li:nth-child(4)::before { transition-delay: 1.05s; }
.resume-block.in .timeline li:nth-child(n+5)::before { transition-delay: 1.3s; }
.timeline li:hover { background: var(--ice-soft); }
.resume-block.in .timeline li:hover::before { background: var(--navy); transform: scale(1.2); transition-delay: 0s; }
.timeline .period { display: block; color: var(--navy); font-weight: 500; font-size: 16px; }
.timeline b { display: block; font-weight: 500; font-size: 17px; color: var(--text); }
.timeline .tags { display: block; font-weight: 300; font-style: italic; color: var(--muted); font-size: 12.5px; margin-top: 3px; }

/* ---------- 프로젝트 ---------- */
.parts-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 36px; }
.part-item { text-align: left; padding: 20px 20px 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff; display: grid; gap: 4px; position: relative; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s, background .3s; }
.parts-strip.reveal .part-item { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease), transform .7s var(--ease), box-shadow .3s, border-color .3s, background .3s; }
.parts-strip.reveal.in .part-item { opacity: 1; transform: none; }
.parts-strip.reveal.in .part-item:nth-child(2) { transition-delay: .1s, .1s, 0s, 0s, 0s; }
.parts-strip.reveal.in .part-item:nth-child(3) { transition-delay: .2s, .2s, 0s, 0s, 0s; }
.parts-strip.reveal.in .part-item:nth-child(4) { transition-delay: .3s, .3s, 0s, 0s, 0s; }
.parts-strip.reveal.in .part-item:hover { transform: translateY(-4px); }
.part-item::before { content: ''; position: absolute; top: 22px; right: 18px; width: 12px; height: 12px; border-radius: 50%; background: var(--ice); border: 3px solid var(--navy); transition: transform .3s; }
.part-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); border-color: #c6d4e6; }
.part-item.is-active { background: var(--ice-soft); border-color: var(--navy); }
.part-item.is-active::before { background: var(--navy); }
.part-no { font-weight: 700; color: var(--navy); font-size: 22px; line-height: 1; }
.part-title { font-weight: 700; color: var(--navy-ink); font-size: 15px; margin-top: 4px; }
.part-sub { font-weight: 300; color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.part-count { margin-top: 8px; font-size: 12px; color: var(--navy); font-weight: 500; }

.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 13.5px; font-weight: 500; color: var(--text); transition: all .25s var(--ease); }
.chip:hover { border-color: var(--navy); color: var(--navy); }
.chip.is-active { background: var(--navy); border-color: var(--navy); color: #fff; box-shadow: 0 6px 16px rgba(35, 75, 125, .25); }
.chip-n { font-size: 11px; font-weight: 700; background: var(--ice); color: var(--navy); border-radius: 999px; padding: 2px 7px; }
.chip.is-active .chip-n { background: rgba(255, 255, 255, .22); color: #fff; }
.sort { display: inline-flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--muted); }
.sort select { font: inherit; font-weight: 500; color: var(--navy); border: 1px solid var(--line); border-radius: 10px; padding: 9px 36px 9px 12px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23234B7D' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 12px center; appearance: none; -webkit-appearance: none; cursor: pointer; }
.result-count { margin: 18px 0 16px; font-size: 13px; color: var(--muted); font-weight: 300; }
.result-count b { color: var(--navy); font-weight: 700; }

.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 26px; }
.project-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; cursor: pointer; opacity: 0; transition: transform .3s var(--ease), box-shadow .35s var(--ease), border-color .35s; transform-style: preserve-3d; }
.project-card.in { animation: card-in .75s var(--ease) both; animation-delay: var(--d, 0ms); }
.project-card.shown { opacity: 1; animation: none; }
@keyframes card-in { from { opacity: 0; transform: translateY(30px) scale(.98); } to { opacity: 1; transform: none; } }
.project-card.shown:hover, .project-card.shown:focus-visible { transform: translateY(-6px); box-shadow: var(--shadow); border-color: #c6d4e6; }
.card-cover::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .22), transparent 55%); opacity: 0; transition: opacity .35s; pointer-events: none; }
.project-card:hover .card-cover::after { opacity: 1; }
.card-cover { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--ice-soft); }
.card-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.project-card:hover .card-cover img { transform: scale(1.05); }
.card-part { position: absolute; left: 14px; top: 14px; background: rgba(35, 75, 125, .92); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .1em; padding: 6px 10px; border-radius: 6px; }
.card-body { padding: 20px 22px 6px; display: grid; gap: 8px; flex: 1; align-content: start; }
.card-title { font-size: 19px; font-weight: 700; color: var(--navy-ink); line-height: 1.35; }
.card-meta { font-size: 13px; color: var(--navy); font-weight: 500; }
.card-summary { font-size: 13.5px; font-weight: 300; color: var(--text); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.card-tags li { font-size: 11.5px; font-weight: 500; color: var(--navy); background: var(--ice); padding: 4px 9px; border-radius: 999px; }
.card-foot { display: flex; justify-content: space-between; align-items: center; padding: 14px 22px 18px; font-size: 13px; font-weight: 700; color: var(--navy); }
.card-foot .arrow { transition: transform .3s var(--ease); }
.project-card:hover .card-foot .arrow { transform: translateX(6px); }
.empty { padding: 60px 0; text-align: center; color: var(--muted); font-weight: 300; }

/* ---------- 연락처 ---------- */
.contact { position: relative; overflow: hidden; text-align: center; padding: 140px 0; border-top: 1px solid var(--line-soft); }
.contact-arcs { position: absolute; inset: 0; width: 100%; height: 100%; transform-origin: center; will-change: transform; }
.contact-inner { position: relative; }
.contact-title { font-size: clamp(40px, 11vw, 120px); font-weight: 700; color: var(--navy); line-height: 1; margin: 6px 0 22px; }
.contact-sub { font-weight: 300; color: var(--navy); font-size: 15px; line-height: 1.6; margin-bottom: 36px; }
.contact-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.site-footer { border-top: 1px solid var(--line); padding: 22px 0; font-size: 12px; color: var(--muted); font-weight: 300; letter-spacing: .06em; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; }
.to-top { color: var(--navy); font-weight: 500; }

/* ---------- 프로젝트 상세 창 ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(10, 22, 44, .58); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .3s; }
.modal-panel { position: relative; width: min(1280px, 100%); height: min(92vh, 100%); background: #fff; border-radius: 20px; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); display: flex; flex-direction: column; overflow: hidden; opacity: 0; transform: translateY(24px) scale(.985); transition: opacity .35s var(--ease), transform .35s var(--ease); outline: none; }
.modal.is-open .modal-backdrop { opacity: 1; }
.modal.is-open .modal-panel { opacity: 1; transform: none; }
.modal-topbar { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 18px; padding: 0 22px 0 26px; height: 56px; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.modal-part { font-weight: 700; color: var(--navy); letter-spacing: .08em; font-size: 13px; }
.modal-crumb { font-weight: 300; color: var(--navy); font-size: 13px; text-align: center; }
.modal-sig { font-size: 13px; color: var(--navy); font-weight: 300; }
.modal-sig b { font-weight: 700; }
.modal-close { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: var(--navy); transition: background .2s; }
.modal-close:hover { background: var(--ice-soft); }
.modal-body { transition: opacity .18s; flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 34px 30px 40px; display: grid; grid-template-columns: 330px 1fr; gap: 34px; align-content: start; }
.modal-body.is-switching { opacity: 0; }
.modal-footer { flex-shrink: 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 22px; border-top: 1px solid var(--line); background: #fff; }
.modal-nav { font-size: 13.5px; font-weight: 700; color: var(--navy); padding: 9px 14px; border-radius: 10px; transition: background .2s; }
.modal-nav:hover { background: var(--ice-soft); }
.modal-nav:disabled { color: #b7c2d0; cursor: default; background: none; }
.modal-counter { font-size: 12.5px; color: var(--muted); font-weight: 300; letter-spacing: .06em; }

.detail-side { position: sticky; top: 0; align-self: start; max-height: calc(92vh - 200px); overflow-y: auto; padding-right: 6px; }
@media (max-height: 760px) { .detail-side { position: static; max-height: none; overflow: visible; } }
.detail-title { font-size: 30px; font-weight: 700; color: var(--navy); line-height: 1.25; margin-bottom: 18px; }
.detail-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.pill { display: inline-block; background: var(--ice); color: var(--navy); font-size: 13.5px; font-weight: 500; padding: 6px 12px; border-radius: 8px; }
.detail-info { display: grid; gap: 10px; }
.detail-info div { display: grid; grid-template-columns: 64px 1fr; gap: 8px; align-items: start; }
.detail-info dt { font-weight: 700; color: var(--navy); font-size: 15px; }
.detail-info dd { font-weight: 300; color: var(--navy); font-size: 15px; line-height: 1.65; }
.detail-info dd a { text-decoration: underline; text-underline-offset: 3px; }
.detail-info dd mark { animation: mark-in .8s var(--ease) both; animation-delay: .35s; }
@keyframes mark-in { from { background-size: 0 100%; } to { background-size: 100% 100%; } }
.detail-info dd mark { background: linear-gradient(var(--ice), var(--ice)) no-repeat left / 100% 100%; }

.detail-panel { position: relative; background: var(--panel); border-radius: 14px; padding: 26px 24px 26px; min-width: 0; }
.detail-panel::before { content: ''; position: absolute; left: 0; top: 0; width: 46px; height: 3px; background: var(--navy); border-radius: 0 0 3px 0; }
.overview { margin-bottom: 22px; }
.overview-label { display: inline-block; font-weight: 700; color: var(--navy-ink); font-size: 14px; letter-spacing: .06em; margin-bottom: 6px; }
.overview p { font-weight: 300; color: var(--text); font-size: 14px; line-height: 1.75; }
.overview b { color: var(--navy); font-weight: 700; }
.group-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px 22px; }
.group { grid-column: span var(--span, 12); min-width: 0; }
.group-stack { display: grid; gap: 20px; align-content: start; }
.group-title { font-size: 15px; font-weight: 500; color: var(--navy-ink); margin-bottom: 10px; }
.group-badge { display: inline-block; background: var(--navy); color: #fff; font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 4px; margin-bottom: 12px; letter-spacing: .02em; }
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--min, 160px), 1fr)); gap: 10px; align-items: start; }
.shots-cols { grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); }
.shots-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; }
.shots-row .shot img { height: var(--h, 160px); width: auto; max-width: 100%; }
.shot { margin: 0; min-width: 0; }
.shot img { width: 100%; height: auto; border-radius: 6px; border: 1px solid var(--line); background: #fff; cursor: zoom-in; transition: transform .35s var(--ease), box-shadow .35s; }
.shot img:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.shot figcaption { font-size: 12.5px; font-weight: 300; font-style: italic; color: var(--navy); margin-top: 6px; }
.group-stat { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 13.5px; font-weight: 500; color: var(--navy); }
.group-stat::before { content: ''; width: 26px; height: 14px; background: var(--navy); clip-path: polygon(0 30%, 55% 30%, 55% 0, 100% 50%, 55% 100%, 55% 70%, 0 70%); flex-shrink: 0; }
.group-note { margin-top: 10px; font-size: 14px; font-weight: 500; color: var(--navy-ink); }
.group-notes { margin-top: 14px; display: grid; gap: 4px; font-size: 14px; font-weight: 500; color: var(--navy-ink); }

.inf-row { display: grid; gap: 14px; }
.inf-item { display: flex; gap: 16px; align-items: center; }
.inf-avatar-wrap { flex: 0 0 96px; text-align: center; }
.inf-avatar { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; margin: 0 auto 8px; border: 1px solid var(--line); background: #fff; }
.inf-name { display: block; font-size: 13.5px; font-weight: 500; color: var(--navy-ink); }
.inf-stat { display: block; font-size: 12.5px; font-weight: 300; color: var(--navy); }
.inf-thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.inf-thumbs .shot img { height: 96px; width: auto; }

.devices { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: center; gap: 28px; padding: 10px 0; }
.device-monitor { position: relative; width: min(470px, 100%); }
.device-frame { width: 100%; height: auto; }
.device-screen { position: absolute; object-fit: cover; cursor: zoom-in; border-radius: 4px; }
.device-phone { width: min(230px, 45%); }
.device-phone img { cursor: zoom-in; }

.phones { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 22px; padding: 6px 0; }
.phone { position: relative; width: min(230px, 100%); transform: translateY(calc(var(--k, 0) * 14px)); }
.phone-frame { width: 100%; height: auto; }
.phone-screen { position: absolute; object-fit: cover; cursor: zoom-in; border-radius: 6% / 3%; }
.callout { margin-top: 24px; display: inline-flex; flex-direction: column; gap: 2px; background: var(--navy); color: #fff; padding: 14px 18px; border-radius: 10px; font-weight: 300; font-size: 14px; line-height: 1.5; box-shadow: 0 10px 24px rgba(35, 75, 125, .25); }
.callout b { font-weight: 700; font-size: 15px; }
.callout-wrap { display: flex; justify-content: center; }

.channels { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; }
.channel { min-width: 0; }
.channel-set { margin-bottom: 14px; }
.set-caption { font-size: 12.5px; font-weight: 300; font-style: italic; color: var(--navy); margin-top: 6px; }
.channel-role { font-size: 14.5px; font-weight: 700; color: var(--navy-ink); margin: 6px 0 8px; }
.channel-bullets { display: grid; gap: 4px; font-size: 13px; font-weight: 300; color: var(--text); line-height: 1.55; }

/* ---------- 이미지 크게 보기 ---------- */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(4, 10, 22, .88); display: flex; align-items: center; justify-content: center; padding: 20px; animation: fade .25s both; }
.lightbox[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.lb-figure { display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 100%; }
.lb-figure img { max-width: 92vw; max-height: 80vh; width: auto; height: auto; object-fit: contain; border-radius: 8px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); background: #fff; animation: pop .3s var(--ease) both; }
@keyframes pop { from { transform: scale(.94); opacity: 0; } to { transform: none; opacity: 1; } }
.lb-figure figcaption { color: #fff; font-weight: 300; font-size: 14px; text-align: center; }
.lb-btn { position: absolute; color: #fff; width: 48px; height: 48px; border-radius: 50%; background: rgba(255, 255, 255, .12); display: grid; place-items: center; font-size: 30px; line-height: 1; transition: background .2s; }
.lb-btn:hover { background: rgba(255, 255, 255, .26); }
.lb-close { top: 18px; right: 18px; font-size: 32px; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }

/* ---------- 스크롤 등장 효과 ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- 화면 크기별 조정 ---------- */
@media (max-width: 1080px) {
  .intro-grid { grid-template-columns: 300px 1fr; gap: 40px; }
  .parts-strip { grid-template-columns: repeat(2, 1fr); }
  .modal-body { grid-template-columns: 1fr; padding: 24px 22px 32px; }
  .detail-side { position: static; max-height: none; overflow: visible; padding-right: 0; }
}
@media (max-width: 860px) {
  .section { padding: 80px 0; }
  .intro { overflow: hidden; }
  .intro-grid { grid-template-columns: 1fr; }
  .profile-card { position: static; }
  .resume-grid { grid-template-columns: 1fr; gap: 32px; }
  .header-inner { grid-template-columns: auto 1fr auto; }
  .header-sig { display: none; }
  .nav-toggle { display: flex; }
  .site-nav { position: absolute; left: 0; right: 0; top: var(--header-h); background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; gap: 0; padding: 8px 24px 12px; transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; }
  .site-nav a { padding: 12px 0; font-size: 14px; }
  .site-header.nav-open .site-nav { opacity: 1; transform: none; pointer-events: auto; }
  .site-header.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .site-header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .site-header.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .modal { padding: 0; }
  .modal-panel { height: 100%; border-radius: 0; }
  .modal-crumb, .modal-sig { display: none; }
  .modal-topbar { grid-template-columns: 1fr auto; }
  .group { grid-column: span 12; }
  .inf-avatar-wrap { flex-basis: 84px; }
  .shots-cols { grid-template-columns: repeat(var(--cols-m, 2), minmax(0, 1fr)); }
  .shots-row .shot img { height: calc(var(--h, 160px) * .8); }
}
@media (max-width: 520px) {
  .container, .header-inner, .hero-inner { width: min(var(--container), 100% - 32px); }
  .hero-inner { padding: 100px 0 120px; }
  .parts-strip { grid-template-columns: 1fr; gap: 8px; }
  .part-item { grid-template-columns: auto 1fr auto; align-items: center; gap: 0 12px; padding: 12px 16px; }
  .part-item::before, .part-sub { display: none; }
  .part-no { font-size: 18px; }
  .part-title { margin-top: 0; font-size: 14px; }
  .part-count { margin-top: 0; font-size: 11.5px; }
  .toolbar { flex-direction: column; flex-wrap: nowrap; align-items: stretch; }
  .filters { min-width: 0; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px 6px; }
  .filters::-webkit-scrollbar { display: none; }
  .chip { flex: 0 0 auto; }
  .sort { justify-content: flex-end; }
  .project-grid { grid-template-columns: 1fr; }
  .device-phone { width: min(230px, 60%); }
  .lb-prev, .lb-next { top: auto; bottom: 18px; transform: none; }
  .lb-figure { padding-bottom: 60px; }
  .profile-photo-wrap { width: 200px; height: 200px; }
  .detail-info div { grid-template-columns: 56px 1fr; }
  .modal-nav { font-size: 12.5px; padding: 8px 10px; }
  .lb-prev, .lb-next { width: 40px; height: 40px; }
}

/* 움직임을 줄이는 설정을 켠 사용자에게는 애니메이션을 끕니다 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
