:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #ffffff;
  --card: #ffffff;
  --text: #171717;
  --muted: #60666f;
  --accent: #2456a6;
  --line: #d7dce2;
  --motion: 150ms;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Malgun Gothic", sans-serif; line-height: 1.65; word-break: keep-all; overflow-wrap: break-word; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.presentation { width: min(1440px, 100%); min-height: 100svh; margin: auto; padding: 0 clamp(16px, 4vw, 60px); display: flex; flex-direction: column; justify-content: center; }
.presentation-header, .presentation-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-shrink: 0; }
.presentation-header { height: 64px; font-size: 13px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; }
.project-year { color: var(--muted); font-size: 12px; }
.deck { width: 100%; aspect-ratio: 16 / 9; max-height: calc(100svh - 128px); min-height: 440px; overflow: hidden; background: var(--surface); container-type: size; }
.slide { width: 100%; height: 100%; padding: 4cqw 5.5cqw; display: flex; flex-direction: column; gap: 4cqh; animation: enter var(--motion) ease-out; }
.slide[hidden] { display: none; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-size: clamp(27px, 2.5cqw, 33px); font-weight: 600; line-height: 1.4; letter-spacing: -.025em; }
h3 { font-weight: 600; }
.content-list { margin: 1cqh 0 0; padding-left: 1.1em; font-size: clamp(18px, 1.7cqw, 22px); line-height: 1.8; letter-spacing: -.015em; }
.content-list li { padding-left: .2em; margin-bottom: 1em; }
.takeaway { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: clamp(13px, 1.35cqw, 18px); line-height: 1.6; }
.architecture-layout { display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: 5cqw; flex: 1; min-height: 0; }
.boundary-statement { font-size: clamp(17px, 1.8cqw, 24px); line-height: 1.75; color: var(--muted); }
.flow, .flow ol { display: flex; flex-direction: column; gap: 10px; }
.flow-group { display: grid; grid-template-columns: 95px minmax(0, 1fr); gap: 12px; }
.flow-group h3 { padding-top: 4px; font-size: 12px; font-weight: 400; line-height: 1.5; color: var(--muted); }
.flow-group h3 span { display: block; font-size: 10px; margin-bottom: 3px; color: var(--muted); }
.flow ol { list-style: none; padding: 0; margin: 0; }
.flow li { position: relative; border: 1px solid var(--line); border-radius: 0; background: var(--card); padding: 5px 8px; text-align: center; font-size: clamp(11px, 1.1cqw, 14px); line-height: 1.3; }
.flow li::after { content: "↓"; position: absolute; color: var(--muted); font-size: 10px; left: 50%; transform: translateX(-50%); top: 100%; line-height: 10px; }
.flow-group:last-child li:last-child::after { content: none; }
.flow .external-node { border-style: dashed; }
.roadmap { list-style: none; padding: 0; margin: 2cqh 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); flex: 1; }
.roadmap > li { position: relative; padding: 24px 20px 16px 0; border-top: 1px solid var(--line); }
.roadmap h3 { font-size: clamp(20px, 2cqw, 27px); }
.phase { color: var(--muted); margin-top: 10px; font-size: clamp(12px, 1.2cqw, 16px); line-height: 1.6; }
.roadmap ul { margin: 18px 0 0; padding-left: 18px; font-size: clamp(13px, 1.35cqw, 18px); line-height: 1.9; }
.presentation-footer { height: 64px; font-size: 12px; color: var(--muted); }
.mobile-hint { display: none; }
.slide-controls { display: flex; align-items: center; gap: 16px; }
.slide-controls button { background: transparent; border: 1px solid var(--line); border-radius: 0; color: var(--text); min-width: 40px; min-height: 38px; font-size: 18px; }
.slide-controls button:hover:enabled { border-color: var(--accent); }
.slide-controls button:disabled { opacity: .3; }
#slide-counter { color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; min-width: 36px; text-align: center; }
.progress-track { position: fixed; bottom: 0; left: 0; right: 0; height: 2px; background: var(--line); }
.progress-fill { width: 20%; height: 100%; background: var(--accent); transition: width var(--motion) ease-out; }
.noscript-note { padding: 16px; }
@keyframes enter { from { opacity: .5; } to { opacity: 1; } }
@media (min-width: 761px) and (max-width: 1100px) {
  .flow, .flow ol { gap: 8px; }
  .flow li { padding: 4px 6px; font-size: 12px; }
  .flow li::after { line-height: 8px; }
}
@media (max-width: 760px) {
  .presentation { padding: 0 16px; justify-content: flex-start; }
  .presentation-header { height: 56px; font-size: 12px; }
  .project-year { font-size: 9px; }
  .deck { aspect-ratio: auto; height: calc(100svh - 120px); max-height: none; min-height: 490px; }
  .slide { padding: 26px 22px; gap: 20px; }
  h1, h2 { font-size: 25px; }
  .content-list { font-size: 17px; margin-top: 8px; line-height: 1.8; }
  .content-list li { margin-bottom: 1.2em; }
  .takeaway { font-size: 13px; padding-top: 16px; }
  .architecture-layout { grid-template-columns: 1fr; gap: 16px; align-content: start; }
  .boundary-statement { font-size: 14px; line-height: 1.65; order: 2; }
  .boundary-statement br { display: none; }
  .flow-group { grid-template-columns: 72px minmax(0, 1fr); gap: 8px; }
  .flow-group h3 { font-size: 10px; }
  .flow li { font-size: 11px; padding: 5px; }
  .roadmap { grid-template-columns: 1fr; margin-top: 0; }
  .roadmap > li { border-top: 0; border-left: 1px solid var(--line); padding: 0 0 18px 20px; }
  .roadmap h3 { font-size: 20px; }
  .phase { margin-top: 3px; font-size: 12px; }
  .roadmap ul { margin-top: 7px; font-size: 12px; line-height: 1.6; display: flex; flex-wrap: wrap; gap: 2px 20px; }
  .desktop-hint { display: none; }
  .mobile-hint { display: inline; }
  .slide-controls { gap: 12px; }
}
@media (max-width: 760px) and (max-height: 700px) {
  .slide { padding: 18px 16px; gap: 14px; }
  h1, h2 { font-size: 22px; }
  .content-list { font-size: 15px; line-height: 1.7; }
  .takeaway { font-size: 12px; padding-top: 12px; }
  .flow, .flow ol { gap: 8px; }
  .flow li { font-size: 10.5px; padding: 4px; }
  .flow li::after { line-height: 8px; }
  .boundary-statement { font-size: 12px; }
  .roadmap > li { padding-bottom: 12px; }
  .roadmap h3 { font-size: 18px; }
  .phase { font-size: 11px; }
  .roadmap ul { font-size: 11px; line-height: 1.4; margin-top: 5px; }
}
@media (max-height: 650px) and (min-width: 761px) {
  .presentation-header { height: 44px; }
  .presentation-footer { height: 54px; }
  .deck { max-height: calc(100svh - 98px); min-height: 0; }
  .slide { padding: 3cqh 4cqw; gap: 3cqh; }
  h1, h2 { font-size: 25px; }
  .content-list { font-size: 17px; }
  .flow, .flow ol { gap: 8px; }
  .flow li { padding: 3px; font-size: 11px; }
  .flow li::after { line-height: 8px; }
}
@media (prefers-reduced-motion: reduce) { .slide { animation: none; } .progress-fill { transition: none; } }
/* 중간 발표: 비교표, 영상, 숫자 */
.compare { width: 100%; border-collapse: collapse; font-size: clamp(12px, 1.3cqw, 17px); line-height: 1.45; }
.compare th, .compare td { border-bottom: 1px solid var(--line); padding: .55em .7em; text-align: left; vertical-align: top; }
.compare th { color: var(--muted); font-weight: 500; }
.compare td:last-child { color: var(--accent); }
.clip { width: 100%; max-height: 58cqh; object-fit: contain; border: 1px solid var(--line); background: #fff; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 3cqw; align-items: start; }
.source { color: var(--muted); font-size: clamp(10px, 1cqw, 13px); }
@media (max-width: 700px) { .two-col { grid-template-columns: 1fr; } }

/* 중간 발표 구성 요소: 색 없이 선으로만 구분 */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2cqw; }
.card { border: 1px solid var(--line); padding: 2.2cqh 1.6cqw; font-size: clamp(13px, 1.45cqw, 19px); line-height: 1.55; }
.card b { display: block; font-size: 1.1em; margin-bottom: .4em; }
.big-number { font-size: clamp(22px, 3.4cqw, 48px); font-weight: 700; letter-spacing: -.03em; }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6cqw; }
.metric { border: 1px solid var(--line); padding: 1.8cqh 1.2cqw; }
.metric small { display: block; color: var(--muted); font-size: clamp(11px, 1.1cqw, 14px); }
.demo-slide { padding: 2.5cqw 3cqw; gap: 1.5cqh; }
.demo-slide .clip { max-height: 78cqh; }
.demo-grid { display: grid; grid-template-columns: 1fr 2.6fr; gap: 2cqw; align-items: start; min-height: 0; }
.demo-grid ol { font-size: clamp(12px, 1.35cqw, 17px); line-height: 1.6; padding-left: 1.2em; margin: 0; }
@media (max-width: 700px) { .cards, .metrics, .demo-grid { grid-template-columns: 1fr; } }
.content-list.dense { font-size: clamp(14px, 1.5cqw, 20px); line-height: 1.6; }
.content-list.dense li { margin-bottom: .6em; }
.example { border: 1px solid var(--line); padding: 1.2cqh 1.4cqw; font-size: clamp(13px, 1.45cqw, 19px); }
.example.inline { display: inline-block; margin-top: .4em; padding: .2em .6em; font-size: .9em; }
