#sequence {
  row-gap: 45px;
}
.beat-heading {
  min-height: 80px;
}
.beat-heading > span {
  font-size: 11px;
  color: var(--teal);
  letter-spacing: 1px;
}
.beat-heading h2 {
  font-size: 21px;
  margin-top: 12px;
}
.story-beat figcaption {
  font-size: 13px;
  line-height: 1.7;
  padding: 20px 10px;
}
.story-beat figcaption strong {
  font-size: 11px;
  color: var(--teal);
}
.story-beat figcaption p {
  margin: 5px 0 15px;
}
.story-beat .float-tag {
  top: 77%;
}
.disclosure-body {
  padding: 14px 20px;
}
.document-row {
  display: flex;
  gap: 12px;
  padding: 10px 8px;
  border-radius: 8px;
}
.document-row > span {
  font-size: 9px;
  color: var(--teal);
  padding-top: 3px;
}
.document-row strong {
  font-size: 11px;
}
.document-row p {
  font-size: 10px;
  margin: 4px 0;
}
.selected {
  background: var(--mint);
}
.document-diagram {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  color: var(--teal);
}
.document-diagram .cells i {
  height: 24px;
}
.connection {
  width: 35px;
  height: 1px;
  background: #88b8c0;
}
.analysis-body {
  padding: 22px;
}
.analysis-flow {
  display: flex;
  align-items: center;
  justify-content: center;
}
.invention-node {
  padding: 16px 12px;
  background: #f3f7f6;
  border-radius: 9px;
}
.invention-node small {
  display: block;
  font-size: 9px;
  text-align: center;
  margin-top: 12px;
}
.links {
  width: 35px;
  display: grid;
  gap: 20px;
}
.links i {
  height: 1px;
  background: #88b8c0;
  transform: rotate(-10deg);
}
.source-stack {
  display: grid;
  gap: 6px;
}
.source-stack > div {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid #c0c8cb;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 9px;
  color: var(--teal);
}
.source-stack svg {
  width: 15px;
  height: 15px;
}
.source-stack b {
  margin-left: 10px;
}
.analysis-status {
  display: flex;
  gap: 9px;
  margin: 20px 0 15px;
}
.analysis-status strong {
  display: block;
  font-size: 11px;
}
.analysis-status small {
  display: block;
  font-size: 9px;
  margin-top: 5px;
  color: var(--muted);
}
.comparison {
  display: grid;
  grid-template-columns: 1fr 24px 24px 24px;
  gap: 8px;
  font-size: 9px;
}
.comparison i {
  background: #88b8c0;
  border-radius: 3px;
}
.comparison .open {
  background: #edf1f1;
  border: 1px dashed #647488;
}
.opening {
  text-align: center;
  padding-top: 50px;
}
.opening-motif .cells {
  justify-content: center;
  margin-bottom: 22px;
}
.opening strong {
  font: 600 18px Rubik;
  color: var(--teal);
}
.opening p {
  font-size: 11px;
}
.motion-notes {
  margin-top: 60px;
  max-width: 1000px;
}
.notes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 30px;
}
.notes-grid p {
  font-size: 13px;
}
.notes-grid strong {
  color: var(--teal);
}
@media (max-width: 500px) {
  .story-beat .float-tag {
    top: 83%;
    padding: 7px 10px;
  }
  .story-beat .back-sheet {
    height: 295px;
  }
  .disclosure-body {
    padding: 10px;
  }
  .document-row {
    padding: 8px;
  }
  .analysis-body {
    padding: 16px 12px;
  }
  .invention-node {
    padding: 12px 8px;
  }
  .invention-node .cells {
    gap: 3px;
  }
  .invention-node .cells i {
    width: 12px;
  }
  .source-stack > div {
    padding: 7px;
  }
  .links {
    width: 20px;
  }
  .notes-grid {
    grid-template-columns: 1fr;
  }
  .report-grid {
    margin-top: 12px;
  }
  .finding small {
    font-size: 8px;
  }
  .beat-heading h2 {
    font-size: 19px;
  }
}

.motion-main {
  max-width: 1100px;
}
.motion-main h1 {
  font-size: 40px;
}
.motion-main > .stage {
  height: 580px;
  max-width: 850px;
  margin: auto;
}
.motion-scene {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.motion-scene .card {
  left: 17%;
  width: 66%;
  top: 17%;
  height: 365px;
}
.motion-scene .small-sheet {
  top: 10%;
  left: 10%;
}
.motion-scene .float-tag {
  top: 76%;
  right: 9%;
}
.motion-main .back-sheet {
  left: 20%;
  width: 66%;
  top: 20%;
  height: 365px;
}
.motion-main .progress {
  z-index: 8;
}
.controls {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 25px auto;
  max-width: 850px;
  flex-wrap: wrap;
}
.controls button,
.controls select {
  font: inherit;
  background: white;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 9px 13px;
  color: var(--teal);
}
.controls button {
  cursor: pointer;
}
.controls input {
  flex: 1;
  min-width: 100px;
  accent-color: var(--teal);
}
.controls output,
.controls label {
  font-size: 12px;
  color: var(--muted);
}
.review-note {
  text-align: center;
  font-size: 12px;
}
.battery-pack {
  width: 180px;
  height: 80px;
  flex-shrink: 1;
}
.mechanism {
  margin-top: 6px;
  height: 90px;
}
.mechanism .flow-line,
.mechanism .sensor,
.mechanism-label {
  display: none;
}
.diagram {
  padding: 5px;
}
.diagram .battery-pack {
  width: 100%;
  height: 75px;
}
.document-diagram {
  margin-top: 0;
}
.document-diagram .battery-pack {
  width: 180px;
  height: 68px;
}
.document-diagram .connection,
.document-diagram > svg:not(.battery-pack) {
  display: none;
}
.invention-node {
  padding: 8px;
}
.invention-node .battery-pack {
  width: 170px;
  height: 90px;
}
.report-grid {
  grid-template-columns: 1fr 1fr;
}
.conversation {
  padding-top: 14px;
}
.bubble {
  min-height: 40px;
}
.motion-scene .card-head {
  min-height: 70px;
}
.coolant {
  stroke-dasharray: 4 3;
}
.controls :focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}
@media (max-width: 600px) {
  .motion-main > .stage {
    height: 460px;
  }
  .motion-scene .card {
    left: 5%;
    width: 90%;
    top: 10%;
    height: 330px;
  }
  .motion-scene .small-sheet {
    display: none;
  }
  .motion-main .back-sheet {
    left: 8%;
    width: 87%;
    top: 13%;
    height: 330px;
  }
  .motion-scene .float-tag {
    top: 79%;
    right: 4%;
  }
  .invention-node .battery-pack {
    width: 120px;
    height: 75px;
  }
  .mechanism {
    height: 80px;
  }
  .motion-main h1 {
    font-size: 30px;
  }
  .controls {
    gap: 8px;
  }
  .controls label {
    width: 100%;
  }
  .motion-main .report-title {
    font-size: 19px;
  }
}

body {
  background: transparent;
}
.motion-main {
  padding: 0;
  max-width: none;
}
.motion-main > .stage {
  background: transparent;
  border-radius: 0;
  width: 100%;
  max-width: none;
}
.orbit {
  display: none;
}
.motion-scene {
  opacity: 0;
}
.motion-scene[data-scene='3'] {
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  /* Static reduced-motion content must not retain animation transform layers. */
  .motion-scene,
  .motion-scene .card,
  .motion-scene .float-tag,
  .motion-scene .report-title,
  .motion-scene .report-grid,
  .motion-scene .finding {
    transform: none !important;
  }
  .motion-main .back-sheet {
    transform: none;
  }
}

/* Enlarge the approved panels within the existing transparent canvas. */
.motion-scene .card {
  left: 13%;
  width: 74%;
  height: 385px;
}
.motion-main .back-sheet {
  left: 16%;
  width: 74%;
  height: 385px;
}
@media (max-width: 600px) {
  .motion-scene .card {
    left: 3%;
    width: 94%;
    height: 340px;
  }
  .motion-main .back-sheet {
    left: 6%;
    width: 91%;
    height: 340px;
  }
}

/* Desktop iframe has a 48px transparent gutter around the text-sized panel. */
.desktop-layout .motion-main > .stage {
  height: 100vh;
}
.desktop-layout .motion-scene .card {
  left: 48px;
  top: 48px;
  width: calc(100% - 96px);
  height: calc(100% - 96px);
}
.desktop-layout .motion-main .back-sheet {
  left: 64px;
  top: 64px;
  width: calc(100% - 96px);
  height: calc(100% - 96px);
}
.desktop-layout .motion-scene .small-sheet {
  left: 16px;
  top: 16px;
}
.desktop-layout .motion-scene .float-tag {
  top: auto;
  bottom: 32px;
  right: 24px;
}
