/* 강사 디지털 명함 — 화이트 에디토리얼 (2026-10-12 사용자 지시로 전부 흰색) */
body.is-card {
  --ink: #fff;
  --ink-2: #f2f4f6;
  --fg: #191f28;
  --fg-2: #4e5968;
  --fg-3: #8b95a1;
  --hair: #e5e8eb;
  --accent: #3182f6;
  --ease: cubic-bezier(.2, .8, .2, 1);
  background: var(--ink); color: var(--fg); overflow-x: hidden;
}
.card { position: relative; max-width: 560px; margin: 0 auto; }
.c-body { padding: 0 20px; }

/* 상단: 사진 위에 얹힌다 */
.c-top { position: absolute; inset: 0 0 auto; z-index: 3; display: flex; justify-content: space-between; align-items: center; height: 64px; padding: 0 20px; }
.c-brand { font-weight: 800; font-size: 15px; letter-spacing: .1em; text-decoration: none; color: var(--fg); }
.c-no { font-size: 12px; letter-spacing: .14em; color: var(--fg-3); font-variant-numeric: tabular-nums; }

/* 히어로: 전면 사진 + 이름 */
.c-hero { position: relative; }
.c-photo { position: relative; margin: 0; overflow: hidden; background: var(--ink-2); }
.c-photo img { width: 100%; aspect-ratio: 4/5; object-fit: cover; animation: c-zoom 1.6s var(--ease) both; }
.c-photo::before, .c-photo::after { content: ""; position: absolute; left: 0; right: 0; z-index: 1; pointer-events: none; }
.c-photo::before { top: 0; height: 64px; background: linear-gradient(rgba(255,255,255,.55), rgba(255,255,255,0)); }
.c-photo::after { bottom: 0; height: 58%; background: linear-gradient(rgba(255,255,255,0), rgba(255,255,255,.8) 55%, var(--ink)); }
.c-id { position: absolute; left: 20px; right: 20px; bottom: 8px; z-index: 2; }
.c-role { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); animation: c-up .9s .3s var(--ease) both; }
.c-badge { padding: 5px 9px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 11px; letter-spacing: .02em; line-height: 1; }
.c-id h1 { display: flex; align-items: baseline; gap: 12px; margin-top: 10px; font-size: 68px; line-height: 1; font-weight: 800; letter-spacing: -.045em; animation: c-up .9s .4s var(--ease) both; }
.c-id h1 small { font-size: 20px; font-weight: 600; letter-spacing: -.02em; color: var(--fg-2); }
.c-en { margin-top: 14px; font-size: 13px; letter-spacing: .36em; text-transform: uppercase; color: var(--fg-3); animation: c-up .9s .5s var(--ease) both; }

/* 비트 */
.c-beat { display: flex; align-items: flex-end; gap: 4px; height: 22px; margin: 28px 0 16px; }
.c-beat i { width: 3px; height: 100%; border-radius: 2px; background: var(--accent); transform-origin: bottom; animation: c-beat 1.2s ease-in-out infinite; }
.c-beat i:nth-child(3n) { animation-duration: .9s; opacity: .7; }
.c-beat i:nth-child(4n+1) { animation-duration: 1.5s; }
.c-beat i:nth-child(5n+2) { animation-delay: -.4s; opacity: .45; }
.c-beat i:nth-child(2n) { animation-delay: -.7s; }
.c-head { font-size: 19px; line-height: 1.55; font-weight: 600; letter-spacing: -.02em; animation: c-up .9s .6s var(--ease) both; }

/* 액션: 상담 전화 + 오시는 길 */
.c-acts { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 28px; animation: c-up .9s .7s var(--ease) both; }
.c-acts a { display: flex; align-items: center; gap: 12px; height: 64px; padding: 0 20px; border: 1px solid var(--hair); border-radius: 18px; background: var(--ink-2); color: var(--fg); font-size: 15px; font-weight: 600; line-height: 1; text-decoration: none; transition: transform .15s, border-color .15s, background .15s; }
.c-acts a:hover { border-color: rgba(245,247,251,.26); }
.c-acts a:active { transform: scale(.97); }
.c-acts .c-main { background: var(--accent); border-color: var(--accent); font-size: 18px; font-weight: 700; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.c-acts .c-main span { display: flex; flex-direction: column; gap: 5px; white-space: nowrap; }
.c-acts a:not(.c-main) { flex-direction: column; justify-content: center; gap: 6px; width: 80px; padding: 0; font-size: 12px; }
.c-acts .c-main small { font-size: 12px; font-weight: 600; opacity: .8; letter-spacing: 0; }
.c-acts .ic { width: 22px; height: 22px; }

/* 흐르는 경력 띠 */
.mq { margin-top: 40px; padding: 16px 0; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.mq-in { display: flex; width: max-content; animation: c-mq 70s linear infinite; }
.mq span { flex: none; padding: 0 16px; font-size: 14px; font-weight: 500; color: var(--fg-2); white-space: nowrap; }
.mq span::before { content: "●"; margin-right: 16px; font-size: 6px; vertical-align: middle; color: var(--accent); }

/* 한마디 */
.c-quote { margin: 48px 0 0; padding-left: 16px; border-left: 2px solid var(--accent); font-size: 17px; line-height: 1.7; font-weight: 500; color: var(--fg-2); }

/* 숫자 */
.stats { display: grid; grid-template-columns: repeat(var(--n), 1fr); margin-top: 40px; }
.stats li { display: flex; flex-direction: column; gap: 6px; padding-left: 16px; border-left: 1px solid var(--hair); }
.stats li:first-child { padding-left: 0; border-left: 0; }
.stats b { font-size: 44px; line-height: 1; font-weight: 800; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.stats span { font-size: 13px; color: var(--fg-3); }

/* 경력 */
.blk { margin-top: 56px; }
.blk h2 { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; font-size: 20px; line-height: 1.3; font-weight: 700; letter-spacing: -.03em; }
.blk h2 em { font-style: normal; font-size: 12px; font-weight: 600; letter-spacing: .12em; color: var(--accent); text-transform: uppercase; }
.cv li { padding: 14px 0; border-bottom: 1px solid var(--hair); font-size: 15px; line-height: 1.5; color: var(--fg-2); transition: color .2s, padding .2s; }
.cv li:first-child { border-top: 1px solid var(--hair); }
.cv li:hover { color: var(--fg); padding-left: 6px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { padding: 8px 12px; border: 1px solid var(--hair); border-radius: 999px; font-size: 13px; line-height: 1; color: var(--fg-2); }

/* 섹션 사이 프로필 사진 */
.brk { margin-top: 56px; }
.ph { margin: 0; overflow: hidden; background: var(--ink-2); }
.ph img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 1.6s var(--ease); }
.rv.on .ph img { transform: none; }
.brk-1 { margin-left: -20px; margin-right: -20px; }
.brk-1 .ph img { aspect-ratio: 4/5; }
.brk-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-items: start; }
.brk-2 .ph { border-radius: 16px; }
.brk-2 .ph img { aspect-ratio: 2/3; }
.brk-2 .ph:nth-child(2) { margin-top: 56px; }

/* 강사진 */
.team { display: flex; gap: 8px; margin: 0 -20px; padding: 0 20px; overflow-x: auto; scrollbar-width: none; }
.team::-webkit-scrollbar { display: none; }
.team a { flex: none; width: 84px; display: flex; flex-direction: column; gap: 8px; text-decoration: none; font-size: 12px; font-weight: 600; text-align: center; color: var(--fg-3); }
.team img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 12px; filter: grayscale(1) brightness(.75); transition: filter .25s; }
.team a:hover img, .team a[aria-current] img { filter: none; }
.team a[aria-current] { color: var(--fg); }

/* 푸터 */
.c-ft { margin-top: 72px; padding-top: 32px; padding-bottom: 56px; border-top: 1px solid var(--hair); font-size: 13px; line-height: 1.8; color: var(--fg-3); }
.c-ft a { color: var(--fg-2); text-decoration: none; }
.c-ft-brand { margin-bottom: 8px; font-size: 14px; font-weight: 800; letter-spacing: .08em; color: var(--fg); }
.c-ft-brand span { margin-left: 6px; font-weight: 500; letter-spacing: 0; color: var(--fg-3); }

/* 스크롤 등장 */
.rv { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.rv.on { opacity: 1; transform: none; }


@keyframes c-zoom { from { transform: scale(1.08); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes c-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes c-beat { 0%, 100% { transform: scaleY(.2); } 50% { transform: scaleY(1); } }
@keyframes c-mq { to { transform: translateX(-50%); } }

@media (min-width: 561px) {
  .card { padding-top: 24px; }
  .c-top { top: 24px; }
  .c-photo { border-radius: 28px; }
  .c-id h1 { font-size: 84px; }
  .c-acts a, .c-acts button { height: 88px; font-size: 13px; }
  .brk-1 { margin-left: 0; margin-right: 0; }
  .brk-1 .ph { border-radius: 24px; }
}
@media (max-width: 360px) {
  .c-id h1 { font-size: 54px; }
  .stats b { font-size: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  .c-photo img, .c-role, .c-id h1, .c-en, .c-head, .c-acts, .c-beat i, .mq-in { animation: none; }
  .rv { opacity: 1; transform: none; transition: none; }
  .ph img { transform: none; transition: none; }
}

/* ---------- 강사진 메인 /card/ */
.card-wide { max-width: 1080px; }
.c-top-static { position: static; }
.ti-hero { padding: 24px 20px 0; text-align: center; }
.ti-hero h1 { margin-top: 12px; font-size: 44px; line-height: 1.15; font-weight: 800; letter-spacing: -.04em; animation: c-up .9s .1s var(--ease) both; }
.ti-hero .c-role { justify-content: center; animation-delay: 0s; }
.ti-sub { margin-top: 16px; font-size: 16px; line-height: 1.7; color: var(--fg-2); animation: c-up .9s .2s var(--ease) both; }
.lu { position: relative; display: flex; align-items: flex-end; max-width: 820px; margin: 32px auto 0; padding: 0 16px; }
.lu::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 22%; background: linear-gradient(rgba(255,255,255,0), var(--ink)); pointer-events: none; z-index: 9; }
.lu-p { position: relative; z-index: var(--z); flex: none; width: var(--w); margin-left: var(--m); text-decoration: none;
  animation: lu-in 1s var(--d) var(--ease) both; transition: transform .35s var(--ease), opacity .35s, filter .35s; }
.lu-p img { width: 100%; height: auto; display: block; }
.lu-p b { position: absolute; left: 50%; bottom: 26%; z-index: 10; transform: translate(-50%, 8px); padding: 6px 10px; border-radius: 999px; background: rgba(25,31,40,.88); color: #fff; font-size: 12px; font-weight: 700; white-space: nowrap; opacity: 0; transition: opacity .25s, transform .25s; pointer-events: none; }
@media (hover: hover) {
  .lu:hover .lu-p { filter: saturate(.4); opacity: .55; }
  .lu .lu-p:hover, .lu .lu-p:focus-visible { filter: none; opacity: 1; transform: translateY(-8px); z-index: 8; }
  .lu-p:hover b, .lu-p:focus-visible b { opacity: 1; transform: translate(-50%, 0); }
}
@keyframes lu-in { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }

.tl { margin-top: 8px; }
.tl a { display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--hair); text-decoration: none; }
.tl li:first-child a { border-top: 1px solid var(--hair); }
.tl img { width: 64px; height: 80px; object-fit: cover; border-radius: 12px; filter: grayscale(1) brightness(.85); transition: filter .25s; }
.tl a:hover img { filter: none; }
.tl-t { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tl-t b { font-size: 18px; font-weight: 700; letter-spacing: -.02em; }
.tl-t b small { margin-left: 4px; font-size: 13px; font-weight: 600; color: var(--fg-3); }
.tl-t b i { margin-left: 6px; padding: 3px 7px; border-radius: 999px; background: var(--accent); font-size: 11px; font-style: normal; font-weight: 600; vertical-align: 2px; }
.tl-t > span { font-size: 13px; line-height: 1.55; color: var(--fg-2); }
.tl-go { color: var(--fg-3); font-size: 18px; transition: transform .2s, color .2s; }
.tl a:hover .tl-go { transform: translateX(4px); color: var(--fg); }
.card-wide .c-body, .card-wide .c-ft { max-width: 560px; margin-left: auto; margin-right: auto; }
.card-wide .c-acts { margin-top: 32px; }
.c-more { margin-top: 16px; font-size: 14px; font-weight: 600; }
.c-more a { color: var(--accent); text-decoration: none; }
@media (min-width: 561px) { .card-wide { padding-top: 0; } .ti-hero { padding-top: 40px; } .ti-hero h1 { font-size: 64px; } }
@media (prefers-reduced-motion: reduce) { .lu-p, .ti-hero h1, .ti-sub { animation: none; } }

/* 강사진 메인: 흰 배경 (누끼가 밝은 배경 사진이라 흰 바탕에서 자연스럽다) */
body.is-card.team-light { --ink: #fff; --ink-2: #f2f4f6; --fg: #191f28; --fg-2: #4e5968; --fg-3: #8b95a1; --hair: #e5e8eb; --accent: #3182f6; }
.team-light .c-brand { color: var(--fg); }
.team-light .c-no { color: var(--fg-3); }
.c-acts .c-main { color: #fff; }
.tl-t b i { color: #fff; }
.team-light .tl img { filter: none; }
