.mtx-title {
    --mtx-accent: #ff7048;
    --mtx-ink: #ffffff;
    position: relative;
    min-width: 0;
    overflow: hidden;
    color: var(--mtx-ink);
    isolation: isolate;
}

.mtx-title--public,
.mtx-title--admin { margin-bottom: 14px; }

.mtx-eyebrow {
    display: flex;
    align-items: center;
    gap: 9px;
    width: max-content;
    max-width: 100%;
    color: rgba(255, 255, 255, .74);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .16em;
    white-space: nowrap;
}

.mtx-eyebrow img {
    width: 25px;
    height: 25px;
    padding: 2px;
    border: 1px solid rgba(255, 255, 255, .32);
    border-radius: 50%;
    background: #fff;
    object-fit: contain;
}

.mtx-eyebrow::after {
    content: "";
    width: clamp(28px, 6vw, 78px);
    height: 1px;
    margin-left: 3px;
    background: var(--mtx-accent);
    transform-origin: left;
}

.mtx-motion-toggle {
    display: inline-grid;
    place-items: center;
    width: 27px;
    height: 27px;
    margin-left: 2px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    color: rgba(255, 255, 255, .78);
    font: 800 9px/1 sans-serif;
    letter-spacing: -.02em;
    cursor: pointer;
}
.mtx-motion-toggle:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.mtx-motion-toggle:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.mtx-motion-toggle [data-motion-icon] { display: block; transform: translateX(.2px); }
.mtx-visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }

.mtx-title-block {
    width: max-content;
    max-width: 100%;
}

.mtx-heading {
    display: flex;
    align-items: baseline;
    gap: .18em;
    flex-wrap: nowrap;
    margin: 10px 0 8px !important;
    color: inherit !important;
    font-size: clamp(38px, 5.5vw, 70px) !important;
    font-weight: 900 !important;
    line-height: .88 !important;
    letter-spacing: -.065em !important;
}

.mtx-line {
    display: inline-block;
    flex: 0 0 auto;
    min-height: .92em;
    overflow: hidden;
    padding: .04em .04em .08em 0;
    white-space: nowrap;
}

.mtx-line--accent { color: var(--mtx-accent); }
.mtx-char { display: inline-block; transform-origin: 50% 100%; }
.mtx-char--space { width: .27em; }

.mtx-kicker {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    color: rgba(255, 255, 255, .68);
    font-size: 11px;
    font-weight: 650;
    letter-spacing: .02em;
}

.mtx-kicker i { flex: 1; height: 1px; background: rgba(255, 255, 255, .22); }
.mtx-kicker b { color: rgba(255, 255, 255, .82); font: 700 9px/1 monospace; letter-spacing: .13em; white-space: nowrap; }

.mtx-scan {
    position: absolute;
    z-index: 3;
    inset: 0 auto 0 -4px;
    width: 3px;
    opacity: 0;
    background: var(--mtx-accent);
    box-shadow: 0 0 18px var(--mtx-accent);
    pointer-events: none;
}

.mtx-title--admin .mtx-heading { font-size: clamp(34px, 4.4vw, 58px) !important; }

.public-page .mtx-heading { font-size: clamp(36px, 5vw, 58px) !important; }
.dashboard-page .mtx-heading { font-size: clamp(34px, 4.2vw, 52px) !important; }

.mtx-title--mobile {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    gap: 8px;
    min-width: 0;
    overflow: visible;
}

.mtx-mobile-mark {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    padding: 2px;
    border-radius: 11px;
    border: 1px solid rgba(255, 255, 255, .42);
    background: #fff;
    object-fit: contain;
}

.mtx-mobile-copy { min-width: 0; }
.mtx-mobile-heading {
    display: flex;
    align-items: baseline;
    gap: .18em;
    margin: 0 !important;
    overflow: visible;
    color: #fff !important;
    font-size: clamp(13px, 3.8vw, 16px) !important;
    font-weight: 900 !important;
    line-height: 1.1 !important;
    letter-spacing: -.045em !important;
    white-space: nowrap;
}
.mtx-mobile-heading .mtx-line { min-height: 1em; padding-bottom: .08em; }
.mtx-motion-toggle--mobile { flex: 0 0 auto; width: 19px; height: 19px; margin-left: -4px; border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.10); font-size: 8px; }
.mtx-motion-toggle--mobile [data-motion-icon] { transform: none; }

.mtx-ready:not(.mtx-settled) .mtx-eyebrow,
.mtx-ready:not(.mtx-settled) .mtx-kicker,
.mtx-ready:not(.mtx-settled) .mtx-char { opacity: 0; }

.mtx-ready.mtx-play .mtx-eyebrow { animation: mtx-rise .72s .08s cubic-bezier(.22, .8, .2, 1) both; }
.mtx-ready.mtx-play .mtx-eyebrow::after { animation: mtx-line-grow .9s .5s cubic-bezier(.22, .8, .2, 1) both; }
.mtx-ready.mtx-play .mtx-char { animation: mtx-type-in .92s var(--mtx-delay) cubic-bezier(.16, .9, .22, 1.05) both; }
.mtx-ready.mtx-play .mtx-line--accent .mtx-char { animation-name: mtx-type-accent; }
.mtx-ready.mtx-play .mtx-kicker { animation: mtx-rise .72s 1.72s ease-out both; }
.mtx-ready.mtx-play .mtx-scan { animation: mtx-scan 1.7s .12s cubic-bezier(.5, 0, .3, 1) both; }

.mtx-title--mobile.mtx-ready.mtx-play .mtx-char { animation-duration: .7s; }

.mtx-settled .mtx-char,
.mtx-settled .mtx-eyebrow,
.mtx-settled .mtx-kicker,
.mtx-settled .mtx-mobile-copy { opacity: 1; transform: none; filter: none; clip-path: inset(0); }

@keyframes mtx-type-in {
    0% { opacity: 0; transform: translateY(100%) rotate(5deg); filter: blur(4px); }
    64% { opacity: 1; transform: translateY(-4%) rotate(-1deg); filter: blur(0); }
    100% { opacity: 1; transform: none; filter: blur(0); }
}

@keyframes mtx-type-accent {
    0% { opacity: 0; transform: translateX(-.28em) skewX(-13deg); clip-path: inset(0 100% 0 0); }
    72% { opacity: 1; transform: translateX(.02em) skewX(1deg); clip-path: inset(0); }
    100% { opacity: 1; transform: none; clip-path: inset(0); }
}

@keyframes mtx-rise {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: none; }
}

@keyframes mtx-line-grow {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

@keyframes mtx-scan {
    0% { opacity: 0; transform: translateX(0); }
    14% { opacity: .85; }
    84% { opacity: .68; }
    100% { opacity: 0; transform: translateX(100vw); }
}

@media (max-width: 720px) {
    .public-page .mtx-heading,
    .dashboard-page .mtx-heading { font-size: clamp(27px, 7.5vw, 34px) !important; }
    .mtx-kicker { gap: 8px; font-size: 10px; }
    .mtx-title:not(.mtx-title--mobile) .mtx-motion-toggle { display: none; }
}

@media (max-width: 390px) {
    .public-page .mtx-heading,
    .dashboard-page .mtx-heading { font-size: 27px !important; }
    .mtx-eyebrow { font-size: 9px; letter-spacing: .11em; }
    .mtx-eyebrow::after { width: 26px; }
}

@media (prefers-reduced-motion: reduce) {
    .mtx-title *, .mtx-title *::before, .mtx-title *::after {
        animation-duration: .01ms !important;
        animation-delay: 0ms !important;
    }
}
