:root{color-scheme:light;--ink:#30483a;--muted:#657167;--paper:#faf8f2;--cream:#fffefa;--line:#d8ddd3;--sage:#8e9b76;--accent:#536e57}
*{box-sizing:border-box}
body{margin:0;background:var(--paper);color:var(--ink);font:16px/1.5 system-ui,sans-serif}
.animation-page{width:min(100%,920px);margin:auto;padding:22px 18px 130px}
.back-link{display:inline-block;margin:0 0 12px;color:#365a49;text-underline-offset:4px}
.eyebrow{margin:0 0 5px;color:#687b65;font-size:13px;font-weight:750;letter-spacing:.12em}
h1{margin:4px 0 8px;font:clamp(30px,6vw,46px)/1.08 Georgia,serif}
.intro{max-width:68ch;margin:0 0 18px;color:var(--muted);font-size:17px}
.animation-card{padding:clamp(12px,3vw,22px);border:1px solid var(--line);border-left:5px solid #8a9a86;border-radius:16px;background:var(--cream);box-shadow:0 7px 24px #263d3010}
.scene-row{display:grid;grid-template-columns:48px minmax(0,1fr) 48px;align-items:center;gap:10px}
.scene-arrow{display:grid;width:46px;height:52px;place-items:center;border:1px solid #c9d2c5;border-radius:13px;background:#edf1e9;color:#405845;font-size:35px;line-height:1;cursor:pointer;box-shadow:0 2px 5px #263d3010}
.scene-arrow:focus-visible,.scene-dots button:focus-visible{outline:3px solid #91a482;outline-offset:2px}
.scene-art{width:100%;aspect-ratio:2/1;border:1px solid #e2e2d7;border-radius:13px;background-color:#f8f5ed;background-image:url('assets/animations/sensory-motor-response-storyboard.png');background-repeat:no-repeat;background-size:200% 200%;background-position:0 0;transition:background-position .35s ease,opacity .2s ease}
.scene-art[data-step="2"]{background-position:100% 0}
.scene-art[data-step="3"]{background-position:0 100%}
.scene-art[data-step="4"]{background-position:100% 100%}
.scene-copy{padding:13px 4px 2px;text-align:center}
.step-count{margin:0;color:#6c7869;font-size:13px;font-weight:700;letter-spacing:.05em}
.scene-copy h2{margin:3px 0 4px;font:clamp(22px,4vw,30px)/1.2 Georgia,serif}
.scene-copy p:not(.step-count){margin:0 auto;max-width:62ch;color:#566157}
.direction-tag{display:inline-block;margin-top:11px;padding:5px 11px;border:1px solid #dce3d6;border-radius:99px;background:#f1f4ed;color:#526451;font-size:13px;font-weight:700}
.scene-dots{display:flex;justify-content:center;gap:9px;margin:15px 0 0}
.scene-dots button{width:10px;height:10px;padding:0;border:0;border-radius:50%;background:#c8d0c1;cursor:pointer}
.scene-dots button[aria-current="step"]{background:#526c55;box-shadow:0 0 0 4px #e8eddf}
.learning-note{margin:13px 4px 0;padding:12px 15px;border-left:4px solid #b69a58;border-radius:8px;background:#fbf5e5;color:#535d52}
@media(max-width:600px){.animation-page{padding:17px 12px 110px}.scene-row{grid-template-columns:40px minmax(0,1fr) 40px;gap:6px}.scene-arrow{width:38px;height:48px;font-size:31px}.scene-art{border-radius:10px}.intro{font-size:16px}}
@media(max-width:380px){.scene-row{grid-template-columns:34px minmax(0,1fr) 34px;gap:4px}.scene-arrow{width:33px;height:42px;border-radius:10px}}
@media(prefers-reduced-motion:reduce){.scene-art{transition:none}}
.signal-sequence{margin:10px 4px 0;padding:0 13px;border:1px solid var(--line);border-radius:11px;background:var(--cream)}
.signal-sequence summary{padding:10px 0;font-weight:700;cursor:pointer}
.signal-sequence ol{margin:0;padding:0 0 0 23px}
.signal-sequence li{margin:7px 0;color:#566157;font-size:14px;line-height:1.42}
.sequence-cue{margin:8px 0 11px;padding:8px 10px;border-radius:8px;background:#f1f4ed;color:#405845;font-size:13px}
.animation-page{padding-top:14px}.back-link{margin-bottom:7px}.intro{max-width:68ch;margin-bottom:10px;font-size:15px;line-height:1.4}.animation-card{padding:clamp(8px,2vw,15px)}.scene-row{grid-template-columns:38px minmax(0,1fr) 38px;gap:7px}.scene-arrow{width:36px;height:42px;font-size:29px}.scene-copy{padding:7px 2px 0}.step-count{font-size:11px}.scene-copy h2{margin:2px 0 3px;font-size:clamp(20px,3.8vw,26px);line-height:1.12}.scene-copy p:not(.step-count){font-size:15px;line-height:1.35}.direction-tag{margin-top:6px;padding:4px 9px;font-size:12px}.scene-dots{gap:8px;margin:8px 0 0}.scene-dots button{width:12px!important;height:12px!important;min-width:12px!important;min-height:12px!important;padding:0!important;border-radius:50%!important}.learning-note{margin:8px 2px 0;padding:8px 11px;font-size:14px;line-height:1.4}.signal-sequence{margin-top:8px;padding:0 10px}.signal-sequence summary{padding:8px 0}.signal-sequence li{margin:5px 0;font-size:13px}.sequence-cue{margin:6px 0 8px;padding:7px 9px}.scene-art{position:relative;overflow:hidden}.axon-signal{position:absolute;inset:0;width:100%;height:100%;opacity:0;pointer-events:none}.scene-art[data-step="2"] .axon-signal{opacity:1}.axon-track{fill:none;stroke:#fff2a0;stroke-width:1.35;stroke-linecap:round;stroke-dasharray:0.6 3.1;opacity:.7;filter:url(#pulse-glow)}.axon-flash{fill:#fffde0;stroke:#ffcf56;stroke-width:.8;filter:url(#pulse-glow)}.axon-static{display:none;fill:#fff8bd;stroke:#ffcf56;stroke-width:.7;filter:url(#pulse-glow)}
@media(max-width:600px){.animation-page{padding:12px 10px 108px}.back-link{margin-bottom:4px;font-size:14px}.eyebrow{font-size:11px}.intro{margin-bottom:8px;font-size:14px;line-height:1.35}.scene-row{grid-template-columns:28px minmax(0,1fr) 28px;gap:4px}.scene-arrow{width:27px;height:36px;font-size:24px;border-radius:9px}.scene-art{border-radius:9px}.animation-card{padding:8px}.scene-copy h2{font-size:22px}.scene-copy p:not(.step-count){font-size:14px}.direction-tag{font-size:11px}.learning-note{font-size:13px}.signal-sequence li{font-size:12px}}
@media(max-width:380px){.animation-page{padding-left:8px;padding-right:8px}.scene-row{grid-template-columns:24px minmax(0,1fr) 24px;gap:3px}.scene-arrow{width:23px;height:34px;font-size:22px}}
@media(prefers-reduced-motion:reduce){.axon-flash{display:none}.scene-art[data-step="2"] .axon-static{display:block}}
/* Phone view: give the illustration the full card width and crop each sprite evenly without stretching it. */
.axon-track-mobile,.axon-flash-mobile{display:none}
#previous,#next{width:42px!important;min-width:42px!important;height:42px!important;min-height:42px!important;padding:0!important;border-radius:11px!important;display:grid;place-items:center}
#scene-dots{gap:4px;margin:6px 0 0}
#scene-dots button{display:grid;place-items:center;flex:0 0 24px;width:24px!important;min-width:24px!important;height:24px!important;min-height:24px!important;padding:0!important;border:0!important;border-radius:50%!important;background:transparent!important}
#scene-dots button::before{content:"";display:block;width:10px;height:10px;border-radius:50%;background:#c8d0c1;transition:transform .16s ease,background-color .16s ease}
#scene-dots button[aria-current="step"]::before{background:#526c55;transform:scale(1.18);box-shadow:0 0 0 3px #e8eddf}
@media(max-width:600px){.scene-row{position:relative;display:block}.scene-art{width:100%;aspect-ratio:1.6/1;background-size:auto 200%;background-position:8.333% 0}.scene-art[data-step="1"]{background-position:8.333% 0}.scene-art[data-step="2"]{background-position:95.833% 0}.scene-art[data-step="3"]{background-position:8.333% 100%}.scene-art[data-step="4"]{background-position:95.833% 100%}#previous,#next{position:absolute;z-index:3;top:50%;transform:translateY(-50%);background:#edf1e9ed!important;box-shadow:0 1px 5px #263d3033!important}#previous{left:-7px}#next{right:-7px}.axon-track,.axon-flash,.axon-static{display:none}.scene-art[data-step="2"] .axon-track-mobile,.scene-art[data-step="2"] .axon-flash-mobile{display:block}.axon-track-mobile{fill:none;stroke:#fff2a0;stroke-width:1.5;stroke-linecap:round;stroke-dasharray:.6 3.1;opacity:.75;filter:url(#pulse-glow)}.axon-flash-mobile{fill:#fffde0;stroke:#ffcf56;stroke-width:.9;filter:url(#pulse-glow)}}
@media(prefers-reduced-motion:reduce){#scene-dots button::before{transition:none}.scene-art[data-step="2"] .axon-flash-mobile{display:none}.scene-art[data-step="2"]::after{content:"";position:absolute;left:53%;top:56%;width:6px;height:6px;border-radius:50%;background:#fff8bd;box-shadow:0 0 9px 3px #ffcf56;pointer-events:none}}
