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

:root {
  --hy-blue: #1D2475;
  --hy-gray: #3F3D42;
  --ink: #212121;
  --accent: #75B446;
  --accent-on-blue: #75B446;
  --accent-tint: #EDF6E3;
  --accent-ink: #416A22;
  --bg: #FFFFFF;
  --bg-alt: #FAFAFA;
  --bg-tint: #F5F7FA;
  --line: #E5E5E5;
  --muted: #6B6B6B;
  --warn: #F7931E;
  --shadow: 0 18px 48px rgba(29, 36, 117, 0.10);
  --focus: #F7931E;
  --slide-title: clamp(42px, 3.34vw, 64px);
  --slide-body: clamp(23px, 1.46vw, 28px);
  --slide-caption: clamp(18px, 1.15vw, 22px);
  --key-line: clamp(30px, 2.1vw, 40px);
  font-family: "Noto Sans KR", system-ui, -apple-system, "Malgun Gothic", sans-serif;
  font-synthesis: none;
  color-scheme: light;
}

.lecture-1 { --accent: #75B446; --accent-on-blue: #75B446; --accent-tint: #EDF6E3; --accent-ink: #416A22; }
.lecture-2 { --accent: #00A0B0; --accent-on-blue: #47CFDA; --accent-tint: #E6F7F8; --accent-ink: #006874; }
.lecture-3 { --accent: #F7931E; --accent-on-blue: #F7931E; --accent-tint: #FFF1E2; --accent-ink: #874000; }
.lecture-4 { --accent: #7B5EA7; --accent-on-blue: #CDB8F0; --accent-tint: #F1ECF7; --accent-ink: #513B73; }
.lecture-ot { --accent: #F0B323; --accent-on-blue: #FFD86B; --accent-tint: #FFF6DB; --accent-ink: #7A4D00; }

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  min-width: 320px;
  margin: 0;
  overflow-x: clip;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  overflow-wrap: anywhere;
  word-break: keep-all;
}

body,
button,
a {
  font-family: inherit;
}

a {
  color: var(--hy-blue);
  text-underline-offset: 0.2em;
}

button { color: inherit; }

:focus-visible {
  outline: 4px solid var(--focus);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 1000;
  padding: 12px 18px;
  border-radius: 8px;
  background: var(--hy-blue);
  color: #fff;
  font-weight: 700;
  transform: translateY(-180%);
}

.skip-link:focus { transform: translateY(0); }

.deck-page {
  height: 100dvh;
  overflow: hidden;
}

.deck {
  height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scroll-snap-type: y mandatory;
  scrollbar-color: var(--accent) transparent;
  scrollbar-width: thin;
}

.slide {
  position: relative;
  display: grid;
  width: 100%;
  height: 100dvh;
  min-height: 680px;
  padding: clamp(86px, 9vh, 100px) clamp(48px, 6.25vw, 120px) clamp(80px, 8.3vh, 90px);
  overflow: hidden;
  background: #fff;
  align-items: stretch;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.slide__inner {
  position: relative;
  display: grid;
  width: min(100%, 1680px);
  min-height: 0;
  margin-inline: auto;
  align-content: stretch;
}

.slide__header {
  display: grid;
  align-content: start;
  gap: 8px;
}

.slide__eyebrow {
  margin: 0;
  color: var(--accent-ink);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.slide h1,
.slide h2 {
  max-width: 1500px;
  margin: 0;
  color: var(--hy-blue);
  font-size: var(--slide-title);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

.slide__header::after {
  width: 80px;
  height: 4px;
  margin-top: 18px;
  background: var(--accent);
  content: "";
}

.practice-slide .slide__header::after {
  display: none;
}

.slide h3 {
  margin: 0;
  color: var(--hy-blue);
  font-size: clamp(32px, 2.2vw, 42px);
  line-height: 1.25;
}

.slide__lead {
  max-width: 1180px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(27px, 1.8vw, 34px);
  line-height: 1.45;
}

.slide__visual {
  position: relative;
  display: grid;
  width: 100%;
  min-width: 0;
  min-height: 0;
  padding: 20px 30px;
  border-radius: 16px;
  place-items: center;
  background: var(--bg-alt);
}

.deck-svg {
  position: absolute;
  inset: 20px 30px;
  width: calc(100% - 60px);
  height: calc(100% - 40px);
  max-height: none;
  overflow: hidden;
}

.layout-split .deck-svg {
  inset: 28px;
  width: calc(100% - 56px);
  height: calc(100% - 56px);
}

.deck-svg text {
  font-family: "Noto Sans KR", system-ui, -apple-system, "Malgun Gothic", sans-serif;
}

.deck-svg .stroke-blue,
.deck-svg .stroke-green,
.deck-svg .stroke-gray,
.deck-svg .stroke-warn {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.deck-svg .stroke-blue { stroke: var(--hy-blue); stroke-width: 5; }
.deck-svg .stroke-green { stroke: var(--accent); stroke-width: 5; }
.deck-svg .stroke-warn { stroke: var(--warn); stroke-width: 5; }
.deck-svg .stroke-gray { stroke: var(--hy-gray); stroke-width: 2; }
.deck-svg .thin { stroke-width: 2; }
.deck-svg .dashed { stroke-dasharray: 12 12; }
.deck-svg .fill-blue { fill: var(--hy-blue); }
.deck-svg .fill-green { fill: var(--accent); }
.deck-svg .fill-soft { fill: var(--accent-tint); }
.deck-svg .fill-tint { fill: #EEF1F6; }
.deck-svg .fill-gray { fill: #DDE0E5; }
.deck-svg .fill-dark { fill: var(--hy-gray); }
.deck-svg .fill-white { fill: #fff; }
.deck-svg .fill-warn { fill: var(--warn); }
.deck-svg .node {
  fill: #fff;
  stroke: none;
  filter: drop-shadow(0 8px 10px rgba(29, 36, 117, 0.10));
}
.deck-svg .node-green {
  fill: var(--accent-tint);
  stroke: none;
  filter: drop-shadow(0 8px 10px rgba(29, 36, 117, 0.08));
}
.deck-svg .svg-title { fill: var(--hy-blue); font-size: 28px; font-weight: 700; }
.deck-svg .svg-label { fill: var(--hy-gray); font-size: 22px; font-weight: 500; }
.deck-svg .svg-small { fill: var(--muted); font-size: 20px; font-weight: 400; }
.deck-svg .svg-white { fill: #fff; font-size: 22px; font-weight: 600; }
.deck-svg .svg-blue { fill: var(--hy-blue); font-size: 22px; font-weight: 600; }
.deck-svg .svg-on-blue { fill: #fff; }
.deck-svg .svg-green { fill: var(--accent-ink); font-size: 22px; font-weight: 600; }
.deck-svg .svg-warn { fill: #874000; font-size: 22px; font-weight: 600; }
.deck-svg .svg-number { fill: var(--hy-blue); font-size: 28px; font-weight: 700; }
.deck-svg .svg-unit { fill: var(--muted); font-size: 20px; font-weight: 400; }
.deck-svg .leader-dot { fill: var(--accent); }
.deck-svg .leader { fill: none; stroke: var(--hy-gray); stroke-width: 2; }
.deck-svg .dim { opacity: 0.16; }
.deck-svg .chip rect {
  fill: #fff;
  stroke: #D8DEE9;
  stroke-width: 1;
}
.deck-svg .chip text {
  fill: var(--hy-blue);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0;
}

/* v6 · real ALICE M1 photography */
.photo-stage,
.photo-compare {
  position: relative;
  display: flex;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  border-radius: 16px;
  background: #F5F7FA;
}

.photo-stage {
  padding: 24px 42px;
  align-items: stretch;
  gap: 38px;
}

.photo-stage--solo { justify-content: center; }

.photo-figure {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border-radius: 14px;
  background: #F5F7FA;
}

.photo-figure > img,
.photo-overlay {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.photo-figure > img {
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(29, 36, 117, 0.18));
}

.photo-overlay {
  z-index: 2;
  overflow: visible;
}

.photo-overlay .leader {
  fill: none;
  stroke: var(--hy-gray);
  stroke-linecap: round;
  stroke-linejoin: round;
}

.photo-overlay .joint-dot { fill: var(--accent); }
.photo-overlay .motion-arc {
  fill: none;
  stroke: var(--accent);
  stroke-linecap: round;
}

.photo-overlay .axis-x,
.photo-overlay .axis-z,
.photo-overlay .axis-y {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.photo-overlay .axis-x { stroke: var(--accent); }
.photo-overlay .axis-z { stroke: var(--hy-blue); }
.photo-overlay .axis-y { stroke: var(--warn); }

.photo-overlay .chip rect {
  fill: #fff;
  stroke: #D8DEE9;
  stroke-width: 2;
}

.photo-overlay .chip text {
  fill: var(--hy-blue);
  font-family: "Noto Sans KR", system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: 0;
}

.photo-overlay--portrait .chip text { font-size: 60px; }
.photo-overlay--arm .chip text { font-size: 50px; }
.photo-overlay--square .chip text { font-size: 46px; }

.photo-figure--side { aspect-ratio: 648 / 1400; height: 100%; flex: 0 0 auto; }
.photo-figure--front { aspect-ratio: 934 / 1400; height: 100%; flex: 0 0 auto; }
.photo-figure--three-quarter { aspect-ratio: 1112 / 1400; height: 100%; flex: 0 0 auto; }
.photo-figure--arm-ext { aspect-ratio: 1086 / 1200; height: 100%; flex: 0 0 auto; }
.photo-figure--arm-fold { aspect-ratio: 1077 / 1200; height: 100%; flex: 0 0 auto; }
.photo-figure--arm-mid { aspect-ratio: 1090 / 1200; height: 100%; flex: 0 0 auto; }
.photo-figure--arm-lateral,
.photo-figure--arm-straight { aspect-ratio: 1078 / 1200; height: 100%; flex: 0 0 auto; }
.photo-figure--sensor { aspect-ratio: 1200 / 1055; height: 100%; flex: 0 0 auto; }
.photo-figure--gripper { aspect-ratio: 1200 / 1127; height: 100%; flex: 0 0 auto; }

.photo-figure--upper > img,
.photo-figure--upper > .photo-overlay {
  transform: scale(1.22);
  transform-origin: 50% 28%;
}

.photo-figure--arm-close > img,
.photo-figure--arm-close > .photo-overlay {
  transform: scale(1.42);
  transform-origin: 40% 24%;
}

.photo-aside {
  display: grid;
  min-width: 0;
  padding: 32px 10px;
  align-content: center;
  gap: 20px;
}

.photo-aside__eyebrow {
  color: var(--accent-ink);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.photo-aside strong {
  color: var(--hy-blue);
  font-size: clamp(38px, 3vw, 58px);
  letter-spacing: -0.03em;
  line-height: 1.16;
}

.photo-aside__facts {
  display: grid;
  margin: 8px 0 0;
  padding: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  list-style: none;
}

.photo-aside__facts li {
  padding-top: 12px;
  border-top: 2px solid var(--accent);
  color: var(--hy-gray);
  font-size: 19px;
  font-weight: 600;
}

.photo-slide .slide__visual {
  padding: 0;
  background: transparent;
}

.photo-slide.visual-wide .slide__visual::before { z-index: 3; }

.photo-compare {
  padding: 20px 28px;
  justify-content: center;
  gap: 24px;
}

.photo-compare .photo-figure {
  height: 100%;
  flex: 1 1 0;
}

.photo-compare__divider {
  width: 2px;
  height: 86%;
  align-self: center;
  background: var(--accent);
  opacity: 0.5;
}

.photo-compare__label {
  position: absolute;
  top: 18px;
  z-index: 4;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--hy-blue);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
}
.photo-compare__label--left { left: 34px; }
.photo-compare__label--right { right: 34px; }

.photo-sequence {
  position: relative;
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 20px 24px;
  overflow: hidden;
  border-radius: 16px;
  background: #F5F7FA;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.photo-sequence::before,
.photo-sequence::after {
  position: absolute;
  top: 38%;
  z-index: 4;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--hy-blue);
  color: #fff;
  content: "→";
  font-size: 28px;
  font-weight: 700;
  line-height: 40px;
  text-align: center;
  transform: translate(-50%, -50%);
}

.photo-sequence::before { left: 33.33%; }
.photo-sequence::after { left: 66.66%; }

.photo-sequence .photo-figure {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
}

.photo-sequence .photo-figure > img,
.photo-sequence .photo-overlay {
  transform: scale(1.2);
  transform-origin: 50% 25%;
}

.photo-sequence__step {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 5;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--hy-blue);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
}

.photo-timeline.layout-split .slide__visual { grid-column: 5 / -1; }
.photo-timeline.layout-split .slide-bullets { grid-column: 1 / span 4; }

.photo-map-image {
  filter: drop-shadow(0 8px 18px rgba(29, 36, 117, 0.2));
}

.slide__build-tag {
  position: absolute;
  top: 8px;
  right: 0;
  z-index: 2;
  padding: 7px 16px;
  border: 0;
  border-radius: 999px;
  background: var(--accent-tint);
  color: var(--accent-ink);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* L1 · title */
.slide--title {
  background: var(--hy-blue);
}

.slide--title .slide__inner {
  grid-template-columns: 150px minmax(0, 1fr) minmax(350px, 430px);
  align-items: center;
  gap: 54px;
}

.slide--title .slide__inner > div:first-child {
  grid-column: 2;
  grid-row: 1;
  padding-left: 54px;
  border-left: 5px solid var(--accent);
}

.slide--title .slide__eyebrow { color: var(--accent-on-blue); }
.slide--title h1 {
  color: #fff;
  font-size: clamp(54px, 3.75vw, 72px);
  letter-spacing: -0.02em;
}

.slide--title h1::after {
  display: block;
  width: 80px;
  height: 4px;
  margin-top: 28px;
  background: var(--accent);
  content: "";
}

.title-number {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  color: var(--accent-on-blue);
  font-size: 96px;
  font-weight: 700;
  letter-spacing: -0.07em;
  line-height: 1;
}

.title-meta {
  display: flex;
  margin-top: 42px;
  align-items: center;
  gap: 22px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 22px;
  font-weight: 600;
}

.title-meta span + span {
  padding-left: 22px;
  border-left: 2px solid rgba(255, 255, 255, 0.28);
}

.title-index {
  display: grid;
  grid-column: 3;
  grid-row: 1;
  margin: 0;
  padding: 0;
  gap: 24px;
  list-style: none;
}

.title-index li {
  display: grid;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.42);
  grid-template-columns: 54px 1fr;
  gap: 16px;
}

.title-index span {
  color: var(--accent-on-blue);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.title-index div {
  display: grid;
  gap: 4px;
}

.title-index strong {
  color: #fff;
  font-size: 22px;
  line-height: 1.25;
}

.title-index small {
  color: rgba(255, 255, 255, 0.62);
  font-size: 16px;
  letter-spacing: 0.02em;
}

.title-robot {
  position: absolute;
  right: 450px;
  bottom: -92px;
  z-index: 0;
  width: clamp(260px, 19vw, 365px);
  height: 82vh;
  margin: 0;
  overflow: hidden;
  pointer-events: none;
}

.title-robot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 14px 30px rgba(6, 10, 48, 0.38));
  transform: scale(1.55);
  transform-origin: 50% 82%;
}

.slide--title .slide__inner > div:first-child,
.slide--title .title-number,
.slide--title .title-index {
  position: relative;
  z-index: 2;
}

/* L2 · question */
.slide--question {
  background: #fff;
}

.slide--question .slide__inner {
  max-width: 1680px;
  grid-template-columns: minmax(0, 1.45fr) minmax(420px, 0.7fr);
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: end;
  column-gap: 80px;
  text-align: left;
}

.slide--question .slide__eyebrow,
.question-mark {
  display: none;
}

.slide--question h2 {
  grid-column: 1 / -1;
  grid-row: 1;
  max-width: 1500px;
  align-self: center;
  color: var(--hy-blue);
  font-size: clamp(72px, 6vw, 116px);
  letter-spacing: -0.04em;
  line-height: 1.12;
}

.question-keywords {
  display: grid;
  grid-column: 2;
  grid-row: 2;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.question-keywords span {
  padding-top: 14px;
  border-top: 2px solid var(--accent);
  color: var(--hy-gray);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.18em;
}

/* L3 · diagram dominant */
.layout-diagram .slide__inner {
  grid-template-rows: 200px minmax(0, 1fr) 50px;
  gap: 20px;
}

.layout-diagram .slide__header { grid-row: 1; }
.layout-diagram .slide__visual { grid-row: 2; }

.key-line {
  grid-row: 3;
  align-self: end;
  margin: 0;
  color: var(--hy-blue);
  font-size: var(--key-line);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.25;
}

.key-line::before {
  display: inline-block;
  width: 38px;
  height: 5px;
  margin: 0 18px 0 0;
  background: var(--accent);
  content: "";
  vertical-align: 0.22em;
}

/* v4 composition reference · asymmetric full-width cycle */
.slide--cycle-v4 .slide__inner {
  grid-template-rows: 180px minmax(0, 1fr);
  gap: 20px;
}

.slide--cycle-v4 .slide__header {
  grid-row: 1;
  max-width: 680px;
}

.slide--cycle-v4 .slide__visual {
  grid-row: 2;
  padding: 0;
  border-radius: 0;
  background: transparent;
}

.slide--cycle-v4 .deck-svg {
  inset: 0;
  width: 100%;
  height: 100%;
}

/* v4 Distill widths: full 1600 / wide 1100 / split half. */
.visual-wide .slide__visual {
  width: min(100%, 1100px);
}

.visual-right .slide__visual {
  justify-self: end;
}

.visual-left .slide__visual {
  justify-self: start;
}

.visual-wide .slide__visual::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: var(--accent);
  content: "";
}

.visual-wide .key-line {
  max-width: 980px;
}

.visual-left .key-line {
  justify-self: end;
  text-align: right;
}

/* L4 · split */
.layout-split .slide__inner {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: 192px minmax(0, 1fr);
  column-gap: 32px;
  row-gap: 28px;
}

.layout-split .slide__header {
  grid-column: 1 / -1;
  grid-row: 1;
}

.layout-split .slide__visual {
  grid-column: 6 / -1;
  grid-row: 2;
  padding: 28px;
}

.layout-split .slide-bullets {
  grid-column: 1 / span 5;
  grid-row: 2;
}

.layout-split-reverse .slide__visual { grid-column: 1 / span 7; }
.layout-split-reverse .slide-bullets { grid-column: 8 / -1; }

.slide-bullets {
  display: flex;
  min-width: 0;
  margin: 0;
  padding: 18px 0;
  align-self: center;
  flex-direction: column;
  gap: 34px;
  list-style: none;
}

.slide-bullets li {
  position: relative;
  min-width: 0;
  padding: 0 0 0 38px;
  color: var(--hy-gray);
  font-size: var(--slide-body);
  font-weight: 400;
  line-height: 1.45;
}

.slide-bullets li::before {
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  content: "";
}

.slide-bullets li::after {
  position: absolute;
  top: calc(0.62em + 4px);
  left: 10px;
  width: 17px;
  height: 2px;
  background: var(--accent);
  content: "";
  opacity: 0.55;
}

/* L5 · compare */
.layout-compare .slide__inner {
  grid-template-rows: 192px minmax(0, 1fr);
  gap: 28px;
}

.layout-compare .comparison-grid,
.layout-compare .concept-table {
  grid-row: 2;
}

.comparison-grid {
  position: relative;
  display: grid;
  min-height: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 82px;
}

.comparison-grid::before {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: grid;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  place-items: center;
  background: var(--hy-blue);
  color: #fff;
  content: "VS";
  font-size: 20px;
  font-weight: 700;
  transform: translate(-50%, -50%);
}

.comparison-card {
  display: grid;
  min-width: 0;
  padding: 48px 52px;
  border: 0;
  border-radius: 24px;
  align-content: center;
  gap: 34px;
  box-shadow: none;
}

.comparison-card:first-child { background: #F5F7FA; }
.comparison-card:last-child { background: #EDF6E3; }
.lecture-ot .comparison-card:last-child { background: var(--accent-tint); }

.comparison-card ul {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 24px;
  list-style: none;
}

.comparison-card li {
  position: relative;
  padding-left: 30px;
  color: var(--hy-gray);
  font-size: var(--slide-body);
  line-height: 1.45;
}

.comparison-card li::before {
  position: absolute;
  top: 0.55em;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  content: "";
}

.concept-table {
  width: 100%;
  border-spacing: 0 14px;
  border-collapse: separate;
  background: transparent;
  font-size: var(--slide-body);
}

.concept-table th,
.concept-table td {
  padding: 25px 34px;
  border: 0;
  text-align: left;
}

.concept-table th {
  width: 24%;
  border-radius: 16px 0 0 16px;
  background: var(--hy-blue);
  color: #fff;
  font-weight: 700;
}

.concept-table td {
  border-radius: 0 16px 16px 0;
  background: var(--accent-tint);
  color: var(--hy-gray);
}

/* L6 · worksheet */
.practice-slide { background: var(--bg-tint); }

.practice-slide .slide__inner {
  overflow: hidden;
  grid-template-rows: 80px minmax(0, 1fr);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow);
}

.practice-slide .slide__header {
  display: flex;
  padding: 0 42px;
  align-items: center;
  background: var(--accent-ink);
}

.practice-slide .slide__eyebrow { display: none; }
.practice-slide h2 { color: #fff; font-size: clamp(36px, 2.4vw, 46px); }

.practice-shell {
  display: grid;
  min-height: 0;
  padding: 38px 44px 42px;
  border: 0;
  background: #fff;
  gap: 30px;
}

.practice-label {
  justify-self: start;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--accent-tint);
  color: var(--accent-ink);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.practice-task,
.practice-help {
  display: grid;
  min-width: 0;
  grid-template-columns: max-content 1fr;
  align-items: end;
  gap: 24px;
  color: var(--hy-blue);
  font-size: 24px;
  font-weight: 700;
}

.fill-line,
.step-line {
  display: block;
  min-height: 40px;
  border-bottom: 2px solid var(--line);
}

.practice-steps {
  display: grid;
  margin: 0;
  padding: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  list-style: none;
  counter-reset: practice-step;
}

.practice-steps li {
  display: grid;
  min-height: 96px;
  padding: 16px 26px;
  border: 1px solid var(--line);
  border-radius: 999px;
  align-content: center;
  grid-template-columns: 46px 1fr;
  align-items: center;
  gap: 18px;
  background: #fff;
  counter-increment: practice-step;
}

.practice-steps li::before {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: var(--accent-ink);
  content: counter(practice-step);
  font-size: 28px;
  font-weight: 700;
}

.layout-practice-b .practice-shell {
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.35fr);
  grid-template-rows: auto 1fr 1fr;
}
.layout-practice-b .practice-label { grid-column: 1; grid-row: 1; }
.layout-practice-b .practice-task { grid-column: 1; grid-row: 2; grid-template-columns: 1fr; }
.layout-practice-b .practice-help { grid-column: 1; grid-row: 3; grid-template-columns: 1fr; }
.layout-practice-b .practice-steps { grid-column: 2; grid-row: 1 / span 3; grid-template-columns: 1fr; }
.layout-practice-b .practice-steps li { min-height: 78px; }

.layout-practice-c .practice-shell {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: auto 1fr auto;
}
.layout-practice-c .practice-label { grid-column: 1 / -1; }
.layout-practice-c .practice-steps { grid-column: 1 / -1; grid-row: 2; align-items: center; }
.layout-practice-c .practice-steps li { min-height: 96px; align-self: center; }
.layout-practice-c .practice-task { grid-column: 1; grid-row: 3; grid-template-columns: 1fr; }
.layout-practice-c .practice-help { grid-column: 2; grid-row: 3; grid-template-columns: 1fr; }

/* Recap: one giant headline against three compact statements. */
.layout-recap .slide__inner {
  grid-template-columns: minmax(440px, 0.8fr) minmax(0, 1.4fr);
  grid-template-rows: minmax(0, 1fr) auto;
  column-gap: 72px;
}

.layout-recap .slide__header {
  grid-column: 1 / -1;
  grid-row: 1;
  align-self: center;
}

.layout-recap .slide__header h2 {
  max-width: 1080px;
  font-size: clamp(72px, 6vw, 112px);
  letter-spacing: -0.04em;
}

.summary-list {
  display: grid;
  grid-column: 2;
  grid-row: 2;
  margin: 0;
  padding: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  list-style: none;
  counter-reset: summary;
}

.summary-list li {
  display: grid;
  min-height: 152px;
  padding: 18px 0 0;
  border-top: 2px solid var(--accent);
  grid-template-columns: 1fr;
  align-content: start;
  gap: 14px;
  color: var(--hy-gray);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.45;
  counter-increment: summary;
}

.summary-list li::before {
  color: var(--accent);
  content: "0" counter(summary);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

/* Four corners carry function; slide number remains in the lower right. */
.slide::after {
  position: absolute;
  bottom: 26px;
  left: clamp(28px, 3.2vw, 62px);
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.18em;
}

.lecture-1 .slide::after { content: "강의 ① · ROBOTICS / ROS2"; }
.lecture-2 .slide::after { content: "강의 ② · CONTROL"; }
.lecture-3 .slide::after { content: "강의 ③ · VSLAM"; }
.lecture-4 .slide::after { content: "강의 ④ · VLA"; }

.slide--title::after {
  color: rgba(255, 255, 255, 0.6);
}

/* Deck chrome */
.deck-progress {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 100;
  height: 8px;
  background: rgba(229, 229, 229, 0.9);
}

.deck-progress__bar {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
}

.deck-wordmark {
  position: fixed;
  top: 24px;
  left: clamp(20px, 3vw, 48px);
  z-index: 90;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--hy-blue);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.lecture-nav {
  position: fixed;
  top: 22px;
  left: 50%;
  z-index: 95;
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(216, 222, 233, 0.9);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 4px 14px rgba(29, 36, 117, 0.10);
  transform: translateX(-50%);
}

.lecture-nav a {
  display: grid;
  width: 40px;
  height: 36px;
  border-radius: 999px;
  place-items: center;
  color: var(--hy-gray);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.lecture-nav a[aria-current="page"] {
  background: var(--hy-blue);
  box-shadow: inset 0 -4px 0 var(--accent);
  color: #fff;
}

.deck-tools {
  position: fixed;
  top: 22px;
  right: clamp(18px, 3vw, 46px);
  z-index: 90;
  display: flex;
  gap: 8px;
}

.deck-tool {
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  place-items: center;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 4px 14px rgba(29, 36, 117, 0.10);
  color: var(--hy-blue);
  cursor: pointer;
  font-size: 17px;
  font-weight: 700;
}

.deck-counter {
  position: fixed;
  right: clamp(18px, 3vw, 46px);
  bottom: clamp(18px, 3vh, 34px);
  z-index: 90;
  min-width: 112px;
  padding: 9px 15px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 6px 22px rgba(29, 36, 117, 0.12);
  color: var(--hy-blue);
  font-size: var(--slide-caption);
  font-weight: 700;
  text-align: center;
}

.shortcut-help {
  width: min(92vw, 680px);
  padding: 0;
  border: 0;
  border-radius: 20px;
  box-shadow: 0 24px 80px rgba(10, 15, 70, 0.32);
}

.shortcut-help::backdrop { background: rgba(20, 20, 30, 0.68); }
.shortcut-help__inner { padding: 36px; }
.shortcut-help h2 { margin: 0 0 24px; color: var(--hy-blue); font-size: 32px; }
.shortcut-help dl { display: grid; margin: 0; grid-template-columns: 180px 1fr; gap: 14px 24px; font-size: 20px; }
.shortcut-help dt { color: var(--hy-blue); font-weight: 700; }
.shortcut-help dd { margin: 0; color: var(--hy-gray); }
.shortcut-help__close { width: 100%; margin-top: 30px; padding: 13px 20px; border: 0; border-radius: 10px; background: var(--hy-blue); color: #fff; cursor: pointer; font-size: 18px; font-weight: 700; }

/* Course landing */
.site-shell {
  width: min(100% - 48px, 1500px);
  margin-inline: auto;
}

.landing-page { background: #F2F4F9; }

.landing {
  min-height: calc(100vh - 88px);
  padding-bottom: 72px;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 76%, rgba(123, 94, 167, 0.09), transparent 26%),
    #F2F4F9;
}

.landing__hero {
  position: relative;
  min-height: 560px;
  padding: 74px 0 124px;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 0%, rgba(117, 180, 70, 0.18), transparent 32%),
    linear-gradient(135deg, #161C63 0%, #252D88 100%);
}

.landing__hero::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  content: "";
  mask-image: linear-gradient(90deg, transparent 0%, #000 45%, #000 100%);
}

.landing__hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(340px, 0.65fr);
  align-items: center;
  gap: clamp(56px, 7vw, 120px);
}

.landing__eyebrow {
  margin: 0 0 18px;
  color: #75B446;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.landing h1 {
  max-width: 980px;
  margin: 0;
  color: #fff;
  font-size: clamp(48px, 4.5vw, 76px);
  letter-spacing: -0.05em;
  line-height: 1.12;
}

.landing h1 span { color: #A6CE39; }
.landing__lead { max-width: 760px; margin: 26px 0 0; color: rgba(255, 255, 255, 0.76); font-size: clamp(19px, 1.55vw, 25px); }

.landing__flow {
  margin: 0;
  padding: 20px 26px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  background: rgba(8, 12, 54, 0.34);
  box-shadow: 0 24px 70px rgba(7, 10, 45, 0.24);
  list-style: none;
  backdrop-filter: blur(12px);
}

.landing__flow li {
  display: grid;
  min-height: 72px;
  grid-template-columns: 44px 1fr;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.landing__flow li:last-child { border-bottom: 0; }
.landing__flow li > span { color: #75B446; font-size: 15px; font-weight: 700; }
.landing__flow li:nth-child(2) > span { color: #47CFDA; }
.landing__flow li:nth-child(3) > span { color: #F7931E; }
.landing__flow li:nth-child(4) > span { color: #CDB8F0; }
.landing__flow strong { display: block; color: #fff; font-size: 18px; letter-spacing: 0.08em; }
.landing__flow small { display: block; margin-top: 2px; color: rgba(255, 255, 255, 0.6); font-size: 14px; }

.landing__body { position: relative; z-index: 2; margin-top: -74px; }

.landing__section-head {
  display: flex;
  margin-bottom: 24px;
  padding: 0 4px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}

.landing__section-head p { margin: 0; color: rgba(255, 255, 255, 0.7); font-size: 13px; font-weight: 700; letter-spacing: 0.18em; }
.landing__section-head h2 { margin: 0; color: #fff; font-size: clamp(22px, 2vw, 30px); letter-spacing: -0.035em; }

.deck-links {
  display: grid;
  margin-top: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.deck-link {
  --card-accent: #75B446;
  --card-accent-ink: #416A22;
  --card-tint: #EDF6E3;
  position: relative;
  display: grid;
  min-height: 322px;
  padding: 28px;
  overflow: hidden;
  border: 1px solid rgba(29, 36, 117, 0.08);
  border-radius: 18px;
  grid-template-rows: auto auto 1fr auto;
  background: linear-gradient(160deg, var(--card-tint) 0, #fff 43%);
  box-shadow: 0 18px 46px rgba(29, 36, 117, 0.09);
  color: inherit;
  text-decoration: none;
  transition: box-shadow 180ms ease, transform 180ms ease;
}
.deck-link:nth-child(2) { --card-accent: #00A0B0; --card-accent-ink: #006874; --card-tint: #E6F7F8; }
.deck-link:nth-child(3) { --card-accent: #F7931E; --card-accent-ink: #874000; --card-tint: #FFF1E2; }
.deck-link:nth-child(4) { --card-accent: #7B5EA7; --card-accent-ink: #513B73; --card-tint: #F1ECF7; }
.deck-link--orientation { --card-accent: #F0B323; --card-accent-ink: #7A4D00; --card-tint: #FFF6DB; min-height: 210px; grid-column: 1 / -1; grid-template-columns: 76px minmax(0, 1fr) 260px; grid-template-rows: auto auto; column-gap: 26px; }
.deck-link--orientation .deck-link__top { grid-column: 1; grid-row: 1 / -1; align-self: start; }
.deck-link--orientation .deck-link__verb { display: none; }
.deck-link--orientation h2 { grid-column: 2; grid-row: 1; margin-top: 0; align-self: end; }
.deck-link--orientation > p { grid-column: 2; grid-row: 2; margin-bottom: 0; align-self: start; }
.deck-link--orientation .deck-link__meta { grid-column: 3; grid-row: 1 / -1; align-self: center; }
.deck-link--build { --card-accent: #75B446; --card-accent-ink: #416A22; --card-tint: #EDF6E3; }
.deck-link--control { --card-accent: #00A0B0; --card-accent-ink: #006874; --card-tint: #E6F7F8; }
.deck-link--perceive { --card-accent: #F7931E; --card-accent-ink: #874000; --card-tint: #FFF1E2; }
.deck-link--learn { --card-accent: #7B5EA7; --card-accent-ink: #513B73; --card-tint: #F1ECF7; }
.deck-link::before { position: absolute; top: 0; right: 0; left: 0; height: 6px; background: var(--card-accent); content: ""; }
.deck-link::after { position: absolute; top: -76px; right: -70px; width: 180px; height: 180px; border: 24px solid var(--card-accent); border-radius: 50%; content: ""; opacity: 0.08; }
.deck-link:hover { box-shadow: 0 26px 60px rgba(29, 36, 117, 0.16); transform: translateY(-6px); }
.deck-link__top { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.deck-link__number { display: grid; width: 44px; height: 44px; border-radius: 12px; place-items: center; background: var(--card-accent); color: #fff; font-size: 17px; font-weight: 700; }
.deck-link__verb { color: var(--card-accent-ink); font-size: 13px; font-weight: 700; letter-spacing: 0.11em; }
.deck-link h2 { margin: 28px 0 0; color: var(--hy-blue); font-size: clamp(23px, 1.65vw, 29px); letter-spacing: -0.035em; line-height: 1.35; }
.deck-link > p { margin: 16px 0 24px; color: var(--muted); font-size: 16px; line-height: 1.65; }
.deck-link__meta { display: grid; padding-top: 17px; border-top: 1px solid rgba(29, 36, 117, 0.1); grid-template-columns: auto 1fr auto; align-items: center; gap: 13px; color: var(--muted); font-size: 13px; font-weight: 700; }
.deck-link__meta span:nth-child(2) { color: #92939B; }
.deck-link__meta span:last-child { color: var(--card-accent-ink); font-size: 22px; }
.site-footer { padding-block: 30px; border-top: 1px solid var(--line); background: #F2F4F9; color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: 0.08em; }

@media (max-width: 1200px) {
  .landing__hero-grid { grid-template-columns: minmax(0, 1fr) minmax(300px, 0.55fr); gap: 48px; }
  .deck-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 800px) {
  .lecture-nav a { width: 34px; }

  .slide {
    height: auto;
    min-height: 100svh;
    padding: 82px 24px 72px;
    overflow: visible;
  }

  .slide__inner,
  .layout-diagram .slide__inner,
  .layout-split .slide__inner,
  .layout-compare .slide__inner,
  .layout-recap .slide__inner {
    height: auto;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 24px;
  }

  .slide h1,
  .slide h2 { font-size: clamp(38px, 10vw, 52px); }

  .slide--title .slide__inner { grid-template-columns: 1fr; gap: 28px; }
  .slide--title .slide__inner > div:first-child { grid-column: 1; grid-row: 2; padding: 28px 0 0; border-top: 5px solid var(--accent); border-left: 0; }
  .title-number { grid-column: 1; grid-row: 1; font-size: 72px; }
  .title-index { grid-column: 1; grid-row: 3; }
  .title-robot { position: relative; right: auto; bottom: auto; grid-column: 1; grid-row: 3; width: 100%; height: 420px; }
  .title-robot img { transform: none; }
  .title-index { grid-row: 4; }

  .slide--question .slide__inner { grid-template-columns: 1fr; grid-template-rows: auto; gap: 36px; }
  .slide--question h2 { grid-column: 1; grid-row: auto; font-size: clamp(54px, 14vw, 76px); }
  .question-keywords { grid-column: 1; grid-row: auto; width: 100%; }

  .layout-diagram .slide__header,
  .layout-diagram .slide__visual,
  .key-line,
  .layout-split .slide__header,
  .layout-split .slide__visual,
  .layout-split .slide-bullets,
  .layout-compare .comparison-grid,
  .layout-compare .concept-table {
    grid-column: 1;
    grid-row: auto;
  }

  .layout-recap .slide__header,
  .summary-list {
    grid-column: 1;
    grid-row: auto;
  }

  .slide__visual { min-height: 360px; padding: 16px; }
  .deck-svg { height: auto; min-height: 320px; }
  .photo-stage { min-height: 520px; padding: 18px; flex-direction: column; }
  .photo-stage .photo-figure { width: 100%; height: 360px; flex: 0 0 360px; aspect-ratio: auto; }
  .photo-aside { padding: 12px 6px; }
  .photo-aside__facts { grid-template-columns: 1fr; }
  .photo-compare { min-height: 720px; flex-direction: column; }
  .photo-compare .photo-figure { width: 100%; height: 320px; flex: 0 0 320px; aspect-ratio: auto; }
  .photo-compare__divider { width: 86%; height: 2px; }
  .photo-compare__label { display: none; }
  .photo-sequence { min-height: 1080px; grid-template-columns: 1fr; grid-template-rows: repeat(3, 1fr); }
  .photo-sequence::before,
  .photo-sequence::after { display: none; }
  .photo-sequence .photo-figure { min-height: 320px; }
  .photo-timeline.layout-split .slide__visual,
  .photo-timeline.layout-split .slide-bullets { grid-column: 1; }
  .slide__build-tag { position: static; justify-self: start; }
  .key-line { font-size: 30px; }
  .comparison-grid { grid-template-columns: 1fr; gap: 20px; }
  .comparison-grid::before { display: none; }
  .comparison-card { padding: 28px; }
  .practice-slide .slide__inner { grid-template-rows: 74px auto; }
  .practice-shell,
  .layout-practice-b .practice-shell,
  .layout-practice-c .practice-shell { grid-template-columns: 1fr; grid-template-rows: auto; padding: 28px 24px; }
  .layout-practice-b .practice-label,
  .layout-practice-b .practice-task,
  .layout-practice-b .practice-help,
  .layout-practice-b .practice-steps,
  .layout-practice-c .practice-label,
  .layout-practice-c .practice-task,
  .layout-practice-c .practice-help,
  .layout-practice-c .practice-steps { grid-column: 1; grid-row: auto; }
  .practice-task,
  .practice-help { grid-template-columns: 1fr; gap: 8px; }
  .practice-steps { grid-template-columns: 1fr; }
  .summary-list { grid-template-columns: 1fr; }
  .summary-list li { min-height: 0; grid-template-columns: 54px 1fr; }
  .slide::after { bottom: 18px; left: 24px; font-size: 11px; }
  .site-shell { width: min(100% - 32px, 1500px); }
  .landing { padding-bottom: 48px; }
  .landing__hero { min-height: 0; padding: 54px 0 94px; }
  .landing__hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .landing h1 { font-size: clamp(42px, 11vw, 62px); }
  .landing__lead { font-size: 18px; }
  .landing__flow { display: grid; padding: 12px 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
  .landing__flow li { min-height: 68px; grid-template-columns: 34px 1fr; }
  .landing__flow li:nth-last-child(-n + 2) { border-bottom: 0; }
  .landing__body { margin-top: -76px; }
  .landing__section-head { display: block; margin-bottom: 18px; }
  .landing__section-head h2 { margin-top: 6px; }
  .deck-links { grid-template-columns: 1fr; }
  .deck-link { min-height: 270px; }
  .deck-link--orientation { min-height: 270px; grid-column: auto; grid-template-columns: 1fr; grid-template-rows: auto auto 1fr auto; }
  .deck-link--orientation .deck-link__top,
  .deck-link--orientation h2,
  .deck-link--orientation > p,
  .deck-link--orientation .deck-link__meta { grid-column: 1; grid-row: auto; }
  .deck-link--orientation .deck-link__verb { display: inline; }
  .shortcut-help dl { grid-template-columns: 1fr; gap: 4px; }
  .shortcut-help dd { margin-bottom: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  @page { size: 16in 9in; margin: 0; }
  .deck-page,
  .deck { height: auto; overflow: visible; }
  .slide { width: 16in; height: 9in; min-height: 0; break-after: page; page-break-after: always; }
  .deck-progress,
  .deck-wordmark,
  .deck-tools,
  .deck-counter,
  .shortcut-help,
  .skip-link { display: none !important; }
}

.slide__header h2 .h2-en {
  margin-left: 14px;
  color: var(--hy-gray, #3F3D42);
  font-size: 0.52em;
  font-weight: 600;
  letter-spacing: 0.04em;
  opacity: 0.72;
  vertical-align: 0.18em;
}

/* v10 · lecture 03 readability and media-first review pass */
.lecture-3 .comparison-card {
  padding: 42px 48px;
  align-content: start;
  gap: 28px;
}

.lecture-3 .comparison-card h3 {
  min-height: 54px;
}

.lecture-3 .comparison-card ul {
  align-content: start;
}

.lecture-3 .deck-svg .svg-title { font-size: 31px; }
.lecture-3 .deck-svg .svg-label { font-size: 25px; }
.lecture-3 .deck-svg .svg-small { font-size: 22px; }
.lecture-3 .deck-svg .chip text { font-size: 24px; }

#slide-14 .photo-aside strong {
  font-size: clamp(38px, 2.5vw, 50px);
}

#slide-18 .slide__visual,
#slide-23 .slide__visual,
#slide-24 .slide__visual,
#slide-29 .slide__visual,
#slide-41 .slide__visual {
  padding: 0;
}

#slide-30 .slide__visual,
#slide-46 .slide__visual {
  display: grid;
  padding: 22px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 28px;
}

#slide-30 .slide__visual > figure,
#slide-46 .slide__visual > figure {
  display: grid;
  min-width: 0;
  min-height: 0;
  margin: 0;
  grid-template-rows: minmax(0, 1fr) auto;
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
}

#slide-30 .slide__visual > figure > svg,
#slide-46 .slide__visual > figure > svg {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  background: #fff;
}

#slide-30 figcaption,
#slide-46 figcaption {
  display: grid;
  padding: 18px 24px 20px;
  border-top: 2px solid var(--accent);
  gap: 5px;
}

#slide-30 figcaption strong,
#slide-46 figcaption strong {
  color: var(--hy-blue);
  font-size: 27px;
}

#slide-30 figcaption span,
#slide-46 figcaption span {
  color: var(--hy-gray);
  font-size: 21px;
}

#slide-31 .slide__visual {
  padding: 12px 16px;
  overflow: hidden;
  background: #11131a;
}

#slide-31 video {
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 50%;
  display: block;
  width: auto;
  height: calc(100% - 24px);
  max-width: calc(100% - 32px);
  aspect-ratio: 1200 / 1816;
  border-radius: 12px;
  object-fit: contain;
  transform: translateX(-50%);
  background: #11131a;
}

#slide-31 .slide__inner {
  grid-template-columns: minmax(0, 1.45fr) minmax(340px, 0.75fr);
  grid-template-rows: 140px minmax(0, 1fr);
  gap: 16px 32px;
}

#slide-31 .slide__header {
  grid-column: 1 / -1;
  grid-row: 1;
}

#slide-31 .slide__visual {
  grid-column: 1;
  grid-row: 2;
}

#slide-38 .concept-table,
#slide-47 .concept-table {
  border-spacing: 0 12px;
}

#slide-38 .concept-table th,
#slide-38 .concept-table td,
#slide-47 .concept-table th,
#slide-47 .concept-table td {
  padding-block: 22px;
}

#slide-38 .concept-table th { width: 29%; }
#slide-47 .concept-table th { width: 23%; }

#slide-14 .key-line,
#slide-21 .key-line,
#slide-31 .key-line {
  width: 100%;
  max-width: 1600px;
  font-size: clamp(27px, 1.65vw, 32px);
  white-space: nowrap;
}

#slide-31 .key-line {
  grid-column: 2;
  grid-row: 2;
  align-self: center;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 36px;
  border-radius: 16px;
  font-size: clamp(31px, 2vw, 39px);
  line-height: 1.4;
  white-space: normal;
  background: var(--bg-alt);
}

#slide-31 .key-line::before {
  display: block;
  width: 58px;
  margin: 0 0 24px;
}

#slide-30 .slide__inner {
  grid-template-rows: 200px minmax(0, 1fr) 50px;
  gap: 20px;
}

/* OT 표지: 리드 문장이 강의 덱보다 길어 로봇과 겹치므로 이 덱만 살짝 축소·이동 */
.lecture-ot .title-robot { right: 400px; bottom: -130px; width: clamp(240px, 17vw, 330px); }

/* OT 11p: 준비 항목이 2개라 3열 그리드에 빈 칸이 생기므로 이 덱만 2열 */
.lecture-ot .summary-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* 실습 슬라이드 — 명령어가 들어간 여러 줄 단계를 받도록 조정 */
.practice-steps code,
.practice-task code,
.practice-help code {
  display: inline-block;
  margin-top: 4px;
  padding: 3px 10px;
  border-radius: 6px;
  background: var(--accent-tint);
  color: var(--accent-ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.86em;
  line-height: 1.35;
}

/* 실습 — 목표·단계·확인을 폭 전체에 쌓아 좌우 여백을 대칭으로 맞춘다.
   머리줄(실습 뱃지 + 목표) / 단계 목록(남는 높이를 균등 분할) / 마무리줄(확인) */
.layout-practice-stack .practice-shell {
  grid-template-columns: max-content minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr) auto;
  column-gap: 22px;
  row-gap: 20px;
}

.layout-practice-stack .practice-label { grid-column: 1; grid-row: 1; align-self: center; }

.layout-practice-stack .practice-task {
  grid-column: 2;
  grid-row: 1;
  grid-template-columns: 1fr;
  align-content: center;
}

.layout-practice-stack .practice-steps {
  grid-column: 1 / -1;
  grid-row: 2;
  grid-template-columns: 1fr;
  grid-auto-rows: minmax(0, 1fr);
  gap: 12px;
}

.layout-practice-stack .practice-steps li {
  min-height: 0;
  padding: 10px 24px;
  border-radius: 16px;
  align-content: center;
  align-items: center;
  font-size: 20px;
  line-height: 1.45;
}

.layout-practice-stack .practice-steps li::before {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 20px;
}

.layout-practice-stack .practice-help {
  grid-column: 1 / -1;
  grid-row: 3;
  grid-template-columns: 1fr;
  align-content: center;
  padding-top: 14px;
  border-top: 2px solid var(--line);
}

.practice-task p, .practice-help p { margin: 0; }
.practice-task { color: var(--hy-gray); font-size: 23px; font-weight: 600; line-height: 1.5; }
.practice-help { font-size: 21px; line-height: 1.45; }

/* 강의 ③ 구현 사례(54~67) — 실측 표와 결과 이미지 */
.metric-wrap {
  display: grid;
  min-height: 0;
  grid-row: 2;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 26px;
}

.metric-table {
  width: 100%;
  border-spacing: 0 12px;
  border-collapse: separate;
  align-self: center;
  font-size: clamp(20px, 1.32vw, 25px);
}

.metric-table thead th {
  padding: 0 30px 12px;
  border-bottom: 2px solid var(--accent);
  color: var(--accent-ink);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: left;
}

.metric-table tbody th {
  padding: 20px 30px;
  border-radius: 16px 0 0 16px;
  background: var(--hy-blue);
  color: #fff;
  font-weight: 700;
  text-align: left;
}

.metric-table tbody td {
  padding: 20px 30px;
  background: var(--bg-tint);
  color: var(--hy-gray);
}

.metric-table tbody td:last-child { border-radius: 0 16px 16px 0; }

.metric-table .num {
  color: var(--hy-blue);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.metric-table .off {
  background: var(--accent-tint);
  color: var(--accent-ink);
  font-weight: 700;
}

.metric-note {
  margin: 0;
  padding-left: 24px;
  border-left: 3px solid var(--accent);
  color: var(--hy-gray);
  font-size: clamp(20px, 1.28vw, 24px);
  line-height: 1.45;
}

.result-figure {
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 16px;
}

.result-figure img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}

.result-figure figcaption {
  display: grid;
  padding-top: 14px;
  border-top: 2px solid var(--accent);
  gap: 6px;
}

.result-figure figcaption strong { color: var(--hy-blue); font-size: 26px; }
.result-figure figcaption span { color: var(--hy-gray); font-size: 21px; line-height: 1.45; }

@media (max-width: 900px) {
  .metric-table { font-size: 18px; }
  .metric-table thead th { padding: 0 16px 10px; font-size: 17px; }
  .metric-table tbody th,
  .metric-table tbody td { padding: 14px 16px; }
  .result-figure figcaption strong { font-size: 21px; }
  .result-figure figcaption span { font-size: 17px; }
}
