@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=Noto+Sans+KR:wght@400;600;700;800&display=swap');

:root {
  color-scheme: light;
  font-family: 'Noto Sans KR', sans-serif;
  color: #171c26;
  background: #edf0f3;
}

* { box-sizing: border-box; }
body { margin: 0; }
.stage {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  justify-content: safe center;
  gap: 12px;
  padding: clamp(0px, 2vw, 28px);
}
.slide {
  width: min(100%, 1440px, calc((100svh - 56px) * 16 / 9));
  aspect-ratio: 16 / 9;
  position: relative;
  isolation: isolate;
  container-type: inline-size;
  background: #fff;
  box-shadow: 0 12px 60px #24354a0c, 0 0 0 1px #17293f08;
}
.slide::before {
  content: '';
  position: absolute;
  inset: 7.4% 5.6%;
  border-top: 1px solid #dfe4eb;
  border-bottom: 1px solid #dfe4eb;
  pointer-events: none;
}
.cover-copy {
  position: absolute;
  z-index: 2;
  left: 8.4%;
  top: 32%;
}
.accent {
  width: 3.5cqw;
  height: .4cqw;
  background: #315cf5;
  margin-bottom: 2.8cqw;
}
h1 {
  font-size: 4.8cqw;
  font-weight: 800;
  letter-spacing: -.065em;
  line-height: 1.38;
  margin: 0;
}
h1 span { display: block; }
.subtitle {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 1.48cqw;
  font-weight: 400;
  letter-spacing: -.04em;
  color: #657084;
  margin: 2.5cqw 0 0;
}
.presenter {
  margin: 3.2cqw 0 0;
  font-size: 1.25cqw;
  font-weight: 400;
  letter-spacing: -.025em;
  color: #475366;
}
.visual {
  position: absolute;
  width: 37%;
  height: 61%;
  right: 5.6%;
  top: 19.5%;
  background-image: radial-gradient(#d8dfeb .65px, transparent .65px);
  background-size: 1.55cqw 1.55cqw;
  mask-image: linear-gradient(to right, transparent, #000 18%, #000 86%, transparent);
}
.visual svg { width: 100%; height: 100%; display: block; }
.slide[hidden] { display: none; }
.stage { gap: 12px; align-content: center; }
.slide { width: min(100%, 1440px, calc((100svh - 108px) * 16 / 9)); }
.slide-controls { display: flex; align-items: center; gap: 18px; font-size: 13px; color: #657084; }
.keyboard-hint { margin: 0; font-size: 12px; line-height: 1.4; color: #8b94a6; }
.keyboard-hint[hidden] { display: none; }
.slide-controls button { border: 1px solid #d5dce7; border-radius: 5px; background: white; color: #315cf5; font-size: 18px; width: 40px; height: 32px; cursor: pointer; }
.slide-controls button:disabled { opacity: .35; cursor: default; }
.slide-controls button:focus-visible, a:focus-visible { outline: 2px solid #315cf5; outline-offset: 3px; }
.video-slide { display: block; padding: 0; overflow: hidden; }
.video-stage { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: #000; }
.video-player { width: 100%; height: 100%; aspect-ratio: 16 / 9; background: #000; }
.video-player iframe { display: block; width: 100%; height: 100%; border: 0; }
.video-heading { position: absolute; z-index: 3; top: 4.5cqw; left: 8.4cqw; max-width: 64%; padding: 2cqw 2.4cqw 2.2cqw; background: rgba(255, 255, 255, .5); backdrop-filter: blur(8px); border-radius: .6cqw; box-shadow: 0 8px 28px #0b122026, 0 0 0 1px #17293f14; opacity: 0; animation: video-heading-cycle 9s ease-in-out infinite; }
@keyframes video-heading-cycle {
  0% { opacity: 0; transform: translateY(-.9cqw); }
  10% { opacity: 1; transform: translateY(0); }
  36% { opacity: 1; transform: translateY(0); }
  50% { opacity: 0; transform: translateY(-.9cqw); }
  100% { opacity: 0; transform: translateY(-.9cqw); }
}
.video-heading .accent { margin-bottom: 1.1cqw; }
.video-heading h2 { font-size: 2.7cqw; line-height: 1.3; letter-spacing: -.055em; margin: 0; }
.video-heading > p { color: #657084; font-size: 1.1cqw; margin: .8cqw 0 0; }
.shorts-slide { padding: 0; }
.shorts-copy { position: absolute; z-index: 2; left: 8.4cqw; top: 50%; transform: translateY(-50%); max-width: 44cqw; }
.shorts-copy .accent { margin-bottom: 2.2cqw; }
.shorts-copy h2 { font-size: 2.9cqw; line-height: 1.36; letter-spacing: -.055em; margin: 0; }
.shorts-copy p { font-size: 1.2cqw; line-height: 1.95; letter-spacing: -.035em; color: #657084; margin: 1.8cqw 0 0; }
.shorts-stage { position: absolute; right: 8.4cqw; top: 50%; transform: translateY(-50%); height: 82%; aspect-ratio: 9 / 16; border-radius: .7cqw; overflow: hidden; background: #000; box-shadow: 0 16px 44px #17293f24, 0 0 0 1px #17293f14; }
.shorts-stage iframe { display: block; width: 100%; height: 100%; border: 0; }
.prompt-panel { width: min(100%, 1440px, calc((100svh - 108px) * 16 / 9)); padding: clamp(20px, 2.6vw, 40px) clamp(20px, 3vw, 48px); background: #fff; border: 1px solid #dfe4eb; border-radius: 6px; box-shadow: 0 12px 60px #24354a0c, 0 0 0 1px #17293f08; }
.prompt-panel[hidden] { display: none; }
.prompt-label { font-family: 'IBM Plex Mono', monospace; font-size: .84rem; letter-spacing: .04em; color: #315cf5; margin: 0 0 16px; }
.prompt-text { margin: 0; font-family: 'IBM Plex Mono', monospace; font-size: .82rem; line-height: 1.9; letter-spacing: -.01em; color: #3b4657; white-space: pre-wrap; word-break: break-word; }
.download-heading { position: absolute; top: 13%; left: 8.4%; right: 8.4%; }
.download-heading .accent { margin-bottom: 1.5cqw; }
.download-heading h2 { font-size: 3.4cqw; line-height: 1.3; letter-spacing: -.055em; margin: 0; }
.download-heading > p { color: #657084; font-size: 1.35cqw; margin: 1.2cqw 0 0; }
.download-steps { position: absolute; top: 38%; left: 8.4%; right: 8.4%; display: grid; grid-template-columns: 1fr 1fr 1.35fr 1fr; padding: 0; margin: 0; list-style: none; }
.download-steps li { padding: 0 1.5cqw; border-left: 1px solid #dfe4eb; }
.download-steps li:first-child { padding-left: 0; border: 0; }
.step-number { display: block; font-family: 'IBM Plex Mono', monospace; font-size: 2.6cqw; color: #315cf5; margin-bottom: 1.7cqw; }
.download-steps h3 { font-size: 1.65cqw; letter-spacing: -.04em; margin: 0 0 1.3cqw; }
.download-steps p { font-size: 1.08cqw; line-height: 1.9; letter-spacing: -.035em; color: #657084; margin: 0 0 1cqw; }
.download-steps strong { font-weight: 600; color: #303e54; }
.download-steps a { font-family: 'IBM Plex Mono', monospace; color: #315cf5; font-size: .98cqw; text-underline-offset: .3em; }
.download-note { position: absolute; bottom: 11%; left: 8.4%; right: 8.4%; margin: 0; font-size: .98cqw; line-height: 1.6; color: #657084; }
@media (max-aspect-ratio: 16/9) {
  .slide { width: 100%; }
}
@media (max-height: 440px) and (min-aspect-ratio: 16/9) {
  .stage { padding: 0; }
  .slide { width: min(100%, calc((100svh - 44px) * 16 / 9)); }
  .stage { gap: 8px; }
}
@media print {
  @page { size: landscape; margin: 0; }
  :root { background: white; }
  .stage { display: block; min-height: auto; padding: 0; }
  .slide, .slide[hidden] { display: block; width: 100%; box-shadow: none; break-after: page; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .slide:last-of-type { break-after: auto; }
  .slide-controls { display: none; }
  .video-stage { position: absolute; inset: 0; }
  .video-player { width: 100%; height: 100%; }
  .video-heading, .video-heading[hidden] { opacity: 1 !important; animation: none !important; transform: none !important; }
  .prompt-panel, .prompt-panel[hidden] { display: block; width: 100%; border: 0; border-radius: 0; padding: 0 8%; box-shadow: none; break-before: page; }
  .prompt-label { font-size: 10pt; margin-bottom: 10pt; }
  .prompt-text { font-size: 9pt; line-height: 1.7; }
}
