/* Layout: 1280×720 슬라이드를 화면에 맞춰 줄이고, 아래 띠에 다섯 막(오늘·처음·첫해·다음·함께)의 시간줄을 둔다. 좁은 화면에서는 세로로 이어 읽는다 */
:root {
  --frame: #e2e6e5;
  --paper: #f4f6f5;
  --surface: #ffffff;
  --ink: #142028;
  --muted: #56646c;
  --line: #d3d9d8;
  --accent: #1f4fbf;
  --accent-soft: #e3eafa;
  --partner: #b06400;
  --partner-soft: #fbefdc;
  --ok: #1d7a4a;
  --build: #a15c00;
  --rack: #1b252c;
  --rack-unit: #24313a;
  --rack-line: #36454f;
  --rack-ink: #e6ecee;
  --rack-muted: #93a3ab;

  --font-display: "Hahmlet", "Nanum Myeongjo", "AppleMyungjo", serif;
  --font-body: "IBM Plex Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --t-cover: 68px;
  --t-title: 40px;
  --t-lede: 19px;
  --t-body: 17px;
  --t-small: 14px;
  --t-label: 12px;
  --nav-h: 56px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --frame: #090e11;
    --paper: #10171b;
    --surface: #172128;
    --ink: #e4eaec;
    --muted: #98a7ae;
    --line: #2b3840;
    --accent: #84a8ff;
    --accent-soft: #1b2a4a;
    --partner: #f0a43a;
    --partner-soft: #33240f;
    --ok: #5fcf91;
    --build: #f0a43a;
    --rack: #0a1014;
    --rack-unit: #131c22;
    --rack-line: #2a3740;
    --rack-ink: #e4eaec;
    --rack-muted: #8696a0;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --frame: #090e11;
  --paper: #10171b;
  --surface: #172128;
  --ink: #e4eaec;
  --muted: #98a7ae;
  --line: #2b3840;
  --accent: #84a8ff;
  --accent-soft: #1b2a4a;
  --partner: #f0a43a;
  --partner-soft: #33240f;
  --ok: #5fcf91;
  --build: #f0a43a;
  --rack: #0a1014;
  --rack-unit: #131c22;
  --rack-line: #2a3740;
  --rack-ink: #e4eaec;
  --rack-muted: #8696a0;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--frame);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--t-body);
  line-height: 1.65;
  word-break: keep-all;
  overflow-wrap: break-word;
  overflow: hidden;
}
h1, h2, h3 { font-family: var(--font-display); text-wrap: balance; margin: 0; line-height: 1.3; }
p, ul, ol, dl { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ── 무대 ───────────────────────────── */
.viewport { position: fixed; inset: 0 0 calc(var(--nav-h) + env(safe-area-inset-bottom, 0px)) 0; overflow: hidden; }
.stage {
  position: absolute; left: 50%; top: 50%;
  width: 1280px; height: 720px;
  transform: translate(-50%, -50%) scale(var(--scale, 1));
  background: var(--paper);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.08), 0 12px 40px rgb(0 0 0 / 0.10);
}
.slide {
  position: absolute; inset: 0;
  padding: 52px 72px 44px;
  display: flex; flex-direction: column; gap: 26px;
  opacity: 0; visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s;
  overflow: hidden;
}
.slide.is-active { opacity: 1; visibility: visible; }
@media (prefers-reduced-motion: reduce) { .slide { transition: none; } }

.eyebrow { display: flex; align-items: center; gap: 12px; font-family: var(--font-mono); font-size: var(--t-label); letter-spacing: 0.08em; color: var(--muted); text-transform: uppercase; }
.eyebrow b { color: var(--accent); font-weight: 500; }
.eyebrow .pg { margin-left: auto; }
.head { display: grid; gap: 10px; }
.title { font-size: var(--t-title); font-weight: 700; letter-spacing: -0.01em; }
.title em { font-style: normal; color: var(--accent); }
.lede { font-size: var(--t-lede); color: var(--muted); max-width: 46em; line-height: 1.6; }
.fill { flex: 1; min-height: 0; }
.label { font-family: var(--font-mono); font-size: var(--t-label); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.note { font-size: var(--t-small); color: var(--muted); border-left: 2px solid var(--line); padding-left: 12px; line-height: 1.6; }

.chip { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; padding: 3px 10px; border-radius: 999px; border: 1px solid currentColor; white-space: nowrap; line-height: 1.5; }
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip.now { color: var(--ok); }
.chip.build { color: var(--build); }
.chip.next { color: var(--muted); }
.chip.next::before { background: transparent; border: 1px solid currentColor; }

/* ── 1 표지 ─────────────────────────── */
.cover { justify-content: space-between; }
.cover .brand { font-family: var(--font-mono); font-size: 18px; }
.cover .brand b, .brand b { color: var(--accent); font-weight: 500; }
.cover h1 { font-size: var(--t-cover); font-weight: 800; letter-spacing: -0.02em; line-height: 1.22; max-width: 15em; }
.cover h1 em { font-style: normal; color: var(--accent); }
.cover .sub { margin-top: 22px; font-size: 21px; line-height: 1.65; max-width: 40em; }
.acts { display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.act { padding: 12px 16px 0 0; display: grid; gap: 2px; }
.act + .act { padding-left: 16px; border-left: 1px solid var(--line); }
.act .label { color: var(--accent); }
.act strong { font-family: var(--font-display); font-size: 20px; }
.act span { font-size: var(--t-small); color: var(--muted); line-height: 1.5; }

/* ── 2 오늘 ─────────────────────────── */
.voices { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.voice { background: var(--surface); padding: 22px 24px; display: grid; gap: 10px; align-content: start; }
.voice q { font-family: var(--font-display); font-size: 20px; font-weight: 500; line-height: 1.5; quotes: "“" "”"; }
.voice span { font-size: var(--t-small); color: var(--muted); }

/* ── 3 정의 ─────────────────────────── */
.split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.pull { font-family: var(--font-display); font-size: 30px; font-weight: 700; line-height: 1.5; text-wrap: balance; }
.pull mark { background: none; color: var(--accent); }
.stack-text { display: grid; gap: 14px; }
.facts { display: grid; gap: 0; border-top: 2px solid var(--ink); }
.fact { padding-block: 14px; border-bottom: 1px solid var(--line); display: grid; gap: 2px; }
.fact strong { font-family: var(--font-display); font-size: 20px; }
.fact span { color: var(--muted); font-size: 15px; line-height: 1.55; }

/* ── 4 출발점 둘 ─────────────────────── */
.paths { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 240px; gap: 0; align-items: stretch; }
.path { padding: 22px 26px; border: 1px solid var(--line); background: var(--surface); display: grid; gap: 14px; align-content: start; }
.path + .path { border-left: 0; }
.path h3 { font-size: 24px; }
.path .label { color: var(--accent); }
.path ul { list-style: none; padding: 0; display: grid; gap: 0; }
.path li { padding-block: 9px; border-top: 1px solid var(--line); font-size: 16px; line-height: 1.5; display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.path li small { display: block; color: var(--muted); font-size: 13px; }
.merge { position: relative; display: grid; align-content: center; gap: 12px; padding: 22px 0 22px 34px; }
.merge::before { content: "→"; position: absolute; left: 6px; top: 50%; transform: translateY(-50%); font-family: var(--font-mono); font-size: 22px; color: var(--accent); }
.merge strong { font-family: var(--font-display); font-size: 24px; line-height: 1.4; }
.merge p { color: var(--muted); font-size: 15px; line-height: 1.55; }

/* ── 5 이은 클러스터 ─────────────────── */
.ladder { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 20px; }
.rung { border-top: 3px solid var(--ink); padding-top: 16px; display: grid; gap: 12px; align-content: start; }
.rung .top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.rung .who { font-family: var(--font-mono); font-size: var(--t-label); color: var(--muted); letter-spacing: 0.06em; }
.rung h3 { font-size: 24px; }
.rung p { font-size: 16px; line-height: 1.6; }
.rung ul { padding-left: 1.1em; font-size: 15px; color: var(--muted); display: grid; gap: 4px; }
.rung.now { border-color: var(--ok); }
.rung.build { border-color: var(--build); }

/* ── 6 랙 ───────────────────────────── */
.rack-layout { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 32px; align-items: start; }
.rack { background: var(--rack); color: var(--rack-ink); border-radius: 6px; padding: 12px; display: grid; gap: 6px; }
.u { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; gap: 14px; align-items: center; background: var(--rack-unit); border: 1px solid var(--rack-line); border-radius: 3px; padding: 8px 14px 8px 12px; }
.u-no { font-family: var(--font-mono); font-size: 11px; color: var(--rack-muted); display: flex; align-items: center; gap: 7px; }
.u-no::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); flex: none; }
.u.dim .u-no::before { background: var(--rack-muted); }
.u-body { display: grid; gap: 1px; min-width: 0; }
.u-body strong { font-size: 16px; font-weight: 600; }
.u-body span { font-size: 13px; color: var(--rack-muted); line-height: 1.5; }
.u-tag { font-family: var(--font-mono); font-size: 11px; color: var(--rack-muted); letter-spacing: 0.06em; white-space: nowrap; }
.u.partner { border-color: var(--partner); box-shadow: inset 4px 0 0 var(--partner); }
.u.partner .u-tag { color: var(--partner); }
.u.side { background: transparent; border-style: dashed; }
.legend { display: grid; gap: 18px; font-size: 15px; }
.legend .key { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.legend .key i { width: 14px; height: 14px; border-radius: 2px; flex: none; }
.legend p { color: var(--muted); line-height: 1.55; }
.k-partner { background: var(--partner); }
.k-ours { background: var(--rack-unit); border: 1px solid var(--rack-line); }
.k-side { border: 1px dashed var(--muted); }

/* ── 7 첫해 시간줄 ───────────────────── */
.timeline { list-style: none; padding: 0; display: grid; align-items: start; align-content: start; grid-template-columns: repeat(var(--n, 6), minmax(0, 1fr)); gap: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 34px; height: 2px; background: var(--ink); }
.stop { display: grid; gap: 8px; padding-right: 16px; align-content: start; }
.stop .when { font-family: var(--font-mono); font-size: 13px; color: var(--accent); letter-spacing: 0.04em; }
.stop .dot { width: 14px; height: 14px; border-radius: 50%; background: var(--paper); border: 2px solid var(--ink); position: relative; margin-top: 2px; }
.stop strong { font-family: var(--font-display); font-size: 19px; line-height: 1.35; margin-top: 6px; }
.stop p { font-size: 14px; line-height: 1.55; color: var(--ink); }
.stop .pt { margin-top: 6px; font-size: 13px; line-height: 1.5; color: var(--partner); border-top: 1px dashed var(--line); padding-top: 8px; align-self: start; }
.stop .pt b { font-weight: 600; }

/* ── 8 매출 ─────────────────────────── */
.revenue { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.rev { background: var(--surface); padding: 20px 24px; display: grid; gap: 8px; align-content: start; }
.rev .top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.rev .label { color: var(--partner); }
.rev .when { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.rev h3 { font-size: 22px; }
.rev p { font-size: 15px; line-height: 1.6; }

/* ── 9 견주기 ───────────────────────── */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 11px 16px; border-bottom: 1px solid var(--line); line-height: 1.5; }
thead th { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; color: var(--muted); font-weight: 500; text-transform: uppercase; }
tbody th { font-weight: 600; width: 190px; }
.box-table th, .box-table td { padding-block: 12px; font-size: 16px; }
.box-table tbody th { width: 250px; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
.ours { background: var(--accent-soft); }
thead th.ours { color: var(--accent); }

/* ── 10 AI 지금 ─────────────────────── */
.ai-now { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.gives { display: grid; gap: 0; border-top: 2px solid var(--ink); }
.give { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; padding-block: 11px; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.55; }
.give b { font-weight: 600; }
.term { background: var(--rack); color: var(--rack-ink); border-radius: 6px; padding: 18px 20px; font-family: var(--font-mono); font-size: 13px; line-height: 1.7; display: grid; gap: 8px; }
.term .bar { display: flex; justify-content: space-between; color: var(--rack-muted); font-size: 11px; letter-spacing: 0.06em; border-bottom: 1px solid var(--rack-line); padding-bottom: 8px; }
.term .me { color: var(--rack-ink); font-family: var(--font-body); font-size: 14px; }
.term .me::before { content: "개발자 › "; color: var(--partner); font-family: var(--font-mono); font-size: 12px; }
.term .tool { color: var(--rack-muted); }
.term .tool b { color: var(--ok); font-weight: 500; }
.term .ai { color: var(--rack-ink); font-family: var(--font-body); font-size: 14px; }
.term .ai::before { content: "AI › "; color: var(--accent); font-family: var(--font-mono); font-size: 12px; }

/* ── 11 AI 매니지드 ──────────────────── */
.catalog { display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); gap: 12px; }
.svc { border: 1px solid var(--line); background: var(--surface); padding: 14px 16px; display: grid; gap: 4px; align-content: start; }
.svc .label { font-size: 11px; }
.svc strong { font-size: 17px; }
.svc.ai { border: 2px solid var(--accent); background: var(--accent-soft); }
.svc.ai .label { color: var(--accent); }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; }
.two h3 { font-size: 22px; margin-bottom: 10px; }
.two ul { padding-left: 1.1em; display: grid; gap: 6px; font-size: 16px; line-height: 1.55; }
.two li span { color: var(--muted); }

/* ── 12 AI 끼리 대화 ─────────────────── */
.talk { display: grid; grid-template-columns: 170px minmax(0, 1fr) 170px; gap: 24px; align-items: stretch; }
.party { display: grid; align-content: center; justify-items: center; text-align: center; gap: 8px; padding: 16px 10px; border: 1px solid var(--line); background: var(--surface); }
.party .label { color: var(--accent); }
.party strong { font-family: var(--font-display); font-size: 20px; line-height: 1.35; }
.party span { font-size: 13px; color: var(--muted); line-height: 1.5; }
.party.naru { border: 2px solid var(--accent); }
.thread { display: grid; gap: 10px; align-content: center; }
.msg { max-width: 82%; padding: 10px 14px; border-radius: 10px; font-size: 15px; line-height: 1.55; border: 1px solid var(--line); background: var(--surface); }
.msg .from { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.05em; color: var(--muted); margin-bottom: 2px; }
.msg.l { justify-self: start; border-bottom-left-radius: 2px; }
.msg.r { justify-self: end; border-bottom-right-radius: 2px; background: var(--accent-soft); border-color: transparent; }
.msg.human { background: transparent; border-style: dashed; }
.status-row { display: flex; gap: 28px; flex-wrap: wrap; font-size: 15px; align-items: center; }
.status-row div { display: flex; gap: 10px; align-items: center; }

/* ── 13 로드맵 ──────────────────────── */
.roadmap { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 28px; }
.lane { display: grid; gap: 10px; align-content: start; }
.lane h3 { font-size: 20px; }
.lane ul { list-style: none; padding: 0; display: grid; }
.lane li { padding-block: 6px; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.45; }
.lane li.ai { color: var(--accent); font-weight: 600; }

/* ── 14 말 바꾸기 ───────────────────── */
.lexicon { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 44px; }
.lex { display: grid; grid-template-columns: minmax(0, 0.95fr) 20px minmax(0, 1.1fr); gap: 8px; align-items: baseline; padding-block: 9px; border-bottom: 1px solid var(--line); }
.lex .tech { font-family: var(--font-mono); font-size: 13px; color: var(--muted); line-height: 1.45; }
.lex .arrow { color: var(--muted); font-family: var(--font-mono); }
.lex .say { font-weight: 600; font-size: 16px; line-height: 1.45; }

/* ── 15 PoC ─────────────────────────── */
.poc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.poc-card { border: 1px solid var(--line); background: var(--surface); padding: 22px 26px; display: grid; gap: 12px; align-content: start; }
.poc-card h3 { font-size: 22px; }
.poc-card dl { display: grid; gap: 10px; }
.poc-card dt { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; color: var(--muted); text-transform: uppercase; }
.poc-card dd { margin: 2px 0 0; font-size: 15px; line-height: 1.55; }
.closing { display: flex; justify-content: space-between; align-items: end; gap: 24px; border-top: 2px solid var(--ink); padding-top: 16px; }
.closing .contact { font-size: 18px; }
.closing .contact span { display: block; font-size: var(--t-small); color: var(--muted); }

/* ── 판마다 함께 쓰는 덩이 ───────────── */
.cards { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.card { background: var(--surface); padding: 20px 22px; display: grid; gap: 8px; align-content: start; }
.card .top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.card .label { color: var(--accent); }
.card h3 { font-size: 21px; }
.card p { font-size: 15px; line-height: 1.6; }
.card .meta { font-size: 13px; color: var(--muted); line-height: 1.5; }
.card.partner .label { color: var(--partner); }
.card.hl { background: var(--accent-soft); }

.ba { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.ba > div { border: 1px solid var(--line); padding: 20px 24px; display: grid; gap: 12px; align-content: start; background: var(--surface); }
.ba h3 { font-size: 22px; }
.ba ul { list-style: none; padding: 0; display: grid; }
.ba li { padding-block: 8px; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.55; display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 6px; }
.ba .old { background: transparent; }
.ba .old li::before { content: "✕"; color: var(--muted); font-family: var(--font-mono); }
.ba .new { border: 2px solid var(--accent); }
.ba .new li::before { content: "✓"; color: var(--ok); font-family: var(--font-mono); }
.ba .old .label { color: var(--muted); }
.ba .new .label { color: var(--accent); }

.pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.pair h3 { font-size: 22px; margin-bottom: 10px; }
.bullets { padding-left: 1.1em; display: grid; gap: 7px; font-size: 16px; line-height: 1.55; }
.bullets li span { color: var(--muted); }
.big { font-family: var(--font-display); font-size: 30px; font-weight: 700; line-height: 1.45; text-wrap: balance; }
.big mark { background: none; color: var(--accent); }

/* ── 구성도 ─────────────────────────── */
.arch { min-height: 0; }
.arch svg { display: block; width: 100%; height: 100%; }
.arch text { font-family: var(--font-body); }
.a-zone { fill: none; stroke: var(--muted); stroke-dasharray: 6 5; stroke-width: 1.2; }
.a-mgmt { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 1.2; }
.a-box { fill: var(--surface); stroke: var(--line); stroke-width: 1; }
.a-chip { fill: var(--paper); stroke: var(--line); stroke-width: 1; }
.a-chip.key { stroke: var(--accent); }
.a-hw { fill: var(--partner-soft); stroke: var(--partner); stroke-width: 1.2; }
.a-t { fill: var(--ink); font-size: 13px; font-weight: 600; }
.a-s { fill: var(--ink); font-size: 12px; }
.a-tag { fill: var(--muted); font-family: var(--font-mono) !important; font-size: 10px; letter-spacing: 0.06em; }
.a-zl { fill: var(--muted); font-family: var(--font-mono) !important; font-size: 11px; letter-spacing: 0.06em; }
.a-ml { fill: var(--accent); font-family: var(--font-mono) !important; font-size: 11px; letter-spacing: 0.06em; }
.a-hl { fill: var(--partner); font-size: 13px; font-weight: 600; }
.a-line { fill: none; stroke: var(--accent); stroke-width: 1.4; }
.a-head { fill: var(--accent); }
.a-note { fill: var(--accent); font-size: 11px; }
@media (max-width: 760px) {
  .arch { overflow-x: auto; }
  .arch svg { min-width: 760px; height: auto; }
}

/* ── 아래 띠 ────────────────────────── */
.deck-nav {
  position: fixed; left: 0; right: 0; bottom: 0;
  height: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px));
  padding: 0 max(16px, env(safe-area-inset-right, 0px)) env(safe-area-inset-bottom, 0px) max(16px, env(safe-area-inset-left, 0px));
  display: flex; align-items: center; gap: 16px;
  background: var(--paper); border-top: 1px solid var(--line);
}
.deck-nav .progress { position: absolute; left: 0; top: -1px; height: 2px; background: var(--accent); width: 0; transition: width 0.3s ease; }
.navbtn { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); cursor: pointer; display: grid; place-items: center; font-family: var(--font-mono); font-size: 16px; flex: none; }
.navbtn:hover { border-color: var(--accent); color: var(--accent); }
.navbtn:disabled { opacity: 0.35; cursor: default; }
.navhome { flex: none; font-size: 13px; color: var(--muted); text-decoration: none; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.navhome::before { content: "← "; font-family: var(--font-mono); }
.navhome:hover { color: var(--accent); border-color: var(--accent); }
.eyebrow .brand { text-transform: none; letter-spacing: 0.02em; color: var(--ink); }
.flowhome { display: none; }
@media (max-width: 760px) {
  .flowhome {
    display: block; position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10;
    padding: 12px max(16px, env(safe-area-inset-right, 0px)) 12px max(16px, env(safe-area-inset-left, 0px));
    background: var(--paper); border-bottom: 1px solid var(--line);
    font-size: 14px; color: var(--accent); text-decoration: none;
  }
  .flowhome::before { content: "← "; font-family: var(--font-mono); }
}
.navacts { display: flex; gap: 4px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.navact { border: 0; background: none; cursor: pointer; padding: 6px 10px; border-radius: 6px; font-size: 13px; color: var(--muted); white-space: nowrap; display: flex; gap: 6px; align-items: baseline; }
.navact i { font-style: normal; font-family: var(--font-mono); font-size: 11px; }
.navact[aria-current="true"] { color: var(--ink); background: var(--accent-soft); font-weight: 600; }
.navact[aria-current="true"] i { color: var(--accent); }
.counter { font-family: var(--font-mono); font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; flex: none; }
.hint { font-size: 12px; color: var(--muted); flex: none; }

/* ── 좁은 화면: 세로로 이어 읽기 ─────── */
@media (max-width: 760px) {
  :root { --t-cover: 36px; --t-title: 28px; --t-lede: 16px; --t-body: 16px; }
  body { overflow: auto; background: var(--paper); }
  .viewport { position: static; overflow: visible; }
  .stage { position: static; width: auto; height: auto; transform: none; box-shadow: none; }
  .slide {
    position: relative; inset: auto; opacity: 1; visibility: visible;
    padding-block: 44px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
    border-bottom: 1px solid var(--line); gap: 22px;
  }
  .deck-nav, .eyebrow .pg { display: none; }
  .acts, .voices, .split, .paths, .ladder, .rack-layout, .revenue, .ai-now, .catalog, .two, .talk, .roadmap, .lexicon, .poc, .cards, .ba, .pair { grid-template-columns: minmax(0, 1fr); }
  .act + .act { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); padding-top: 10px; }
  .path + .path { border-left: 1px solid var(--line); border-top: 0; }
  .merge { padding-left: 0; }
  .merge::before { content: none; }
  .timeline { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .timeline::before { display: none; }
  .stop { padding: 0 0 0 16px; border-left: 2px solid var(--ink); }
  .stop .dot { display: none; }
  .u { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .u-tag { white-space: normal; }
  .give { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .lex { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .lex .arrow { display: none; }
  .msg { max-width: 100%; }
  table { min-width: 640px; }
  .closing { flex-direction: column; align-items: start; }
  .cover .sub { font-size: 17px; }
}

/* ── 인쇄: 한 장에 한 슬라이드 ───────── */
@page { size: 1280px 720px; margin: 0; }
@media print {
  body { overflow: visible; background: var(--paper); }
  .viewport { position: static; overflow: visible; }
  .stage { position: static; transform: none; width: 1280px; height: auto; box-shadow: none; }
  .slide { position: relative; width: 1280px; height: 720px; opacity: 1; visibility: visible; break-after: page; }
  .deck-nav { display: none; }
  .rack, .u, .term, .ours, .svc.ai, .msg.r { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
