/* Consultcontent motion: een chatgesprek als video.
   Vaste kleuren (een video ziet er overal hetzelfde uit), maten in cqw zodat het frame op elke breedte schaalt. */
.mo { container-type: inline-size; position: relative; width: 100%; aspect-ratio: 9 / 16; border-radius: 22px; overflow: hidden; background: #ece6dc; isolation: isolate; transition: aspect-ratio 420ms cubic-bezier(.2, .8, .2, 1); }
.mo.f45 { aspect-ratio: 4 / 5; }
.mo-in { position: absolute; inset: 0; display: flex; flex-direction: column; font-family: 'Inter', -apple-system, 'Helvetica Neue', Arial, sans-serif; color: #141413; -webkit-font-smoothing: antialiased; }

.mo-bar { position: absolute; z-index: 5; top: 2.4cqw; left: 4cqw; right: 4cqw; height: .8cqw; border-radius: 1cqw; background: rgba(20, 20, 19, .14); overflow: hidden; }
.mo-bar i { display: block; height: 100%; width: 0; background: #141413; border-radius: inherit; }
.mo-top { display: flex; align-items: center; gap: 3cqw; padding: 6.5cqw 5cqw 3.4cqw; background: #f7f3ec; border-bottom: 1px solid rgba(20, 20, 19, .08); }
.mo-av { width: 10cqw; height: 10cqw; border-radius: 50%; display: grid; place-items: center; background: #e2572b; color: #fff; font-weight: 600; font-size: 4.4cqw; flex: none; }
.mo-top b { display: block; font-size: 4.4cqw; font-weight: 600; line-height: 1.2; }
.mo-st { display: block; font-size: 3.3cqw; color: #6b6b65; line-height: 1.3; min-height: 1.3em; }
.mo-st.typt { color: #c4461d; }

.mo-chat { position: relative; flex: 1; overflow: hidden; }
.mo-scroll { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: 2cqw; padding: 4cqw 4.4cqw 5cqw; will-change: transform; }
.mo-b { max-width: 80%; padding: 2.6cqw 3.6cqw 2.2cqw; border-radius: 4.4cqw; font-size: 4.15cqw; line-height: 1.38; box-shadow: 0 .3cqw .6cqw rgba(20, 20, 19, .07); transform-origin: left bottom; animation: mo-pop 460ms cubic-bezier(.34, 1.5, .64, 1) both; }
.mo-b small { display: block; text-align: right; margin-top: .6cqw; font-size: 2.8cqw; opacity: .55; }
.mo-b.k { align-self: flex-start; background: #fff; border-bottom-left-radius: 1.2cqw; }
.mo-b.e { align-self: flex-end; background: #1d1d1b; color: #faf9f6; border-bottom-right-radius: 1.2cqw; transform-origin: right bottom; }
.mo-b.e small { color: #f3a283; opacity: 1; }
.mo-dots { align-self: flex-start; display: inline-flex; gap: 1.2cqw; padding: 3.4cqw 4cqw; border-radius: 4.4cqw; border-bottom-left-radius: 1.2cqw; background: #fff; animation: mo-pop 300ms cubic-bezier(.34, 1.5, .64, 1) both; }
.mo-dots.e { align-self: flex-end; background: #1d1d1b; border-radius: 4.4cqw; border-bottom-right-radius: 1.2cqw; transform-origin: right bottom; }
.mo-dots i { width: 1.7cqw; height: 1.7cqw; border-radius: 50%; background: #9a9891; animation: mo-dot 1.1s infinite ease-in-out; }
.mo-dots i:nth-child(2) { animation-delay: .15s; }
.mo-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes mo-pop { from { opacity: 0; transform: scale(.6) translateY(3cqw); } to { opacity: 1; transform: none; } }
@keyframes mo-dot { 0%, 60%, 100% { transform: none; opacity: .5; } 30% { transform: translateY(-1.2cqw); opacity: 1; } }

/* openingskaart: de vraag van de klant, groot */
.mo-hook { position: absolute; z-index: 3; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: 0 8cqw; background: #141413; color: #faf9f6; transition: transform 620ms cubic-bezier(.7, 0, .2, 1); }
.mo-hook.weg { transform: translateY(-101%); }
.mo-hook p { font-family: 'Anton', 'Impact', sans-serif; text-transform: uppercase; letter-spacing: -.01em; font-size: 15cqw; line-height: .98; }
.mo.f45 .mo-hook p { font-size: 13cqw; }
.mo-hook span { display: inline-block; opacity: 0; transform: translateY(5cqw); transition: opacity 380ms ease, transform 520ms cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--w) * 140ms); }
.mo-hook.in span { opacity: 1; transform: none; }
.mo-hook span.mark { background: linear-gradient(#e2572b, #e2572b) left bottom / 0 .1em no-repeat; padding-bottom: .04em; transition: opacity 380ms ease, transform 520ms cubic-bezier(.2, .8, .2, 1), background-size 600ms cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--w) * 140ms), calc(var(--w) * 140ms), calc(var(--w) * 140ms + 420ms); }
.mo-hook.in span.mark { background-size: 100% .1em; }
.mo-who { margin-top: 6cqw; font-size: 3.8cqw; color: #9a9891; opacity: 0; transition: opacity 500ms ease 700ms; }
.mo-hook.in .mo-who { opacity: 1; }

/* slotkaart: de kernzin van de expert */
.mo-end { position: absolute; z-index: 3; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 8cqw; padding: 0 8cqw; background: #faf9f6; opacity: 0; transform: translateY(6cqw); pointer-events: none; transition: opacity 500ms ease, transform 700ms cubic-bezier(.2, .8, .2, 1); }
.mo-end.in { opacity: 1; transform: none; }
.mo-end q { font-family: 'Instrument Serif', Georgia, serif; font-size: 8.6cqw; line-height: 1.12; letter-spacing: -.015em; quotes: '\201C' '\201D'; }
.mo.f45 .mo-end q { font-size: 7.4cqw; }
.mo-end q span { background: linear-gradient(rgba(226, 87, 43, .26), rgba(226, 87, 43, .26)) left 85% / 0 .42em no-repeat; transition: background-size 1100ms cubic-bezier(.2, .8, .2, 1) 600ms; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.mo-end.in q span { background-size: 100% .42em; }
.mo-by { display: flex; align-items: center; gap: 3cqw; font-size: 3.8cqw; color: #6b6b65; }
.mo-by b { display: block; color: #141413; font-weight: 600; }
.mo-by .mo-av { background: #1d1d1b; }

.mo.paused * { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) {
  .mo *, .mo { transition: none !important; animation: none !important; }
}
