/* A standalone motion study. App colours and icon artwork are shared; no app
   controllers or saved-work stores are loaded into the illustration. */
:root { --blue: #456ce0; --blue-soft: #edf2ff; --line: #d8dee9; }
html, body { min-height: 100%; height: auto; overflow: auto; }
body { margin: 0; background: #f2f4f8; color: var(--text-primary); font-family: var(--font-body); -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; }
button { color: inherit; cursor: pointer; }
button:focus-visible, a:focus-visible, select:focus-visible, input:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
.preview { width: min(1120px, calc(100% - 64px)); margin: 0 auto; padding: 30px 0 25px; }
.preview-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 23px; font-size: 14px; color: var(--text-secondary); }
.preview-brand { display: flex; align-items: center; gap: 10px; color: var(--text-primary); text-decoration: none; font-size: 16px; font-weight: 600; letter-spacing: -.035em; }
.preview-brand img { width: 21px; height: 25px; }
.study-number { display: inline-block; margin-left: 7px; padding: 4px 7px; border: 1px solid var(--line); border-radius: 6px; font-size: 12px; }
.film { background: #fff; overflow: hidden; border: 1px solid #d4dce9; border-radius: 20px; box-shadow: 0 3px 6px #1a223304, 0 24px 64px -30px #3a527837; }
.stage-viewport { position: relative; width: 100%; aspect-ratio: 1120 / 700; overflow: hidden; background: var(--bg-primary); }
.stage { position: absolute; width: 1120px; height: 700px; transform-origin: 0 0; overflow: hidden; font-size: 16px; user-select: none; }
.stage svg.icon, .fullscreen-button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.stage .glyph { display: inline-flex; align-items: center; justify-content: center; }
.stage .glyph svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sidebar { position: absolute; inset: 0 auto 0 0; width: 206px; padding: 25px 14px; }
.app-brand { display: flex; align-items: center; gap: 9px; padding: 0 5px; font-size: 16px; font-weight: 620; letter-spacing: -.04em; }
.app-brand img { width: 20px; height: 24px; }
.library-heading { display: flex; align-items: center; gap: 9px; margin: 42px 6px 20px; font-size: 16px; font-weight: 560; }
.library-heading .chevron { margin-left: auto; color: #7b8595; font-size: 15px; }
.library-section { display: flex; align-items: center; gap: 10px; padding: 12px 9px; font-size: 14px; color: #596579; }
.library-section > span:last-child { margin-left: auto; font-size: 13px; color: #8b94a5; }
.library-section .glyph svg { width: 18px; height: 18px; }
.library-record { margin: 1px 0 11px; padding: 12px 11px 12px 32px; border-radius: 9px; font-size: 13px; background: #e3e9f4; white-space: nowrap; color: #263857; }
.sidebar-bottom { position: absolute; bottom: 24px; left: 24px; display: flex; align-items: center; gap: 10px; color: #667084; font-size: 14px; }
.window { position: absolute; left: 206px; top: 16px; width: 898px; height: 668px; border: 1px solid var(--line); border-radius: 18px; background: #fff; overflow: hidden; }
.app-header { position: absolute; top: 0; left: 0; right: 0; height: 64px; display: flex; align-items: center; gap: 15px; padding: 0 23px; border-bottom: 1px solid #eef0f5; }
.mode-name { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 16px; }
.mode-name .glyph { color: #53617a; }
.mode-separator { height: 18px; width: 1px; background: var(--line); }
.document-title { color: #566177; font-size: 14px; }
.header-right { margin-left: auto; display: flex; align-items: center; gap: 13px; }
.header-icon { display: inline-flex; justify-content: center; align-items: center; width: 32px; height: 32px; border-radius: 8px; }
.header-icon.active { background: var(--blue-soft); color: var(--blue); }
.page-count { color: #8490a3; font-size: 14px; margin-right: 12px; }
.post-hint { position: absolute; right: 13px; top: 59px; z-index: 9; color: #fff; background: #263247; border-radius: 7px; padding: 9px 12px; font-size: 13px; box-shadow: 0 3px 8px #1a223319; opacity: 0; }
.post-hint::before { content: ''; position: absolute; right: 21px; top: -4px; height: 8px; width: 8px; transform: rotate(45deg); background: inherit; }
.overview { position: absolute; inset: 64px 0 0; background: white; }
.overview-label { position: absolute; top: 29px; left: 27px; font-size: 14px; color: #78859a; }
.page-grid { position: absolute; top: 82px; left: 25px; right: 25px; display: grid; grid-template-columns: repeat(3, 260px); gap: 20px; }
.page-card { border: 1px solid #dce2ee; border-radius: 12px; background: #fff; overflow: hidden; position: relative; }
.card-thumb { position: relative; width: 258px; height: 216px; background: #f8f9fc; overflow: hidden; }
.card-art { position: absolute; left: 0; top: 24px; width: 800px; height: 520px; transform: scale(.325); transform-origin: 0 0; }
.card-tag { position: absolute; bottom: 9px; left: 10px; padding: 4px 7px; background: #ffffffed; border: 1px solid #e7ebf2; border-radius: 5px; color: #5d6b81; font-size: 12px; }
.card-info { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid #e7ebf2; padding: 16px 13px; font-size: 14px; }
.card-info strong { font-weight: 550; }
.card-info span { color: #939cae; font-size: 12px; }
.new-card { min-height: 268px; border: 1px dashed #cfd7e5; border-radius: 12px; text-align: center; padding: 45px 18px 20px; }
.new-card > strong { display: block; margin-bottom: 6px; font-size: 17px; font-weight: 550; }
.new-card > span { font-size: 13px; color: #8390a5; }
.new-options { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 22px; }
.new-option { padding: 8px 10px; display: inline-flex; gap: 6px; align-items: center; border: 1px solid #e2e7f0; border-radius: 7px; color: #5f6d82; font-size: 13px; background: #fff; }
.new-option .glyph svg { width: 16px; height: 16px; }
.new-option.selected { border-color: #a9bdf7; background: #f0f4ff; color: var(--blue); }
.empty-lesson { position: absolute; inset: 85px 0 0; text-align: center; }
.empty-lesson img { width: 42px; height: 49px; opacity: .24; margin-bottom: 24px; }
.empty-lesson h2 { margin: 0 0 11px; font-size: 25px; font-weight: 550; letter-spacing: -.025em; }
.empty-lesson p { margin: 0; font-size: 15px; color: #8a94a5; }
.empty-options { display: flex; justify-content: center; gap: 10px; margin-top: 31px; }
.empty-options .new-option { padding: 12px 17px; font-size: 15px; }
.artifact { position: absolute; width: 800px; height: 520px; background: #fff; transform-origin: 0 0; z-index: 5; overflow: hidden; border-radius: 3px; will-change: transform, opacity; }
.paper { position: absolute; width: 800px; height: 520px; inset: 0; background: #fff; overflow: hidden; }
.board-svg { width: 800px; height: 520px; display: block; }
.board-svg .hand { font-family: 'Segoe Print', 'Bradley Hand', 'Comic Sans MS', cursive; fill: #283750; font-size: 25px; }
.board-svg .hand-heading { font-size: 35px; }
.board-svg .small-hand { font-size: 21px; }
.board-svg .ink { fill: none; stroke: #354560; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }
.board-svg .blue-ink { stroke: #5077dc; stroke-width: 4; }
.canvas-tools { position: absolute; z-index: 6; left: 48px; bottom: 20px; display: flex; align-items: center; padding: 7px; gap: 6px; border: 1px solid #dde3ed; border-radius: 12px; background: #ffffffed; box-shadow: 0 2px 8px #1a22330a; }
.tool { display: inline-flex; align-items: center; justify-content: center; width: 35px; height: 35px; border-radius: 7px; }
.tool.selected { background: #eaf0ff; color: var(--blue); }
.tool-divider { height: 22px; width: 1px; background: #dce2eb; margin: 0 5px; }
.swatch { width: 17px; height: 17px; border-radius: 50%; background: #354560; margin: 0 5px; }
.swatch.blue { background: #5077dc; width: 21px; height: 21px; border: 3px solid #fff; box-shadow: 0 0 0 1px #aebee6; }
.note-tools { position: absolute; z-index: 6; top: 64px; left: 0; right: 0; height: 39px; display: flex; align-items: center; gap: 20px; padding: 0 24px; color: #6c778b; font-size: 14px; background: #f4f6fa; border-bottom: 1px solid #e8ecf3; }
.note-tools b { color: #39465d; }
.note-document { padding: 42px 68px; font-size: 20px; line-height: 1.65; color: #49566e; }
.note-document h1 { margin: 0 0 16px; color: #24334d; font-size: 34px; font-weight: 650; line-height: 1.25; letter-spacing: -.035em; }
.note-document p { margin: 0 0 20px; min-height: 34px; }
.note-document h2 { margin: 0 0 10px; font-size: 22px; font-weight: 630; color: #2c3c59; }
.note-document ul { margin: 0 0 23px; padding-left: 25px; font-size: 19px; line-height: 1.8; }
.note-document blockquote { border-left: 3px solid #93a9e3; margin: 0; padding: 7px 0 7px 20px; color: #465b84; font-size: 19px; }
.typing-caret::after { content: ''; display: inline-block; width: 2px; height: 1em; margin-left: 3px; background: #6681b9; vertical-align: -.12em; }
.ai-panel { position: absolute; left: 0; top: 64px; bottom: 0; width: 286px; border-right: 1px solid #e0e5ef; padding: 35px 23px; background: #fff; }
.ai-user { font-size: 16px; line-height: 1.65; margin: 0 0 30px; padding: 13px 16px; border-radius: 12px; background: #f0f3f9; color: #32435f; min-height: 105px; }
.ai-answer { font-size: 15px; line-height: 1.75; color: #647087; }
.ai-answer .glyph { color: #3e5277; margin-bottom: 10px; }
.ai-ready { border: 1px solid #dce4f3; border-radius: 10px; padding: 14px 13px; color: #4b5f81; font-size: 14px; margin-top: 24px; background: #fafbfe; }
.ai-ready strong { display: block; font-size: 14px; font-weight: 560; margin-bottom: 7px; color: #304567; }
.ai-composer { position: absolute; bottom: 22px; left: 18px; right: 18px; padding: 14px; height: 93px; border: 1px solid #dce2ee; border-radius: 14px; font-size: 14px; color: #9aa3b3; }
.ai-send { position: absolute; right: 11px; bottom: 10px; height: 27px; width: 27px; background: #e9edf4; color: #79869b; border-radius: 50%; text-align: center; line-height: 26px; font-size: 18px; }
.sketch-ready-screen { position: absolute; inset: 100px 0 50px 287px; display: grid; place-content: center; text-align: center; color: #8894a7; font-size: 16px; gap: 17px; }
.sketch-ready-screen .glyph { color: #a4b2c9; }
.sketch-ready-screen .glyph svg { width: 40px; height: 40px; stroke-width: 1.25; }
.sketch-document { padding: 35px 42px; }
.sketch-document h1 { margin: 0; color: #243653; font-size: 32px; letter-spacing: -.04em; font-weight: 630; }
.sketch-document p { margin: 10px 0 0; font-size: 18px; color: #8290a6; }
.sketch-svg { position: absolute; left: 42px; top: 100px; width: 716px; height: 300px; overflow: visible; }
.sketch-ground { stroke: #c6cfde; stroke-width: 1.5; }
.sketch-trajectory { fill: none; stroke: #ccd8f2; stroke-width: 2.5; stroke-dasharray: 5 8; }
.sketch-trail { fill: none; stroke: #597ddd; stroke-width: 3; stroke-linecap: round; }
.projectile-halo { fill: #edf2ff; }
.projectile { fill: #5178dc; stroke: #fff; stroke-width: 3; }
.sketch-ticks { font-family: var(--font-body); font-size: 14px; fill: #8b99af; }
.angle-control { position: absolute; left: 88px; right: 88px; bottom: 42px; font-size: 19px; color: #53637d; }
.angle-label { display: flex; justify-content: space-between; align-items: center; margin-bottom: 21px; }
.angle-value { font-size: 24px; color: #4f70c3; font-variant-numeric: tabular-nums; }
.angle-track { height: 5px; background: #e6ebf4; border-radius: 3px; position: relative; }
.angle-fill { position: absolute; height: 5px; top: 0; left: 0; background: #97ade7; border-radius: 3px; }
.angle-knob { width: 19px; height: 19px; position: absolute; top: -7px; border: 3px solid #fff; border-radius: 50%; background: #5677ce; box-shadow: 0 1px 5px #4966a530; transform: translateX(-50%); }
.angle-ends { margin-top: 12px; display: flex; justify-content: space-between; font-size: 14px; color: #97a1b4; }
.cursor { position: absolute; z-index: 20; pointer-events: none; transform-origin: 4px 2px; }
.cursor svg { width: 25px; height: 30px; overflow: visible; filter: drop-shadow(0 2px 2px #1a223320); }
.cursor-pen { display: none; }
.cursor.is-pen .cursor-arrow { display: none; }
.cursor.is-pen .cursor-pen { display: block; }
.click-ring { position: absolute; width: 44px; height: 44px; border: 2px solid #7c99e3; border-radius: 50%; z-index: 19; pointer-events: none; }
.player { position: absolute; inset: 0; z-index: 7; background: #f2f4f8; }
.player-paper { position: absolute; inset: 61px 29px 70px; background: white; border: 1px solid #dfe5ef; border-radius: 13px; }
.player-header { position: absolute; top: 24px; left: 34px; right: 34px; display: flex; justify-content: space-between; font-size: 15px; color: #67758d; }
.player-controls { position: absolute; bottom: 23px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 28px; color: #586b88; font-size: 14px; }
.player-controls .glyph svg { height: 19px; width: 19px; }
.player-name { position: absolute; left: 36px; bottom: 25px; font-size: 14px; color: #78869b; }
.caption { min-height: 82px; display: flex; gap: 25px; align-items: center; justify-content: center; padding: 20px 25px; border-top: 1px solid #e2e7f0; }
.caption-step { flex: 0 0 auto; font-size: 12px; font-weight: 650; color: #58677f; letter-spacing: .11em; }
.caption p { font-size: 19px; line-height: 1.4; letter-spacing: -.025em; font-weight: 500; margin: 0; color: #354763; }
.chapter-controls { display: grid; grid-template-columns: minmax(0, 1fr) 50px; align-items: stretch; gap: 10px; margin-top: 15px; }
.chapters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; overflow: hidden; border: 1px solid #d6deeb; border-radius: 13px; background: #f8f9fc; }
.chapters button { position: relative; min-width: 0; min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 12px 10px; border: 0; border-right: 1px solid #dfe5ef; background: transparent; color: #66748a; touch-action: manipulation; }
.chapters button:focus-visible { z-index: 1; outline-offset: -4px; }
.chapters button:last-child { border-right: 0; }
.chapters button::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: #5577d2; transform: scaleX(0); transform-origin: left; transition: transform 180ms ease; }
.chapters button span { font-size: 12px; color: #5f6f87; }
.chapters button strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: 14px; font-weight: 560; }
.chapters button:hover { color: #354f7c; background: #eef2f8; }
.chapters button[aria-current] { color: #304d80; background: #fff; box-shadow: inset 0 0 0 1px #cad6e9; }
.chapters button[aria-current]::after,
.chapters button.is-complete::after { transform: scaleX(1); }
.fullscreen-button { display: inline-flex; align-items: center; justify-content: center; min-width: 50px; min-height: 48px; padding: 10px; border: 1px solid #d6deeb; border-radius: 13px; background: #f8f9fc; color: #5f6e87; touch-action: manipulation; transition: border-color 180ms ease, background 180ms ease, color 180ms ease; }
.fullscreen-button:hover { border-color: #aebfe4; background: #eef2f8; color: #354f7c; }
.fullscreen-button:focus-visible { outline-offset: -4px; }
.fullscreen-button svg { width: 19px; height: 19px; }
.preview-note { text-align: center; font-size: 13px; color: #66758b; margin: 21px 0 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.preview:fullscreen {
  --fullscreen-chrome: 210px;
  width: 100%;
  max-width: none;
  height: 100%;
  background: #f2f4f8;
  padding: 20px max(20px, calc((100vw - (100vh - var(--fullscreen-chrome)) * 1.6) / 2));
  padding: 20px max(20px, calc((100vw - (100dvh - var(--fullscreen-chrome)) * 1.6) / 2));
  overflow: auto;
}
.preview:fullscreen .preview-header, .preview:fullscreen .preview-note { display: none; }
@media (min-width: 1250px) and (max-height: 960px) { .preview { width: min(1120px, calc((100vh - 300px) * 1.6)); padding-top: 20px; } .preview-header { margin-bottom: 14px; } .caption { min-height: 67px; padding: 17px; } .preview-note { margin-top: 10px; } }
@media (max-width: 640px) {
  .preview { width: calc(100% - 24px); padding-top: 20px; }
  .preview-header { font-size: 12px; margin-bottom: 18px; }
  .preview-brand { font-size: 15px; }
  .film { border-radius: 13px; }
  .caption { flex-direction: column; gap: 8px; text-align: center; padding: 18px 12px; min-height: 91px; }
  .caption p { font-size: 16px; }
  .caption-step { font-size: 12px; }
  .chapters button { gap: 5px; padding-inline: 6px; }
  .chapters button strong { font-size: 12px; }
  .preview-note { font-size: 12px; }
}
@media (max-width: 420px) {
  .chapter-controls { grid-template-columns: minmax(0, 1fr) 44px; gap: 8px; }
  .chapters button span { display: none; }
  .fullscreen-button { min-width: 44px; padding-inline: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
  .chapters button::after, .fullscreen-button { transition: none; }
}
@media (forced-colors: active) {
  .chapters button[aria-current], .fullscreen-button { border: 2px solid ButtonText; }
}

/* The landing page sizes each embed to its full natural content height.
   Avoid nested scroll containers, including during a caption/width change. */
html[data-embed="hero"], [data-embed="hero"] body { min-width: 0; min-height: 0; height: auto; }
html[data-embed="hero"] { overflow: hidden; }
[data-embed="hero"] body { overflow: visible; }
[data-embed="hero"] .preview:not(:fullscreen) { position: relative; width: 100%; margin: 0; padding: 0 0 8px; }
[data-embed="hero"] .preview-header { display: none; }
[data-embed="hero"] .preview-note { position: absolute; width: 1px; height: 1px; padding: 0; margin: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* Keep accessible descriptions inside the measured surface: their static
   position and default paragraph margins must not extend below the controls. */
[data-embed="hero"] .sr-only, [data-embed="hero"] .preview-note { top: 0; left: 0; margin: 0; }
[data-embed="hero"] .film { box-shadow: none; }
[data-embed="hero"] .caption { flex-direction: column; gap: 8px; min-height: 100px; padding: 18px 16px; text-align: center; }
[data-embed="hero"] .caption-step { font-size: 12px; }
[data-embed="hero"] .caption p { font-size: 16px; }
[data-embed="hero"] .chapter-controls { margin-top: 12px; }
