/* MT - Process Timeline */
.mtfe-pt {
    --pt-ink: #171917;
    --pt-accent: #E2F268;
    --pt-second: #3155E7;
    --pt-muted: #565952;
    --pt-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
    --pt-progress: 0;
    color: var(--pt-ink);
}
.mtfe-pt .mtfe-pt__head {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    align-items: end;
    gap: 24px 64px;
    margin-bottom: 64px;
}
.mtfe-pt .mtfe-pt__kicker {
    margin: 0 0 14px;
    font-family: var(--pt-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
body .elementor .mtfe-pt .mtfe-pt__title {
    margin: 0;
    color: var(--pt-ink);
    font-family: "Bricolage Grotesque", "Inter", sans-serif;
    font-weight: 800;
    font-size: clamp(34px, 3.9vw, 60px) !important;
    line-height: 1.02 !important;
    letter-spacing: -0.025em;
}
body .elementor .mtfe-pt h2 span,
body .elementor .mtfe-pt h3 span { color: inherit; font-size: inherit !important; line-height: inherit !important; }
.mtfe-pt .mtfe-pt__intro {
    max-width: 30em;
    margin: 0;
    color: var(--pt-muted);
    font-size: 17px;
    line-height: 1.6;
}

/* timeline */
.mtfe-pt .mtfe-pt__steps {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0 32px;
    margin: 0;
    padding: 150px 0 0;
    list-style: none;
}
.mtfe-pt .mtfe-pt__track {
    position: absolute;
    left: 0;
    right: 0;
    top: 150px;
    height: 2px;
    margin: 0;
    background: rgba(23, 25, 23, 0.15);
}
.mtfe-pt .mtfe-pt__fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: calc(var(--pt-progress) * 100%);
    background: var(--pt-ink);
}
.mtfe-pt .mtfe-pt__fill::after {
    content: "";
    position: absolute;
    right: -6px;
    top: -5px;
    width: 12px;
    height: 12px;
    background: var(--pt-accent);
    border: 2px solid var(--pt-ink);
    transform: rotate(45deg);
}
.mtfe-pt .mtfe-pt__step {
    position: relative;
    margin: 0;
    padding-top: 34px;
}
.mtfe-pt .mtfe-pt__dot {
    position: absolute;
    left: 0;
    top: -9px;
    width: 18px;
    height: 18px;
    border: 2px solid var(--pt-ink);
    border-radius: 50%;
    background: #F2EFE8;
    transition: background-color 0.3s ease, transform 0.4s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.mtfe-pt .mtfe-pt__step.is-on .mtfe-pt__dot { background: var(--pt-accent); transform: scale(1.25); }

/* cut-out prop sits above the line */
.mtfe-pt .mtfe-pt__prop {
    position: absolute;
    left: 10px;
    bottom: calc(100% + 18px);
    width: 128px;
    pointer-events: auto;
}
.mtfe-pt .mtfe-pt__prop-img {
    display: block;
    width: 100%;
    max-width: none;
    height: auto;
    filter: drop-shadow(2px 0 0 #F2EFE8) drop-shadow(-2px 0 0 #F2EFE8) drop-shadow(0 2px 0 #F2EFE8) drop-shadow(0 -2px 0 #F2EFE8) drop-shadow(8px 10px 0 rgba(23, 25, 23, 0.18));
    transform: rotate(-8deg) translateY(16px) scale(0.85);
    opacity: 0.35;
    transition: transform 0.6s cubic-bezier(0.3, 1.5, 0.5, 1), opacity 0.4s ease;
}
.mtfe-pt .mtfe-pt__step:nth-child(odd) .mtfe-pt__prop-img { transform: rotate(9deg) translateY(16px) scale(0.85); }
.mtfe-pt .mtfe-pt__step.is-on .mtfe-pt__prop-img { opacity: 1; transform: rotate(-6deg) translateY(0) scale(1); }
.mtfe-pt .mtfe-pt__step.is-on:nth-child(odd) .mtfe-pt__prop-img { transform: rotate(7deg) translateY(0) scale(1); }
.mtfe-pt .mtfe-pt__step:hover .mtfe-pt__prop-img { transform: rotate(-14deg) translateY(-10px) scale(1.08); }

.mtfe-pt .mtfe-pt__num {
    display: block;
    color: transparent;
    font-family: "Bricolage Grotesque", "Inter", sans-serif;
    font-weight: 800;
    font-size: 54px;
    line-height: 1;
    letter-spacing: -0.03em;
    -webkit-text-stroke: 1.5px var(--pt-ink);
    transition: color 0.35s ease;
}
.mtfe-pt .mtfe-pt__step.is-on .mtfe-pt__num { color: var(--pt-ink); }
body .elementor .mtfe-pt .mtfe-pt__name {
    margin: 10px 0 0;
    color: var(--pt-ink);
    font-family: "Bricolage Grotesque", "Inter", sans-serif;
    font-weight: 800;
    font-size: 26px !important;
    line-height: 1.1 !important;
    letter-spacing: -0.02em;
}
.mtfe-pt .mtfe-pt__time {
    display: inline-block;
    margin: 10px 0 0;
    padding: 4px 8px 3px;
    background: var(--pt-ink);
    color: var(--pt-accent);
    font-family: var(--pt-mono);
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.mtfe-pt .mtfe-pt__text {
    margin: 14px 0 0;
    color: var(--pt-muted);
    font-size: 15px;
    line-height: 1.6;
}
.mtfe-pt .mtfe-pt__dl {
    display: grid;
    gap: 6px;
    margin: 16px 0 0;
    padding: 14px 0 0;
    border-top: 1px dashed rgba(23, 25, 23, 0.3);
    list-style: none;
}
.mtfe-pt .mtfe-pt__dl li {
    position: relative;
    margin: 0;
    padding-left: 18px;
    font-size: 14px;
    line-height: 1.4;
}
.mtfe-pt .mtfe-pt__dl li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.42em;
    width: 8px;
    height: 8px;
    background: var(--pt-second);
    transition: transform 0.35s ease;
}
.mtfe-pt .mtfe-pt__step:hover .mtfe-pt__dl li::before { transform: rotate(45deg); }

@media (prefers-reduced-motion: no-preference) {
    .mtfe-pt .mtfe-pt__step.is-on .mtfe-pt__prop { animation: mtfe-pt-bob 5s ease-in-out 0.6s infinite; }
}
@keyframes mtfe-pt-bob { 50% { transform: translateY(-8px); } }

@media (max-width: 1024px) {
    .mtfe-pt .mtfe-pt__head { grid-template-columns: minmax(0, 1fr); }
    .mtfe-pt .mtfe-pt__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 170px 32px; }
    .mtfe-pt .mtfe-pt__track { display: none; }
}
@media (max-width: 767px) {
    .mtfe-pt .mtfe-pt__steps {
        grid-template-columns: minmax(0, 1fr);
        gap: 48px;
        padding: 0 0 0 36px;
    }
    .mtfe-pt .mtfe-pt__track {
        display: block;
        left: 8px;
        right: auto;
        top: 0;
        bottom: 0;
        width: 2px;
        height: auto;
    }
    .mtfe-pt .mtfe-pt__fill { width: 100%; height: calc(var(--pt-progress) * 100%); }
    .mtfe-pt .mtfe-pt__fill::after { right: -5px; top: auto; bottom: -6px; }
    .mtfe-pt .mtfe-pt__step { padding-top: 0; }
    .mtfe-pt .mtfe-pt__dot { left: -37px; top: 6px; }
    .mtfe-pt .mtfe-pt__prop { position: static; display: block; width: 90px; margin-bottom: 10px; }
}

/* ---- without props: the line sits right under the heading ---- */
.mtfe-pt--plain .mtfe-pt__steps { padding-top: 24px; }
.mtfe-pt--plain .mtfe-pt__track { top: 24px; }
@media (max-width: 1024px) { .mtfe-pt--plain .mtfe-pt__steps { gap: 48px 32px; } }
@media (max-width: 767px) { .mtfe-pt--plain .mtfe-pt__steps { padding-top: 0; } .mtfe-pt--plain .mtfe-pt__track { top: 0; } }

/* ---- icon tile beside the step number ---- */
.mtfe-pt .mtfe-pt__stephead { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-right: 6px; }
.mtfe-pt .mtfe-pt__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 50px;
    height: 50px;
    border: 1px solid var(--pt-ink);
    background: #FFFFFF;
    color: var(--pt-ink);
    box-shadow: 3px 3px 0 var(--pt-ink);
    transition: transform 0.4s cubic-bezier(0.3, 1.6, 0.5, 1), background-color 0.35s ease, box-shadow 0.3s ease;
}
.mtfe-pt .mtfe-pt__icon svg { width: 26px; height: 26px; }
.mtfe-pt .mtfe-pt__icon .mtfe-icon__draw { stroke: var(--pt-second); stroke-width: 1.9; stroke-dasharray: 40; }
/* reached by the scroll progress line: tile lights up */
.mtfe-pt .mtfe-pt__step.is-on .mtfe-pt__icon { background: var(--pt-accent); }
.mtfe-pt .mtfe-pt__step:hover .mtfe-pt__icon { transform: rotate(-8deg) scale(1.06); box-shadow: 4px 4px 0 var(--pt-second); }
.mtfe-pt .mtfe-pt__step:hover .mtfe-icon__draw { animation: mtfe-pt-draw 0.7s ease both; }
@keyframes mtfe-pt-draw { from { stroke-dashoffset: 40; } to { stroke-dashoffset: 0; } }
@media (max-width: 767px) { .mtfe-pt .mtfe-pt__icon { width: 44px; height: 44px; } .mtfe-pt .mtfe-pt__icon svg { width: 23px; height: 23px; } }
@media (prefers-reduced-motion: reduce) { .mtfe-pt .mtfe-pt__step:hover .mtfe-icon__draw { animation: none; } }
