.orbit-scene {
  --orbit-ink: #f6f4ee;
  --orbit-soft: #adbdc1;
  --orbit-amber: #ffb892;
  --orbit-rule: #354950;
  padding-block: clamp(5.2rem, 10vw, 9rem);
  background: #101b21;
  color: var(--orbit-ink);
}

.orbit-layout {
  display: grid;
  grid-template-columns: minmax(0, .79fr) minmax(0, 1.21fr);
  grid-template-areas: "intro graphic" "chapters graphic";
  gap: clamp(2.5rem, 6vw, 5rem) clamp(2.25rem, 7vw, 6.5rem);
  align-items: start;
}

.orbit-intro { grid-area: intro; }
.orbit-kicker { display: flex; align-items: center; gap: .55rem; color: var(--orbit-amber); }
.orbit-kicker span { width: .35rem; height: .35rem; background: currentColor; border-radius: 50%; }
.orbit-intro h2 {
  margin: .85rem 0 1.4rem;
  font: 500 clamp(3.7rem, 7.5vw, 7rem)/.88 var(--display);
  letter-spacing: -.073em;
}

.orbit-intro > p:not(.eyebrow) {
  max-width: 34ch;
  color: var(--orbit-soft);
  font-size: clamp(1.02rem, 1.6vw, 1.21rem);
  line-height: 1.62;
}

.orbit-link { margin-top: .95rem; color: var(--orbit-ink); text-decoration-color: #73898e; }
.orbit-link:hover, .orbit-link:focus-visible { color: var(--orbit-amber); }
.orbit-scene :focus-visible { outline-color: var(--orbit-amber); }
.orbit-figure { min-width: 0; grid-area: graphic; margin: 0; }
.orbit-frame {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid var(--orbit-rule);
  border-radius: .55rem;
  background: #132229;
}

.orbit-frame-header {
  position: absolute;
  z-index: 1;
  inset: .85rem .95rem auto;
  display: flex;
  justify-content: space-between;
  gap: .5rem;
  color: var(--orbit-soft);
  font: .66rem/1.2 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.orbit-frame-header b {
  display: inline-block;
  width: .36rem;
  height: .36rem;
  margin-left: .25rem;
  border-radius: 50%;
  background: #a9e7e1;
}

.orbit-graphic { width: 100%; height: auto; }
.orbit-graphic text {
  fill: currentColor;
  font: 500 15px/1 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: .03em;
}

.orbit-collision { color: #bbdce1; }
.orbit-segments { color: #a9e7e1; }
.orbit-vertex { color: var(--orbit-amber); }

.orbit-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .35rem;
  margin-bottom: .6rem;
}

.orbit-controls button {
  min-height: 44px;
  border: 1px solid var(--orbit-rule);
  border-radius: .35rem;
  padding: .58rem .3rem;
  background: transparent;
  color: var(--orbit-ink);
  font-size: clamp(.76rem, 1.3vw, .93rem);
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}

.orbit-controls button span {
  margin-right: .32em;
  color: var(--orbit-soft);
  font: .75em ui-monospace, SFMono-Regular, Consolas, monospace;
}

.orbit-controls button:hover { border-color: #82a3aa; }
.orbit-controls button[aria-pressed="true"] { border-color: #a9e7e1; background: #a9e7e1; color: #142a2b; }
.orbit-controls button[aria-pressed="true"] span { color: #30504f; }
.orbit-caption { display: flex; justify-content: space-between; align-items: baseline; gap: .25rem 1.25rem; margin-top: .85rem; }
.orbit-readout { min-height: 2.7em; color: var(--orbit-ink); font-size: .91rem; line-height: 1.4; }
.orbit-scale { flex: none; color: var(--orbit-soft); font: .67rem/1.4 ui-monospace, SFMono-Regular, Consolas, monospace; }

.orbit-chapters { grid-area: chapters; margin: 0; padding: 0; list-style: none; }
.orbit-chapters li {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: .55rem;
  align-content: start;
  border-top: 1px solid var(--orbit-rule);
  padding-block: 1.35rem;
}

.orbit-chapter-no { padding-top: .24rem; color: var(--orbit-amber); font: .84rem/1.4 ui-monospace, SFMono-Regular, Consolas, monospace; }
.orbit-chapters h3 { font: 500 clamp(1.6rem, 2.8vw, 2.3rem)/1.1 var(--display); letter-spacing: -.035em; }
.orbit-chapters p { max-width: 35ch; margin-top: .45rem; color: var(--orbit-soft); font-size: .95rem; }
.orbit-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

@media (max-width: 850px) {
  .orbit-layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "intro" "graphic" "chapters"; gap: 2.4rem; }
  .orbit-intro h2 br { display: none; }
  .orbit-figure { max-width: 39rem; }
}

@media (max-width: 550px) {
  .orbit-caption { flex-direction: column; }
  .orbit-readout { min-height: 0; }
  .orbit-frame-header { inset: .5rem .65rem auto; font-size: .57rem; }
  .orbit-graphic text { font-size: 19px; }
}

@media (min-width: 1000px) and (min-height: 720px) and (pointer: fine) and (hover: hover) {
  .orbit-scene[data-orbit-scroll] .orbit-figure {
    position: sticky;
    top: 5.45rem;
    width: min(100%, calc((100svh - 13rem) * 1.18));
    justify-self: end;
  }
  .orbit-scene[data-orbit-scroll] .orbit-chapters li { min-height: clamp(10rem, 28svh, 16rem); }
  .orbit-scene[data-orbit-scroll] .orbit-chapters li[aria-current="step"] { border-color: #a9e7e1; }
  .orbit-scene[data-orbit-scroll] .orbit-chapters li[aria-current="step"] .orbit-chapter-no { color: #a9e7e1; }
}
