body{background:#eef2f8;overflow-x:hidden}
.deck-topbar{position:sticky;top:0;z-index:30;background:rgba(238,242,248,.9);backdrop-filter:blur(16px);border-bottom:1px solid rgba(219,228,240,.9)}
.deck-nav{height:62px;display:flex;align-items:center;justify-content:space-between;gap:16px}
.deck-nav-left,.deck-nav-right{display:flex;align-items:center;gap:10px;min-width:0}
.back-link,.tool-btn{border:1px solid var(--line);background:#fff;border-radius:11px;min-height:40px;padding:0 13px;display:inline-flex;align-items:center;justify-content:center;gap:7px;font:inherit;font-size:13px;font-weight:780;color:#334155;cursor:pointer}
.back-link:hover,.tool-btn:hover{border-color:#b8c8df;color:var(--blue)}
.deck-label{font-weight:850;letter-spacing:-.02em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.deck-label small{display:block;color:var(--muted);font-size:10px;letter-spacing:.08em;text-transform:uppercase;margin-top:-2px}
.deck-wrap{width:min(calc(100% - 32px),1180px);margin:28px auto 54px;outline:none}
.stage{position:relative;background:#fff;border:1px solid #d8e1ee;border-radius:24px;box-shadow:0 30px 80px rgba(15,23,42,.12);aspect-ratio:16/9;overflow:hidden}
.slide{position:absolute;inset:0;padding:34px 46px 28px;display:none;flex-direction:column;background:#fff;overflow:visible}
.slide.active{display:flex}
.slide-no{position:absolute;right:26px;top:20px;color:#94a3b8;font-weight:850;font-size:14px;letter-spacing:.1em}
.slide-kicker{font-size:14px;font-weight:900;letter-spacing:.08em;color:var(--blue);margin-bottom:7px}
.slide h1,.slide h2{margin:0;max-width:100%;font-size:clamp(34px,3.4vw,44px);letter-spacing:-.04em;line-height:1.12}
.slide .lead{font-size:clamp(17px,1.65vw,22px);color:#526178;max-width:1000px;margin:9px 0 0;line-height:1.42}
.slide .lead strong{color:#244a82}
.accent{color:var(--blue)}
.slide-content{flex:1;min-height:0;display:flex;flex-direction:column;justify-content:flex-start;gap:9px;margin-top:11px}
.takeaway{margin-top:auto;border-radius:15px;background:#0c1f46;color:#fff;padding:9px 15px;text-align:center;font-size:clamp(18px,1.65vw,22px);font-weight:920;letter-spacing:-.025em;line-height:1.25}
.takeaway span{color:#9fc1ff}
.eyebrow,.branch-label,.task-tag{font-size:14px;font-weight:900;line-height:1.25}

/* 01 · same data, different questions */
.same-data-layout{display:grid;grid-template-columns:.8fr 1.4fr;gap:14px;align-items:stretch}
.data-card{border:1px solid #d4e1f1;border-radius:18px;background:#f7faff;padding:17px 18px;display:flex;flex-direction:column;justify-content:center;min-width:0}
.data-card .eyebrow{color:#6781a5}
.data-card>strong{font-size:22px;line-height:1.25;color:#244a82;margin-top:8px}
.data-card>p{font-size:16px;line-height:1.45;color:#526178;margin:11px 0 0}
.feature-chips{display:flex;gap:7px;flex-wrap:wrap;margin-top:13px}
.feature-chips span{border:1px solid #cbdaf0;background:#fff;border-radius:999px;padding:6px 10px;font-size:16px;font-weight:820;color:#40516a}
.question-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px;min-width:0}
.question-grid::before{grid-column:1/-1;margin-bottom:0!important}
.question-card{border:1px solid #d7e1ed;background:#fff;border-radius:15px;padding:12px 14px;text-align:left;font:inherit;cursor:pointer;min-width:0;display:flex;flex-direction:column;justify-content:space-between;gap:9px}
.question-card:hover{border-color:#9bb8df;background:#f8fbff}
.question-card>span{font-size:16px;line-height:1.4;font-weight:820;color:#334155}
.task-answer{font-size:16px;line-height:1.25;color:#6e82a0}
.question-card.revealed{border-color:#9bb8df;background:#f3f7ff}
.question-card.revealed .task-answer{color:#245493}

/* 02 · real-world goal -> computable question */
.translation-flow{display:grid;grid-template-columns:1fr 118px 1.25fr;gap:12px;align-items:stretch}
.goal-card,.task-card{border:1px solid var(--line);border-radius:18px;padding:17px 18px;background:#f8fafc;display:flex;flex-direction:column;justify-content:center}
.task-card{background:#f2f7ff;border-color:#c5d7ef}
.goal-card .eyebrow,.task-card .eyebrow{color:#6b82a2}
.goal-card strong,.task-card strong{font-size:21px;line-height:1.35;color:#244a82;margin-top:8px}
.goal-card p,.task-card p{font-size:16px;line-height:1.42;color:#526178;margin:8px 0 0}
.translate-arrow{display:flex;flex-direction:column;align-items:center;justify-content:center;color:#2f72cf;text-align:center}
.translate-arrow span{font-size:42px;line-height:1;font-weight:950}
.translate-arrow b{font-size:16px;line-height:1.25;margin-top:5px}
.definition-strip{display:grid;grid-template-columns:270px 1fr;gap:14px;align-items:center;border:1px solid #cbdcf3;background:#f6f9ff;border-radius:14px;padding:11px 14px}
.definition-strip strong{font-size:17px;line-height:1.35;color:#244a82}
.definition-strip span{font-size:16px;line-height:1.42;color:#4f6077}


/* 02 · classification vs regression */
.target-fork{
  display:grid;
  grid-template-columns:62px 1fr auto;
  gap:12px;
  align-items:center;
  border:1px solid #d6e2f1;
  border-radius:15px;
  background:#f7faff;
  padding:10px 14px;
}
.target-symbol{
  width:54px;
  height:54px;
  border-radius:15px;
  display:grid;
  place-items:center;
  background:#2f72cf;
  color:#fff;
  font-size:32px;
  font-weight:950;
}
.target-fork small{
  display:block;
  font-size:14px;
  line-height:1.25;
  color:#6e83a0;
  font-weight:900;
}
.target-fork>div>strong{
  display:block;
  margin-top:3px;
  font-size:18px;
  line-height:1.3;
  color:#244a82;
}
.fork-hint{
  display:grid;
  grid-template-columns:auto auto auto auto;
  gap:7px;
  align-items:center;
  color:#607897;
}
.fork-hint span{
  font-size:14px;
  font-weight:900;
  white-space:nowrap;
}
.fork-hint b{
  font-size:22px;
  color:#7d95b6;
}
.prediction-compare{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}
.prediction-card{
  min-width:0;
  border:1px solid #d8e2ee;
  border-radius:17px;
  background:#f8fafc;
  padding:13px 14px;
}
.regression-card{
  background:#f2faf7;
  border-color:#d0e7df;
}
.prediction-head{
  padding-bottom:9px;
  border-bottom:1px solid #dfe7f1;
}
.regression-card .prediction-head{
  border-color:#d8e9e1;
}
.prediction-head .branch-label{
  display:inline-flex;
  border-radius:999px;
  border:1px solid #d5e0ed;
  background:#fff;
  padding:4px 8px;
  color:#607897;
}
.prediction-head>strong{
  display:block;
  margin-top:6px;
  font-size:22px;
  line-height:1.25;
  color:#244a82;
}
.regression-card .prediction-head>strong{
  color:#176a50;
}
.prediction-head p{
  margin:4px 0 0;
  font-size:16px;
  line-height:1.3;
  color:#526178;
}
.prediction-head p b{
  color:#334155;
}
.prediction-details{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:7px;
  margin-top:9px;
}
.prediction-details>div{
  min-width:0;
  border-radius:10px;
  background:#fff;
  border:1px solid #e0e7f0;
  padding:7px 8px;
}
.prediction-details small{
  display:block;
  font-size:14px;
  line-height:1.2;
  color:#7890b5;
  font-weight:900;
}
.prediction-details strong{
  display:block;
  margin-top:3px;
  font-size:16px;
  line-height:1.25;
  color:#334e73;
}


/* 03 · structure discovery */
.structure-compare{display:grid;grid-template-columns:1fr 1fr;gap:13px}
.structure-card{border:1px solid #d7e2ef;border-radius:18px;background:#f8fafc;padding:15px;display:grid;grid-template-columns:118px 1fr;gap:15px;align-items:center;min-width:0}
.structure-card:last-child{background:#f5f9ff;border-color:#ceddf1}
.structure-card .branch-label{color:#607897}
.structure-card strong{display:block;font-size:21px;line-height:1.3;color:#244a82;margin-top:8px}
.structure-card p{font-size:16px;line-height:1.4;color:#526178;margin:7px 0 0}
.structure-visual{height:112px;border-radius:15px;background:#fff;border:1px solid #dbe4ef;position:relative;overflow:hidden}
.cluster-visual span{position:absolute;width:17px;height:17px;border-radius:50%;background:#5a86c7}
.cluster-visual span:nth-child(1){left:19px;top:20px}.cluster-visual span:nth-child(2){left:43px;top:31px}.cluster-visual span:nth-child(3){left:27px;top:52px}
.cluster-visual span:nth-child(4){right:22px;bottom:22px;background:#48a486}.cluster-visual span:nth-child(5){right:48px;bottom:34px;background:#48a486}.cluster-visual span:nth-child(6){right:31px;bottom:56px;background:#48a486}
.basket-visual{display:flex;align-content:center;justify-content:center;flex-wrap:wrap;gap:7px;padding:15px}
.basket-visual span{border-radius:999px;padding:6px 9px;background:#eef4ff;color:#245493;font-size:14px;font-weight:900}
.reduction-visual::before{content:"";position:absolute;left:18px;right:14px;bottom:22px;height:2px;background:#a9b8ca;transform:rotate(-28deg);transform-origin:center}
.reduction-visual i{position:absolute;width:13px;height:13px;border-radius:50%;background:#5a86c7}
.reduction-visual i:nth-child(1){left:18px;bottom:29px}.reduction-visual i:nth-child(2){left:37px;bottom:42px}.reduction-visual i:nth-child(3){left:57px;bottom:50px}.reduction-visual i:nth-child(4){left:77px;bottom:68px}.reduction-visual i:nth-child(5){left:91px;bottom:78px}
.reduction-visual b{position:absolute;right:8px;top:10px;font-size:14px;color:#607897}
.reduction-visual b::after{content:"→ 1D";font-weight:900}
.logic-strip{display:flex;align-items:center;justify-content:center;gap:13px;border:1px solid #d8e3ef;background:#fff;border-radius:14px;padding:10px 13px;font-size:16px;color:#526178}
.logic-strip span{font-weight:820}.logic-strip b{font-size:21px;color:#7189aa}.logic-strip strong{font-size:17px;color:#244a82}

/* 04 · multiple formulations */
.option-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.option-grid section{border:1px solid #d9e3ee;border-radius:16px;background:#f8fafc;padding:13px 14px;min-width:0}
.task-tag{display:inline-flex;border-radius:999px;background:#eef4ff;color:#245493;padding:5px 9px}
.option-grid strong{display:block;font-size:17px;line-height:1.35;color:#244a82;margin-top:8px}
.option-grid p{font-size:16px;line-height:1.35;color:#526178;margin:6px 0 0}
.final-check{border:1px solid #d6e1ef;border-radius:15px;background:#fff;padding:10px 12px}
.final-check::before{margin-bottom:7px!important}
.final-check>p{font-size:16px;line-height:1.35;font-weight:880;color:#334155;margin:0 0 8px}
.final-actions{display:grid;grid-template-columns:repeat(4,1fr);gap:7px}
.final-actions button{border:1px solid #cbd8e8;background:#fff;border-radius:10px;padding:8px 7px;font:inherit;font-size:16px;font-weight:850;color:#40516a;cursor:pointer}
.final-actions button.correct{background:#edf9f4;border-color:#74bea0;color:#176a50}
.final-actions button.wrong{background:#fff5f3;border-color:#dca298;color:#963c31}
.final-feedback{margin-top:7px;min-height:38px;border-radius:9px;background:#f8fafc;padding:8px 10px;font-size:16px;line-height:1.35;color:#526178;font-weight:760}
.final-feedback.good{background:#edf9f4;color:#176a50}.final-feedback.bad{background:#fff5f3;color:#963c31}

/* shell */
.deck-controls{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:14px;margin-top:16px}
.deck-controls .left{justify-self:start}.deck-controls .center{display:flex;align-items:center;gap:7px}.deck-controls .right{justify-self:end;display:flex;align-items:center;gap:10px}
.nav-btn{width:46px;height:46px;border-radius:14px;border:1px solid var(--line);background:#fff;cursor:pointer;font:inherit;font-size:21px;color:#334155}
.nav-btn:disabled{opacity:.35;cursor:not-allowed}
.dot-btn{width:10px;height:10px;border:0;border-radius:50%;background:#c8d3e2;cursor:pointer;padding:0}
.dot-btn.active{background:var(--blue);transform:scale(1.22)}
.slide-status{font-size:12px;color:#64748b;font-weight:800;min-width:44px;text-align:center}
.hint{font-size:11px;color:#94a3b8;margin-top:8px;text-align:center}
.sources{margin-top:18px;border:1px solid var(--line);background:#fff;border-radius:14px;padding:0 16px;color:#526178}
.sources summary{cursor:pointer;padding:12px 0;font-size:12px;font-weight:850;color:#40516a}
.sources ul{margin:0 0 14px;padding-left:20px;font-size:12px}.sources li{margin:4px 0}
.fs-exit{display:none}

@media(min-width:901px) and (max-width:1023px){
  .slide{padding:24px 38px 18px}
  .slide-kicker{margin-bottom:5px}
  .slide .lead{margin-top:6px;line-height:1.38}
  .slide-content{margin-top:7px;gap:6px}
  .takeaway{padding:7px 12px}
  .target-fork{padding:7px 10px;grid-template-columns:52px 1fr auto;gap:8px}
  .target-symbol{width:46px;height:46px;font-size:28px}
  .target-fork>div>strong{font-size:16px;margin-top:2px}
  .fork-hint{gap:5px}
  .prediction-compare{gap:8px}
  .prediction-card{padding:9px 10px}
  .prediction-head{padding-bottom:6px}
  .prediction-head>strong{font-size:19px;margin-top:4px}
  .prediction-head p{margin-top:3px}
  .prediction-details{gap:5px;margin-top:6px}
  .prediction-details>div{padding:5px 6px}
  .option-grid{gap:7px}
  .option-grid section{padding:10px 11px}
  .option-grid strong{margin-top:6px}
  .option-grid p{margin-top:4px}
  .final-check{padding:7px 9px}
  .final-check::before{margin-bottom:4px!important}
  .final-check>p{margin-bottom:5px}
  .final-feedback{margin-top:5px;min-height:34px;padding:6px 8px}
}

@media(max-width:900px){
  .stage{aspect-ratio:auto;min-height:1120px}
  .slide{padding:36px 28px 30px;overflow:visible}
  .same-data-layout,.translation-flow,.prediction-compare,.structure-compare,.option-grid{grid-template-columns:1fr}
  .question-grid{grid-template-columns:1fr 1fr}
  .translate-arrow{min-height:54px}.translate-arrow span{transform:rotate(90deg)}
  .definition-strip{grid-template-columns:1fr}
  .structure-card{grid-template-columns:110px 1fr}
  .final-actions{grid-template-columns:1fr 1fr}
  .slide-content{justify-content:flex-start}
}
@media(max-width:620px){
  .deck-wrap{width:min(calc(100% - 18px),1180px);margin-top:14px}
  .stage{min-height:1480px;border-radius:17px}
  .slide{padding:30px 18px 24px}
  .slide-no{right:16px;top:14px}
  .question-grid,.structure-card,.final-actions{grid-template-columns:1fr}
  .structure-visual{height:100px}
  .logic-strip{align-items:flex-start;flex-wrap:wrap}
  .deck-controls{grid-template-columns:auto 1fr auto}.deck-controls .center{justify-content:center}
  .slide-status{display:none}.deck-label{font-size:13px}.deck-label small{display:none}
}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

/* 01 · concepts 01–07 converge into problem formulation */
.formulation-overview{
  display:grid;
  grid-template-columns:1fr 130px 1.2fr;
  gap:12px;
  align-items:stretch;
}
.problem-card,.computable-card{
  border:1px solid #d5e1f1;
  border-radius:17px;
  padding:14px 15px;
  background:#f8fafc;
  display:flex;
  flex-direction:column;
  justify-content:center;
  min-width:0;
}
.computable-card{background:#f2f7ff;border-color:#c6d8ef}
.problem-card .eyebrow,.computable-card .eyebrow{color:#6b82a2}
.problem-card strong,.computable-card strong{
  display:block;
  font-size:19px;
  line-height:1.3;
  color:#244a82;
  margin-top:6px;
}
.problem-card p,.computable-card p{
  font-size:16px;
  line-height:1.35;
  color:#526178;
  margin:6px 0 0;
}
.formulation-core{
  display:grid;
  grid-template-rows:auto auto auto auto;
  place-items:center;
  align-content:center;
  color:#2f72cf;
  text-align:center;
  gap:2px;
}
.formulation-core>span{font-size:30px;font-weight:950;line-height:.9}
.formulation-core b{font-size:17px;line-height:1.25;color:#244a82}
.formulation-core small{font-size:14px;line-height:1.2;color:#6e83a0;font-weight:800}
.foundation-strip{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:8px;
}
.foundation-strip>div{
  border:1px solid #d9e3ef;
  border-radius:13px;
  background:#fff;
  padding:8px 10px;
  min-width:0;
}
.foundation-strip small{
  display:block;
  font-size:14px;
  line-height:1.25;
  color:#7890b5;
  font-weight:900;
}
.foundation-strip strong{
  display:block;
  margin-top:3px;
  font-size:16px;
  line-height:1.3;
  color:#334e73;
}
.formulation-definition{
  grid-template-columns:285px 1fr;
  padding:9px 13px;
}
@media(min-width:901px) and (max-width:1023px){
  .formulation-overview{grid-template-columns:1fr 100px 1.2fr;gap:8px}
  .problem-card,.computable-card{padding:9px 10px}
  .problem-card strong,.computable-card strong{font-size:17px;margin-top:4px}
  .problem-card p,.computable-card p{margin-top:4px;line-height:1.28}
  .formulation-core>span{font-size:24px}
  .formulation-core b{font-size:16px}
  .foundation-strip{gap:6px}
  .foundation-strip>div{padding:6px 8px}
  .foundation-strip strong{margin-top:2px}
  .formulation-definition{grid-template-columns:250px 1fr;padding:7px 10px}
}
@media(max-width:900px){
  .formulation-overview{grid-template-columns:1fr}
  .formulation-core{grid-template-columns:auto auto auto auto;grid-template-rows:1fr;justify-content:center;gap:7px}
  .formulation-core>span{transform:none}
  .foundation-strip{grid-template-columns:1fr 1fr}
  .formulation-definition{grid-template-columns:1fr}
}
@media(max-width:620px){
  .foundation-strip{grid-template-columns:1fr}
}

@media(max-width:900px){
  .target-fork{grid-template-columns:54px 1fr}
  .fork-hint{grid-column:1/-1;justify-content:center}
  .prediction-details{grid-template-columns:1fr}
}
