@font-face{font-family:Caveat;src:url('./assets/caveat-bold.ttf') format('truetype');font-weight:700;font-display:swap}
@font-face{font-family:'Patrick Hand';src:url('./assets/patrick-hand.ttf') format('truetype');font-weight:400;font-display:swap}
:root{--paper:#fcf8ef;--ink:#283440;--muted:#7e807d;--line:#d6cfc1;--yellow:#ffdb55;--purple:#e6d9f2;--blue:#5590c7;--pink:#e7a7bd;--body:'Patrick Hand','Comic Sans MS',cursive;--heading:Caveat,'Comic Sans MS',cursive}
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:24px}body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--body);font-size:20px;line-height:1.35;overflow-x:hidden}body::before{content:'';position:fixed;inset:0;pointer-events:none;opacity:.22;z-index:10;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath filter='url(%23n)' opacity='.24' d='M0 0h180v180H0z'/%3E%3C/svg%3E")}button,a,input{-webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit;cursor:pointer}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid var(--blue);outline-offset:5px}button{touch-action:manipulation}button svg,footer svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}a{color:inherit}button:disabled{cursor:default}.icon-library{position:absolute;width:0;height:0;overflow:hidden}mark{position:relative;z-index:0;color:inherit;background:none;white-space:nowrap}mark::before{content:'';position:absolute;inset:18% -7px 4%;z-index:-1;background:var(--yellow);opacity:.76;border-radius:23% 12% 16% 13%/25% 18% 31% 24%;transform:rotate(-1.6deg)}mark.purple::before{background:var(--purple);inset:18% -8px 0;transform:rotate(.8deg)}.site-header{max-width:1650px;margin:auto;padding:27px 46px 22px;display:flex;align-items:center;gap:30px;border-bottom:1px solid #e5ded1}.brand{font-family:var(--heading);font-size:29px;text-decoration:none;display:flex;align-items:center;gap:9px;font-weight:700;white-space:nowrap}.brand svg{width:27px;height:32px;color:#e4ad25;fill:#ffda54;stroke:var(--ink);stroke-width:1.5}.brand-dot{color:#d1a32d}.header-note{font-size:17px;color:#8b8982;flex:1;text-align:center}.text-button{border:0;background:none;font-size:17px;display:flex;align-items:center;gap:7px;white-space:nowrap;padding:6px}.text-button svg{width:19px;height:19px}.text-button:hover{color:#a87916}main{max-width:1650px;margin:auto;padding:0 46px}.workbench{display:grid;grid-template-columns:minmax(245px,.92fr) minmax(420px,2.16fr) minmax(288px,1.04fr);grid-template-rows:auto 1fr;grid-template-areas:'intro motor explanation' 'note motor controls';column-gap:24px;row-gap:30px;padding-top:46px;padding-bottom:56px;align-items:start}.intro{grid-area:intro}.eyebrow{display:inline-flex;gap:6px;align-items:center;color:#817455;font-size:17px;letter-spacing:.2px}.little-star{font-size:22px;color:#d5aa36}h1{font-family:var(--heading);font-size:clamp(52px,4.65vw,74px);font-weight:700;line-height:.99;letter-spacing:-1.7px;margin:17px 0 26px;position:relative;isolation:isolate}h1 mark::before{inset:25% -13px -1%;border-radius:22% 13% 20% 13%/27% 19% 31% 24%;opacity:.8}.title-rays{position:absolute;font-family:var(--body);font-size:49px;color:#dfaa27;top:-1px;left:69%;transform:rotate(17deg)}.title-rays:before,.title-rays:after{content:'╱';position:absolute;left:-15px;top:7px;transform:rotate(-18deg);font-size:34px}.title-rays:after{left:24px;top:4px;transform:rotate(19deg)}.intro-copy{font-size:21px;line-height:1.4;margin:0 0 26px;max-width:285px}.intro-copy>span{color:#7c7b72}.view-tabs{display:flex;gap:10px}.view-tab{flex:1;max-width:100px;min-width:0;border:1.5px solid #cfc8bc;border-radius:24% 19% 23% 21%/20% 22% 18% 22%;background:transparent;height:94px;display:flex;flex-direction:column;gap:7px;align-items:center;justify-content:center;font-size:19px;transition:background .2s,transform .2s;box-shadow:1px 2px 0 #d5cfc42b}.view-tab svg{width:39px;height:36px;stroke-width:1.6}.view-tab:hover{transform:translateY(-3px);background:#fff4cb}.view-tab.active{background:#ffedaf;border-color:#cca533;box-shadow:1px 3px 0 #c9b77c55}.sketch-card{border:1.2px solid #cfc7ba;border-radius:8% 7% 8% 6%/6% 9% 7% 8%;position:relative;background:#fffdf717;box-shadow:1px 4px 0 #e7dfed65}.sketch-card::after{content:'';position:absolute;inset:2px -2px -2px 2px;border:1px solid #e3dccf66;border-radius:7% 8% 5% 7%;pointer-events:none}h2{font-family:var(--heading);font-size:32px;font-weight:700;line-height:1.15;margin:0}.explanation{grid-area:explanation;margin-top:7px;padding:24px 23px 18px;min-height:300px}.explanation h2{display:flex;gap:9px;align-items:center;font-size:31px;margin-top:-43px;margin-bottom:18px}.explanation h2>svg{width:35px;height:42px;flex-shrink:0;stroke:var(--ink);stroke-width:1.7;fill:#ffdf5b;background:var(--paper);transform:rotate(-7deg)}.explanation h2>mark{background:var(--paper)}.explanation p{font-size:20px;line-height:1.38;margin:0;min-height:110px}.explanation strong{font-weight:400;background:linear-gradient(transparent 70%,#ffdf6890 70%)}.force-diagram{margin:4px -2px 8px}.force-diagram svg{display:block;width:100%;max-height:130px;overflow:visible;font-family:var(--body)}.field-lines{stroke:#5590c7;fill:none;stroke-width:1.4;stroke-dasharray:5 5;marker-start:url(#arrow-blue);transform:scaleX(-1);transform-origin:center}.force-label{font-size:22px;fill:#d58c2c}.diagram-legend{display:flex;justify-content:center;gap:14px;font-size:14px;color:#807f79}.diagram-legend>span{display:flex;align-items:center;gap:4px}.diagram-legend i{display:block;width:17px;border-top:2px dashed var(--blue)}.diagram-legend .legend-force{border-top:2px solid #d58c2c}.inline-link{background:transparent;border:0;border-top:1px dashed #d9d1c3;width:100%;padding:12px 0 0;font-size:16px;text-align:left;display:flex;justify-content:space-between;gap:4px}.inline-link:hover{color:#af7d1e}.motor-panel{grid-area:motor;min-width:0;align-self:stretch;position:relative;display:flex;flex-direction:column;justify-content:center;padding-top:10px}.scene{position:relative;width:calc(100% + 28px);margin:0 -14px;isolation:isolate}.scene canvas{display:block;width:100%;height:auto;aspect-ratio:900/690}.scene-caption{position:absolute;top:4px;left:7%;font-family:var(--heading);font-size:24px;color:#8c816a;transform:rotate(-5deg);z-index:2;pointer-events:none}.scene-caption svg{position:absolute;right:-37px;bottom:-56px;width:76px;height:48px;stroke:#cda83c;stroke-width:2;fill:none;transform:rotate(5deg)}.running-badge{position:absolute;left:50%;bottom:0;transform:translateX(-50%);font-size:15px;display:flex;align-items:center;gap:7px;white-space:nowrap;color:#868277}.status-dot{height:6px;width:6px;display:inline-block;border-radius:50%;background:#bdb8aa}.running-badge.running .status-dot{background:#baa438;box-shadow:0 0 0 3px #eee2a7}.playback-wrap{display:flex;align-items:center;flex-direction:column;margin-top:26px;gap:14px}.playback{border:1.4px solid #beb7aa;border-radius:60% 50% 60% 48%/120% 100% 100% 100%;display:flex;align-items:center;justify-content:space-around;width:280px;height:64px;box-shadow:0 5px 0 #e7ddef5e;position:relative}.icon-button{border:0;background:transparent;padding:13px;display:flex;align-items:center;justify-content:center;border-radius:50%}.icon-button:hover{background:#f3e8c9}.icon-button[aria-pressed=true]{color:#a37e20;background:#f7e7ac}.icon-button svg{width:30px;height:30px}.play-button{width:84px;height:84px;border:2px solid var(--ink);background:#ffdc57;border-radius:48% 52% 46% 51%/52% 48% 52% 49%;box-shadow:1px 4px 0 #ceb447;display:flex;align-items:center;justify-content:center;transition:transform .15s,background .15s;margin:0 14px;flex-shrink:0}.play-button::after{content:'';position:absolute;width:78px;height:78px;pointer-events:none;border:1px solid #a8883566;border-radius:50%}.play-button:hover{background:#ffe780;transform:rotate(-3deg) scale(1.04)}.play-button:active{transform:scale(.96)}.play-button svg{width:43px;height:43px;fill:#fff8d23d;stroke:var(--ink);stroke-width:2.7}.playback-wrap>span{font-size:16px;color:#8c8579}.try-note{grid-area:note;position:relative;transform:rotate(-2deg);padding:22px 17px 22px 19px;margin:3px 2px 0 0;background:#fffdf5;border:1px solid #c6bfae;box-shadow:-5px 6px 0 #e6dcef65;border-radius:1% 3% 2% 2%/2% 2% 1% 3%;align-self:end}.try-note:after{content:'';position:absolute;right:-1px;top:-1px;border-left:19px solid #e4ddcb;border-top:19px solid var(--paper);filter:drop-shadow(-1px 1px 0 #bcb5a9)}.pin{position:absolute;top:-16px;left:12px;width:15px;height:24px;background:#ee8eb8;border:1.4px solid var(--ink);border-radius:50% 50% 40% 40%;transform:rotate(-17deg);box-shadow:2px 3px 0 #bf8daa44}.pin:before{content:'';position:absolute;top:-2px;left:-3px;width:18px;height:8px;background:#ffc0dc;border:1.4px solid var(--ink);border-radius:50%}.pin:after{content:'';position:absolute;top:22px;left:6px;height:10px;border-left:1.5px solid var(--ink)}.note-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.note-heading h2{font-size:31px}.note-heading>span{font-size:15px;color:#a29a86;margin-left:9px}.experiment{display:flex;text-align:left;gap:10px;align-items:flex-start;padding:6px 0;background:none;border:0;width:100%;font-size:19px;line-height:1.2}.experiment small{display:block;font-size:16px;line-height:1.4;color:#888271;margin-top:3px}.check{width:17px;height:17px;border:1.5px solid #a99c81;border-radius:3px;flex-shrink:0;margin-top:4px;position:relative;background:transparent}.experiment.done .check:after{content:'';position:absolute;left:2px;top:-4px;width:9px;height:15px;border:solid #6d8060;border-width:0 2px 2px 0;transform:rotate(35deg)}.experiment.done small{color:#7b8a64}.experiment:hover>span:last-child{color:#9a751c}.note-doodle{position:absolute;bottom:-2px;right:12px;color:#d5a233;font-size:37px;transform:rotate(-22deg)}.controls{grid-area:controls;margin-top:2px;padding:22px 20px 18px}.controls h2{display:flex;align-items:center;gap:9px;margin-top:-42px;margin-bottom:22px;font-size:31px}.controls h2>mark{background:var(--paper)}.slider-doodle{background:var(--paper);font-family:var(--body);font-size:35px;line-height:1;transform:rotate(90deg)}.control-row{display:flex;align-items:center;gap:12px;min-height:43px}.control-icon{width:25px;height:27px;flex-shrink:0;stroke:var(--ink);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;fill:none}.control-icon.bolt{color:#d5ad2d;stroke:var(--ink);fill:#ffe777;stroke-width:1}.control-row label{font-size:19px;flex:1;cursor:pointer}.control-detail{font-size:15px;margin-left:4px;color:#8e897e}.toggle{width:47px;height:26px;padding:2px;flex-shrink:0;border:1.4px solid var(--ink);border-radius:48% 45% 45% 48%/90% 90% 90% 90%;background:#dedbd8;position:relative;transition:background .2s;box-shadow:inset 0 1px 2px #37342c12}.toggle span{width:21px;height:21px;display:block;border:1.2px solid var(--ink);border-radius:50%;position:absolute;top:1px;left:1px;background:var(--paper);box-shadow:1px 0 2px #3332;transition:transform .2s}.toggle[aria-checked=true]{background:var(--yellow)}.toggle[aria-checked=true] span{transform:translateX(21px)}.toggle:hover{filter:brightness(1.03)}.toggle.small{width:39px;height:23px}.toggle.small span{width:18px;height:18px}.toggle.small[aria-checked=true] span{transform:translateX(17px)}.voltage-control{margin-top:8px}.voltage-control output{font-family:var(--heading);font-size:29px;font-weight:700;white-space:nowrap}.voltage-control output span{font-size:20px}input[type=range]{--value:25%;display:block;margin:8px 1px 2px 37px;width:calc(100% - 39px);height:7px;border:1px solid #a5a092;border-radius:20px;appearance:none;-webkit-appearance:none;background:linear-gradient(to right,#ffdc57 var(--value),#e7e2db var(--value));cursor:ew-resize}input[type=range]::-webkit-slider-thumb{width:23px;height:23px;border:1.7px solid var(--ink);border-radius:50%;background:var(--paper);appearance:none;-webkit-appearance:none;box-shadow:1px 2px 0 #2e303322}input[type=range]::-moz-range-thumb{width:21px;height:21px;border:1.7px solid var(--ink);border-radius:50%;background:var(--paper)}.range-labels{margin:10px 0 0 37px;display:flex;justify-content:space-between;font-size:13px;color:#938c7d}.speed-readout{display:flex;align-items:center;gap:12px;margin:18px 0 14px}.speed-readout>div:first-of-type{display:flex;flex:1;flex-direction:column;font-size:17px;line-height:1.25}.speed-readout strong{font-size:16px;color:#8e887a;font-weight:400}.speed-bars{display:flex;gap:3px;align-items:flex-end;height:26px}.speed-bars i{width:5px;height:7px;background:#e5dfd3;border-radius:1px}.speed-bars i:nth-child(2){height:11px}.speed-bars i:nth-child(3){height:16px}.speed-bars i:nth-child(4){height:21px}.speed-bars i:nth-child(5){height:26px}.speed-bars i.on{background:#d6b84b}.control-divider{border-top:1px dashed #d6cbbb;margin:16px 0 10px}.field-control{gap:9px;min-height:34px}.field-control label{font-size:16px}.field-control svg{width:23px;height:23px}.controls-note{font-size:15px;line-height:1.35;color:#8d8066;margin:14px 0 0;min-height:39px}.part-labels{position:absolute;inset:0;pointer-events:none}.part-label{background:#fcf8eff0;border:1px solid #d2c7b4;border-radius:5px;padding:4px 9px;position:absolute;font-family:var(--heading);font-size:23px;box-shadow:1px 3px 0 #d9c89b44;pointer-events:auto;transform:rotate(-3deg);white-space:nowrap}.part-label:hover,.part-label.selected{background:#ffeba8;border-color:#b59b45}.part-label span{font-family:var(--body);font-size:25px;position:absolute;color:#b79a4f}.label-magnet{left:0;top:31%}.label-magnet span{right:3px;bottom:-28px}.label-coil{right:11%;top:9%}.label-coil span{left:-12px;bottom:-24px}.label-commutator{right:0;top:48%}.label-commutator span{left:-17px;bottom:-21px}.label-battery{left:13%;bottom:6%}.label-battery span{right:-22px;top:-19px}.part-picker{display:flex;flex-wrap:wrap;gap:6px;margin:14px 0 0}.part-picker button{font-size:15px;background:transparent;border:1px solid #d6cbb8;border-radius:5px;padding:3px 7px}.part-picker button.selected{background:#ffedb4}.learn-section{border-top:1px solid #dfd5c3;padding:48px 0 52px;position:relative}.learn-section:before{content:'↓';font-family:var(--heading);font-size:35px;line-height:30px;position:absolute;left:50%;top:-17px;transform:rotate(5deg);background:var(--paper);padding:0 18px;color:#ada38d}.section-intro{text-align:center}.section-intro h2{font-size:45px;margin:6px 0 10px;isolation:isolate}.section-intro p{font-size:19px;color:#8b8474;margin:0}.learning-layout{display:grid;grid-template-columns:1fr 1.25fr;gap:65px;max-width:1060px;margin:35px auto 0;align-items:stretch}.learning-steps{display:flex;flex-direction:column;gap:5px}.learning-step{display:flex;align-items:center;gap:17px;text-align:left;background:transparent;border:0;border-bottom:1px solid #e2d8c6;padding:14px 6px;min-height:86px}.learning-step>span{font-family:var(--heading);font-size:32px;color:#b1a894;position:relative;isolation:isolate;width:38px;flex-shrink:0}.learning-step.active>span{color:var(--ink)}.learning-step.active>span::before{content:'';background:#ffe385;position:absolute;inset:0 -4px 0 -5px;border-radius:50% 48% 44% 52%;z-index:-1;transform:rotate(-7deg)}.learning-step div{font-size:23px;flex:1;line-height:1.25}.learning-step small{font-size:16px;display:block;color:#928a79}.learning-step>svg{width:22px;color:#b5a88d;transition:transform .2s}.learning-step:hover>svg,.learning-step.active>svg{color:var(--ink);transform:translateX(4px)}.step-detail{padding:34px 34px 27px;background:#fffdf64d;overflow:hidden;display:flex;flex-direction:column;justify-content:center}.step-number{font-family:var(--heading);font-size:150px;color:#ebd9a23d;position:absolute;right:12px;top:-16px;line-height:1;z-index:0;pointer-events:none}.step-kicker{font-size:16px;color:#9b8657;position:relative}.step-detail h3{font-family:var(--heading);font-size:33px;margin:9px 0 12px;line-height:1.15;position:relative}.step-detail>p{font-size:20px;line-height:1.4;margin:0 0 14px;position:relative}.step-detail>.step-observe{font-size:17px;color:#8e8063;padding-left:16px;position:relative}.step-observe>span{position:absolute;left:-1px}.step-try{border:0;border-bottom:1px solid #c6ad60;background:none;align-self:start;padding:0 0 3px;font-size:17px;display:flex;align-items:center;gap:12px;margin-top:7px}.step-try svg{width:19px;height:19px}.step-try:hover{color:#a27614}footer{border-top:1px solid #e5dbca;padding:24px 0 30px;display:flex;align-items:center;justify-content:space-between;gap:20px;color:#988e7b;font-size:14px}footer>span{display:flex;align-items:center;gap:5px;font-family:var(--heading);font-size:24px;color:#7f775f}footer svg{color:#c2a34b;width:19px;height:22px}footer p{margin:0}footer a{text-decoration:none}footer a:hover{text-decoration:underline}.announcement{position:fixed;left:50%;bottom:24px;transform:translate(-50%,20px) rotate(-.7deg);max-width:min(620px,calc(100% - 32px));width:max-content;border:1px solid #b6a477;border-radius:9px;background:#fff1bf;padding:12px 22px;z-index:30;font-size:19px;box-shadow:2px 4px 0 #b6a47733;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s}.announcement.visible{opacity:1;transform:translate(-50%,0) rotate(-.7deg)}[hidden]{display:none!important}
@media(min-width:1450px){.workbench{column-gap:34px;grid-template-columns:300px minmax(420px,1fr) 330px}.intro-copy{font-size:23px}.explanation p{font-size:22px}.control-row label{font-size:21px}.field-control label{font-size:17px}.scene-caption{font-size:27px}.view-tab{height:100px}.try-note{padding:25px 20px}.experiment{font-size:21px}.experiment small{font-size:17px}.workbench{min-height:740px}.explanation{min-height:325px}}
@media(min-width:1101px) and (max-width:1290px){main{padding:0 30px}.site-header{padding-left:30px;padding-right:30px}.workbench{column-gap:17px;grid-template-columns:245px minmax(330px,1fr) 275px}.explanation{padding:22px 18px 16px}.explanation p{font-size:19px}.control-row label{font-size:18px}.controls{padding:22px 17px 15px}.field-control label{font-size:15px}.scene-caption{font-size:22px;left:0}.scene-caption svg{right:-12px}.experiment{font-size:18px}.experiment small{font-size:15px}.note-heading h2{font-size:29px}.header-note{font-size:16px}.workbench{padding-top:40px}}
@media(max-width:1100px){.site-header{padding:20px 28px}.header-note{display:none}.brand{flex:1}main{padding:0 28px}.workbench{grid-template-columns:265px minmax(0,1fr);grid-template-areas:'intro motor' 'explanation controls' 'note note';grid-template-rows:auto auto auto;gap:38px 30px;padding-top:36px;padding-bottom:35px}.motor-panel{padding-top:35px}.scene-caption{top:0;font-size:22px}.scene-caption svg{width:58px;right:-20px;bottom:-39px}.playback-wrap{margin-top:15px}.intro-copy{font-size:21px}h1{font-size:62px}.view-tab{height:90px}.explanation{margin-top:12px;align-self:stretch}.controls{margin-top:12px;align-self:stretch}.try-note{max-width:650px;justify-self:center;width:100%;transform:rotate(-.8deg);display:grid;grid-template-columns:repeat(3,1fr);gap:0 15px;padding-top:14px}.note-heading{grid-column:1/-1;margin:0 0 10px}.note-heading h2{font-size:28px}.experiment{font-size:19px}.experiment small{font-size:16px}.learning-layout{gap:30px}.learning-step div{font-size:21px}.learning-step{gap:10px}.step-detail{padding:25px}.explanation p{min-height:90px}.workbench .explanation .force-diagram{max-width:300px;margin:auto}.field-control label{font-size:18px}.controls-note{min-height:auto}}
@media(max-width:700px){.site-header{padding:17px 20px 15px;gap:8px}.brand{font-size:25px}.brand svg{width:21px;height:28px}.text-button{font-size:0;padding:8px}.text-button svg{width:22px;height:22px}main{padding:0 21px}.workbench{grid-template-columns:1fr;grid-template-areas:'intro' 'motor' 'controls' 'explanation' 'note';gap:32px;padding-top:26px}.eyebrow{font-size:16px}h1{font-size:59px;line-height:.99;letter-spacing:-1px;margin:12px 0 18px}h1 br:first-of-type{display:none}h1 mark{margin-left:8px}h1 br:last-of-type{display:none}h1 mark::before{inset:27% -8px 1%}h1{max-width:480px}.title-rays{display:none}.intro-copy{font-size:20px;margin:0 0 17px;max-width:100%}.intro-copy br{display:none}.intro-copy>span{display:block}.view-tabs{gap:10px}.view-tab{height:66px;max-width:none;flex-direction:row;font-size:18px;gap:6px;border-radius:14% 13% 12% 13%/24% 22% 23% 25%}.view-tab svg{width:29px;height:29px}.motor-panel{padding-top:19px;margin-top:-9px}.scene{width:calc(100% + 40px);margin:0 -20px}.scene-caption{top:0;left:6%;font-size:21px}.scene-caption svg{width:53px;height:34px;right:-35px;bottom:-31px}.playback-wrap{margin-top:23px}.playback{width:245px;height:58px}.play-button{width:76px;height:76px}.play-button::after{width:70px;height:70px}.playback-wrap>span{font-size:15px}.running-badge{font-size:14px;bottom:-7px}.controls{padding:24px 23px 16px;margin-top:12px}.controls h2{margin-top:-44px}.control-row{min-height:47px}.control-row label{font-size:21px}.field-control label{font-size:18px}.voltage-control{margin-top:4px}.voltage-control output{font-size:30px}.control-icon{width:26px;height:28px}.speed-readout{margin:19px 0 14px}.explanation{padding:24px 23px 18px;margin-top:15px;min-height:0}.explanation p{font-size:21px;min-height:0}.explanation .force-diagram{margin-top:12px!important}.explanation h2{margin-bottom:17px}.try-note{display:block;max-width:420px;padding:23px 24px 27px;margin-top:6px;transform:rotate(-1.4deg)}.note-heading h2{font-size:33px}.experiment{font-size:21px;padding:8px 0}.experiment small{font-size:17px}.note-heading{margin-bottom:11px}.learn-section{padding-top:32px}.section-intro h2{font-size:36px}.section-intro p{font-size:18px}.learning-layout{grid-template-columns:1fr;gap:25px;margin-top:25px}.learning-step{min-height:78px;padding:11px 5px}.learning-step div{font-size:22px}.step-detail{min-height:330px;padding:27px 25px}.step-detail h3{font-size:32px}.step-detail>p{font-size:20px}.step-detail>.step-observe{font-size:17px}footer{flex-wrap:wrap;gap:12px;padding-bottom:23px}footer>span{flex:1}footer p{order:3;width:100%;font-size:13px}.part-label{font-size:18px;padding:2px 6px}.label-magnet{left:4%;top:27%}.label-coil{right:6%;top:10%}.label-commutator{right:3%;top:51%;max-width:128px;white-space:normal;line-height:1}.label-battery{left:8%;bottom:5%}.announcement{font-size:17px;padding:12px 17px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{transition:none!important}}
/* Keep the single-column lab inside narrow browser side panels as well. */
.intro{min-width:0}
@media(min-width:1101px){.workbench{padding-top:38px;row-gap:26px;padding-bottom:42px}h1{font-size:clamp(52px,4.45vw,70px);line-height:.95;margin:13px 0 23px}.intro-copy{font-size:20px;line-height:1.32;margin-bottom:22px}.view-tab{height:83px;font-size:18px;gap:4px}.view-tab svg{height:33px}.motor-panel{justify-content:flex-start;padding-top:36px}.scene-caption{top:2px}.explanation p{font-size:19px;line-height:1.3}.force-diagram svg{max-height:108px}.explanation{min-height:0}.controls{padding-top:20px;padding-bottom:15px}.controls h2{margin-bottom:16px}.control-row{min-height:39px}.control-row label{font-size:18px}.field-control label{font-size:15px}.voltage-control{margin-top:4px}.speed-readout{margin:14px 0 10px}.control-divider{margin:12px 0 8px}.controls-note{font-size:14px;min-height:35px;margin-top:11px}.try-note{padding-top:19px;padding-bottom:20px}.experiment{font-size:18px}.experiment small{font-size:15px}.note-heading{margin-bottom:10px}.note-heading h2{font-size:29px}}
@media(max-width:700px){.workbench{grid-template-columns:minmax(0,1fr)}h1{font-size:clamp(49px,11vw,59px);line-height:.96}h1 br:first-of-type,h1 br:last-of-type{display:initial}h1 mark{margin-left:0}.view-tab{flex-direction:column;height:77px;font-size:17px;gap:2px}.view-tab svg{height:30px;width:32px}.explanation h2,.controls h2{font-size:29px}.control-row{gap:9px}.control-row label{font-size:19px}.field-control label{font-size:16px}}
@media(min-width:1101px){.try-note{align-self:start}h1{margin-top:12px;margin-bottom:20px}.controls{padding-top:18px;padding-bottom:13px}.controls .control-row{min-height:35px}.speed-readout{margin-top:12px;margin-bottom:8px}.control-divider{margin-top:10px;margin-bottom:6px}.controls-note{margin-top:9px;min-height:30px}}
.scene.is-3d canvas{cursor:grab;touch-action:none;user-select:none;outline:none}
.scene.is-3d canvas:focus,.scene.is-3d canvas:focus-visible{outline:none}
.scene.is-3d canvas.dragging{cursor:grabbing}
.scene.is-3d .part-label{transform:translate(-50%,-50%) rotate(-2deg);right:auto;bottom:auto}
.scene.is-3d .part-label span{display:none}
.orbit-toolbar{display:flex;justify-content:center;align-items:center;gap:12px;margin:14px -15px 0;font-size:14px;color:#95856a;flex-wrap:wrap}
.orbit-toolbar button{display:flex;align-items:center;gap:4px;padding:3px 7px;border:1px solid #d2c8b5;border-radius:7px;background:#fffaf0;font-size:14px;color:#817255}
.orbit-toolbar button:hover{background:#fff0b8}
.orbit-toolbar svg{height:15px;width:15px}
.orbit-toolbar+.playback-wrap{margin-top:23px}
@media(max-width:700px){.orbit-toolbar{font-size:13px;gap:8px;margin-top:20px}.orbit-toolbar button{font-size:13px}.scene.is-3d .part-label{font-size:17px;max-width:130px;white-space:normal;line-height:1.05}.orbit-toolbar+.playback-wrap{margin-top:24px}}
