.research-directions { align-items: start; }
.research-direction-disclosure summary {
  display: block;
  width: auto;
  margin: 0;
  list-style: none;
}
.research-direction-disclosure summary::-webkit-details-marker { display: none; }
.research-direction-disclosure summary:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 5px;
}
.focus-heading { display: flex; align-items: center; }
.focus-heading .research-direction-icon { flex: none; }
.focus-marker {
  margin-left: auto;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 6px solid currentColor;
}
.research-direction-disclosure[open] .focus-marker { transform: rotate(90deg); }
.focus-intro {
  display: block;
  margin: 5px 0 9px;
  color: var(--text-color);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: normal;
  line-height: 1.65;
}
.focus-demo {
  display: block;
  position: relative;
  aspect-ratio: 320 / 86;
  overflow: hidden;
  border-radius: var(--inner-radius);
  background: #162535;
}
.focus-demo > :first-child {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.research-direction-disclosure .research-direction-note {
  margin: 9px 0 0;
  line-height: 1.55;
}

@media (min-width: 541px) {
  /* Share rows for the heading, introduction, artwork, and expanded note. */
  .research-direction,
  .research-direction-disclosure,
  .research-direction-disclosure summary {
    display: grid;
    grid-template-rows: subgrid;
    row-gap: 0;
  }
  .research-direction { grid-row: span 4; align-self: stretch; }
  .research-direction-disclosure { grid-row: 1 / -1; }
  .research-direction-disclosure summary { grid-row: 1 / span 3; }
}

.rf-vc-scene { display: block; width: 100%; height: auto; }
.rf-vc-divider { transform: translateX(162px); }
.rf-build-paper, #rf-cathedral-guides, .rf-code-line { display: none; }
.rf-build-arch { stroke: #cce4e8; stroke-width: .9; }
.rf-build-petal { stroke: #ffd392; stroke-width: .95; }
.rf-code-line rect { fill: #14252e; fill-opacity: .94; }
.rf-code-line text { fill: #e7f4f0; font: 9.3px ui-monospace, monospace; }
@media (prefers-reduced-motion: no-preference) {
  .rf-vc-playing .rf-build-paper,
  .rf-vc-playing #rf-cathedral-guides,
  .rf-vc-playing .rf-code-line { display: inline; }
  .rf-vc-playing #rf-cathedral-guides { animation: rf-guides-out .7s ease-in 2.57s both; }
  .rf-vc-playing .rf-build-arch, .rf-vc-playing .rf-build-petal {
    stroke-dasharray: 1 1;
    animation: rf-trace .95s ease-out .08s both;
  }
  .rf-vc-playing .rf-build-petal {
    animation-duration: .47s;
    animation-delay: calc(1.02s + var(--i) * .059s);
  }
  .rf-vc-playing .rf-paint-stage {
    animation: rf-pigment-in .55s ease-out calc(2.4s + var(--layer) * .085s) both;
  }
  .rf-vc-playing .rf-code-line { animation: rf-code-caption var(--duration) linear var(--at) both; }
  .rf-vc-playing .rf-vc-divider { animation: rf-vc-sweep 8.5s ease-in-out both; }
}
@keyframes rf-trace {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}
@keyframes rf-guides-out {
  from { opacity: 1; }
  to { opacity: 0; }
}
@keyframes rf-pigment-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes rf-code-caption {
  0%, 100% { opacity: 0; }
  10%, 90% { opacity: 1; }
}
@keyframes rf-vc-sweep {
  0%, 51% { transform: translateX(326px); }
  78%, 86% { transform: translateX(-6px); }
  100% { transform: translateX(160px); }
}

.rf-ha-scene { display: block; width: 100%; height: auto; }
.rf-ha-wake-trail {
  stroke: #a8f2d9;
  stroke-width: 2.15;
  stroke-dasharray: 1 1;
  stroke-linejoin: round;
}
