/* path.css: three stages joined by a progress line (01 > 02 > 03) */
.path__steps {
  position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2.5vw, 2rem);
  --media-h: clamp(220px, 24vw, 320px);
}
/* the progress line runs behind the step numbers */
.path__steps::before {
  content: ""; position: absolute; inset-inline: 8%; top: calc(var(--media-h, 300px) + 2.1rem);
  height: 2px; background: linear-gradient(to left, var(--brand), var(--plum));
}
.step {
  position: relative; display: flex; flex-direction: column;
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .5s var(--ease-out);
}
.step:hover { transform: translateY(-6px); }
.step__media { position: relative; }
/* keep faces in frame: photos and loops of people are anchored to the top; set --focus per card when needed */
.step__media > img, .step__media > video { object-position: var(--focus, 50% 0%); }
.step__media img { width: 100%; height: var(--media-h); object-fit: cover; }
.step__body { position: relative; display: flex; flex-direction: column; gap: .55rem; padding: 2.6rem 1.6rem 1.8rem; flex: 1; }
.step__no {
  position: absolute; top: -1.5rem; inset-inline-start: 1.6rem;
  display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%;
  background: var(--plum); color: var(--white); font-weight: 400; font-size: 1rem;
  box-shadow: 0 0 0 6px var(--white);
}
.step__title { font: 400 clamp(1.45rem, 1.2rem + .9vw, 1.9rem)/1.2 var(--font-display); color: var(--plum); }
.step__who { color: var(--soft); }
/* the track name sits above the title as a small label */
.step__course { font-size: .85rem; font-weight: 500; letter-spacing: .08em; color: var(--soft); }
.step__text { flex: 1; display: grid; gap: .55rem; align-content: start; }
.path__lead { display: grid; gap: .5rem; margin-top: 1.1rem; }
.path__foot-title { font: 400 1.5rem/1.2 var(--font-display); color: var(--plum); margin-bottom: .3rem; }
.step .btn { margin-top: 1rem; align-self: flex-start; }

.path__foot {
  margin-top: 2.5rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem 2rem;
  padding: 1.6rem clamp(1.3rem, 3vw, 2.2rem); border-radius: var(--radius); background: var(--lilac);
}
.path__foot > div { flex: 1 1 26rem; max-width: 40rem;
}

/* intro: heading beside the course-day loop (Chen with students) in an arch */
.path__intro { display: grid; grid-template-columns: 1fr auto; gap: clamp(1.5rem, 5vw, 4rem); align-items: end; margin-bottom: clamp(2.2rem, 5vw, 3.5rem); }
.path__intro .section__head { margin-bottom: 0; }
.path__day {
  position: relative; width: clamp(200px, 22vw, 300px); aspect-ratio: 9 / 14; overflow: hidden;
  border-radius: 999px 999px var(--radius) var(--radius); border: 8px solid var(--white); box-shadow: var(--shadow);
  background: var(--lilac-deep);
}
.path__day img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
/* a still from the course day (Chen smiling at the camera): zoom on the faces in the top-left so the table stays out.
   The moving clip was dropped here: for most of it Chen is turned away and only her hair shows. */
/* new course-day loop (other shoot): framed already, no zoom needed */
@media (max-width: 700px) {
  .path__intro { grid-template-columns: 1fr; }
  .path__day { width: min(72%, 280px); justify-self: center; }
}

/* the plum ring that travels 01 > 02 > 03 (removed 2026-11-08, Linoy disliked it) */
.path .container { position: relative; }
.path__drop {
  position: absolute; left: 0; top: 0; z-index: 3; width: 4.4rem; height: 4.4rem; margin: -2.2rem 0 0 -2.2rem;
  border-radius: 50%; border: 2px solid var(--brand); pointer-events: none; will-change: transform;
}
.path__drop::after { /* the drop of polish riding on the ring */
  content: ""; position: absolute; top: -6px; left: 50%; width: 11px; height: 11px; translate: -50% 0;
  border-radius: 50% 50% 50% 0; rotate: -45deg; background: var(--plum);
}
.path__drop[hidden] { display: none; }
.step__no { transition: transform .4s var(--ease-out); }
.step__no.is-landed { transform: scale(1.12); }

/* desktop: the three cards stack on top of each other while scrolling (sticky, offset by --i) */
@media (min-width: 901px) {
  .path__steps { grid-template-columns: 1fr; gap: 2rem; --media-h: 100%; }
  .path__steps::before { display: none; }
  .step { position: sticky; top: calc(120px + var(--i, 0) * 22px); flex-direction: row; min-height: min(460px, 72svh); }
  .step:hover { transform: none; }
  .step__media { flex: 0 0 44%; }
  .step__media img { position: absolute; inset: 0; height: 100%; }
  .step__body { justify-content: center; padding: 2.4rem clamp(1.6rem, 4vw, 3.4rem); }
  .step__no { position: static; margin-bottom: .4rem; }
  .step__text { flex: 0; }
}

@media (max-width: 900px) {
  .path__steps { grid-template-columns: 1fr; }
  .path__steps::before { inset-inline: auto; inset-inline-start: 2.95rem; top: 0; bottom: 0; width: 2px; height: auto;
    background: linear-gradient(to bottom, var(--brand), var(--plum)); }
  .path__steps { --media-h: 220px; }
}

/* card 01: a graduate's photo with a slow, gentle zoom (a different student on every card) */
.step__media .kenburns { object-position: 50% 30%; animation: kenburns 14s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.12) translateY(-2%); } }
html.a11y-no-motion .kenburns { animation: none; }
@media (prefers-reduced-motion: reduce) { .kenburns { animation: none; } }
