:root {
  --bg: #06080b; --surface: #0d1116; --line: #1c2229;
  --text: #f3f5f7; --muted: #8a939c; --hulk: #6BFF3C;
  --k: 1;
}
@font-face {
  font-family: Pretendard; font-weight: 100 900; font-display: swap;
  src: url(assets/fonts/Pretendard-subset.woff2) format("woff2-variations");
}
* { box-sizing: border-box; margin: 0; }
body {
  background: var(--bg); color: var(--text);
  font-family: Pretendard, "Malgun Gothic", system-ui, sans-serif;
  word-break: keep-all; -webkit-font-smoothing: antialiased;
}
#deck { display: flex; flex-direction: column; gap: 2px; }
.slide { position: relative; overflow: hidden; }
.stage {
  width: 1920px; height: 1080px; transform-origin: top left;
  transform: scale(var(--k)); position: relative; padding: 72px 88px;
}
[data-kind="gallery"] .stage, [data-kind="chapter"] .stage,
[data-kind="video"] .stage, [data-kind="cover"] .stage { padding: 0; }
#hud {
  position: fixed; right: 18px; bottom: 16px; display: flex; gap: 12px;
  align-items: center; font-size: 13px; color: var(--muted); z-index: 5;
}
#hud button {
  background: transparent; border: 1px solid var(--line); color: var(--text);
  border-radius: 999px; padding: 7px 16px; font: inherit; cursor: pointer;
}
#hud button:hover, #hud button:focus-visible { border-color: var(--hulk); color: var(--hulk); }
#hud button:focus-visible { outline: 2px solid var(--hulk); outline-offset: 2px; }
body.present { overflow: hidden; }
body.present #deck { display: block; }
body.present .slide { display: none; position: fixed; inset: 0; }
body.present .slide.current { display: block; }
/* 발표 모드 무대 가운데 정렬 — 화면 크기와 무관하게 항상 중심에 오도록
   left/top 50%에 자기 크기의 절반만큼 되돌리는 방식으로 고정한다.
   (place-content:center + transform-origin:top left 조합은 줄이기 전
   1920x1080 박스를 기준으로 가운데를 잡은 뒤 왼쪽 위를 기준으로 줄여서,
   1920x1080이 아닌 화면에서는 잘리거나 화면 밖으로 밀렸었다.) */
body.present .slide.current .stage {
  position: absolute; left: 50%; top: 50%; transform-origin: center center;
  transform: translate(-50%, -50%) scale(var(--k));
}
#lightbox {
  position: fixed; inset: 0; background: rgba(3,4,6,.94); z-index: 10;
  display: grid; place-items: center; cursor: zoom-out;
}
#lightbox img { max-width: 96vw; max-height: 96vh; }
#lightbox[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

[data-kind="cover"] .stage video, [data-kind="video"] .stage video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
[data-kind="cover"] .stage::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--bg) 0%, rgba(6,8,11,.86) 38%, rgba(6,8,11,.1) 78%);
}
[data-kind="cover"] .mark {
  position: absolute; left: 88px; top: 72px; z-index: 1; height: 44px; width: auto;
}
.cover-body { position: absolute; left: 88px; bottom: 96px; z-index: 1; }
.cover-body h1 { font-size: 132px; font-weight: 900; letter-spacing: -.035em; line-height: 1.03; }
.kicker { color: var(--hulk); font-size: 24px; font-weight: 700; letter-spacing: .2em; }
.who { color: var(--muted); font-size: 30px; margin-top: 22px; }
.chapter-body { position: absolute; left: 88px; top: 50%; transform: translateY(-50%); }
.chapter-num { color: var(--hulk); font-size: 26px; font-weight: 800; letter-spacing: .18em; }
.chapter-num span { color: var(--muted); margin-left: 14px; }
.chapter-body h2 { font-size: 116px; font-weight: 900; letter-spacing: -.035em; margin-top: 18px; }
@media (max-width: 767px) {
  /* position:static이면 비디오·그라디언트(::after)보다 아래에 깔려 안 보인다.
     흐르게(제자리 크기)는 두되 z-index로 위에 뜨게 한다. left/bottom은
     데스크톱 절대배치 값(88px/96px)이 relative에서도 오프셋으로 살아남으므로
     반드시 auto로 되돌린다. */
  /* 로고를 흐름에 넣고 제목과 겹치지 않게 한다 */
  [data-kind="cover"] .mark { position: relative; left: auto; top: auto; margin-bottom: 20px; }
  .cover-body { position: relative; left: auto; bottom: auto; z-index: 1; padding: 48px 24px; }
  .cover-body h1 { font-size: clamp(38px, 11vw, 64px); }
  .kicker { font-size: 13px; } .who { font-size: 16px; margin-top: 14px; }
  [data-kind="chapter"] .chapter-body { position: static; transform: none; padding: 40px 24px; }
  [data-kind="chapter"] .chapter-body h2 { font-size: clamp(28px, 9vw, 48px); margin-top: 12px; }
  [data-kind="chapter"] .chapter-num { font-size: clamp(12px, 3.4vw, 18px); }
}

[data-kind="gallery"] .stage { padding: 0; background: var(--bg); }
.shot { position: absolute; margin: 0; border-radius: 10px; overflow: hidden;
  outline: 1px solid var(--line); }
.shot img { width: 100%; height: 100%; object-fit: contain; display: block;
  background: var(--surface); }
.shot.zoom { cursor: zoom-in; }
.shot figcaption { position: absolute; left: 0; right: 0; bottom: 0;
  background: rgba(6,8,11,.82); font-size: 22px; color: var(--muted);
  padding: 8px 10px; text-align: center; }
.shot-caption {
  position: absolute; display: grid; place-items: center; text-align: center;
  background: var(--surface); color: var(--text); font-size: 22px; font-weight: 700;
  border-radius: 4px; padding: 2px 6px; line-height: 1.2;
}
[data-kind="gallery"] h2.shot-title {
  position: absolute; left: 88px; top: 56px; font-size: 52px; font-weight: 800;
  letter-spacing: -.03em; z-index: 1;
}
[data-kind="gallery"] h2.shot-title small { color: var(--muted); font-size: 30px; font-weight: 600; }

/* === 글자 장 공통 부품 (Task 8) === */
h2.big { font-size: 76px; font-weight: 900; letter-spacing: -.035em; line-height: 1.08; margin-top: 14px; }
h2.big small { display: block; font-size: 26px; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-top: 12px; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); margin-top: 56px; }
.stat-row.two { grid-template-columns: repeat(2, 1fr); }
.stat { padding: 30px 40px 30px 0; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-size: 82px; font-weight: 800; color: var(--hulk); letter-spacing: -.02em; }
.stat span { display: block; font-size: 22px; color: var(--muted); margin-top: 6px; }
.chips { display: flex; gap: 28px; align-items: center; margin-top: 34px; }
.chips .shot { position: static; height: 46px; outline: 0; }
.chips .shot img { height: 100%; width: auto; background: none; object-fit: contain; }
.rowtable { margin-top: 44px; border-top: 1px solid var(--line); }
.rowtable .row { display: grid; grid-template-columns: 1fr 2fr; gap: 40px;
  padding: 28px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.rowtable h3 { font-size: 40px; font-weight: 800; letter-spacing: -.03em; }
.rowtable .tag { display: block; margin-top: 8px; font-size: 22px; color: var(--hulk); font-weight: 700; }
.rowtable ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px;
  font-size: 26px; color: var(--muted); line-height: 1.5; }
.rowtable ul strong { color: var(--text); font-weight: 800; }
.deptgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 44px; }
.deptgrid div { background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; padding: 34px; font-size: 34px; font-weight: 700; }
.note, .note2 { color: var(--muted); font-size: 22px; margin-top: 18px; }

/* 본문 + 이미지 2단 구성 (5·13장) */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; margin-top: 8px; }
.split .shot { position: static; }
.poster, .vlogcap { position: static; height: 640px; }
.commrow { display: flex; gap: 20px; margin-top: 36px; }
.commrow .shot { position: static; height: 420px; flex: 1; }
.widecap { position: static; width: 100%; height: 560px; margin-top: 28px; }

/* 기사·실적 캡처 2단 띠 (2장) */
.shots { display: grid; grid-template-columns: 1.35fr 1fr; gap: 20px; margin-top: 30px; }
.shots .news { display: grid; gap: 16px; }
.shots .news .shot { position: static; height: 130px; }
.shots .boards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.shots .boards .shot { position: static; height: 422px; }
.shots .shot img { background: #fff; }

/* 숫자 한 줄 문구 (10장) */
.numlines { margin-top: 30px; }
.numlines p { font-size: 30px; color: var(--muted); margin-top: 10px; }
.numlines b { color: var(--hulk); font-weight: 800; }

/* 유튜브 링크 카드 (13장) */
.linkcards { display: flex; flex-direction: column; gap: 20px; justify-content: center; height: 100%; }
.linkcard { display: flex; align-items: center; gap: 20px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 14px; padding: 26px 30px;
  color: var(--text); text-decoration: none; font-size: 28px; font-weight: 700; }
.linkcard:hover, .linkcard:focus-visible { border-color: var(--hulk); }
.linkcard .playicon { width: 56px; height: 56px; object-fit: contain; flex: none; }

/* 결론 한 줄 (14·20·21장) */
.closer { color: var(--muted); font-size: 26px; margin-top: 26px; }
.closer strong { color: var(--text); font-weight: 800; }

/* 실측 사례 2단 (15~17장) */
.kicker .tag { color: var(--muted); font-weight: 700; }
.case { display: grid; grid-template-columns: 1.18fr 1fr; gap: 56px; margin-top: 26px; }
.panel-h { font-size: 28px; font-weight: 800; margin-top: 24px; }
.panel-h small { font-size: 22px; font-weight: 500; color: var(--muted); margin-left: 8px; }
.case-left .stat-row { grid-template-columns: repeat(3, 1fr); margin-top: 18px; }
.case-left .stat-row.four { grid-template-columns: repeat(4, 1fr); }
.case-left .stat { padding: 16px 14px 16px 0; }
.case-left .stat b { font-size: 46px; }
.case-left .stat b small { font-size: 22px; font-weight: 500; color: var(--muted); margin-left: 4px; }
.case-left .stat span { font-size: 22px; margin-top: 8px; line-height: 1.3; }
.case-left .graph { position: static; margin-top: 20px; outline: 0; border-radius: 8px; }
.case-left .graph img { background: #fff; }
.kwline { font-size: 22px; color: var(--muted); margin-top: 4px; line-height: 1.5; }
.concl { font-size: 25px; margin-top: 14px; color: var(--muted); line-height: 1.45; }
.concl strong { color: var(--text); font-weight: 800; }
.case-right .search { position: static; margin-top: 18px; outline: 0; border-radius: 8px; }
.case-right .search img { background: #fff; }

/* 비교표 (18장) */
.vs { width: 100%; border-collapse: collapse; margin-top: 30px; font-size: 23px; }
.vs th, .vs td { border-top: 1px solid var(--line); padding: 11px 20px; text-align: left; }
.vs thead th { font-size: 25px; color: var(--muted); font-weight: 700; }
.vs td:first-child, .vs th:first-child { color: var(--muted); width: 18%; }
.vs td.mine { background: rgba(107,255,60,.06); color: var(--text); font-weight: 700;
  border-left: 3px solid var(--hulk); }
.vs td { color: var(--muted); }
.lede { font-size: 28px; color: var(--muted); margin-top: 16px; line-height: 1.5; }

/* KPI 3x3 (19장) */
.kpi3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 48px; }
.kpi-cell { background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 34px 36px; display: flex; flex-direction: column; justify-content: center;
  align-items: flex-start; gap: 20px; min-height: 240px; }
.kpi-cell img { height: 48px; width: auto; max-width: 100%; object-fit: contain; flex: none; }
/* MOIRE 478 로고(s19_05)만 가는 회색 선화라 어두운 카드 위에서 거의 안 보인다.
   흰 판을 깔고 로고를 순검정으로 눌러 대비를 만든다. 다른 로고에는 적용하지 않는다. */
.logo-plate { display: inline-flex; align-items: center; justify-content: center;
  background: #fff; border-radius: 8px; padding: 8px 12px; }
.kpi-cell img.logo-boost { filter: brightness(0); }
.kpi-name { font-size: 30px; font-weight: 800; }
.kpi-stat { font-size: 26px; font-weight: 700; color: var(--text); }
.kpi-stat b { font-size: 32px; }
.kpi-stat small { display: block; font-size: 22px; font-weight: 500; color: var(--muted); margin-top: 6px; }
.kpi-cell.accent-group .kpi-stat b { color: var(--hulk); }

@media (max-width: 767px) {
  [data-kind="fluid"] .stage { padding: 40px 24px; }
  h2.big { font-size: clamp(28px, 8vw, 40px); }
  .stat-row, .deptgrid { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); padding: 20px 0; }
  .stat b { font-size: 44px; } .stat span { font-size: 14px; }
  h2.big small { font-size: 14px; margin-top: 8px; }
  .rowtable .row { grid-template-columns: 1fr; gap: 10px; }
  .rowtable h3 { font-size: 24px; } .rowtable ul { font-size: 15px; }
  .rowtable .tag { font-size: 14px; }
  .deptgrid div { font-size: 20px; padding: 20px; }
  .note, .note2 { font-size: 14px; }
  .split { grid-template-columns: 1fr; gap: 20px; }
  .chips { flex-wrap: wrap; }
  .commrow { flex-direction: column; }
  .shots { grid-template-columns: 1fr; }
  .numlines p { font-size: 16px; }
  .linkcard { font-size: 15px; padding: 14px 16px; gap: 12px; }
  .linkcard .playicon { width: 34px; height: 34px; }
  [data-kind="fluid"] .shot { position: static !important; width: 100% !important; height: auto !important; margin-top: 16px; }
  .chips .shot { height: 40px !important; width: auto !important; margin-top: 0; }
  .closer { font-size: 14px; }
  .case { grid-template-columns: 1fr; gap: 20px; }
  .panel-h { font-size: 16px; margin-top: 14px; }
  .panel-h small { font-size: 12px; }
  .case-left .stat-row, .case-left .stat-row.four { grid-template-columns: repeat(2, 1fr); }
  .case-left .stat b { font-size: 24px; } .case-left .stat span { font-size: 11px; }
  .case-left .stat b small { font-size: 12px; margin-left: 2px; }
  .kwline, .concl { font-size: 13px; }
  .lede { font-size: 14px; }
  .vs { font-size: 13px; } .vs th, .vs td { padding: 8px 8px; }
  .vs thead th { font-size: 13px; }
  .kpi3 { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi-cell { padding: 14px 16px; min-height: auto; gap: 8px; }
  .kpi-cell img { height: 24px; }
  .kpi-name { font-size: 14px; } .kpi-stat { font-size: 13px; } .kpi-stat b { font-size: 16px; }
  .kpi-stat small { font-size: 10px; }
}

/* 포스터 캡션 (27장) */
[data-kind="gallery"] .gallery-cap {
  position: absolute; left: 88px; right: 88px; bottom: 60px;
  font-size: 38px; font-weight: 800; letter-spacing: -.02em; text-align: center;
}

/* 카드 격자 (42·43장, Task 10) */
.cardgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.cardgrid .c { background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px; padding: 26px 28px; }
.cardgrid h4 { font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.cardgrid p { font-size: 22px; color: var(--muted); margin-top: 8px; line-height: 1.5; }
.cardgrid .logochip img { height: 34px; width: auto; object-fit: contain; display: block; }

/* 세로 여백 보정 (Task 11, A-1) — 내용이 무대 위쪽에 몰려 아래 30% 이상
   비는 장만 개별로 세로 가운데 정렬한다. 45장 중 소수(7장)라 전역이 아닌
   장별 처리로 결정. 갤러리·표지·영상·간지 장은 절대배치라 대상에서 뺀다. */
#s03 .stage, #s05 .stage, #s13 .stage, #s14 .stage,
#s18 .stage, #s42 .stage, #s43 .stage {
  display: flex; flex-direction: column; justify-content: center;
}

/* 클로징 (45장) */
.closing h2 { font-size: 88px; font-weight: 900; letter-spacing: -.035em; line-height: 1.12; }
.closing h2 .hl { color: var(--hulk); }
.closing .signoff { margin-top: 56px; }
.closing .name { font-size: 34px; font-weight: 800; letter-spacing: .4em; }
.closing .role { font-size: 24px; color: var(--muted); margin-top: 10px; line-height: 1.5; }
.closing .contact { margin-top: 64px; font-size: 24px; color: var(--muted); display: grid; gap: 8px; }
.closing .contact a { color: var(--text); text-decoration: none; border-bottom: 1px solid var(--line); }
.closing .qr { position: absolute; right: 88px; bottom: 72px; width: 200px; height: 200px;
  object-fit: contain; background: #fff; border-radius: 12px; padding: 12px; box-sizing: border-box; }

@media (max-width: 767px) {
  .cardgrid { grid-template-columns: 1fr; }
  .cardgrid h4 { font-size: 20px; } .cardgrid p { font-size: 14px; }
  .cardgrid .logochip img { height: 22px; }
  .closing h2 { font-size: clamp(26px, 7.5vw, 38px); }
  .closing .signoff { margin-top: 24px; }
  .closing .name { font-size: 18px; }
  .closing .role { font-size: 13px; }
  .closing .contact { font-size: 15px; margin-top: 32px; }
  /* 절대배치인 채로 두면 연락처 줄과 겹친다 — 연락처 아래 흐름으로 내린다. */
  .closing .qr { position: static; width: 88px; height: 88px; margin-top: 24px; padding: 6px; }
}
