/* =========================================================
   인물 프로필(character-01~04.html)
   한 파일 안의 <article class="person"> 하나가 한 사람입니다.
   ========================================================= */
.person { position: relative; z-index: 2; max-width: 1600px; margin: 0 auto; padding: 32px 48px; display: flex; align-items: flex-start; gap: 48px; min-height: calc(100vh - 60px); }
.person > * { flex: 1; min-width: 0; }

.portrait { position: relative; animation: slideL .6s both; }
.portrait .frame { position: relative; overflow: hidden; }
.portrait .bg { width: 100%; height: 85vh; object-fit: cover; border: 2px solid var(--gray); box-shadow: 0 25px 50px rgba(0,0,0,.5); filter: grayscale(.9) contrast(1.3) brightness(.85); }
.portrait .body { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 16px; pointer-events: none; will-change: transform; }
.portrait .body img { height: 90%; width: auto; object-fit: contain; filter: grayscale(.8) contrast(1.2) brightness(.9); }
.portrait .frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to right, transparent, transparent, rgba(10,10,10,.6)); pointer-events: none; }
.portrait .name { position: absolute; left: 0; bottom: 32px; z-index: 3; max-width: 448px; background: rgba(26,26,26,.7); border: 2px solid var(--gray-2); padding: 16px 32px; font-family: var(--mono); }
.portrait .name b { display: block; color: #fff; font-size: 30px; margin-bottom: 4px; }
.portrait .name span { color: var(--gray-2); font-size: 14px; letter-spacing: .2em; text-transform: uppercase; }

.record-wrap { position: relative; padding-bottom: 32px; }
.record { position: relative; background: var(--ink-2); border: 2px solid var(--gray); box-shadow: 0 25px 50px rgba(0,0,0,.5); padding: 32px; margin-bottom: 24px; font-family: var(--mono); animation: riseIn .6s .2s both;
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23n)' opacity='0.15'/%3E%3C/svg%3E"); }
.record-head { border-bottom: 2px solid #666; padding-bottom: 16px; margin-bottom: 24px; }
.record-head .k { font-size: 12px; color: var(--gray-2); letter-spacing: .2em; margin-bottom: 8px; }
.record-head h1 { font: 700 30px var(--mono); color: #ccc; letter-spacing: .1em; margin-bottom: 4px; }
.record-head .s { font-size: 14px; color: #aaa; letter-spacing: .1em; }

.badge { position: relative; margin-bottom: 24px; background: rgba(26,26,26,.8); border: 2px solid var(--gray-2); padding: 16px; }
.badge .tag { position: absolute; top: -8px; right: -8px; background: var(--red); color: #fff; border: 1px solid var(--red-dark); padding: 4px 12px; font-size: 12px; transform: rotate(3deg); }
.label { font-size: 12px; color: var(--gray-2); letter-spacing: .2em; margin-bottom: 8px; }
.badge .label { margin-bottom: 4px; }
.badge .nm { display: flex; align-items: baseline; gap: 8px; }
.badge .nm b { font-size: 24px; color: #ccc; }
.badge .nm span { font-size: 14px; color: var(--gray-2); }
.badge .role { font-size: 14px; color: #aaa; margin-top: 4px; }

.field { margin-bottom: 20px; }
.field .val { background: rgba(26,26,26,.8); border: 2px solid #666; padding: 16px; font-size: 14px; line-height: 1.65; color: #ccc; }

.signoff { border-top: 4px solid #666; padding-top: 16px; margin-top: 24px; display: flex; align-items: center; justify-content: space-between; }
.signoff b { display: block; font-size: 24px; color: #fff; font-style: italic; }
.seal { width: 96px; height: 96px; border: 2px solid var(--red); border-radius: 50%; display: grid; place-items: center; background: rgba(196,30,58,.1); transform: rotate(-12deg); color: var(--red); font-weight: 700; font-size: 12px; text-align: center; }

.sticker { position: absolute; top: 80px; right: -32px; background: var(--red); border: 2px solid var(--gray-2); padding: 16px 24px; box-shadow: 0 20px 25px rgba(0,0,0,.4); display: flex; align-items: center; gap: 12px; color: #fff; font-family: var(--mono); z-index: 3;
  transform: rotate(3deg); animation: stickIn .4s .6s both; }
@keyframes stickIn { from { opacity: 0; transform: rotate(-5deg) scale(.9); } }
.sticker svg { width: 32px; height: 32px; flex: none; }
.sticker .k { font-size: 12px; font-weight: 700; letter-spacing: .1em; }
.sticker .v { font-size: 18px; font-weight: 700; }

/* 넘기기 · 돌아가기 */
.page-arrow { position: fixed; top: 50%; transform: translateY(-50%); z-index: 40; opacity: .6; transition: opacity .2s, transform .2s; }
.page-arrow svg { width: 64px; height: 64px; color: #fff; }
.page-arrow.prev { left: 32px; } .page-arrow.next { right: 32px; }
.page-arrow:hover:not(:disabled) { opacity: 1; }
.page-arrow.prev:hover:not(:disabled) { transform: translate(-5px, -50%) scale(1.2); }
.page-arrow.next:hover:not(:disabled) { transform: translate(5px, -50%) scale(1.2); }
.page-arrow:disabled { opacity: .2; cursor: not-allowed; }
.page-dots { position: fixed; bottom: 32px; left: 50%; transform: translateX(-50%); z-index: 40; display: flex; gap: 8px; background: rgba(26,26,26,.8); border: 1px solid var(--gray); padding: 8px 16px; }
.page-dots button { width: 8px; height: 8px; border-radius: 999px; background: var(--gray); transition: .2s; }
.page-dots button.on { width: 24px; background: #fff; }
.back-btn { position: fixed; bottom: 16px; left: 32px; z-index: 50; display: flex; align-items: center; gap: 8px; padding: 12px 24px; border: 2px solid var(--gray); font: 14px var(--mono); letter-spacing: .1em; color: var(--paper-2); transition: .2s; }
.back-btn:hover { background: rgba(51,51,51,.5); border-color: #fff; }
.back-btn svg { width: 20px; height: 20px; }

@media (max-width: 1023px) {
  .person { flex-direction: column; gap: 24px; padding: 32px 16px; }
  .person > * { width: 100%; }
  .portrait .bg { height: 60vh; }
  .record-wrap { padding-bottom: 80px; }
  .sticker { top: 16px; right: -8px; padding: 8px 12px; }
  .sticker svg { width: 20px; height: 20px; }
  .sticker .v { font-size: 14px; }
  .page-arrow svg { width: 40px; height: 40px; }
  .page-arrow.prev { left: 8px; } .page-arrow.next { right: 8px; }
  .page-dots { bottom: 80px; }
}
@media (max-width: 640px) {
  .portrait .bg { height: 50vh; }
  .portrait .name { bottom: 16px; padding: 8px 16px; max-width: 280px; }
  .portrait .name b { font-size: 20px; }
  .portrait .name span { font-size: 12px; }
  .record { padding: 16px; }
  .record-head h1 { font-size: 20px; }
  .badge .nm b { font-size: 18px; }
  .field .val, .badge .role { font-size: 12px; }
  .seal { width: 64px; height: 64px; font-size: 10px; }
  .back-btn { left: 16px; padding: 8px 12px; }
  .back-btn span { display: none; }
}
