/* The compass is a reading aid, with the same type families as the rest of the site. */
.motion-section {
  position: relative;
  isolation: isolate;
  margin: 0 8px;
  overflow: hidden;
  border-radius: 20px;
  background: #101716;
  color: var(--paper);
}
.motion-image {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, #101716 18%, #101716ed 48%, #101716a6),
    url('assets/photo-DSCF4698.webp') right center / 58% auto no-repeat;
  opacity: .8;
}
.motion-content { padding: 44px var(--gutter) 64px; }
.motion-content .section-kicker { gap: 24px; color: #c6cbc5; }
#motion-pause {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border: 1px solid #ffffff40;
  border-radius: 50%;
  color: var(--paper);
  font: 14px/1 var(--text);
}
#motion-pause:hover { background: #ffffff12; }
.compass-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .85fr);
  align-items: start;
  gap: clamp(48px, 7vw, 120px);
  margin-top: 64px;
}
.compass-copy { min-width: 0; }
.motion-content h2 {
  max-width: 780px;
  margin: 0;
  font: 600 clamp(36px, 3.5vw, 56px)/1.1 var(--display);
  letter-spacing: -.045em;
  text-wrap: balance;
}
.motion-content h2 > span {
  display: block;
  margin-top: 18px;
  font: 400 clamp(24px, 2.2vw, 34px)/1.25 var(--text);
  letter-spacing: -.025em;
  color: #c9cec8;
}
.motion-quote {
  margin-top: 42px;
  min-height: 186px;
  max-width: 580px;
}
.motion-quote p {
  min-height: 4.5em;
  font: 400 clamp(18px, 1.45vw, 21px)/1.5 var(--text);
  letter-spacing: -.01em;
}
.motion-quote .text-link {
  width: 210px;
  margin-top: 24px;
  color: #c9cec8;
  font-size: 12px;
}
.motion-track { position: relative; display: grid; padding: 0; }
.motion-track button {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 20px;
  gap: 24px;
  align-items: center;
  min-height: 106px;
  padding: 26px 0;
  text-align: left;
  color: #a2aaa4;
  font: 400 clamp(18px, 1.5vw, 23px)/1.25 var(--text);
  transition: color .3s;
}
.motion-track button + button::before {
  content: '';
  position: absolute;
  left: 72px;
  right: 0;
  top: 0;
  border-top: 1px solid #ffffff24;
}
.motion-track .node {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid #6f7b73;
  border-radius: 50%;
  background: #151e1a;
  font: 400 13px/1 var(--text);
  transition: color .4s, background .4s, border-color .4s;
}
.motion-track button[aria-pressed='true'] { color: var(--paper); }
.motion-track button[aria-pressed='true'] .node {
  color: var(--ink);
  background: var(--paper);
  border-color: var(--paper);
  animation: compass-pulse 4s ease-in-out infinite;
}
.stage-arrow { opacity: 0; transition: opacity .3s, transform .3s; }
.motion-track button[aria-pressed='true'] .stage-arrow,
.motion-track button:hover .stage-arrow { opacity: 1; }
.motion-track button:hover { color: var(--paper); }
.motion-track button:hover .stage-arrow { transform: translate(2px, -2px); }
.track-line {
  position: absolute;
  left: 23.5px;
  top: 53px;
  bottom: 53px;
  width: 1px;
  overflow: hidden;
  background: #ffffff24;
}
.track-line::after {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 64px;
  background: linear-gradient(transparent, #d3c3aa, transparent);
  animation: compass-beam 7s linear infinite;
}
.motion-section.paused * { animation-play-state: paused !important; }
@keyframes compass-beam {
  from { transform: translateY(-64px); }
  to { transform: translateY(230px); }
}
@keyframes compass-pulse {
  0%, 100% { box-shadow: 0 0 0 0 #ffffff00; }
  50% { box-shadow: 0 0 0 7px #ffffff0a; }
}
@media (max-width: 900px) {
  .compass-layout { grid-template-columns: minmax(0, 1.15fr) minmax(240px, .85fr); gap: 40px; }
  .motion-track button { gap: 18px; }
  .motion-track button + button::before { left: 66px; }
}
@media (max-width: 700px) {
  .motion-content { padding: 30px 24px 40px; }
  .motion-content .section-kicker { font-size: 9px; gap: 16px; }
  .compass-layout { grid-template-columns: minmax(0, 1fr); gap: 30px; margin-top: 42px; }
  .motion-content h2 { max-width: 540px; font-size: clamp(30px, 6.5vw, 40px); }
  .motion-content h2 > span { margin-top: 14px; font-size: 24px; line-height: 1.3; }
  .motion-quote { margin-top: 28px; min-height: 198px; }
  .motion-quote p { font-size: 18px; }
  .motion-quote .text-link { margin-top: 20px; }
  .motion-track { max-width: 540px; }
  .motion-track button { min-height: 84px; padding: 18px 0; font-size: 20px; }
  .track-line { top: 42px; bottom: 42px; }
  .motion-image { background-size: auto 100%; background-position: 60% center; opacity: .45; }
}
@media (max-width: 380px) {
  .motion-content { padding-inline: 20px; }
  .motion-content h2 > span { font-size: 22px; }
  .motion-quote { min-height: 232px; }
  .motion-quote p { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .motion-section *, .motion-section *::after { animation: none !important; transition: none !important; }
}
