/* 슬라이드별 레이아웃 */

/* 인쇄(PDF) 때는 모든 슬라이드가 한 번에 보이므로 era 색을 섹션마다 직접 건다 */
html.reveal-print section[data-era='v2'], .reveal-print section[data-era='v2'],
html.print-pdf section[data-era='v2'] { --accent: var(--accent-v2); }

/* ── 잉크 틸 바탕 슬라이드 (표지 · 마무리) ── */
.reveal section.ink { color: #fff; }
.reveal section.ink h1, .reveal section.ink h2, .reveal section.ink h3 { color: #fff; }
.reveal section.ink .dim { color: color-mix(in srgb, #fff 72%, transparent); }
.reveal section.ink .pill.soft { background: rgba(255, 255, 255, 0.14); color: var(--ink-mint); }

.cover { height: 100%; display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 30px; position: relative; }
.cover .logo { width: 100%; max-width: 540px; margin: 0 auto; filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.25)); }
.cover h1 { font-size: 168px; letter-spacing: -0.06em; line-height: 1; }
.cover .lead { font-size: 40px; font-weight: 700; margin-top: 18px; color: var(--ink-mint); }
.cover .sub { font-size: 24px; margin-top: 6px; color: rgba(255, 255, 255, 0.75); }
.cover .meta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 44px; }
.cover .team { margin-top: 16px; font-size: 20px; color: rgba(255, 255, 255, 0.7); }
.cover .by { position: absolute; top: 0; right: 0; text-align: right; font-size: 15px; color: rgba(255, 255, 255, 0.7); line-height: 1.4; }

/* ── 목차 (코드 모티프) ── */
.toc { height: 100%; display: grid; grid-template-columns: 0.78fr 1.22fr; gap: 56px; align-items: center; }
.toc h2 { font-size: 96px; }
.toc .code {
  background: var(--surface); border: 1px solid var(--border-light); border-radius: var(--radius-card);
  padding: 34px 40px; font-size: 22px; line-height: 1.6; box-shadow: var(--shadow);
}
.toc .code .ln { display: grid; grid-template-columns: 2.2em 1fr 1fr; align-items: center; white-space: pre; min-height: 1.6em; }
.toc .code .no { color: var(--accent); font-weight: 700; font-size: 18px; }
.toc .code .fn { color: var(--accent); font-weight: 700; }
.toc .code .cm { color: var(--text); font-weight: 500; white-space: normal; }

/* ── 개발 동기 ── */
.timeline { position: relative; height: 76px; border-radius: 14px; background: var(--surface-2); overflow: hidden; }
.timeline .blk { position: absolute; top: 14px; height: 48px; border-radius: 10px; background: var(--accent-soft); border: 1.5px solid var(--accent-line); display: grid; place-items: center; font-size: 16px; font-weight: 500; color: var(--accent); }
.timeline.tight .blk.late { background: rgba(220, 38, 38, 0.08); border-color: rgba(220, 38, 38, 0.45); color: #b91c1c; }
.timeline.loose .blk { border-style: dashed; background: transparent; color: var(--text-dim); border-color: var(--text-faint); }
.timeline .now { position: absolute; top: 0; bottom: 0; width: 2px; background: #dc2626; }
.answer { flex-direction: row; align-items: center; gap: 22px; padding: 26px 34px; }
.answer .pill { background: rgba(255, 255, 255, 0.18); }
.answer p { font-size: 24px; font-weight: 700; color: #fff; }

/* ── 아이디어 ── */
.ideas { display: grid; grid-template-columns: repeat(3, 1fr); padding: 44px 0; }
.ideas > div { padding: 0 40px; display: flex; flex-direction: column; gap: 14px; }
.ideas > div + div { border-left: 1.5px solid var(--border-light); }
.ideas h3 { display: flex; align-items: center; gap: 12px; font-size: 28px; }
.ideas h3::before { content: ''; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); flex: none; }
.ideas p { font-size: 22px; }

/* ── 역할 ── */
.roles { display: grid; grid-template-columns: 0.75fr 1.25fr; gap: 48px; align-items: center; }
.roles > p { font-size: 24px; color: var(--text-dim); }
.role-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.role-grid .card { align-items: center; text-align: center; padding: 36px 24px; gap: 8px; }
.role-grid .card:last-child { grid-column: 1 / -1; justify-self: center; width: calc(50% - 10px); }
.role-grid .name { font-size: 36px; font-weight: 800; letter-spacing: -0.03em; }
.role-grid .role { font-size: 19px; opacity: .85; }

/* ── 1차 개발 과정 ── */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); position: relative; }
.steps::before { content: ''; position: absolute; left: 14px; right: 14px; top: 14px; height: 2px; background: var(--border); }
.steps > div { position: relative; padding-left: 38px; }
.steps > div::before { content: ''; position: absolute; left: 4px; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--bg); border: 3px solid var(--accent); box-sizing: border-box; }
.steps > div.on::before { background: var(--accent); }
.steps b { display: block; font-size: 24px; font-weight: 800; line-height: 1.2; }
.steps span { font-size: 18px; color: var(--text-dim); }
.stack-card h3 { font-size: 44px; font-weight: 800; color: var(--accent); }
.stack-card p { font-size: 18px; }

/* ── 결과물 화면 ── */
.shots { display: grid; grid-template-columns: 1.55fr 1fr; gap: 26px; align-items: start; }
.shots .side { display: grid; gap: 22px; }
.points { display: flex; flex-direction: column; gap: 14px; list-style: none; padding: 0; margin: 0; }
.points li { display: flex; gap: 14px; font-size: 22px; line-height: 1.45; color: var(--text-dim); }
.points li::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); flex: none; margin-top: .55em; }
.points li strong { color: var(--text); }

/* ── 내부 피드백 ── */
.fb { display: grid; grid-template-columns: 1fr 1fr 1.05fr; gap: 20px; align-items: start; }
.chat { display: flex; flex-direction: column; gap: 10px; }
.chat-title { font-size: 16px; font-weight: 700; color: var(--accent); margin-bottom: 2px; }
.bubble { max-width: 92%; padding: 9px 16px; border-radius: 18px 18px 18px 6px; background: var(--surface-2); font-size: 19px; line-height: 1.45; }
.bubble .who { display: block; font-size: 13px; color: var(--text-faint); margin-bottom: 1px; }
.bubble.me { align-self: flex-end; border-radius: 18px 18px 6px 18px; background: var(--accent-soft); }
.bubble .quote-ref { display: block; font-size: 13px; color: var(--text-faint); margin-bottom: 1px; }
.bubble.list { list-style: none; counter-reset: n; margin: 0; padding: 14px 18px; max-width: none; align-self: stretch; display: grid; gap: 7px; }
.bubble.list li { counter-increment: n; display: flex; gap: 10px; font-size: 19px; }
.bubble.list li::before { content: counter(n); color: var(--accent); font-weight: 800; width: 1em; flex: none; }
.chart-box svg { width: 100%; height: auto; display: block; }

/* ── 피드백 반영 before / after ── */
.ba { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; align-content: center; }
.ba .card { flex-direction: row; align-items: center; gap: 24px; padding: 38px 36px; }
.ba .what { flex: 1; }
.ba .what h3 { font-size: 28px; }
.ba .val { font-size: 46px; font-weight: 800; letter-spacing: -0.03em; white-space: nowrap; }
.swatches { display: flex; gap: 6px; flex-wrap: wrap; max-width: 190px; justify-content: flex-end; }
.swatches i { width: 22px; height: 22px; border-radius: 50%; display: block; }
/* auto-animate 가 색을 고정하지 않도록 — 색은 :root 의 --accent 전환을 따른다 */
.ba .val, [data-id='k6'] { color: #fff !important; }
.ba .val { color: var(--accent) !important; }
[data-id='k6'] { background: var(--accent) !important; }
.ba .card.tint { border-color: var(--accent-line) !important; }

/* ── 어려움 ── */
.problem { gap: 14px; min-height: 380px; }
.problem .num { width: 52px; height: 52px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 19px; }
.problem .fix { margin-top: auto; padding-top: 16px; border-top: 1.5px dashed var(--border); font-size: 21px; font-weight: 700; color: var(--text); }
.problem .fix::before { content: '→ '; color: var(--accent); font-weight: 800; }

/* ── AI 확인 카드 ── */
.evidence { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: center; }
.evidence .frame { overflow: visible; }
.evidence .frame img { border-radius: 20px; }
.callout { position: absolute; border: 3px solid #d97706; border-radius: 10px; }
.callout-label { position: absolute; padding: 5px 12px; border-radius: 10px; background: #d97706; color: #fff; font-size: 16px; font-weight: 700; white-space: nowrap; }

/* ── 2차 결과물 ── */
.thumbs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.thumbs .frame.crop { height: 360px; }
.thumbs figcaption, .shots figcaption { font-size: 16px; color: var(--text-dim); margin-top: 8px; }
.rc { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rc .dot { color: var(--text-faint); }

.video-stage { display: grid; grid-template-columns: 1fr 1fr 0.42fr; gap: 22px; align-items: start; }
.video-stage .clip { display: flex; flex-direction: column; gap: 10px; }
.video-stage .caption { font-size: 19px; color: var(--text-dim); }

/* ── 외부 피드백 ── */
.info { display: grid !important; grid-template-columns: 100px 1fr; align-items: center; padding: 22px 28px; }
.info span { font-size: 17px; font-weight: 700; color: var(--accent); }
.info b { font-size: 22px; font-weight: 700; }
.frame.form { height: 560px; }

/* ── QA ── */
.qa .card h3 { font-size: 26px; line-height: 1.35; }
.qa .pill { align-self: flex-start; }

/* ── 최종 ── */
.feats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feats div { background: var(--accent); color: #fff; border-radius: 22px; height: 118px; display: grid; place-items: center; text-align: center; font-size: 21px; font-weight: 700; padding: 0 12px; box-shadow: var(--shadow); }

/* ── 소감 ── */
.sogam { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.sogam::before { content: ''; position: absolute; left: 0; right: 0; top: 22px; border-top: 2px dashed var(--accent-line); }
.sogam > div { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.sogam .pill { position: relative; font-size: 19px; padding: 8px 22px; }
.sogam .card { align-self: stretch; min-height: 340px; }
.sogam .quote { font-size: 21px; color: var(--text-faint); }

/* ── 마무리 ── */
.end { height: 100%; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 70px; }
.end h2 { font-size: 54px; line-height: 1.25; }
.end .points li { color: rgba(255, 255, 255, 0.85); font-size: 25px; }
.end .points li strong { color: #fff; }
.end .points li::before { background: var(--ink-mint); }
.qr { width: 300px; padding: 20px; background: #fff; border-radius: 28px; box-shadow: var(--shadow-lg); text-align: center; }
.qr img { display: block; width: 100%; margin: 0; }
.qr b { display: block; margin-top: 10px; font-size: 26px; color: var(--ink); font-weight: 800; }

/* ════════ 학생 발표 느낌 (2026-11-25 조정) ════════
   모눈종이 배경 · 납작한 카드(테두리, 그림자 거의 없음) · 형광펜 제목 · 연한 틸 블록 */
html, body, .reveal-viewport {
  background-color: #f7f5f0 !important;
  background-image:
    linear-gradient(rgba(31, 95, 90, 0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 95, 90, 0.10) 1px, transparent 1px) !important;
  background-size: 36px 36px !important;
}
.card { box-shadow: 0 3px 0 rgba(40, 32, 24, 0.06); border: 2px solid #e6e2d9; border-radius: 22px; }
.card.tint { background: color-mix(in srgb, var(--accent) 9%, #fff); border-color: color-mix(in srgb, var(--accent) 28%, #fff); }
.frame { box-shadow: 0 3px 0 rgba(40, 32, 24, 0.08); border: 2px solid #e2ded5; }
.reveal h2 { font-size: 60px; display: inline; align-self: flex-start;
  background: linear-gradient(transparent 62%, color-mix(in srgb, var(--accent) 22%, transparent) 62%, color-mix(in srgb, var(--accent) 22%, transparent) 92%, transparent 92%);
  padding: 0 6px; margin-left: -6px; }
.head h2 { display: inline-block; }
.pill { border-radius: 10px; }
.head .kicker .pill { font-size: 17px; padding: 4px 14px; }
.answer .pill { background: var(--accent); color: #fff; }
.answer p { color: var(--text); }
.role-grid .card.tint .name { color: var(--accent); }
.role-grid .card.tint .role { color: var(--text-dim); opacity: 1; }
.feats div { background: color-mix(in srgb, var(--accent) 9%, #fff); color: var(--accent); border: 2px solid color-mix(in srgb, var(--accent) 28%, #fff); box-shadow: none; }
.stack-card h3 { font-size: 40px; }

/* 표지 · 마무리 (밝은 바탕) */
.cover { grid-template-columns: 1.15fr 0.85fr; }
.cover h1 { font-size: 150px; color: var(--text); margin-top: 22px; }
.cover .lead { color: var(--accent); font-size: 38px; }
.cover .sub { color: var(--text-dim); font-size: 24px; }
.cover .team { color: var(--text); font-size: 22px; font-weight: 500; margin-top: 40px; }
.cover .date { color: var(--text-faint); font-size: 19px; margin-top: 4px; }
.cover .logo { max-width: 440px; filter: none; }
.end h2 { font-size: 60px; }
.end .points li { color: var(--text-dim); font-size: 23px; }
.end .points li strong { color: var(--text); }
.end .points li::before { background: var(--accent); }
.end .thanks { font-size: 30px; font-weight: 800; color: var(--accent); }
.qr { box-shadow: 0 3px 0 rgba(40, 32, 24, 0.08); border: 2px solid #e6e2d9; }
.qr span { display: block; font-size: 17px; color: var(--text-dim); margin-top: 2px; }

/* 개발 동기 — 그림 대신 팀이 겪은 일을 문장으로 */
.motive .card { padding: 36px 40px; gap: 16px; }
.motive .tag { font-size: 20px; font-weight: 700; color: var(--accent); }
.motive .card p { font-size: 27px; line-height: 1.6; color: var(--text); font-weight: 500; }
.motive .so { font-size: 27px; line-height: 1.7; color: var(--text); margin-top: 18px; padding-left: 4px; }
.motive mark { background: linear-gradient(transparent 58%, color-mix(in srgb, var(--accent) 22%, transparent) 58%); color: inherit; font-weight: 700; padding: 0 2px; }

/* 배운 것 */
.learn .nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.learn .nums div { display: flex; flex-direction: column; gap: 2px; padding: 6px 4px; }
.learn .nums b { font-size: 76px; font-weight: 800; letter-spacing: -0.04em; line-height: 1.2; color: var(--accent); }
.learn .nums span { margin-top: 4px; }
.learn .nums span { font-size: 23px; font-weight: 700; }
.learn .nums em { font-style: normal; font-size: 17px; color: var(--text-faint); }
.learn .card { padding: 26px 28px; }
.learn .tag { font-size: 18px; font-weight: 700; color: var(--accent); }
.learn .card p { font-size: 22px; color: var(--text); line-height: 1.5; }

/* 실제 서비스로 만든다는 것 — 비교표 */
.compare { display: grid; gap: 12px; }
.compare > div { display: grid; grid-template-columns: 120px 0.7fr 1.6fr; gap: 20px; align-items: center; background: #fff; border: 2px solid #e6e2d9; border-radius: 18px; padding: 18px 26px; font-size: 21px; }
.compare > div.hdr { background: transparent; border: 0; padding: 0 26px; font-size: 17px; font-weight: 700; color: var(--text-faint); }
.compare > div.hdr span:last-child { color: var(--accent); }
.compare b { font-size: 23px; font-weight: 800; color: var(--accent); }
.compare span:nth-child(2) { color: var(--text-faint); }
.compare span:nth-child(3) { color: var(--text); font-weight: 500; }

/* 진로 설계 */
.fields .card { padding: 24px 28px; gap: 8px; }
.fields .tag { font-size: 21px; font-weight: 800; color: var(--accent); }
.fields .card p { font-size: 19px; }
.fields .who { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-top: 6px; }
.fields .who .todo { margin-right: 14px; }
.fields .areas { font-size: 30px; font-weight: 700; color: var(--accent); }
.fields .who { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 20px; }
.fields .who > div { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.fields .who .todo { margin: 0; }
.compare > div { padding: 20px 28px; font-size: 23px; }

/* 실제 서비스의 벽 */
.walls { gap: 18px; }
.walls .card { padding: 24px 30px; gap: 8px; }
.walls .when { font-size: 16px; font-weight: 700; color: var(--text-faint); }
.walls h3 { font-size: 26px; }
.walls p { font-size: 19px; line-height: 1.5; color: var(--text-dim); }
.walls .field { align-self: flex-start; margin-top: 4px; font-size: 15px; font-weight: 700; color: var(--accent); background: var(--accent-soft); border-radius: 8px; padding: 3px 10px; }

/* 진로 설계 — 분야별 문제 */
.cs { gap: 16px; }
.cs .card { padding: 22px 26px; gap: 6px; }
.cs .tag { align-self: flex-start; font-size: 15px; font-weight: 700; color: var(--accent); background: var(--accent-soft); border-radius: 8px; padding: 3px 10px; }
.cs h3 { font-size: 23px; line-height: 1.35; }
.cs p { font-size: 17px; line-height: 1.5; color: var(--text-dim); }

/* 테스트 영상 — 재생 중인 영상을 슬라이드 전체 크기로 */
.video-stage .clip { cursor: pointer; }
.video-stage.focus .clip:not(.active) { visibility: hidden; }
.video-stage .clip.active {
  position: fixed; inset: 0; z-index: 50;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background: #f7f5f0;
}
.video-stage .clip.active .frame { height: calc(100% - 110px); width: auto; aspect-ratio: 16 / 10; }
.video-stage .clip.active .frame.phone { aspect-ratio: 9 / 19.5; }
.video-stage .clip.active .frame video { height: 100%; width: 100%; object-fit: contain; background: #111; }
.video-stage .clip.active .caption { font-size: 24px; }
