/* Motion typography: visible by default, progressively enhanced. */
@keyframes mctTypeReveal{from{opacity:0;transform:translateY(22px)}to{opacity:1;transform:translateY(0)}}
@keyframes mctTypeFill{from{clip-path:inset(0 100% 0 0)}to{clip-path:inset(0)}}
@keyframes mctWordEnter{from{opacity:0;transform:translateY(9px) rotateX(-32deg)}to{opacity:1;transform:none}}
@keyframes mctLetterHop{0%,100%{transform:translateY(0)}45%{transform:translateY(-.12em)}}
body[data-mct-text-motion="1"] .mct-type-line{display:block;animation:mctTypeReveal .75s cubic-bezier(.2,.8,.2,1) both;animation-delay:calc(var(--mct-line,0)*150ms)}
body[data-mct-text-motion="1"] .mct-type-in{animation:mctTypeReveal .75s cubic-bezier(.2,.8,.2,1) both}
body[data-mct-text-motion="1"] .mct-type-fill{display:inline-block;animation:mctTypeFill .85s ease-out both;color:#FF7518}
body[data-mct-text-motion="1"] .mct-type-wave span{display:inline-block;animation:mctLetterHop .55s ease-in-out both;animation-delay:calc(var(--mct-letter,0)*45ms)}
body[data-mct-text-motion="0"] #home .brand-accent:after{animation:none}
#home .mct-service-motion{display:flex;align-items:baseline;gap:.5em;flex-wrap:wrap;margin:0 0 18px;font-size:clamp(15px,1.4vw,21px);font-weight:750;color:#FFFFFF}
#home .mct-service-word{display:inline-grid;color:#FF7518;perspective:500px}
#home .mct-service-word:before{content:attr(data-width);visibility:hidden;grid-area:1/1}
#home .mct-service-word b{grid-area:1/1;font-weight:800}
body[data-mct-text-motion="1"] #home .mct-service-word b.mct-word-in{animation:mctWordEnter .42s ease-out both}
#home .mct-type-line{display:block}
#home .mct-type-wave{white-space:nowrap;color:#FF7518}
@media(prefers-reduced-motion:reduce){body[data-mct-text-motion] .mct-type-line,body[data-mct-text-motion] .mct-type-in,body[data-mct-text-motion] .mct-type-fill,body[data-mct-text-motion] .mct-type-wave span,body[data-mct-text-motion] #home .mct-service-word b,body[data-mct-text-motion] #home .brand-accent:after{animation:none!important;opacity:1!important;transform:none!important;clip-path:none!important}}

/* Site-wide editorial typography, independent of the embedded software demos. */
.mct-editorial-title{font-family:Manrope,system-ui,sans-serif!important;font-weight:800!important;letter-spacing:-.048em!important;text-wrap:balance;overflow-wrap:anywhere}
.mct-editorial-title:is(h1,h2){line-height:1.12!important}
.mct-editorial-title h1,.mct-editorial-title h2{font:inherit}
.mct-editorial-title .mct-highlight{color:#FF7518;font-weight:inherit}
.mcts-brand-home .mct-editorial-title .mct-highlight,.mct-editorial-title:is(h1) .mct-highlight,#mct-modern-footer .mct-highlight{color:#FF7518}
.mct-editorial-title .mct-highlight{position:relative;display:inline}
.mct-editorial-title .mct-highlight:after{content:'';position:absolute;bottom:-.07em;left:0;right:0;height:.075em;background:currentColor;border-radius:50%;transform-origin:left;opacity:.85}
.mct-editorial-title.mct-motion-seen .mct-highlight:after{animation:mctBrandUnderline .9s .15s ease-out both}
@keyframes mctEditorialRise{from{opacity:.15;translate:0 17px}to{opacity:1;translate:0 0}}
@keyframes mctEditorialSkew{from{opacity:.15;translate:0 14px;rotate:-1deg}to{opacity:1;translate:0 0;rotate:0deg}}
@keyframes mctEditorialSweep{from{opacity:.2;clip-path:inset(0 0 100% 0)}to{opacity:1;clip-path:inset(0)}}
body[data-mct-text-motion="1"] .mct-motion-seen[data-mct-effect="rise"]{animation:mctEditorialRise .65s cubic-bezier(.2,.8,.2,1) both;animation-delay:var(--mct-delay,0ms)}
body[data-mct-text-motion="1"] .mct-motion-seen[data-mct-effect="skew"]{animation:mctEditorialSkew .7s cubic-bezier(.2,.8,.2,1) both;animation-delay:var(--mct-delay,0ms)}
body[data-mct-text-motion="1"] .mct-motion-seen[data-mct-effect="sweep"]{animation:mctEditorialSweep .65s ease-out both;animation-delay:var(--mct-delay,0ms)}
.mct-motion-link{transition:color .2s,translate .2s}
.mct-motion-link:is(:hover,:focus-visible){translate:0 -2px}
.mct-editorial-kicker{font-weight:800!important;letter-spacing:.14em!important}
@media(prefers-reduced-motion:reduce){.mct-motion-seen,.mct-motion-seen .mct-highlight:after{animation:none!important;opacity:1!important;translate:none!important;rotate:none!important;clip-path:none!important}.mct-motion-link{transition:none!important;translate:none!important}}

/* Responsive editorial type scale. Do not resize embedded dashboards, charts or forms indiscriminately. */
body.mcts-brand-home,body.mct-public{font-size:18px;line-height:1.65}
body.mcts-brand-home #mct-main .mct-editorial-title:is(h2),body.mct-public #mct-main .mct-editorial-title:is(h2){font-size:clamp(30px,3.9vw,60px)!important}
body.mcts-brand-home #mct-main .mct-editorial-title:is(h3),body.mct-public #mct-main .mct-editorial-title:is(h3){font-size:clamp(19px,1.8vw,28px)!important}
body.mct-public #mct-main .mct-editorial-title:is(h1){font-size:clamp(40px,5.4vw,86px)!important}
body.mcts-brand-home #mct-main :is(.sub,.about p,.card p,.project p,.process-step p,.faq-list p),body.mct-public #mct-main :is(.mct-section-copy,.mct-lead,.hero-header p,.mcts-3d-intro p,.mcts-3d-card p,.mct-service-card p,.mcts-project-card p,.mcts-team-card p,.msd-card p,.mae-root .card p){font-size:clamp(16px,1.25vw,20px)!important;line-height:1.65}
body #mcts-shared-header .mcts-header-links{font-size:15px}
body #mcts-shared-header .mcts-header-quote,body.mcts-brand-home #home .actions .btn{font-size:16px!important}
body #mct-modern-footer .mf-new-list,body #mct-modern-footer .mf-new-grid p{font-size:16px!important}
body #mct-modern-footer .mf-new-grid h3{font-size:14px!important}
@media(max-width:1100px){body #mcts-shared-header .mcts-header-links{font-size:15px}}
@media(max-width:600px){body.mcts-brand-home,body.mct-public{font-size:16px}}

/* Lightweight, custom Swishy-inspired motion, no external player required. */
@keyframes mctSentence{from{opacity:.15;transform:translateY(12px);clip-path:inset(0 0 100% 0)}to{opacity:1;transform:none;clip-path:inset(0)}}
@keyframes mctExtend{from{opacity:.2;transform:scaleX(.88);clip-path:inset(0 100% 0 0)}to{opacity:1;transform:none;clip-path:inset(0)}}
@keyframes mctBrandSpin{0%{transform:perspective(600px) rotateY(0)}100%{transform:perspective(600px) rotateY(360deg)}}
body[data-mct-text-motion="1"] .mct-motion-seen[data-mct-effect="sentence"]{animation:mctSentence .85s ease-out both}
body[data-mct-text-motion="1"] .mct-motion-seen[data-mct-effect="extend"]{transform-origin:left center;animation:mctExtend .75s cubic-bezier(.2,.8,.2,1) both}
body[data-mct-text-motion="1"] .mct-brand-spin:hover{animation:mctBrandSpin .9s ease-in-out}
@media(prefers-reduced-motion:reduce){body[data-mct-text-motion="1"] .mct-motion-seen,body[data-mct-text-motion="1"] .mct-brand-spin{animation:none!important;transform:none!important;opacity:1!important;clip-path:none!important}}

/* Site-wide decoding: original text reserves layout and remains accessible. */
.mct-decode-wrap{display:inline-grid;vertical-align:baseline;max-width:100%;grid-template-columns:minmax(0,1fr)}
.mct-decode-original,.mct-decode-visual{grid-area:1/1;min-width:0;overflow-wrap:anywhere;font:inherit;letter-spacing:inherit;color:inherit}
.mct-decode-original{opacity:0}.mct-decode-visual{font-family:ui-monospace,Consolas,monospace;opacity:.82;pointer-events:none;user-select:none}
@media(prefers-reduced-motion:reduce){.mct-decode-original{opacity:1}.mct-decode-visual{display:none}}
