/* Three stops around one clockwise path. The fox has a separate grid column. */
.intro:has(.learning-cycle-art) {
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
}
.hero-art.learning-cycle-art {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(0, 1fr);
  align-items: center;
  align-content: center;
  gap: clamp(2px, .7vw, 11px);
  padding: 20px clamp(14px, 1.8vw, 28px) 20px 0;
  margin: 0;
  height: auto;
  min-width: 0;
}
.cycle-mascot {
  display: block;
  width: 100%;
  height: auto;
  mix-blend-mode: multiply;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 93%, transparent), linear-gradient(0deg, transparent, black 6%, black 92%, transparent);
  mask-composite: intersect;
}
.learning-story {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
  align-items: center;
  gap: clamp(12px, 4vw, 72px);
  margin-bottom: clamp(54px, 6vw, 88px);
  padding: clamp(20px, 3vw, 42px) clamp(24px, 5vw, 72px);
  border-radius: 24px;
  background: #f2ecfa;
}
.learning-story .hero-copy { padding: 0; }
.learning-story .hero-copy h2 { font-size: clamp(26px, 3.4vw, 46px); line-height: 1.08; letter-spacing: -.055em; }
.learning-story .hero-copy p { margin: 12px 0 0; }
.learning-story .learning-cycle-art { margin: 0; padding: 0; }
@media (max-width: 680px) {
  .learning-story { grid-template-columns: minmax(0, 1fr); }
  .learning-story .learning-cycle-art { width: min(100%, 330px); justify-self: center; }
}
.cycle-wheel {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  isolation: isolate;
  container-type: inline-size;
}
.cycle-track {
  position: absolute;
  inset: 14%;
  border: 2px solid #aa80d6;
  border-radius: 50%;
}
.cycle-arrow {
  position: absolute;
  z-index: 1;
  width: 0;
  height: 0;
  border: 5px solid transparent;
  border-left: 9px solid #7340b4;
  border-right: 0;
  transform: translate(-50%, -50%) rotate(var(--arrow-angle));
}
.cycle-arrow--watch { left: 81.2%; top: 32%; --arrow-angle: 60deg; }
.cycle-arrow--card { left: 50%; top: 86%; --arrow-angle: 180deg; }
.cycle-arrow--talk { left: 18.8%; top: 32%; --arrow-angle: -60deg; }
.cycle-steps { list-style: none; margin: 0; padding: 0; }
.cycle-step {
  position: absolute;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: clamp(5px, 1.8cqi, 8px);
  width: 36%;
  transform: translate(-50%, -50%);
  text-align: center;
}
.cycle-step--watch { left: 50%; top: 14%; }
.cycle-step--card { left: 81.2%; top: 68%; }
.cycle-step--talk { left: 18.8%; top: 68%; }
.cycle-label {
  display: block;
  padding: 2px 4px;
  color: #392248;
  background: #efe3fa;
  border-radius: 7px;
  font-size: clamp(12px, 4.3cqi, 15px);
  font-weight: 650;
  line-height: 1.17;
  text-wrap: balance;
}
.cycle-still,
.cycle-flashcard {
  position: relative;
  width: 88%;
  aspect-ratio: 1.58;
  border: 3px solid white;
  border-radius: 9px;
  background: white;
  box-shadow: 0 4px 12px #42205a22;
}
.cycle-still { overflow: hidden; }
.cycle-still img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cycle-play {
  position: absolute; left: 6px; bottom: 5px;
  width: 0; height: 0;
  border: 4px solid transparent;
  border-left: 6px solid white; border-right: 0;
  filter: drop-shadow(0 1px 2px #21162c);
}
.cycle-flashcard {
  display: flex; flex-direction: column; justify-content: center;
  transform: rotate(4deg);
  box-shadow: -3px 3px 0 #ceb6ec, -4px 4px 0 #ae8bce, 0 5px 12px #42205a22;
}
.cycle-flashcard strong { color: var(--accent); font-size: clamp(11px, 4.7cqi, 17px); letter-spacing: -.04em; line-height: 1.1; }
.cycle-flashcard small { color: var(--muted); font-size: clamp(10px, 3.7cqi, 13px); line-height: 1.15; }
.cycle-coach {
  position: relative;
  width: 57%; aspect-ratio: 1;
}
.cycle-coach img {
  display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover;
  border: 3px solid white; box-shadow: 0 4px 12px #42205a22;
}
.cycle-speech {
  position: absolute; bottom: 0; right: -12%;
  display: flex; align-items: center; justify-content: center; gap: 2px;
  width: 45%; height: 34%; border-radius: 8px 8px 8px 2px;
  background: #6b37b7;
}
.cycle-speech b { width: 2px; height: 30%; border-radius: 2px; background: white; }
.cycle-speech b:nth-child(even) { height: 60%; }
.cycle-speech b:nth-child(3) { height: 80%; }
@media (min-width: 661px) and (max-width: 880px) {
  .intro:has(.learning-cycle-art) { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
  .hero-art.learning-cycle-art { grid-template-columns: minmax(0, .63fr) minmax(0, 1fr); padding-right: 10px; }
}
@media (max-width: 660px) {
  html[lang="en"] .hero-copy h1 {
    font-size: clamp(36px, 9.5vw, 56px);
  }
  .intro:has(.learning-cycle-art) { grid-template-columns: minmax(0, 1fr); }
  .hero-art.learning-cycle-art {
    grid-template-columns: minmax(0, .72fr) minmax(0, 1fr);
    width: min(100%, 490px);
    margin-inline: auto;
    padding: 30px 13px 14px;
  }
}
@media (max-width: 385px) {
  .hero-art.learning-cycle-art { grid-template-columns: minmax(0, .51fr) minmax(0, 1fr); padding-inline: 6px; }
  .cycle-label { padding-inline: 1px; font-size: 12px; }
  .cycle-still, .cycle-flashcard { border-width: 2px; border-radius: 6px; }
}

@media (prefers-reduced-motion: no-preference) {
  .cycle-step--watch { --trace-delay: 100ms; }
  .cycle-step--card { --trace-delay: 800ms; }
  .cycle-step--talk { --trace-delay: 1500ms; }

  .cycle-wheel.is-tracing :is(.cycle-still, .cycle-flashcard, .cycle-coach) {
    animation: cycle-step-lift 740ms ease-in-out var(--trace-delay) 1;
  }
  .cycle-wheel.is-tracing .cycle-label {
    animation: cycle-label-highlight 740ms ease-in-out var(--trace-delay) 1;
  }
}

@keyframes cycle-step-lift {
  0%, 100% { translate: 0 0; scale: 1; }
  45% { translate: 0 -2px; scale: 1.035; }
}
@keyframes cycle-label-highlight {
  0%, 100% { background-color: #efe3fa; box-shadow: 0 0 0 0 transparent; }
  45% { background-color: #dfc9f3; box-shadow: 0 0 0 3px #9559c51a; }
}

.demo-section noscript img { max-width: 100%; height: auto; }

