/* Signature animations, adapted from the Capyo X inspo folder (folder drop, workflows in motion, mega menu)
   into Capyo's warm palette. Each one runs only while on screen (.playing). */

.anim-card {
  position: relative;
  border-radius: 22px;
  background: var(--paper);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  isolation: isolate;
}
.anim-card .anim-copy {
  padding: 0 30px 30px;
}
.anim-card .anim-copy h3 {
  font-size: 21px;
}
.anim-card .anim-copy p {
  font-size: 15.5px;
  color: var(--muted);
  margin-top: 8px;
  line-height: 1.55;
}
.anim-tag {
  position: absolute;
  top: 22px;
  left: 26px;
  z-index: 3;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.anim-bars {
  position: absolute;
  top: 22px;
  right: 24px;
  z-index: 3;
  display: flex;
  gap: 3px;
}
.anim-bars i {
  width: 3px;
  height: 16px;
  border-radius: 2px;
  background: rgba(18, 24, 21, 0.12);
}
.anim-bars i:first-child {
  background: var(--orange);
}

/* ---------- 1. folder drop: a file falls into the folder, units come out ---------- */
.fd {
  position: relative;
  height: 340px;
}
.fd .layer {
  position: absolute;
  left: 0;
  top: 0;
  will-change: transform, opacity;
}
.fd .back {
  left: 50%;
  top: 76px;
  width: 230px;
  margin-left: -115px;
}
.fd .front {
  left: 50%;
  top: 118px;
  width: 300px;
  margin-left: -150px;
  transform-origin: 50% 100%;
}
.fd .halo {
  left: 50%;
  top: 70px;
  width: 300px;
  height: 220px;
  margin-left: -150px;
  border-radius: 50%;
  background: radial-gradient(
    ellipse at 50% 55%,
    rgba(240, 138, 60, 0.55),
    rgba(240, 138, 60, 0) 65%
  );
  opacity: 0;
  filter: blur(8px);
}
.fd .core {
  left: 50%;
  top: 138px;
  width: 190px;
  height: 34px;
  margin-left: -95px;
  border-radius: 50%;
  background: radial-gradient(
    ellipse,
    #fff 0%,
    rgba(255, 236, 214, 0.9) 35%,
    rgba(255, 236, 214, 0) 70%
  );
  opacity: 0;
}
.fd .chip {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 14px 9px 10px;
  border-radius: 10px;
  background: #fff;
  box-shadow:
    0 14px 28px -12px rgba(80, 35, 0, 0.35),
    0 0 0 1px rgba(18, 24, 21, 0.06);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
  opacity: 0;
}
.fd .chip svg {
  width: 18px;
  height: 22px;
}
.fd .cur {
  width: 22px;
  height: 28px;
  opacity: 0;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.25));
}
.fd .outs {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 22px;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 0 18px;
}
.fd .out {
  padding: 8px 13px;
  border-radius: 999px;
  background: var(--page);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
  opacity: 0;
  transform: translateY(16px) scale(0.96);
  transition:
    opacity 0.5s ease,
    transform 0.7s var(--ease);
}
.fd .out b {
  color: var(--orange);
  font-weight: 600;
  margin-right: 6px;
}
.fd .out.on {
  opacity: 1;
  transform: none;
}

/* ---------- 2. tool orbit: your tools ride an arc of light ---------- */
.orbit {
  position: relative;
  height: 300px;
  overflow: hidden;
}
.orbit .arc {
  position: absolute;
  left: -10%;
  right: -10%;
  top: 92px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(
    ellipse at 50% 0%,
    rgba(240, 138, 60, 0.42),
    rgba(240, 138, 60, 0.12) 38%,
    rgba(240, 138, 60, 0) 60%
  );
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.7);
}
.orbit .arc::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border-top: 2px solid rgba(196, 78, 0, 0.35);
}
.orbit .tool {
  position: absolute;
  left: 50%;
  top: 0;
  width: 56px;
  height: 56px;
  margin: -28px 0 0 -28px;
  border-radius: 50%;
  background: linear-gradient(180deg, #e2661a, #b84700);
  box-shadow:
    0 10px 22px -8px rgba(160, 60, 0, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  display: grid;
  place-items: center;
  color: #fff;
  will-change: transform, opacity;
}
.orbit .tool svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.orbit .orbit-label {
  position: absolute;
  left: 0;
  right: 0;
  top: 188px;
  text-align: center;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}
.orbit .orbit-label span {
  display: block;
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 2px;
}

/* ---------- 3. team feed: who's ready, rows slide past ---------- */
.feed {
  position: relative;
  height: 300px;
  overflow: hidden;
}
.feed .lane {
  position: absolute;
  left: 18%;
  right: 18%;
  top: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(240, 138, 60, 0.1), rgba(240, 138, 60, 0.22));
  border-radius: 6px;
}
.feed .lane::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    180deg,
    transparent 0 59px,
    rgba(196, 78, 0, 0.08) 59px 60px
  );
}
.feed .track {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  will-change: transform;
}
.feed .person-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 auto 12px;
  width: 72%;
  padding: 10px 14px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 20px -14px rgba(80, 35, 0, 0.4);
  font-size: 13.5px;
  color: var(--ink);
  transition:
    background 0.5s,
    color 0.5s,
    transform 0.5s var(--ease),
    width 0.5s var(--ease);
}
.feed .person-row .av {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
}
.feed .person-row b {
  font-weight: 500;
  display: block;
}
.feed .person-row small {
  display: block;
  font-size: 12px;
  color: var(--muted);
}
.feed .person-row em {
  margin-left: auto;
  font-style: normal;
  font-size: 11.5px;
  color: var(--muted);
}
.feed .person-row.hot {
  background: var(--orange);
  color: #fff;
  transform: translateX(-14px);
  width: 76%;
}
.feed .person-row.hot small,
.feed .person-row.hot em {
  color: #ffe1c7;
}
.feed::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 70px;
  background: linear-gradient(180deg, rgba(255, 250, 242, 0), var(--paper));
}
.feed::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 30px;
  z-index: 2;
  background: linear-gradient(0deg, rgba(255, 250, 242, 0), var(--paper));
}

/* ---------- 4. action row: a pill of tools, one lights, a card confirms ---------- */
.prow {
  position: relative;
  height: 300px;
}
.prow .note {
  position: absolute;
  left: 50%;
  top: 44px;
  width: 250px;
  margin-left: -125px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 16px 36px -18px rgba(80, 35, 0, 0.4);
  font-size: 14px;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.45s,
    transform 0.6s var(--ease);
}
.prow .note.on {
  opacity: 1;
  transform: none;
}
.prow .note b {
  font-weight: 500;
  color: var(--ink);
  display: block;
}
.prow .note small {
  display: block;
  color: var(--muted);
  font-size: 12.5px;
  margin-top: 3px;
}
.prow .note .meta {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
}
.prow .note .meta span:first-child::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--orange);
  margin-right: 6px;
}
.prow .stem {
  position: absolute;
  left: 50%;
  top: 150px;
  height: 36px;
  border-left: 1.5px dashed rgba(18, 24, 21, 0.25);
}
.prow .pill {
  position: absolute;
  left: 50%;
  top: 186px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  padding: 9px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffd9b5, #f9b57c);
  box-shadow: 0 16px 30px -16px rgba(160, 60, 0, 0.6);
}
.prow .pill span {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.55);
  color: var(--orange);
  transition:
    background 0.4s,
    color 0.4s,
    transform 0.4s var(--ease),
    box-shadow 0.4s;
}
.prow .pill span svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.prow .pill span.on {
  background: var(--orange);
  color: #fff;
  transform: scale(1.14);
  box-shadow: 0 0 0 4px rgba(196, 78, 0, 0.25);
}

/* ---------- 5. coach chat ---------- */
.chat {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  min-height: 340px;
  justify-content: flex-end;
}
.chat .msg {
  max-width: 84%;
  padding: 11px 14px;
  border-radius: 16px;
  font-size: 15px;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.4s,
    transform 0.55s var(--ease);
}
.chat .msg.on {
  opacity: 1;
  transform: none;
}
.chat .q {
  align-self: flex-end;
  background: var(--ink);
  color: #fdf6ec;
  border-bottom-right-radius: 4px;
}
.chat .a {
  align-self: flex-start;
  background: var(--page);
  color: var(--ink);
  border-bottom-left-radius: 4px;
}
.chat .a .src {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--orange);
  font-weight: 500;
}
.chat .who {
  font-size: 12px;
  color: var(--muted);
  align-self: flex-start;
  opacity: 0;
  transition: opacity 0.4s;
}
.chat .who.on {
  opacity: 1;
}
.chat .typing {
  align-self: flex-start;
  display: flex;
  gap: 4px;
  padding: 13px 14px;
  border-radius: 16px;
  background: var(--page);
  opacity: 0;
  transition: opacity 0.25s;
}
.chat .typing.on {
  opacity: 1;
}
.chat .typing i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted);
  animation: blink 1.1s infinite;
}
.chat .typing i:nth-child(2) {
  animation-delay: 0.15s;
}
.chat .typing i:nth-child(3) {
  animation-delay: 0.3s;
}
@keyframes blink {
  0%,
  60%,
  100% {
    opacity: 0.25;
    transform: none;
  }
  30% {
    opacity: 1;
    transform: translateY(-2px);
  }
}

/* ---------- 6. language cycle ---------- */
.cycle {
  display: inline-grid;
  vertical-align: bottom;
  overflow: hidden;
  color: var(--orange);
}
.cycle > span {
  grid-area: 1/1;
  transform: translateY(105%);
  opacity: 0;
  transition:
    transform 0.7s var(--ease),
    opacity 0.5s;
  white-space: nowrap;
}
.cycle > span.on {
  transform: none;
  opacity: 1;
}
.cycle > span.out {
  transform: translateY(-105%);
  opacity: 0;
}

/* ---------- 7. logo studio: your logo on the Crate and the Container ---------- */
.studio {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
.studio-stage {
  position: relative;
  border-radius: 26px;
  background: radial-gradient(ellipse at 50% 85%, rgba(196, 78, 0, 0.12), rgba(196, 78, 0, 0) 60%),
    var(--paper);
  box-shadow: var(--shadow-md);
  aspect-ratio: 1.5;
  overflow: hidden;
  perspective: 1600px;
}
.studio-stage.drag {
  box-shadow:
    0 0 0 3px var(--orange),
    var(--shadow-md);
}
.studio-obj {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.5s,
    visibility 0s linear 0.5s,
    transform 0.8s var(--ease);
  transform: scale(0.96) translateY(10px);
}
.studio-obj.on {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition:
    opacity 0.5s,
    transform 0.8s var(--ease);
}
.studio-obj .art {
  position: relative;
  width: 86%;
  transform-style: preserve-3d;
  transition: transform 0.6s var(--ease);
}
.studio-obj .art > img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 30px 28px rgba(80, 35, 0, 0.22));
}
.studio-obj[data-obj='crate'] .art {
  width: 64%;
}
.decal {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4%;
  pointer-events: none;
}
.decal .mark {
  max-width: 100%;
  max-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.decal .mark img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.decal .word {
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.045em;
  line-height: 1;
  white-space: nowrap;
}
.decal .sub {
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
}
.decal.lockup {
  flex-direction: column;
}
.decal .bar {
  width: 2px;
  align-self: stretch;
  background: currentColor;
  opacity: 0.9;
}
.decal.white .mark img {
  filter: brightness(0) invert(1);
}
.decal.stamp {
  animation: stamp 0.9s var(--ease);
}
@keyframes stamp {
  0% {
    opacity: 0;
    transform: scale(1.25);
    filter: blur(6px);
  }
  60% {
    opacity: 1;
    filter: blur(0);
  }
  100% {
    transform: none;
  }
}
/* corrugation shading laid over the decal so it sits in the steel */
.studio-obj .shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  mix-blend-mode: multiply;
  opacity: 0.55;
}
.studio-side h3 {
  font-size: clamp(24px, 2.2vw, 32px);
}
.studio-side p {
  margin-top: 12px;
  color: var(--body);
}
.studio-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: var(--page-2);
  margin-top: 26px;
}
.studio-tabs button {
  font: inherit;
  font-size: 14.5px;
  font-weight: 500;
  border: 0;
  background: none;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  color: var(--muted);
  transition:
    background 0.25s,
    color 0.25s;
}
.studio-tabs button[aria-pressed='true'] {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 4px 12px -6px rgba(80, 35, 0, 0.35);
}
.drop {
  display: block;
  margin-top: 18px;
  padding: 22px;
  border-radius: 16px;
  border: 1.5px dashed rgba(196, 78, 0, 0.45);
  background: rgba(255, 250, 242, 0.7);
  text-align: center;
  cursor: pointer;
  transition:
    background 0.25s,
    border-color 0.25s;
}
.drop:hover,
.drop.drag {
  background: #fff;
  border-color: var(--orange);
}
.drop b {
  display: block;
  color: var(--ink);
  font-weight: 500;
}
.drop span {
  display: block;
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 4px;
}
.drop input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
}
.studio-opts {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-top: 16px;
  font-size: 14.5px;
}
.studio-opts label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.studio-opts input[type='text'] {
  font: inherit;
  font-size: 14.5px;
  padding: 9px 12px;
  border-radius: 9px;
  border: 1px solid rgba(18, 24, 21, 0.14);
  background: #fff;
  width: 100%;
}
.studio-opts .reset {
  font: inherit;
  font-size: 14px;
  border: 0;
  background: none;
  color: var(--orange);
  cursor: pointer;
  padding: 0;
}
.studio-hint {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
  backdrop-filter: blur(8px);
}

@media (max-width: 1024px) {
  .studio {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  .decal.stamp {
    animation: none;
  }
}

/* pass 2 */
.orbit {
  height: 320px;
}
.orbit .orbit-label {
  top: 236px;
}
.chat {
  justify-content: flex-start;
  min-height: 0;
  padding-top: 0;
}
.chat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 -24px 8px;
  padding: 16px 24px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  background: rgba(253, 238, 216, 0.55);
}
.chat-head span {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--orange);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}
.chat-head small {
  margin-left: auto;
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
}
.chat {
  min-height: 420px;
}
.studio-stage {
  aspect-ratio: 1.7;
}
.studio-obj .art {
  width: 92%;
}
.studio-obj[data-obj='crate'] .art {
  width: 58%;
}
.studio-opts label.text {
  display: grid;
  gap: 6px;
  flex-basis: 100%;
}
.studio-obj[data-obj='crate'] .art > img {
  mix-blend-mode: multiply;
  filter: none;
}
.studio-obj[data-obj='crate'] .art {
  filter: drop-shadow(0 30px 28px rgba(80, 35, 0, 0.18));
}
[data-current='crate'] .paint-opt {
  display: none !important;
}

/* ---------- 1b. journey: steps take turns, the card plays the active one ---------- */
.anim-bars i {
  transition: background 0.4s ease;
}
[data-journey] .anim-bars i:first-child {
  background: rgba(18, 24, 21, 0.12);
}
[data-journey] .anim-bars i.on {
  background: var(--orange);
}
.jr-stage {
  position: relative;
  height: 340px;
}
.jr-stage .scene {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.45s ease,
    transform 0.7s var(--ease);
  pointer-events: none;
}
.jr-stage .scene.on {
  opacity: 1;
  transform: none;
  transition-delay: 0.12s;
}
.jr-sheet {
  background: #fff;
  border-radius: 14px;
  box-shadow:
    0 18px 36px -22px rgba(80, 35, 0, 0.35),
    0 0 0 1px rgba(18, 24, 21, 0.05);
  padding: 18px 22px;
}
.jr-sheet small {
  display: block;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
}

/* upload: in the journey the folder just takes the file; the build step shows what comes out */
[data-journey] .fd .out {
  background: var(--orange);
  color: #fff;
  font-weight: 600;
}
[data-journey] .fd .outs {
  bottom: 30px;
}

/* build: the course assembles from your materials */
.jr-build {
  position: absolute;
  left: 50%;
  top: calc(50% + 16px);
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 34px;
}
.jr-book {
  position: relative;
  width: 150px;
  height: 200px;
  padding: 18px 16px;
  border-radius: 6px 12px 12px 6px;
  background: linear-gradient(160deg, #f08a3c, #c44e00);
  color: #fff;
  box-shadow:
    0 22px 40px -22px rgba(120, 50, 0, 0.6),
    inset 6px 0 0 rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  transform: translateY(16px) rotate(-3deg);
  opacity: 0;
  transition:
    opacity 0.5s ease,
    transform 0.9s var(--ease);
}
.jr-book small {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.85;
}
.jr-book b {
  margin-top: 10px;
  font-size: 21px;
  line-height: 1.15;
  letter-spacing: -0.015em;
}
.jr-book span {
  margin-top: auto;
  font-size: 12px;
  opacity: 0.85;
}
.scene.on .jr-book {
  opacity: 1;
  transform: rotate(-3deg);
  transition-delay: 2.6s;
}
.jr-made {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  width: 210px;
}
.jr-made li {
  position: relative;
  padding: 9px 14px 9px 40px;
  border-radius: 10px;
  background: #fff;
  box-shadow:
    0 10px 24px -18px rgba(80, 35, 0, 0.4),
    0 0 0 1px rgba(18, 24, 21, 0.05);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  opacity: 0;
  transform: translateX(-10px);
  transition:
    opacity 0.4s ease,
    transform 0.6s var(--ease);
}
.jr-made li::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 50%;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  border-radius: 50%;
  background: var(--orange);
}
.jr-made li::after {
  content: '';
  position: absolute;
  left: 19.5px;
  top: 50%;
  width: 4px;
  height: 8px;
  margin-top: -6px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.jr-made li:last-child {
  background: var(--page);
}
.scene.on .jr-made li {
  opacity: 1;
  transform: none;
}
.scene.on .jr-made li:nth-child(1) {
  transition-delay: 0.3s;
}
.scene.on .jr-made li:nth-child(2) {
  transition-delay: 0.8s;
}
.scene.on .jr-made li:nth-child(3) {
  transition-delay: 1.3s;
}
.scene.on .jr-made li:nth-child(4) {
  transition-delay: 1.8s;
}
.scene.on .jr-made li:nth-child(5) {
  transition-delay: 2.4s;
}

/* make it yours: the teacher sets how the platform behaves, then approves */
.jr-review {
  position: absolute;
  left: 50%;
  top: calc(50% + 16px);
  width: min(400px, 86%);
  transform: translate(-50%, -50%);
  padding: 16px 20px;
}
.jr-review ul {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 5px;
}
.jr-review li {
  position: relative;
  padding: 8px 64px 8px 12px;
  border-radius: 9px;
  background: var(--paper);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}
.jr-review li i {
  position: absolute;
  right: 12px;
  top: 50%;
  width: 34px;
  height: 20px;
  margin-top: -10px;
  border-radius: 999px;
  background: rgba(18, 24, 21, 0.16);
  transition: background 0.3s ease;
}
.jr-review li i::after {
  content: '';
  position: absolute;
  left: 2px;
  top: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 0.35s var(--ease);
}
.scene.on .jr-review li i {
  background: var(--orange);
}
.scene.on .jr-review li i::after {
  transform: translateX(14px);
}
.jr-review li:nth-child(1) i,
.jr-review li:nth-child(1) i::after {
  transition-delay: 0.7s;
}
.jr-review li:nth-child(2) i,
.jr-review li:nth-child(2) i::after {
  transition-delay: 1.3s;
}
.jr-review li:nth-child(3) i,
.jr-review li:nth-child(3) i::after {
  transition-delay: 1.9s;
}
.jr-review li:nth-child(4) i,
.jr-review li:nth-child(4) i::after {
  transition-delay: 2.5s;
}
.jr-approve {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 7px 14px 7px 10px;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  opacity: 0;
  transform: translateY(8px) scale(0.96);
  transition:
    opacity 0.4s ease,
    transform 0.6s var(--ease);
}
.jr-approve .tick {
  width: 14px;
  height: 8px;
  border: solid #fff;
  border-width: 0 0 2px 2px;
  transform: rotate(-45deg) translate(1px, -2px);
}
.scene.on .jr-approve {
  opacity: 1;
  transform: none;
  transition-delay: 3.2s;
}

/* launch: the class goes live, each student in their own language */
.jr-launch {
  position: absolute;
  left: 26px;
  right: 26px;
  top: 58px;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.jr-live {
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 16px 8px 12px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
  transform: scale(0.92);
  transition:
    opacity 0.4s ease,
    transform 0.6s var(--ease);
}
.jr-live .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7bd389;
  box-shadow: 0 0 0 4px rgba(123, 211, 137, 0.25);
}
.scene.on .jr-live {
  opacity: 1;
  transform: none;
  transition-delay: 0.2s;
}
.jr-class {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.jr-kid {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto 1fr;
  column-gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 14px;
  background: #fff;
  box-shadow:
    0 14px 30px -22px rgba(80, 35, 0, 0.35),
    0 0 0 1px rgba(18, 24, 21, 0.05);
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.45s ease,
    transform 0.7s var(--ease);
}
.jr-kid .av {
  grid-row: 1 / 3;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}
.jr-kid b {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
}
.jr-kid small {
  font-size: 13px;
  color: var(--muted);
}
.jr-kid .pg {
  grid-column: 1 / 3;
  align-self: end;
  position: relative;
  height: 6px;
  border-radius: 6px;
  background: var(--page);
  overflow: hidden;
}
.jr-kid .pg::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 6px;
  background: var(--orange-soft);
  transform-origin: 0 50%;
  transform: scaleX(0);
  transition: transform 1.4s var(--ease);
}
.scene.on .jr-kid {
  opacity: 1;
  transform: none;
}
.scene.on .jr-kid .pg::after {
  transform: scaleX(var(--p));
  transition-delay: 1.4s;
}
.scene.on .jr-kid:nth-child(1) {
  transition-delay: 0.6s;
}
.scene.on .jr-kid:nth-child(2) {
  transition-delay: 0.75s;
}
.scene.on .jr-kid:nth-child(3) {
  transition-delay: 0.9s;
}
.scene.on .jr-kid:nth-child(4) {
  transition-delay: 1.05s;
}

/* the steps: the active one lights up and its bar fills */
.jr-steps .row-item {
  position: relative;
  padding-top: 24px;
  cursor: pointer;
  outline: none;
}
.jr-steps .row-item::before,
.jr-steps .row-item::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  border-radius: 3px;
}
.jr-steps .row-item::before {
  background: rgba(18, 24, 21, 0.1);
}
.jr-steps .row-item::after {
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: 0 50%;
}
.jr-steps .row-item.is-on::after {
  animation: jr-fill var(--dur, 5s) linear forwards;
}
.jr-paused .jr-steps .row-item.is-on::after {
  animation-play-state: paused;
}
@keyframes jr-fill {
  to {
    transform: scaleX(1);
  }
}
.jr-steps .row-item h3 {
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
}
.jr-steps .row-item p {
  color: var(--muted);
  font-size: 15.5px;
}
.jr-steps .row-item .n {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-bottom: 14px;
  border-radius: 50%;
  letter-spacing: 0;
  font-size: 13px;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px rgba(18, 24, 21, 0.2);
  transition:
    background 0.35s ease,
    color 0.35s ease,
    box-shadow 0.35s ease;
}
.jr-steps .row-item.is-on .n {
  background: var(--orange);
  color: var(--paper);
  box-shadow: none;
}
.jr-steps .row-item .n + h3 {
  margin-top: 0;
}
.jr-steps .row-item:focus-visible .n {
  box-shadow: 0 0 0 3px rgba(196, 78, 0, 0.3);
}
.how-title + .lede {
  margin-top: 10px;
}
/* vertical list: a rounded highlight slides to the active step, the others step back */
.jr-steps.jr-vert {
  position: relative;
  gap: 4px;
  margin-left: -24px;
}
.jr-steps.jr-vert .row-item {
  display: grid;
  grid-template-columns: 28px 1fr;
  column-gap: 18px;
  padding: 20px 24px;
  z-index: 1;
}
.jr-steps.jr-vert .row-item::before,
.jr-steps.jr-vert .row-item::after {
  display: none;
}
.jr-steps.jr-vert .row-item .n {
  grid-row: 1 / 3;
  margin: 0;
}
.jr-steps.jr-vert .row-item h3 {
  align-self: center;
}
.jr-steps.jr-vert .row-item p {
  margin-top: 6px;
}
.jr-hl {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  z-index: 0;
  border-radius: 18px;
  background: var(--paper);
  box-shadow:
    var(--shadow-md),
    0 0 0 1px rgba(18, 24, 21, 0.04);
  overflow: hidden;
  pointer-events: none;
  transition:
    transform 0.6s var(--ease),
    height 0.6s var(--ease);
}
.jr-hl::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: 0 50%;
}
.jr-hl.run::after {
  animation: jr-fill var(--dur, 5s) linear forwards;
}
.jr-paused .jr-hl.run::after {
  animation-play-state: paused;
}
.jr-steps.jr-vert .row-item h3,
.jr-steps.jr-vert .row-item p,
.jr-steps.jr-vert .row-item .n {
  transition:
    opacity 0.35s ease,
    background 0.35s ease,
    color 0.35s ease,
    box-shadow 0.35s ease;
}
.jr-steps.jr-vert .row-item:not(.is-on) h3,
.jr-steps.jr-vert .row-item:not(.is-on) p,
.jr-steps.jr-vert .row-item:not(.is-on) .n {
  opacity: 0.45;
}
.jr-steps.jr-vert .row-item:not(.is-on):hover h3,
.jr-steps.jr-vert .row-item:not(.is-on):hover p,
.jr-steps.jr-vert .row-item:not(.is-on):hover .n {
  opacity: 0.8;
}
@media (prefers-reduced-motion: reduce) {
  .jr-hl {
    transition: none;
  }
  .jr-hl.run::after {
    animation: none;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .jr-steps .row-item.is-on::after {
    animation: none;
    transform: none;
  }
}
/* workplaces journey: green book, and a taller stage so the card matches the step list */
.world-workplaces .jr-book {
  background: linear-gradient(160deg, #2f7a5e, #0b4435);
  box-shadow:
    0 22px 40px -22px rgba(11, 68, 53, 0.6),
    inset 6px 0 0 rgba(0, 0, 0, 0.14);
}
.world-workplaces .split [data-journey] .jr-stage {
  height: 420px;
}

/* hero card: pick a device, then begin the sim */
.devpick {
  min-height: 560px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 84px 36px 40px;
}
.devpick h3 {
  font-size: clamp(24px, 2vw, 30px);
  line-height: 1.15;
}
.devpick h3 em {
  color: var(--orange);
}
.devpick p {
  color: var(--muted);
  font-size: 16px;
  margin-top: 10px;
  line-height: 1.5;
}
.dp-logos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 28px;
}
.dp-logos button {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 26px;
  min-height: 132px;
  padding: 20px 22px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
  text-align: left;
  cursor: pointer;
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease),
    border-color 0.25s;
}
.dp-logos button:hover,
.dp-logos button:focus-visible {
  transform: translateY(-3px);
  border-color: var(--b);
  box-shadow: 0 18px 32px -20px var(--b);
}
.dp-logos small {
  font-size: 13px;
  color: var(--muted);
}
.dp-mark {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--b);
}
.dp-moneris,
.dp-toast {
  text-transform: lowercase;
  font-size: 30px;
}
.dp-square i {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--b);
}
.dp-clover i {
  width: 22px;
  height: 22px;
  border-radius: 50% 50% 50% 8px;
  background: var(--b);
  transform: rotate(45deg);
}
.dp-run {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
  align-items: center;
}
.dp-device {
  width: 200px;
  padding: 14px 14px 20px;
  border-radius: 26px;
  background: linear-gradient(180deg, #2a2f2c, #121815);
  box-shadow:
    0 28px 40px -22px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.dp-screen {
  height: 206px;
  border-radius: 14px;
  background: #fff;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  transition: background 0.4s;
}
.dp-brand {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--b);
}
.devpick[data-dev='moneris'] {
  --b: #d71920;
}
.devpick[data-dev='square'] {
  --b: #121815;
}
.devpick[data-dev='clover'] {
  --b: #2a9d4a;
}
.devpick[data-dev='toast'] {
  --b: #e8590c;
}
.dp-amt {
  font-size: 34px;
  letter-spacing: -0.03em;
  margin-top: 6px;
}
.dp-msg {
  font-size: 13px;
  color: var(--muted);
}
.dp-tips {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  transition: opacity 0.3s;
}
.dp-tips i {
  font-style: normal;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 8px;
  border-radius: 8px;
  background: var(--b);
  color: #fff;
  min-width: 46px;
}
.dp-screen.ok {
  background: #e3f3e8;
}
.dp-screen.ok .dp-msg {
  color: #1c7a3c;
  font-weight: 600;
  font-size: 15px;
}
.dp-keys {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
  padding: 0 10px;
}
.dp-keys i {
  height: 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.14);
}
.dp-side .label {
  color: var(--b);
}
.dp-side h3 {
  margin-top: 8px;
}
.dp-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 24px;
}
.dp-back {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: 15px;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
@media (max-width: 1024px) {
  .devpick {
    padding: 76px 22px 28px;
    min-height: 0;
  }
  .dp-run {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .dp-actions {
    justify-content: center;
    flex-wrap: wrap;
  }
}
@media (max-width: 480px) {
  .dp-logos button {
    min-height: 112px;
    padding: 16px;
  }
  .dp-mark {
    font-size: 24px;
  }
}
.devpick [hidden] {
  display: none !important;
}
.dp-run {
  grid-template-columns: 184px 1fr;
  gap: 28px;
}
.dp-device {
  width: 184px;
}
.dp-actions {
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
.dp-actions .btn {
  white-space: nowrap;
}
.dp-back {
  white-space: nowrap;
}
.dp-side h3 {
  font-size: clamp(22px, 1.7vw, 26px);
}
@media (max-width: 1024px) {
  .dp-actions {
    align-items: center;
  }
}

/* chat avatars (opt-in: data-coach-av on the card, data-av on a question) */
.chat .msg:has(.av) {
  position: relative;
}
.chat .q:has(.av) {
  margin-right: 48px;
}
.chat .a:has(.av) {
  margin-left: 48px;
}
.chat .av {
  position: absolute;
  bottom: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 20%;
  transform: scale(1.15);
  box-shadow: 0 0 0 2px #fff;
}
.chat .q .av {
  right: -48px;
}
.chat .a .av {
  left: -48px;
}
.chat .off {
  display: none;
}
.chat.multi {
  justify-content: flex-start;
  box-sizing: border-box;
}
.chat-head img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}
.chat img.av-coach {
  background: #fdeed8;
  object-fit: cover;
  object-position: 50% 30%;
  transform: none;
  width: 38px;
  height: 38px;
}
.chat .av-coach {
  display: grid;
  place-items: center;
  background: var(--orange);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

/* tool tiles + per-tool screens */
.dp-logos button {
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  min-height: 96px;
}
.dp-logos svg {
  flex: none;
  width: 46px;
  height: 46px;
  padding: 11px;
  border-radius: 50%;
  background: linear-gradient(180deg, #1e6b53, #0b4435);
  fill: none;
  stroke: #fff;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  box-shadow: 0 10px 20px -10px rgba(11, 68, 53, 0.7);
}
.dp-logos button:hover,
.dp-logos button:focus-visible {
  border-color: var(--orange);
  box-shadow: 0 18px 32px -20px rgba(11, 68, 53, 0.5);
}
.dp-logos b {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
}
.dp-logos small {
  display: block;
  margin-top: 4px;
  line-height: 1.3;
}
.dp-screen {
  justify-content: center;
}
.dp-screen .dp-amt {
  font-size: 26px;
  margin-top: 2px;
}
.dp-tips i {
  background: var(--orange);
}
.dp-row {
  width: 100%;
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  padding: 9px 10px;
  border-radius: 8px;
  background: #f3f1ea;
}
.dp-row.hl {
  background: var(--orange);
  color: #fff;
}
.dp-ok {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #1c7a3c;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 18px;
}
.dp-side .label {
  color: var(--orange);
}

/* scroll progress widgets (motion.js sets --p from 0 to 1 as the element scrolls up the screen).
   Individual transform properties, so they stack on top of .rv entrances instead of fighting them. */
.js :has(> [data-scroll~='settle']) {
  perspective: 1800px;
}
.js [data-scroll~='settle'] {
  transform-origin: 50% 100%;
  rotate: x calc((1 - var(--p, 1)) * 12deg);
  scale: calc(0.93 + var(--p, 1) * 0.07);
}
.js [data-scroll~='widen'] img {
  scale: calc(1.16 - var(--p, 1) * 0.16);
  will-change: scale;
}
@media (max-width: 1024px) {
  .js [data-scroll~='settle'] {
    rotate: none;
    scale: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .js [data-scroll~='settle'],
  .js [data-scroll~='widen'] img {
    rotate: none;
    scale: none;
  }
}
