/* Hero interaction layer: autoplay progress, pause control, restrained depth. */
.hero-photo, .floating-course { transition: translate .3s cubic-bezier(.2,.7,.3,1); }

.floating-course { --focus-progress: 0; }
.focus-line { position: relative; overflow: hidden; }
.focus-line-fill {
  position: absolute;
  left: 0;
  top: 50%;
  translate: 0 -50%;
  height: 2px;
  border-radius: 2px;
  width: calc(var(--focus-progress, 0) * 100%);
  background: var(--red, #bd1234);
  opacity: .85;
  pointer-events: none;
}
.focus-autoplay-off .focus-line-fill { opacity: .35; }

.focus-autoplay {
  width: 26px;
  height: 26px;
  margin-left: auto;
  margin-right: 8px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid #0000001f;
  border-radius: 50%;
  background: #00000008;
  color: inherit;
  cursor: pointer;
  transition: background .22s, border-color .22s;
}
.focus-autoplay:hover, .focus-autoplay:focus-visible { background: #0000001a; border-color: #00000038; }
.focus-autoplay[hidden] { display: none; }
/* Pause glyph: two bars, replaced by a triangle when paused. */
.focus-autoplay span {
  width: 8px;
  height: 9px;
  background:
    linear-gradient(var(--red, #bd1234), var(--red, #bd1234)) left / 3px 100% no-repeat,
    linear-gradient(var(--red, #bd1234), var(--red, #bd1234)) right / 3px 100% no-repeat;
}
.focus-autoplay[aria-pressed="true"] span {
  width: 0;
  height: 0;
  background: none;
  border-left: 8px solid var(--red, #bd1234);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  margin-left: 2px;
}

@media (max-width: 899px) {
  .focus-autoplay { margin-right: 6px; }
  .hero-photo, .floating-course { translate: none; }
}
@media (pointer: coarse) {
  .hero-photo, .floating-course { translate: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-photo, .floating-course { translate: none !important; transition: none; }
  .focus-line-fill { display: none; }
}
