.joyTransformation{margin:32px 0;padding:28px 0;border-top:1px solid var(--gold);border-bottom:1px solid var(--gold)}
.joyTransformation h2{margin-top:10px}
.transformationScenes{list-style:none;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:24px 0;padding:0;align-items:stretch}
.transformationScenes>li{padding:14px 10px;background:#fffdf8;border:1px solid #ded8cd;border-radius:8px;transition:opacity .7s,border-color .7s,box-shadow .7s;min-width:0}
.transformationNumber{display:block;font-size:14px;font-weight:700;color:var(--navy);margin-bottom:18px}
.transformationScenes p{font-size:14px;line-height:1.5;margin-bottom:0}
.transformationAnswer{min-height:230px;display:flex;flex-direction:column;justify-content:center;gap:18px}
.transformationAnswer span{font-size:15px}.transformationAnswer strong{font-size:20px;line-height:1.5;color:var(--navy)}.transformationAnswer small{font-size:13px}
.transformationPoster{max-width:180px;margin:auto}.transformationCard{max-width:160px;margin:auto}.transformationPoster svg,.transformationCard svg{width:100%;height:auto;display:block}
.transformationPie{display:block;width:100%;max-width:200px;margin:15px auto}
.transformationPie path{fill:#ddd7cc;stroke:#f7f2e8;stroke-width:2;transition:fill 1s}
.joyTransformation[data-phase="0"] li:not([data-scene="1"]),.joyTransformation[data-phase="1"] li[data-scene="3"],.joyTransformation[data-phase="1"] li[data-scene="4"],.joyTransformation[data-phase="2"] li[data-scene="4"]{opacity:.3}
.joyTransformation[data-phase="0"] li[data-scene="1"],.joyTransformation[data-phase="1"] li[data-scene="2"],.joyTransformation[data-phase="2"] li[data-scene="3"],.joyTransformation[data-phase="3"] li[data-scene="4"]{border-color:var(--gold);box-shadow:0 0 0 2px #d7b66b55}
.joyTransformation:not([data-phase="0"]) .demoRest{fill:#d6222d}.joyTransformation:not([data-phase="0"]) .demoFamily{fill:#d88a00}.joyTransformation:not([data-phase="0"]) .demoMusic{fill:#570776}
.joyTransformation.isPlaying[data-phase="0"] .transformationAnswer strong{animation:answerReveal 2.4s ease-out both}
.joyTransformation.isPlaying[data-phase="1"] .demoMusic{animation:sliceReveal 1.2s ease-out both;transform-origin:100px 100px}
.joyTransformation.isPlaying[data-phase="2"] .transformationPoster,.joyTransformation.isPlaying[data-phase="3"] .transformationCard{animation:collectionReveal 1s ease-out both}
.joyTransformation:not(.isPlaying) *{animation-play-state:paused}
.transformationStatus{min-height:3em;font-size:21px;line-height:1.5;font-weight:700;color:var(--navy)}
.completeAnimationExample[hidden]{display:none}
.completeAnimationExample{margin-top:32px;padding-top:24px;border-top:1px solid var(--gold);scroll-margin-top:24px}
.completeExampleOutputs{display:grid;grid-template-columns:1.25fr 1fr 1fr;gap:20px;align-items:start;margin:24px 0}
.completeExampleOutputs figure{min-width:0;margin:0}.completeExampleOutputs svg{display:block;width:100%;height:auto;box-shadow:0 6px 20px #102f4520}
.completeExampleOutputs figcaption{position:static;margin-top:12px;font-size:14px;line-height:1.5}
.completeAnimationExample h3:focus{outline:2px solid var(--gold);outline-offset:6px}
@media(max-width:700px){.completeExampleOutputs{grid-template-columns:1fr 1fr}.completeExampleOutputs figure:first-child{grid-column:1/-1;max-width:340px;justify-self:center}}
@media(max-width:420px){.completeExampleOutputs{grid-template-columns:1fr}.completeExampleOutputs figure{max-width:300px;justify-self:center}}
@keyframes answerReveal{from{clip-path:inset(0 100% 0 0)}to{clip-path:inset(0)}}
@keyframes sliceReveal{from{transform:scale(.75);opacity:.3}to{transform:scale(1);opacity:1}}
@keyframes collectionReveal{from{transform:translateY(12px);opacity:.3}to{transform:translateY(0);opacity:1}}
@media(max-width:1100px){.transformationScenes{grid-template-columns:repeat(2,minmax(0,1fr))}.transformationAnswer{min-height:210px}.transformationPoster{max-width:200px}.transformationCard{max-width:190px}}
@media(max-width:480px){.transformationScenes{gap:10px}.transformationScenes>li{padding:12px 8px}.transformationAnswer strong{font-size:17px}.transformationNumber{font-size:12px}.transformationScenes p{font-size:13px}}
@media(prefers-reduced-motion:reduce){.joyTransformation *{animation:none!important;transition:none!important}.transformationScenes>li{opacity:1!important}.transformationPie .demoRest{fill:#d6222d}.transformationPie .demoFamily{fill:#d88a00}.transformationPie .demoMusic{fill:#570776}}
