/* Light, purple-and-gold motion treatment for the public Jiggly Kids homepage. */
.jk-home {
  --jk-motion-purple: #4f238d;
  --jk-motion-violet: #8153bd;
  --jk-motion-gold: #ffbc00;
  --jk-motion-ink: #2a1363;
  --jk-motion-muted: #695d82;
  --jk-motion-glass: rgb(255 255 255 / 82%);
}

.jk-home .jk-destination,
.jk-home .jk-story-card,
.jk-home .jk-process-card,
.jk-home .jk-magazine-feature,
.jk-home .jk-magazine-latest li,
.jk-home .jk-button,
.jk-home .jk-sample-play,
.jk-home .jk-voice-card {
  transition: transform 320ms cubic-bezier(.2,.82,.24,1), box-shadow 320ms ease,
    border-color 260ms ease, background-color 260ms ease;
}

.jk-home .jk-destination:hover,
.jk-home .jk-destination:focus-visible,
.jk-home .jk-story-card:hover,
.jk-home .jk-process-card:hover,
.jk-home .jk-magazine-feature:hover,
.jk-home .jk-voice-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 42px rgb(42 19 99 / 14%), 0 0 0 1px rgb(129 83 189 / 15%) inset;
}

.jk-home .jk-story-cover { overflow: hidden; }
.jk-home .jk-story-cover img { transition: transform 600ms cubic-bezier(.2,.82,.24,1); }
.jk-home .jk-story-card:hover .jk-story-cover img,
.jk-home .jk-story-card:focus-within .jk-story-cover img { transform: scale(1.04); }

.jk-home .jk-process-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.jk-home .jk-process-card {
  display: flex; align-items: flex-start; gap: 13px; min-height: 132px; padding: 18px;
  border: 1px solid rgb(79 35 141 / 12%); border-radius: 21px;
  background: linear-gradient(145deg, rgb(255 255 255 / 96%), rgb(248 244 255 / 92%));
  box-shadow: 0 12px 30px rgb(42 19 99 / 7%);
}
.jk-home .jk-process-number {
  display: grid; flex: 0 0 38px; width: 38px; height: 38px; place-items: center;
  border: 1px solid rgb(255 188 0 / 65%); border-radius: 14px; color: var(--jk-motion-purple);
  background: #fff4cb; font-weight: 800; transition: transform 300ms ease, box-shadow 300ms ease;
}
.jk-home .jk-process-card:hover .jk-process-number { transform: scale(1.08) rotate(-4deg); box-shadow: 0 0 18px rgb(255 188 0 / 28%); }
.jk-home .jk-process-card>div { min-width: 0; flex: 1; }
.jk-home .jk-process-card h3 { margin: 1px 0 7px; color: var(--jk-motion-ink); font-size: 14px; }
.jk-home .jk-process-card p { margin: 0; color: var(--jk-motion-muted); font-size: 11px; line-height: 1.9; }
.jk-home .jk-process-card .jk-sample-play { flex: 0 0 34px; }

.jk-home .jk-hero-social-orbit {
  position: absolute; z-index: 3; top: 43%; left: 0; display: grid; justify-items: start; gap: 11px;
}
.jk-home .jk-hero-social-link {
  display: inline-flex; align-items: center; gap: 9px; padding: 9px 13px;
  border: 1px solid rgb(255 255 255 / 70%); border-radius: 16px; color: #fff!important;
  text-decoration: none; background: linear-gradient(135deg, rgb(129 83 189 / 96%), rgb(79 35 141 / 93%));
  box-shadow: 0 10px 26px rgb(42 19 99 / 22%), inset 0 1px rgb(255 255 255 / 32%);
  backdrop-filter: blur(12px); animation: jk-social-float 6s ease-in-out infinite;
  transition: transform 260ms ease, box-shadow 260ms ease;
}
.jk-home .jk-hero-social-link:nth-child(2) { margin-inline-start: 22px; animation-delay: -2s; }
.jk-home .jk-hero-social-link:nth-child(3) { margin-inline-start: 8px; animation-delay: -4s; }
.jk-home .jk-hero-social-link:hover,
.jk-home .jk-hero-social-link:focus-visible { transform: translateY(-4px); box-shadow: 0 16px 32px rgb(42 19 99 / 28%), 0 0 18px rgb(255 188 0 / 24%); }
.jk-home .jk-hero-social-link svg { width: 21px; height: 21px; flex: 0 0 21px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.jk-home .jk-hero-social-youtube svg path:last-child { fill: #ffdf7b; stroke: none; }
.jk-home .jk-hero-social-telegram svg { fill: #ffdf7b; stroke: none; }
.jk-home .jk-hero-social-link span { font-size: 11px; font-weight: 700; white-space: nowrap; }
@keyframes jk-social-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

.jk-home .jk-family-voices { position: relative; }
.jk-home .jk-voices-shell {
  position: relative; overflow: hidden; padding: clamp(18px, 3vw, 32px); border: 1px solid rgb(129 83 189 / 18%);
  border-radius: 28px; background: radial-gradient(ellipse at 92% 0%, rgb(129 83 189 / 10%), transparent 42%),
  radial-gradient(ellipse at 8% 100%, rgb(255 188 0 / 10%), transparent 38%), var(--jk-motion-glass);
  box-shadow: 0 22px 60px rgb(42 19 99 / 10%), inset 0 1px #fff; backdrop-filter: blur(16px);
}
.jk-home .jk-voices-orbit { position: absolute; inset: -82px auto auto -55px; width: 190px; aspect-ratio: 1; border: 1px solid rgb(129 83 189 / 16%); border-radius: 50%; box-shadow: 0 0 0 18px rgb(129 83 189 / 4%), 0 0 0 38px rgb(129 83 189 / 3%); pointer-events: none; }
.jk-home .jk-voices-toolbar { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; }
.jk-home .jk-voices-caption { display: inline-flex; align-items: center; gap: 9px; color: var(--jk-motion-purple); font-size: 12px; }
.jk-home .jk-voices-caption i { width: 8px; height: 8px; border-radius: 50%; background: var(--jk-motion-gold); box-shadow: 0 0 14px rgb(255 188 0 / 60%); }
.jk-home .jk-voices-controls { display: flex; align-items: center; gap: 8px; }
.jk-home .jk-voices-controls button { min-width: 42px; min-height: 42px; padding: 0 12px; border: 1px solid rgb(79 35 141 / 18%); border-radius: 999px; color: var(--jk-motion-purple); background: #fff; cursor: pointer; transition: transform 220ms ease, background 220ms ease, border-color 220ms ease; }
.jk-home .jk-voices-controls button:hover { transform: translateY(-2px); border-color: var(--jk-motion-gold); background: #fff9e8; }
.jk-home .jk-voices-controls [data-jk-voices-toggle] { min-width: 96px; font-size: 11px; }
.jk-home .jk-voices-controls button:focus-visible,
.jk-home .jk-hero-social-link:focus-visible { outline: 3px solid var(--jk-motion-gold); outline-offset: 3px; }
.jk-home .jk-voices-viewport { position: relative; z-index: 1; overflow: auto hidden; direction: rtl; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-inline: contain; }
.jk-home .jk-voices-viewport::-webkit-scrollbar { display: none; }
.jk-home .jk-voices-track { display: flex; align-items: stretch; gap: 16px; width: max-content; min-width: 100%; padding: 4px 2px 14px; }
.jk-home .jk-voice-card { position: relative; isolation: isolate; display: flex; flex: 0 0 min(360px, calc((min(100vw - 64px, 1184px) - 32px) / 3)); min-height: 248px; flex-direction: column; overflow: hidden; padding: 22px; border: 1px solid rgb(79 35 141 / 11%); border-radius: 22px; color: var(--jk-motion-ink); background: linear-gradient(145deg, #fff, #fbf8ff 72%); box-shadow: 0 12px 28px rgb(42 19 99 / 8%), inset 0 1px #fff; scroll-snap-align: start; }
.jk-home .jk-voice-card:hover { border-color: rgb(129 83 189 / 40%); }
.jk-home .jk-voice-card-glass { position: absolute; z-index: -1; inset: 0; background: radial-gradient(circle at 88% 4%, rgb(255 188 0 / 8%), transparent 42%); pointer-events: none; }
.jk-home .jk-voice-rating { color: #cf9200; letter-spacing: 3px; font-size: 15px; }
.jk-home .jk-voice-quote { position: relative; flex: 1; margin: 12px 0 20px; color: #38265c; font-size: 14px; line-height: 2; }
.jk-home .jk-voice-person { display: flex; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px solid rgb(79 35 141 / 10%); }
.jk-home .jk-voice-person img,
.jk-home .jk-voice-initial { display: grid; flex: 0 0 54px; width: 54px; height: 54px; place-items: center; border: 2px solid rgb(255 188 0 / 70%); border-radius: 17px; object-fit: cover; background: linear-gradient(145deg, #8153bd, #4f238d); color: #fff4cb; font-size: 22px; }
.jk-home .jk-voice-person strong,.jk-home .jk-voice-person small { display: block; }
.jk-home .jk-voice-person strong { color: var(--jk-motion-ink); font-size: 14px; }
.jk-home .jk-voice-person small { margin-top: 3px; color: #7555a6; font-size: 10px; }
.jk-home .jk-voice-quote-mark { margin-inline-start: auto; color: var(--jk-motion-violet); font-family: Georgia,serif; font-size: 52px; font-weight: 400; line-height: .8; }
.jk-home .jk-voices-progress { position: relative; z-index: 1; height: 3px; margin-top: 2px; overflow: hidden; border-radius: 4px; background: rgb(79 35 141 / 10%); }
.jk-home .jk-voices-progress span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--jk-motion-violet), var(--jk-motion-gold)); transition: width 350ms ease; }
.jk-home .jk-voices-empty { position: relative; z-index: 1; display: flex; align-items: center; gap: 20px; min-height: 148px; padding: 24px clamp(20px, 4vw, 42px); overflow: hidden; border: 1px solid rgb(129 83 189 / 14%); border-radius: 22px; background: linear-gradient(105deg, rgb(129 83 189 / 5%), #fff 55%, rgb(255 188 0 / 8%)); }
.jk-home .jk-voices-empty-orb { display: grid; flex: 0 0 66px; width: 66px; height: 66px; place-items: center; border: 1px solid rgb(255 188 0 / 55%); border-radius: 50%; color: var(--jk-motion-purple); background: radial-gradient(circle at 35% 30%, #fff, #eee4ff 68%, #ffedb5); box-shadow: 0 0 0 9px rgb(129 83 189 / 5%), 0 0 28px rgb(129 83 189 / 13%); font-size: 26px; animation: jk-voices-orb-float 5s ease-in-out infinite; }
.jk-home .jk-voices-empty>div { flex: 1; }
.jk-home .jk-voices-empty strong { color: var(--jk-motion-ink); font-size: 16px; }
.jk-home .jk-voices-empty p { margin: 7px 0 0; color: var(--jk-motion-muted); font-size: 12px; line-height: 1.9; }
.jk-home .jk-voices-empty-tag { align-self: flex-end; padding: 7px 12px; border: 1px solid rgb(129 83 189 / 14%); border-radius: 999px; color: var(--jk-motion-purple); font-size: 10px; }
@keyframes jk-voices-orb-float { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-6px) rotate(6deg); } }

.jk-home .jk-magazine-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); align-items: stretch; gap: 20px; }
.jk-home .jk-magazine-feature,.jk-home .jk-magazine-latest { overflow: hidden; border: 1px solid rgb(79 35 141 / 11%); border-radius: 24px; background: linear-gradient(145deg, #fff, #fbf8ff 68%); box-shadow: 0 14px 36px rgb(42 19 99 / 8%); }
.jk-home .jk-magazine-feature { display: grid; grid-template-columns: minmax(220px,.9fr) 1.1fr; min-height: 300px; }
.jk-home .jk-magazine-cover { position: relative; display: block; min-height: 100%; overflow: hidden; background: #eee4ff; }
.jk-home .jk-magazine-cover::after { position: absolute; inset: 45% 0 0; content: ""; background: linear-gradient(transparent,rgb(42 19 99 / 56%)); pointer-events: none; }
.jk-home .jk-magazine-cover img { display: block; width: 100%; height: 100%; min-height: 300px; object-fit: cover; transition: transform 650ms ease; }
.jk-home .jk-magazine-feature:hover .jk-magazine-cover img { transform: scale(1.04); }
.jk-home .jk-magazine-cover>span { position: absolute; z-index: 1; right: 14px; bottom: 14px; padding: 7px 11px; border: 1px solid rgb(255 255 255 / 52%); border-radius: 999px; color: #fff; background: rgb(42 19 99 / 72%); backdrop-filter: blur(8px); font-size: 10px; }
.jk-home .jk-magazine-feature-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(20px,3vw,34px); }
.jk-home .jk-magazine-feature-copy h3 { margin: 9px 0; color: var(--jk-motion-ink); font-size: clamp(18px,2vw,24px); line-height: 1.7; }
.jk-home .jk-magazine-feature-copy h3 a,.jk-home .jk-magazine-item-copy a { color: inherit; text-decoration: none; }
.jk-home .jk-magazine-feature-copy p { margin: 0 0 12px; color: var(--jk-motion-muted); font-size: 12px; line-height: 1.9; }
.jk-home .jk-magazine-latest { padding: 23px 22px 13px; }
.jk-home .jk-magazine-latest-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 11px; }
.jk-home .jk-magazine-latest-head h3 { margin: 4px 0 0; color: var(--jk-motion-ink); font-size: 19px; }
.jk-home .jk-magazine-signal { width: 10px; height: 10px; border-radius: 50%; background: var(--jk-motion-gold); box-shadow: 0 0 0 6px rgb(255 188 0 / 12%); }
.jk-home .jk-magazine-latest ol { margin: 0; padding: 0; list-style: none; }
.jk-home .jk-magazine-latest li { border-top: 1px solid rgb(79 35 141 / 8%); }
.jk-home .jk-magazine-latest li>a { display: flex; align-items: center; gap: 11px; min-height: 58px; padding: 8px 0; color: var(--jk-motion-ink); text-decoration: none; transition: transform 250ms ease,color 250ms ease; }
.jk-home .jk-magazine-latest li>a:hover { transform: translateX(-3px); color: var(--jk-motion-purple); }
.jk-home .jk-magazine-index { display: grid; flex: 0 0 32px; width: 32px; height: 32px; place-items: center; border: 1px solid rgb(129 83 189 / 14%); border-radius: 11px; color: var(--jk-motion-purple); background: #f7f1ff; font-size: 11px; }
.jk-home .jk-magazine-item-copy { display: block; min-width: 0; flex: 1; }
.jk-home .jk-magazine-item-copy strong { display: block; overflow: hidden; font-size: 12px; line-height: 1.8; text-overflow: ellipsis; }
.jk-home .jk-magazine-item-copy small { display: block; margin-top: 2px; color: var(--jk-motion-muted); font-size: 10px; }
.jk-home .jk-magazine-latest li>a>b { color: var(--jk-motion-violet); font-size: 17px; font-weight: 400; }
.jk-home .jk-magazine-empty { padding: 20px 0; color: var(--jk-motion-muted); font-size: 12px; }

@media (max-width: 900px) {
  .jk-home .jk-process-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .jk-home .jk-magazine-grid { grid-template-columns: 1fr; gap: 14px; }
  .jk-home .jk-magazine-feature { grid-template-columns: minmax(220px,.9fr) 1.1fr; min-height: 240px; }
  .jk-home .jk-magazine-cover img { min-height: 240px; }
  .jk-home .jk-voice-card { flex-basis: min(360px,calc((100vw - 104px)/2)); }
}
@media (max-width: 620px) {
  .jk-home .jk-process-grid { gap: 9px; }
  .jk-home .jk-process-card { min-height: 145px; gap: 9px; padding: 13px 11px; border-radius: 17px; }
  .jk-home .jk-process-number { flex-basis: 31px; width: 31px; height: 31px; border-radius: 11px; font-size: 11px; }
  .jk-home .jk-process-card h3 { font-size: 12px; }
  .jk-home .jk-process-card p { font-size: 10px; line-height: 1.8; }
  .jk-home .jk-magazine-feature { grid-template-columns: minmax(110px,.8fr) 1.2fr; min-height: 190px; }
  .jk-home .jk-magazine-cover img { min-height: 190px; }
  .jk-home .jk-magazine-feature-copy { padding: 14px; }
  .jk-home .jk-magazine-feature-copy h3 { font-size: 15px; }
  .jk-home .jk-magazine-feature-copy p { display: -webkit-box; overflow: hidden; margin-bottom: 8px; font-size: 10px; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
  .jk-home .jk-magazine-feature-copy .jk-text-button { font-size: 10px; }
  .jk-home .jk-magazine-latest { padding: 17px 16px 11px; }
  .jk-home .jk-magazine-latest li>a { min-height: 56px; }
  .jk-home .jk-magazine-item-copy strong { font-size: 11px; }
  .jk-home .jk-hero-social-orbit { top: auto; bottom: 102px; left: 7px; gap: 8px; }
  .jk-home .jk-hero-social-link { padding: 8px 10px; border-radius: 14px; }
  .jk-home .jk-hero-social-link:nth-child(2) { margin-inline-start: 12px; }
  .jk-home .jk-hero-social-link:nth-child(3) { margin-inline-start: 5px; }
  .jk-home .jk-hero-social-link svg { width: 18px; height: 18px; flex-basis: 18px; }
  .jk-home .jk-hero-social-link span { font-size: 9px; }
  .jk-home .jk-voices-shell { padding: 18px 14px 16px; border-radius: 22px; }
  .jk-home .jk-voices-empty { min-height: 124px; gap: 13px; padding: 18px 14px; }
  .jk-home .jk-voices-empty-orb { flex-basis: 48px; width: 48px; height: 48px; font-size: 21px; }
  .jk-home .jk-voices-empty strong { font-size: 13px; }
  .jk-home .jk-voices-empty p { font-size: 10px; }
  .jk-home .jk-voices-empty-tag { display: none; }
  .jk-home .jk-voices-toolbar { align-items: flex-start; }
  .jk-home .jk-voices-caption { max-width: 130px; font-size: 10px; line-height: 1.8; }
  .jk-home .jk-voices-controls { gap: 6px; }
  .jk-home .jk-voices-controls button { min-width: 38px; min-height: 38px; }
  .jk-home .jk-voices-controls [data-jk-voices-toggle] { min-width: 78px; padding-inline: 8px; font-size: 10px; }
  .jk-home .jk-voices-track { gap: 12px; }
  .jk-home .jk-voice-card { flex-basis: calc(100vw - 92px); min-height: 235px; padding: 18px; }
  .jk-home .jk-voice-quote { font-size: 13px; }
}
@media (max-width: 380px) {
  .jk-home .jk-process-grid { grid-template-columns: 1fr; }
  .jk-home .jk-process-card { min-height: 0; }
  .jk-home .jk-voice-card { flex-basis: calc(100vw - 72px); }
}
@media (prefers-reduced-motion: reduce) {
  .jk-home *, .jk-home *::before, .jk-home *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Jiggly Kids destination orbits v1 */
.jk-home .jk-explore .jk-mini-planet {
  background-image: url("homepage-family-orbits-v1.8c3a425d66aa.webp");
  background-repeat: no-repeat;
  background-size: 400% auto;
  background-position: var(--jk-orbit-position, 50%) center;
  box-shadow: none;
  color: transparent;
  filter: drop-shadow(0 6px 12px rgb(8 4 22 / 30%));
}
.jk-home .jk-explore .jk-mini-game { --jk-orbit-position: 100%; }
.jk-home .jk-explore .jk-mini-story { --jk-orbit-position: 66.6667%; }
.jk-home .jk-explore .jk-mini-video { --jk-orbit-position: 33.3333%; }
.jk-home .jk-explore .jk-mini-animation { --jk-orbit-position: 0%; }
