/* Mobile art direction. Desktop geometry and shared-object motion stay intact. */
@media (max-width:700px) {
  main{padding-inline:12px}
  .site-header{height:68px;padding-inline:20px}
  .brand{font-size:25px}
  .stage{height:max(760px,calc(100svh - 160px));min-height:760px;border-radius:20px;container-type:size}
  .stage-caption{top:16px;left:18px;right:18px;gap:8px;font-size:9px;line-height:1.4;align-items:center}
  .stage-caption>span{padding:0;background:transparent;max-width:54%}
  .stage-caption button{font-size:10px;min-height:32px;padding:0;white-space:nowrap}
  .objects{position:absolute;inset:66px 0 112px;width:100%;height:auto}
  .stage .headline-object{--x:50%!important;--y:9%!important;--w:88%!important;text-align:center!important}
  .stage .headline-object h1{font-size:28px!important;line-height:1.16!important;letter-spacing:-.045em;text-wrap:balance}
  .stage .product-object{--x:50%!important;--y:43%!important;--w:92%!important;--h:48%!important}
  .stage .device-caption{display:none}
  .stage[data-scene=problem] .question-object{--x:50%!important;--y:79%!important;--w:88%!important;--h:auto!important;border-radius:16px;box-shadow:0 12px 30px #000e3508}
  .stage .question-tile{padding:18px 20px 36px!important}
  .stage .question-text{font-size:23px!important;line-height:1.35!important;letter-spacing:-.035em}
  .stage .question-context{font-size:10px;margin-bottom:10px}
  .stage[data-scene=answer] .question-object{--x:50%!important;--y:13%!important;--w:90%!important;--h:22%!important}
  .stage[data-scene=answer] .question-tile{padding:18px 20px 12px!important}
  .stage[data-scene=answer] .question-text{font-size:22px!important}
  .stage[data-scene=answer] .answer-object{--x:50%!important;--y:49%!important;--w:90%!important;--h:50%!important}
  .stage .answer-content{padding:18px 20px!important}
  .stage .answer-status{font-size:11px}
  .stage .answer-blocks{margin-top:12px}
  .stage .answer-part{font-size:19px!important;line-height:1.55!important}
  .stage .answer-part+.answer-part{margin-top:12px}
  .stage .prepared-note{font-size:10px;margin-top:12px}
  .stage[data-scene=answer] .evidence-object{--x:50%!important;--y:87%!important;--w:90%!important;--h:76px!important}
  .stage .source-chip{padding:12px;gap:8px}
  .stage .source-chip strong{font-size:12px}
  .stage[data-scene=document] .headline-object{--y:5%!important}
  .stage[data-scene=document] .headline-object h1{font-size:25px!important}
  .stage[data-scene=document][data-grounded=true] .evidence-object{--x:50%!important;--y:52%!important;--w:89%!important;--h:75%!important}
  .stage[data-scene=document]:is([data-manual=true],[data-paused=true])[data-grounded=true] .evidence-object{--y:49%!important;--h:68%!important}
  .stage[data-scene=document] .paper{padding:18px 20px!important}
  .stage[data-scene=document] .paper h3{font-size:20px!important;line-height:1.25}
  .stage[data-scene=document] .paper-head{display:flex!important;font-size:6px}
  .stage[data-scene=document] .paper-rule{display:block!important;margin:10px 0}
  .stage[data-scene=document] .technical-drawing{display:none!important}
  .stage[data-scene=document] .paper-chapter{font-size:9px}
  .stage[data-scene=document] .paper-passage{margin-top:14px;padding:10px}
  .stage[data-scene=document] .paper-passage mark{font-size:14px!important;line-height:1.7!important}
  .stage[data-scene=document] .paper-footer{bottom:14px;left:20px;right:20px;font-size:7px}
  .stage[data-scene=document] .topic-object{visibility:hidden}
  .stage[data-scene=document] .document-open{top:calc(100% + 10px);left:50%;min-height:44px;font-size:12px}
  .stage[data-grounded=false][data-scene=document] .evidence-object{--x:50%!important;--y:53%!important;--w:88%!important;--h:64%!important}
  .stage[data-scene=course] .headline-object{--y:9%!important}
  .stage[data-scene=course] .topic-object{--x:50%!important;--y:28%!important;--w:88%!important;--h:auto!important;padding:12px 16px;font-size:15px;line-height:1.4;border-radius:12px;text-align:left;justify-content:flex-start}
  .stage[data-scene=course] .course-object{--x:50%!important;--y:67%!important;--w:90%!important;--h:59%!important;grid-template-columns:minmax(0,1fr);grid-template-rows:68px minmax(0,1fr);border-radius:17px;box-shadow:0 16px 35px #000e3508}
  .stage .course-cover{min-height:0;position:relative}
  .stage .course-cover>span{font-size:25px;top:14px;left:20px}
  .stage .course-cover>span>span{font-size:7px;margin-top:5px}
  .stage .course-cover .technical-drawing{width:60%;height:150px;position:absolute;right:0;top:-37px;margin:0}
  .stage .cover-rule{display:none}
  .stage .course-copy{min-height:0;padding:18px 20px!important;justify-content:center;gap:0}
  .stage .course-type{display:none!important}
  .stage .course-copy h2{font-size:22px!important;line-height:1.25!important;text-wrap:balance}
  .stage .course-copy>p{font-size:14px!important;line-height:1.55!important;margin-top:12px!important}
  .stage .pilot-note{font-size:10px!important;line-height:1.5;margin-top:14px!important}
  .stage .course-copy>small{display:none}
  .stage[data-grounded=false][data-scene=course] .course-object{--h:51%!important}
  .stage[data-scene=academy] .headline-object{--y:8%!important}
  .stage[data-scene=academy] .headline-object h1{font-size:26px!important}
  .stage .academy-object{--x:50%;--y:50%;--w:100%;--h:100%}
  .stage .academy-switch,.stage[data-manual=true] .academy-switch{display:flex;top:21%!important;bottom:auto!important;left:6%!important;right:6%!important;gap:0;justify-content:space-between;border-bottom:1px solid #cbdcde}
  .stage .academy-switch button{font-size:10px;min-height:44px;padding:8px 4px;white-space:nowrap;border-bottom-width:2px}
  .stage .academy-switch button[aria-pressed=true]{color:var(--teal);font-weight:600}
  .stage[data-scene=academy] .question-object{--x:50%!important;--y:43%!important;--w:88%!important;--h:auto!important;visibility:visible;border-radius:14px}
  .stage[data-scene=academy] .question-tile{padding:17px 18px!important}
  .stage[data-scene=academy] .question-text{font-size:20px!important;line-height:1.45!important}
  .stage .cluster-peers{display:none!important}
  .stage .cluster-result,.stage[data-academy-phase] .cluster-result{left:6%!important;top:59%!important;width:88%!important}
  .stage .academy-view-label{font-size:18px!important;line-height:1.35;margin-bottom:14px!important;letter-spacing:-.025em;color:var(--text)}
  .stage .cluster-result-object{padding-top:14px!important;border-top:1px solid #89bdb7}
  .stage .cluster-result-object strong{font-size:23px!important;line-height:1.3!important;letter-spacing:-.035em}
  .stage .cluster-result-object p{font-size:14px!important;line-height:1.5!important;margin-top:10px!important}
  .stage .result-small{display:none!important}
  .stage .result-symbol{display:none}
  .stage .example-link,.stage[data-manual=true] .example-link{visibility:visible;min-height:44px;font-size:11px!important;margin-top:10px;padding:8px 0}
  .stage[data-academy-phase="1"] .cluster-result{top:43%!important}
  .stage[data-scene=finish] .finish-object{--x:50%!important;--y:49%!important;--w:88%!important;display:block;text-align:center}
  .stage .story-recap{font-size:10px;gap:8px 12px;margin:0 auto 28px;max-width:270px}
  .stage .finish-object h2{font-size:31px!important;line-height:1.18}
  .stage .finish-object h2>span{font-size:23px;margin-top:12px}
  .stage .primary-cta{font-size:13px!important;min-height:52px;margin-top:26px!important;border-radius:10px;padding:14px;gap:12px}
  .stage .conversation-note{font-size:11px;margin-top:12px}
  .stage .finish-options{margin-top:20px!important;gap:4px}
  .stage .finish-options button{min-height:44px;font-size:11px}
  .story-controls{left:18px;right:18px;bottom:12px!important;height:44px;align-items:center;gap:8px}
  .story-controls:before{content:"";position:absolute;left:0;right:0;top:-44px;border-top:1px solid #000e350b;pointer-events:none}
  .scene-progress{bottom:43px!important;gap:0}
  .scene-progress button{width:42px!important;height:36px!important}
  .segment{width:25px;height:3px;border-radius:4px}
  .quiet-control{font-size:12px;min-height:44px;padding:8px 2px}
  .previous-control{width:40px;min-height:44px;background:transparent}
  .next-controls{gap:4px}
  .page-note{font-size:10px;line-height:1.6;margin:12px 6px 0}
  footer{margin-top:14px;padding:0 20px 18px;font-size:9px;flex-wrap:wrap;row-gap:8px}
  .dialog-tabs{gap:8px;justify-content:space-between}
  .dialog-tabs button{font-size:11px;white-space:nowrap}
  .detail-bars>div{grid-template-columns:minmax(0,1fr) 50px 24px;gap:8px}
}
@media(max-width:370px){
  .stage{height:max(800px,calc(100svh - 160px));min-height:800px}
  .stage .headline-object h1{font-size:26px!important}
  .stage[data-scene=academy] .headline-object h1{font-size:24px!important}
  .stage .course-copy h2{font-size:21px!important}
  .stage .cluster-result-object strong{font-size:21px!important}
  .stage-caption{left:14px;right:14px}
  .stage .academy-switch button{font-size:9px}
}
