/**
 * Home 2026 animation interlude.
 * The band matches the animation's flat field so the square edge disappears.
 * Sampled from the derivative, top-left 64×64 of frame 1: rgb(222, 222, 219).
 */

body.ys-home-2026 .ys-interlude {
  margin: 0;
  padding: clamp(1.75rem, 3.5vw, 2.75rem) 0 clamp(2.9rem, 5.8vw, 5.4rem);
  background: #dededb;
  border: 0;
}

body.ys-home-2026 .ys-interlude + .ys-teacher {
  margin-top: 0;
}

body.ys-home-2026 .ys-interlude__frame {
  position: relative;
  width: min(14rem, 58vw);
  aspect-ratio: 1 / 1;
  margin-right: auto;
  margin-left: auto;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  pointer-events: none;
}

body.ys-home-2026 .ys-interlude__still,
body.ys-home-2026 .ys-interlude__video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

body.ys-home-2026 .ys-interlude__video {
  display: none;
}

body.ys-home-2026 .ys-interlude__control {
  position: absolute;
  right: 0.875rem;
  bottom: 0.875rem;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1875rem;
  height: 2.1875rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(244, 241, 234, 0.62);
  color: #0c2832;
  pointer-events: auto;
  cursor: pointer;
}

body.ys-home-2026 .ys-interlude__control::before {
  content: "";
  position: absolute;
  inset: -4.5px;
}

body.ys-home-2026 .ys-interlude__control:hover {
  background: rgba(244, 241, 234, 0.82);
}

body.ys-home-2026 .ys-interlude__control[hidden] {
  display: none;
}

body.ys-home-2026 .ys-interlude__control-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

body.ys-home-2026 .ys-interlude__control-icon {
  position: relative;
  display: block;
  width: 0.5rem;
  height: 0.5625rem;
}

body.ys-home-2026 .ys-interlude__control-icon::before,
body.ys-home-2026 .ys-interlude__control-icon::after {
  content: "";
  position: absolute;
  top: 0;
  width: 0.125rem;
  height: 100%;
  background: currentColor;
}

body.ys-home-2026 .ys-interlude__control-icon::before {
  left: 0;
}

body.ys-home-2026 .ys-interlude__control-icon::after {
  right: 0;
}

body.ys-home-2026 .ys-interlude__control.is-paused .ys-interlude__control-icon {
  width: 0;
  height: 0;
  margin-left: 0.06rem;
  border-style: solid;
  border-width: 0.28rem 0 0.28rem 0.44rem;
  border-color: transparent transparent transparent currentColor;
}

body.ys-home-2026 .ys-interlude__control.is-paused .ys-interlude__control-icon::before,
body.ys-home-2026 .ys-interlude__control.is-paused .ys-interlude__control-icon::after {
  content: none;
}

body.ys-home-2026 .ys-interlude__control:focus {
  outline: none;
}

body.ys-home-2026 .ys-interlude__control:focus-visible {
  outline: 2px solid #0c2832;
  outline-offset: 2px;
}

html.ys-motion body.ys-home-2026 .ys-interlude__still {
  display: none;
}

html.ys-motion body.ys-home-2026 .ys-interlude__video {
  display: block;
}

html.ys-motion body.ys-home-2026 .ys-interlude.is-complete .ys-interlude__still {
  display: block;
  z-index: 1;
}

html.ys-motion body.ys-home-2026 .ys-interlude.is-complete .ys-interlude__video {
  visibility: hidden;
}

@media (min-width: 800px) {
  body.ys-home-2026 .ys-interlude__frame {
    width: 224px;
  }
}

@media (min-width: 1200px) {
  body.ys-home-2026 .ys-interlude__frame {
    width: 288px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.ys-motion body.ys-home-2026 .ys-interlude__still {
    display: block;
  }

  html.ys-motion body.ys-home-2026 .ys-interlude__video {
    display: none;
  }

  body.ys-home-2026 .ys-interlude__control {
    display: none;
  }
}
