/* 하인드사이트 발표 페이지 — 밝은 바탕, 큰 글씨, insung_introduction 톤(남색 본문 · 파란 포인트 · Pretendard) */
:root {
  --bg: #fbfbfc; --surface: #ffffff; --text: #14213d; --muted: #5f6b80; --border: #e4e8ef;
  --accent: #2f5bea; --accent-soft: rgba(47, 91, 234, .10); --navy: #14213d;
  --up: #d23f31; --up-soft: rgba(210, 63, 49, .10); --down: #2f5bea; --ok: #0b7a4b; --ok-soft: rgba(11,122,75,.10); --warn: #b7791f;
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --radius: 18px; --shadow: 0 1px 2px rgba(20,33,61,.05), 0 10px 30px rgba(20,33,61,.07);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.55; word-break: keep-all; overflow-wrap: anywhere; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; } a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
code { font-family: var(--mono); font-size: .9em; background: var(--accent-soft); padding: .1em .4em; border-radius: 6px; }
b, strong { font-weight: 750; }

/* 상단 바 */
.bar { position: fixed; inset: 0 0 auto 0; z-index: 20; display: flex; align-items: center; gap: 14px; padding: 10px 22px;
  background: rgba(251,251,252,.82); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); font-size: 14px; }
.bar .brand { font-weight: 800; letter-spacing: -.02em; color: var(--navy); display: flex; align-items: center; gap: 8px; }
.bar .brand i { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); display: inline-block; }
.bar .sp { flex: 1; }
.bar .pos { color: var(--muted); font-variant-numeric: tabular-nums; }
.bar .links a { margin-left: 12px; color: var(--muted); } .bar .links a:hover { color: var(--accent); }
.progress { position: fixed; top: 0; left: 0; height: 3px; background: var(--accent); width: 0; z-index: 21; transition: width .2s; }

/* 슬라이드 */
main { scroll-snap-type: y proximity; }
.slide { min-height: 100svh; padding: 88px clamp(20px, 5vw, 72px) 56px; scroll-snap-align: start; display: flex; flex-direction: column; justify-content: center; position: relative; }
.slide > .in { max-width: 1180px; width: 100%; margin: 0 auto; }
.slide.alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.kicker { color: var(--accent); font-weight: 700; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 10px; }
h1 { font-size: clamp(38px, 6vw, 72px); line-height: 1.08; letter-spacing: -.035em; margin: 0 0 18px; font-weight: 850; }
h2 { font-size: clamp(28px, 4vw, 46px); line-height: 1.15; letter-spacing: -.03em; margin: 0 0 14px; font-weight: 800; }
h3 { font-size: 20px; margin: 0 0 8px; letter-spacing: -.01em; }
.lead { font-size: clamp(18px, 2vw, 23px); color: var(--muted); max-width: 60ch; margin: 0 0 28px; }
.note { font-size: 14px; color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }

/* 공통 블록 */
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(4, 1fr); } .g5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 900px) { .g3, .g4, .g5 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .g2, .g3, .g4, .g5 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card.soft { background: var(--accent-soft); border-color: transparent; box-shadow: none; }
.card h3 { font-size: 15px; color: var(--muted); font-weight: 650; margin-bottom: 6px; }
.big { font-size: clamp(34px, 4.6vw, 54px); font-weight: 850; letter-spacing: -.035em; line-height: 1; margin: 6px 0 8px; }
.big small { font-size: .42em; color: var(--muted); font-weight: 600; margin-left: 4px; letter-spacing: 0; }
.pos-v { color: var(--up); } .neg-v { color: var(--down); } .ok { color: var(--ok); }
table { width: 100%; border-collapse: collapse; font-size: 16px; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { font-size: 13px; color: var(--muted); font-weight: 700; background: #f4f6fa; }
td.r, th.r { text-align: right; font-variant-numeric: tabular-nums; }
tr:last-child td { border-bottom: none; }
.tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); margin-right: 6px; }
.tag.ok { background: var(--ok-soft); color: var(--ok); } .tag.warn { background: rgba(183,121,31,.12); color: var(--warn); } .tag.gray { background: #eef1f6; color: var(--muted); }
.links { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-weight: 650; box-shadow: var(--shadow); transition: transform .15s, border-color .15s; }
.btn:hover { transform: translateY(-2px); border-color: var(--accent); text-decoration: none; }
.btn.primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn .u { font-family: var(--mono); font-size: 13px; color: var(--muted); font-weight: 500; } .btn.primary .u { color: rgba(255,255,255,.8); }
ol.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
ol.steps li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; padding: 14px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; }
ol.steps li::before { content: counter(s); width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; display: grid; place-items: center; }
.pipe { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; align-items: stretch; }
.pipe .st { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 18px 16px; position: relative; box-shadow: var(--shadow); }
.pipe .st::after { content: "→"; position: absolute; right: -14px; top: 50%; transform: translateY(-50%); color: var(--accent); font-weight: 800; font-size: 20px; }
.pipe .st:last-child::after { content: none; }
.pipe .st .k { font-size: 13px; color: var(--accent); font-weight: 800; letter-spacing: .04em; }
.pipe .st .v { font-size: clamp(24px, 2.6vw, 34px); font-weight: 850; letter-spacing: -.03em; margin: 4px 0; }
.pipe .st .d { font-size: 13px; color: var(--muted); }
@media (max-width: 900px) { .pipe { grid-template-columns: 1fr; } .pipe .st::after { content: "↓"; right: auto; left: 50%; top: auto; bottom: -22px; transform: translateX(-50%); } }
.story { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: center; }
.story img { border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--border); }
@media (max-width: 900px) { .story { grid-template-columns: 1fr; } }
.hist { display: flex; gap: 8px; align-items: flex-end; height: 180px; padding-top: 10px; }
.hist .c { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; text-align: center; }
.hist .b { border-radius: 6px 6px 0 0; min-height: 3px; background: var(--down); position: relative; }
.hist .b.up { background: var(--up); }
.hist .n { font-size: 12px; font-weight: 700; margin-bottom: 4px; }
.hist .l { font-size: 11px; color: var(--muted); margin-top: 6px; white-space: nowrap; }
.arch { width: 100%; height: auto; font-family: var(--font); }
.arch text { fill: var(--text); } .arch .m { fill: var(--muted); font-size: 12px; } .arch .t { font-weight: 800; font-size: 15px; } .arch .s { font-size: 12.5px; }
.arch .box { fill: var(--surface); stroke: var(--border); stroke-width: 1.5; } .arch .box.acc { fill: var(--accent-soft); stroke: var(--accent); }
.arch .box.ok { fill: var(--ok-soft); stroke: var(--ok); } .arch .box.warn { fill: rgba(183,121,31,.08); stroke: var(--warn); }
.arch .ln { stroke: var(--navy); stroke-width: 1.6; fill: none; marker-end: url(#ah); } .arch .ln.d { stroke-dasharray: 5 4; stroke: var(--muted); }
.kbd { font-family: var(--mono); font-size: 12px; border: 1px solid var(--border); border-radius: 6px; padding: 1px 6px; background: var(--surface); color: var(--muted); }
.foot { text-align: center; color: var(--muted); font-size: 13px; padding: 24px; border-top: 1px solid var(--border); }

/* 등장 애니메이션 */
.rv { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s ease; }
.rv.on { opacity: 1; transform: none; }
.rv.d1 { transition-delay: .08s; } .rv.d2 { transition-delay: .16s; } .rv.d3 { transition-delay: .24s; } .rv.d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }
.live { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.live i { width: 8px; height: 8px; border-radius: 50%; background: #c6ccd8; display: inline-block; } .live.on i { background: var(--ok); box-shadow: 0 0 0 4px var(--ok-soft); }
.hero-bg { position: absolute; inset: 0; pointer-events: none; z-index: -1;
  background: radial-gradient(900px 500px at 85% 0%, rgba(47,91,234,.12), transparent 60%), radial-gradient(700px 500px at 0% 100%, rgba(210,63,49,.07), transparent 60%); }
.ticker { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.ticker span { font-size: 14px; padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: var(--muted); }
.ticker span b { color: var(--text); }

/* ── 2차 개편: 큰 글씨, 적은 글자, 5조 강조 ── */
.slide.cover .in { text-align: left; }
.display { font-size: clamp(40px, 6.4vw, 84px); line-height: 1.04; letter-spacing: -.04em; font-weight: 850; margin: 10px 0 20px; }
.display-sm { font-size: clamp(32px, 4.6vw, 60px); line-height: 1.08; letter-spacing: -.035em; font-weight: 850; margin: 0 0 18px; }
.display-sm u { text-decoration: none; background: linear-gradient(transparent 62%, var(--accent-soft) 62%); }
h2:not(.display):not(.display-sm) { font-size: clamp(30px, 4vw, 52px); }
.lead { font-size: clamp(18px, 2.1vw, 26px); line-height: 1.45; }
.note { font-size: 14.5px; }
.team-badge { display: inline-flex; align-items: baseline; gap: 4px; background: var(--navy); color: #fff; border-radius: 18px; padding: 10px 22px 10px 16px; margin-bottom: 8px; box-shadow: var(--shadow-lg); }
.team-badge .num5 { font-size: clamp(34px, 4vw, 52px); font-weight: 900; letter-spacing: -.04em; line-height: 1; color: #9db4ff; }
.team-badge span:last-child { font-size: 20px; font-weight: 750; }
.bar .brand em { font-style: normal; background: var(--accent); color: #fff; border-radius: 999px; padding: 1px 9px; font-size: 12px; margin-left: 4px; }
.members { list-style: none; padding: 0; margin: 0 0 26px; display: flex; flex-wrap: wrap; gap: 10px; }
.members li { font-size: 18px; font-weight: 750; padding: 10px 18px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.members.big li { font-size: clamp(20px, 2.4vw, 30px); padding: 14px 26px; }
.pillrow { display: flex; flex-wrap: wrap; gap: 8px; } .pillrow span { font-size: 14px; padding: 7px 14px; border-radius: 999px; background: var(--up-soft); color: var(--up); font-weight: 650; }
.flow { display: flex; align-items: stretch; gap: 12px; flex-wrap: wrap; margin: 28px 0 18px; }
.flow .f { flex: 1; min-width: 160px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 20px 18px; box-shadow: var(--shadow); }
.flow .f b { display: block; font-size: clamp(20px, 2.2vw, 28px); letter-spacing: -.02em; } .flow .f span { color: var(--muted); font-size: 14px; }
.flow .f.acc { background: var(--navy); color: #fff; border-color: var(--navy); } .flow .f.acc span { color: rgba(255,255,255,.75); }
.flow i { align-self: center; color: var(--accent); font-style: normal; font-size: 26px; font-weight: 800; }
.src-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 900px) { .src-grid { grid-template-columns: 1fr; } }
.src { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 18px 20px; box-shadow: var(--shadow); }
.src b { font-size: 18px; } .src small { display: block; color: var(--muted); font-size: 12.5px; margin-bottom: 8px; }
.src p { margin: 0; font-size: clamp(16px, 1.6vw, 20px); font-weight: 700; color: var(--accent); } .src em { font-style: normal; color: var(--muted); font-size: 13px; }
.bignums { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 24px 0; }
.bignums div { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 16px 24px; box-shadow: var(--shadow); min-width: 180px; }
.bignums div b { display: block; font-size: clamp(36px, 5vw, 64px); font-weight: 900; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.bignums div span { color: var(--muted); font-size: 13.5px; } .bignums div.acc { background: var(--navy); color: #fff; border-color: var(--navy); } .bignums div.acc span { color: rgba(255,255,255,.75); }
.bignums i { font-style: normal; font-size: 28px; color: var(--accent); font-weight: 800; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; } .three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; } .five { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
@media (max-width: 900px) { .two, .three, .five { grid-template-columns: 1fr; } }
.card h3 { font-size: 15.5px; color: var(--muted); font-weight: 650; margin-bottom: 8px; }
.card .big { margin: 0 0 6px; } .card .big small { display: block; font-size: 13px; color: var(--muted); font-weight: 600; margin-top: 4px; letter-spacing: 0; }
.five .card { padding: 18px; } .five .card p { margin: 10px 0 0; font-size: 14.5px; }
h3.sub { font-size: 16px; color: var(--muted); font-weight: 650; margin-bottom: 10px; }
table.compact td { padding: 9px 10px; font-size: 14px; } table.compact td:first-child { white-space: nowrap; color: var(--accent); }
ul.plain { margin: 0; padding-left: 18px; font-size: 16px; line-height: 1.8; }
.ranks { display: grid; gap: 6px; margin-bottom: 10px; }
.ranks .r { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center; padding: 9px 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; font-size: 14.5px; }
.ranks .r i { font-style: normal; font-weight: 800; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; }
.ranks.top .r i { background: var(--up-soft); color: var(--up); } .ranks.bottom .r i { background: var(--down-soft); color: var(--down); }
.ranks .r b { font-weight: 700; } .ranks .r small { color: var(--muted); font-size: 12px; margin-left: 6px; } .ranks .r .v { font-weight: 800; font-variant-numeric: tabular-nums; }
.findings { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 900px) { .findings { grid-template-columns: 1fr; } }
.findings .card { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; } .findings .card.wide { grid-column: 1 / -1; }
.findings .n { width: 36px; height: 36px; border-radius: 10px; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 800; }
.findings p { margin: 0; font-size: clamp(16px, 1.5vw, 20px); line-height: 1.5; }
ol.lessons { margin: 0; padding-left: 22px; font-size: 16px; line-height: 1.7; } ol.lessons li { margin-bottom: 8px; } ol.lessons b { color: var(--accent); }
.doclinks { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 10px; } .doclinks a { padding: 8px 14px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); font-weight: 650; font-size: 14px; }
.story img { max-height: 420px; object-fit: cover; }


/* ── 3차: 한 화면에 한 장 (슬라이드 모드) ── */
html.deck-mode, html.deck-mode body { height: 100%; overflow: hidden; }
html.deck-mode main { scroll-snap-type: none; }
html.deck-mode .slide { position: fixed; inset: 0; min-height: 0; padding: 76px clamp(28px, 6vw, 110px) 56px; opacity: 0; pointer-events: none; transform: translateY(14px) scale(.985); transition: opacity .45s ease, transform .45s cubic-bezier(.22,1,.36,1); overflow: auto; }
html.deck-mode .slide.active { opacity: 1; pointer-events: auto; transform: none; }
html.deck-mode .slide > .in { max-width: 1480px; }
html.deck-mode .rv { transition-delay: .15s; } html.deck-mode .rv.d1 { transition-delay: .25s; } html.deck-mode .rv.d2 { transition-delay: .35s; } html.deck-mode .rv.d3 { transition-delay: .45s; } html.deck-mode .rv.d4 { transition-delay: .55s; }
.slide.kick, .slide.kick.alt { background: var(--navy); color: #fff; border: 0; }
.slide.kick .hero-bg { display: none; }
.kick-nums { display: flex; gap: 16px; flex-wrap: wrap; margin: 28px 0; }
.kick-nums div { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: 20px; padding: 20px 28px; min-width: 220px; }
.kick-nums b { display: block; font-size: clamp(44px, 6vw, 80px); font-weight: 900; letter-spacing: -.04em; line-height: 1; color: #9db4ff; font-variant-numeric: tabular-nums; }
.kick-nums span { color: rgba(255,255,255,.75); font-size: 15px; }
.dots { position: fixed; right: 18px; top: 50%; transform: translateY(-50%); display: grid; gap: 8px; z-index: 25; }
.dots button { width: 8px; height: 8px; border-radius: 50%; border: 0; background: var(--border); padding: 0; cursor: pointer; transition: all .2s; }
.dots button.on { background: var(--accent); height: 22px; border-radius: 4px; }
.navhint { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); font-size: 12px; color: var(--muted); z-index: 25; display: flex; gap: 8px; align-items: center; }
@media (max-width: 760px) { .dots, .navhint { display: none; } html.deck-mode .slide { padding: 70px 18px 40px; } }
.card { padding: 18px 20px; }
.pipe .v { font-size: clamp(28px, 3vw, 44px); }
.src p { font-size: clamp(17px, 1.7vw, 22px); }

/* ── 10/14 추가: 목차 · 쇼릴 · 실패 · 우리만의 것 · DB/API 부록 ── */
ol.toc { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 7px; counter-reset: toc; }
ol.toc li { display: grid; grid-template-columns: 40px auto 1fr auto; gap: 0 14px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 9px 16px; box-shadow: var(--shadow); counter-increment: toc; }
ol.toc li::before { content: counter(toc); width: 32px; height: 32px; border-radius: 10px; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 800; }
ol.toc li > b { font-size: clamp(16px, 1.5vw, 20px); letter-spacing: -.01em; line-height: 1.2; white-space: nowrap; } ol.toc li > span { color: var(--muted); font-size: 13.5px; line-height: 1.2; }
ol.toc li > em { font-style: normal; color: var(--accent); font-weight: 800; font-variant-numeric: tabular-nums; font-size: 16px; }
.reel-wrap { width: 100%; aspect-ratio: 16 / 9; max-height: calc(100vh - 230px); margin: 0 auto; background: #0d1527; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.reel-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }
html.deck-mode .slide.reel > .in { max-width: min(1480px, calc((100vh - 230px) * 16 / 9)); }
.fails { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.fails .card b { display: block; font-size: 18px; color: var(--up); margin-bottom: 6px; } .fails .card p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--text); }
.uniq { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.uniq .card { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start; }
.uniq .n { width: 32px; height: 32px; border-radius: 9px; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 800; }
.uniq b { display: block; font-size: 18px; margin-bottom: 4px; } .uniq p { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--muted); }
@media (max-width: 900px) { .fails, .uniq { grid-template-columns: 1fr; } }
.dbgrid { display: grid; grid-template-columns: 1fr 360px; gap: 18px; align-items: start; }
@media (max-width: 1000px) { .dbgrid { grid-template-columns: 1fr; } }
table.compact { font-size: 13.5px; } table.compact td, table.compact th { padding: 8px 10px; }
table.compact.db td:first-child { white-space: nowrap; } table.compact.db td:last-child { white-space: nowrap; color: var(--muted); }
table.compact.api td:nth-child(2) { white-space: nowrap; } table.compact.api td:nth-child(4) { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.erd svg { width: 100%; height: auto; }
.erd .e rect { fill: var(--surface); stroke: var(--border); stroke-width: 1.5; } .erd .e.acc rect { fill: var(--accent-soft); stroke: var(--accent); }
.erd .e text { text-anchor: middle; font-size: 13.5px; font-weight: 700; fill: var(--text); font-family: var(--font); }
.erd .l { stroke: var(--navy); stroke-width: 2; fill: none; } .erd .c { font-size: 11.5px; fill: var(--muted); font-family: var(--font); }

#s-toc h2 { margin-bottom: 8px; } #s-toc .kicker { margin-bottom: 6px; } html.deck-mode #s-toc { padding-top: 64px; padding-bottom: 40px; }
.fails.limits .card b { color: var(--accent); }

/* ── 10/18 4차: 글자 줄이고 그림 넣기 — 표지 · 문제 · 요청 흐름 · 막힌 것 · 발견 · 한계 · 마무리 ── */
.hero2 { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center; }
.hero-art img { width: 100%; height: auto; border-radius: 22px; box-shadow: 0 20px 50px rgba(20,33,61,.16); border: 1px solid var(--border); }
.hero-art { margin: 0; }
.brandline { display: flex; align-items: center; gap: 10px; font-size: clamp(20px, 2vw, 26px); font-weight: 850; letter-spacing: .04em; color: var(--navy); margin: 0 0 22px; }
.brandline img { border-radius: 9px; }
@media (max-width: 900px) { .hero2 { grid-template-columns: 1fr; } .hero-art { display: none; } }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 10px 0 18px; }
.pair figure { margin: 0; }
.pair img { width: 100%; height: auto; border-radius: 20px; border: 1px solid var(--border); box-shadow: var(--shadow); }
.pair figcaption { text-align: center; font-size: clamp(16px, 1.5vw, 20px); font-weight: 750; margin-top: 10px; color: var(--navy); }
.pair figure:last-child figcaption { color: var(--muted); }
@media (max-width: 760px) { .pair { grid-template-columns: 1fr; } }
.lead.center { text-align: center; max-width: none; margin: 0; }
.bignums div.acc b { color: #9db4ff; }
.pillrow.big span { font-size: clamp(14px, 1.3vw, 17px); padding: 9px 16px; background: var(--accent-soft); color: var(--accent); }
#s-answer .bignums { margin: 20px 0 14px; } #s-answer .bignums div { flex: 1; }
ul.plain.big { font-size: clamp(15px, 1.4vw, 18px); line-height: 1.55; padding-left: 18px; } ul.plain.big li { margin-bottom: 8px; }

/* 요청 한 번의 흐름 */
.req { display: grid; grid-template-columns: 150px 1fr auto 1fr auto 1fr; gap: 10px; align-items: center; margin-top: 18px; }
.req .lab { font-weight: 850; font-size: clamp(16px, 1.5vw, 20px); color: var(--navy); line-height: 1.2; } .req .lab small { display: block; color: var(--muted); font-size: 12.5px; font-weight: 600; margin-top: 4px; }
.req .rn { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 14px 16px; box-shadow: var(--shadow); min-height: 74px; }
.req .rn b { display: block; font-size: clamp(15px, 1.4vw, 19px); letter-spacing: -.01em; } .req .rn small { color: var(--muted); font-size: 12.5px; }
.req .rn.ok { background: var(--ok-soft); border-color: var(--ok); } .req .rn.warn { background: rgba(183,121,31,.08); border-color: var(--warn); }
.req .rl { text-align: center; font-size: 12px; min-width: 150px; max-width: 260px; }
.req .rl code { display: block; background: var(--accent-soft); color: var(--accent); padding: 5px 8px; border-radius: 8px; font-size: 11.5px; white-space: normal; word-break: break-all; }
.req .rl em { display: block; font-style: normal; color: var(--ok); font-weight: 700; margin-top: 4px; }
.req .rl::before { content: "→"; color: var(--accent); font-weight: 800; font-size: 18px; display: block; line-height: 1; margin-bottom: 2px; }
.req.batch .rl em { color: var(--warn); }
@media (max-width: 900px) { .req { grid-template-columns: 1fr; } .req .rl { max-width: none; } }

/* 막혔던 것 → 고친 것 */
.fixes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fx { display: grid; grid-template-columns: minmax(150px, .8fr) 28px 1.6fr; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 16px 18px; box-shadow: var(--shadow); }
.fx b { font-size: clamp(16px, 1.5vw, 20px); color: var(--up); letter-spacing: -.01em; line-height: 1.25; }
.fx i { font-style: normal; color: var(--accent); font-weight: 800; font-size: 22px; text-align: center; }
.fx span { font-size: clamp(14px, 1.3vw, 16.5px); color: var(--text); line-height: 1.45; } .fx span strong { color: var(--accent); }
@media (max-width: 900px) { .fixes { grid-template-columns: 1fr; } }

/* 발견 — 큰 숫자 + 한 줄 */
.findings2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.findings2 .card { display: grid; grid-template-columns: minmax(130px, auto) 1fr; gap: 16px; align-items: center; padding: 16px 20px; }
.findings2 .card:last-child { grid-column: 1 / -1; }
.findings2 .n { font-size: clamp(30px, 3.4vw, 46px); font-weight: 900; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; color: var(--down); white-space: nowrap; }
.findings2 .n.pos-v { color: var(--up); }
.findings2 p { margin: 0; font-size: clamp(17px, 1.7vw, 23px); font-weight: 750; letter-spacing: -.01em; line-height: 1.3; }
.findings2 small { display: block; color: var(--muted); font-size: 13.5px; margin-top: 4px; }
@media (max-width: 900px) { .findings2 { grid-template-columns: 1fr; } }

/* 한계 — 제목 + 한 구절 */
.limits2 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.limits2 .card b { display: block; font-size: clamp(18px, 1.8vw, 24px); color: var(--accent); margin-bottom: 8px; letter-spacing: -.01em; }
.limits2 .card p { margin: 0; font-size: clamp(15px, 1.4vw, 18px); color: var(--text); line-height: 1.45; }
@media (max-width: 900px) { .limits2 { grid-template-columns: 1fr; } }

/* 마무리 — 남색, 주소 3개 + QR */
.slide.end .hero-bg { display: none; }
.endgrid { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.urls { display: grid; gap: 10px; margin: 8px 0 16px; }
.urls a { display: grid; grid-template-columns: 90px 1fr; gap: 12px; align-items: baseline; color: #fff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: 14px; padding: 12px 18px; }
.urls a:hover { text-decoration: none; background: rgba(255,255,255,.14); }
.urls span { color: #9db4ff; font-weight: 800; font-size: 14px; } .urls b { font-family: var(--mono); font-weight: 600; font-size: clamp(15px, 1.5vw, 20px); letter-spacing: -.01em; }
.slide.end .doclinks a { background: transparent; color: #c8d4ff; border-color: rgba(255,255,255,.25); }
.members-line { color: rgba(255,255,255,.7); font-size: 15px; margin: 6px 0 0; font-weight: 600; }
.qr { margin: 0; text-align: center; background: #fff; border-radius: 20px; padding: 16px 16px 10px; box-shadow: 0 20px 50px rgba(0,0,0,.3); }
.qr img { width: 200px; height: 200px; margin: 0 auto; } .qr figcaption { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-top: 6px; }
@media (max-width: 900px) { .endgrid { grid-template-columns: 1fr; } .qr { display: none; } }

/* 쇼릴 — 화면을 거의 다 쓴다 */
html.deck-mode .slide.reel { padding: 56px 20px 16px; }
.reel-wrap { max-height: calc(100vh - 80px); }
html.deck-mode .slide.reel > .in { max-width: min(1800px, calc((100vh - 80px) * 16 / 9)); }
.reel-wrap.rv { transition-delay: 0s; }

/* 목차: 시간 없음 */
ol.toc li { grid-template-columns: 40px auto 1fr; } ol.toc li > span { font-size: 15px; }
.hero2 .display { font-size: clamp(36px, 5vw, 74px); }
html.deck-mode body:has(.slide.reel.active) .navhint, html.deck-mode body:has(.slide.reel.active) .dots { display: none; }

/* ── 10/18 5차: Reveal.js 식 연출 — 단계 등장(.fg) · 코드 단계 강조(.steps) · 장 전환(fade · slide · zoom) ── */
.fg { opacity: 0; transform: translateY(14px); transition: opacity .45s ease, transform .45s ease; }
.fg.on { opacity: 1; transform: none; }
.fglist > * { opacity: 0; transform: translateY(14px); transition: opacity .4s ease, transform .4s ease; }
.fglist > .on { opacity: 1; transform: none; }
html.deck-mode .slide.active .fg, html.deck-mode .slide.active .fglist > * { transition-delay: 0s; }
.steps .step.on.past { opacity: .4; }  /* 지나간 단계는 흐리게 — 현재 단계만 밝다 */
.steps .step.on.cur .rn, .steps .rn.step.on.cur { box-shadow: 0 0 0 3px var(--accent), var(--shadow); }
.steps .rl.step.on.cur code { background: var(--accent); color: #fff; }
.fgpos { position: fixed; right: 18px; bottom: 14px; font-size: 12px; color: var(--muted); z-index: 25; font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { .fg, .fglist > * { transition: none; } }
/* 전환 — 기본 fade(위로 살짝), slide(옆에서), zoom(확대) */
html.deck-mode .slide[data-transition="slide"] { transform: translateX(60px); }
html.deck-mode body[data-dir="-1"] .slide[data-transition="slide"] { transform: translateX(-60px); }
html.deck-mode .slide[data-transition="zoom"] { transform: scale(.93); transition-duration: .55s, .55s; }
html.deck-mode .slide.active { transform: none; }

/* 한계 — 셋만, 크게 */
.limits3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.limits3 .card { padding: 22px 24px; }
.limits3 .n { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--navy); color: #fff; font-weight: 800; margin-bottom: 10px; }
.limits3 .card b { display: block; font-size: clamp(20px, 2vw, 28px); color: var(--navy); letter-spacing: -.02em; line-height: 1.2; margin-bottom: 10px; }
.limits3 .card p { margin: 0; font-size: clamp(15px, 1.4vw, 18px); color: var(--muted); line-height: 1.5; }
@media (max-width: 900px) { .limits3 { grid-template-columns: 1fr; } }

/* 4장 — 리포트는 있다 · 유튜브는 없다 */
.vs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 18px 0 20px; }
.vs .card.acc { background: var(--navy); border-color: var(--navy); color: #fff; } .vs .card.acc h3 { color: rgba(255,255,255,.7); } .vs .card.acc .big small { color: rgba(255,255,255,.75); }
.vs .card.acc .big { color: #9db4ff; }
#s-problem .lead { max-width: none; margin: 0; }
@media (max-width: 760px) { .vs { grid-template-columns: 1fr; } }

/* 표지 — → 를 누르면 유튜브 그림이 흐려지고 이름의 뜻이 떠오른다 */
.hero-art { position: relative; overflow: hidden; border-radius: 22px; }
.hero-art img { transition: filter .9s ease, transform .9s cubic-bezier(.22,1,.36,1), opacity .9s ease; }
.hero-art:has(.define.on) img { filter: blur(10px) saturate(.6) brightness(.45); transform: scale(1.04); }
.define { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: clamp(20px, 4vw, 48px); color: #fff; border-radius: 22px;
  opacity: 0; transform: translateY(18px); transition: opacity .7s ease .25s, transform .7s cubic-bezier(.22,1,.36,1) .25s; pointer-events: none; }
.define.on { opacity: 1; transform: none; }
.define .pos { font-family: var(--mono); font-size: clamp(12px, 1.1vw, 14px); color: #9db4ff; letter-spacing: .04em; }
.define b { font-size: clamp(44px, 5.2vw, 84px); font-weight: 900; letter-spacing: -.04em; line-height: 1; margin: 8px 0 14px; }
.define em { font-style: normal; font-size: clamp(18px, 1.9vw, 26px); font-weight: 750; color: #fff; letter-spacing: -.01em; }
.define p { margin: 16px 0 0; font-size: clamp(14px, 1.4vw, 18px); line-height: 1.5; color: rgba(255,255,255,.78); }
.define::before { content: ""; position: absolute; inset: 0; border-radius: 22px; background: linear-gradient(135deg, rgba(20,33,61,.55), rgba(20,33,61,.15)); z-index: -1; }
@media (prefers-reduced-motion: reduce) { .hero-art img, .define { transition: none; } }

/* 막혔던 것 — 셋만, 크게 */
.fixes3 { display: grid; gap: 14px; }
.fixes3 .fx { grid-template-columns: 44px minmax(260px, .9fr) 32px 1.6fr; padding: 20px 24px; }
.fixes3 .n { width: 36px; height: 36px; border-radius: 10px; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 800; }
.fixes3 .fx b { font-size: clamp(18px, 1.9vw, 26px); }
.fixes3 .fx span:last-child { font-size: clamp(15px, 1.45vw, 18.5px); }
@media (max-width: 900px) { .fixes3 .fx { grid-template-columns: 1fr; } .fixes3 .fx i { display: none; } }

/* 한계 — 둘만, 크게 */
.limits2x { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.limits2x .card { padding: 26px 28px; }
.limits2x .n { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--navy); color: #fff; font-weight: 800; margin-bottom: 12px; }
.limits2x .card b { display: block; font-size: clamp(22px, 2.3vw, 32px); color: var(--navy); letter-spacing: -.02em; line-height: 1.2; margin-bottom: 12px; }
.limits2x .card p { margin: 0; font-size: clamp(15px, 1.5vw, 19px); color: var(--muted); line-height: 1.55; }
@media (max-width: 760px) { .limits2x { grid-template-columns: 1fr; } }
