/* MT - Expertise Index */
.mtfe-ex {
    --ex-ink: #171917;
    --ex-cobalt: #3155E7;
    --ex-accent: #E2F268;
    --ex-muted: #565952;
    --ex-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 8fr);
    gap: 40px 72px;
    align-items: start;
    color: var(--ex-ink);
}
.mtfe-ex .mtfe-ex__side { position: sticky; top: 120px; }
.mtfe-ex .mtfe-ex__kicker {
    margin: 0 0 14px;
    font-family: var(--ex-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
body .elementor .mtfe-ex .mtfe-ex__title {
    margin: 0;
    color: var(--ex-ink);
    font-family: "Bricolage Grotesque", "Inter", sans-serif;
    font-weight: 800;
    font-size: clamp(30px, 3vw, 46px) !important;
    line-height: 1.04 !important;
    letter-spacing: -0.025em;
}
body .elementor .mtfe-ex h2 span,
body .elementor .mtfe-ex h3 span { color: inherit; font-size: inherit !important; line-height: inherit !important; }
.mtfe-ex .mtfe-ex__note {
    margin: 16px 0 0;
    color: var(--ex-muted);
    font-size: 15px;
    line-height: 1.6;
}
.mtfe-ex a.mtfe-ex__all,
.mtfe-ex a.mtfe-ex__all:visited {
    display: inline-block;
    margin-top: 22px;
    padding-bottom: 3px;
    border-bottom: 2px solid var(--ex-ink);
    color: var(--ex-ink);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease, border-color 0.2s ease;
}
.mtfe-ex a.mtfe-ex__all:hover { color: var(--ex-cobalt); border-color: var(--ex-cobalt); }

.mtfe-ex .mtfe-ex__rows {
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 2px solid var(--ex-ink);
}
.mtfe-ex .mtfe-ex__row {
    position: relative;
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    gap: 8px 24px;
    align-items: start;
    margin: 0;
    padding: 30px 0 30px;
    border-bottom: 1px solid var(--ex-ink);
}
.mtfe-ex .mtfe-ex__row::before {
    content: "";
    position: absolute;
    left: 0;
    top: -1px;
    width: 0;
    height: 3px;
    background: var(--ex-cobalt);
    transition: width 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.mtfe-ex .mtfe-ex__row:hover::before { width: 100%; }
.mtfe-ex .mtfe-ex__num {
    padding-top: 8px;
    color: var(--ex-cobalt);
    font-family: var(--ex-mono);
    font-size: 12px;
    font-weight: 500;
}
body .elementor .mtfe-ex .mtfe-ex__name {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: var(--ex-ink);
    font-family: "Bricolage Grotesque", "Inter", sans-serif;
    font-weight: 800;
    font-size: clamp(24px, 2.4vw, 34px) !important;
    line-height: 1.1 !important;
    letter-spacing: -0.02em;
    transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.mtfe-ex .mtfe-ex__row:hover .mtfe-ex__name { transform: translateX(6px); }
body .elementor .mtfe-ex .mtfe-ex__tag {
    padding: 4px 8px 3px;
    background: var(--ex-accent);
    font-family: var(--ex-mono);
    font-size: 10px !important;
    font-weight: 500;
    line-height: 1.2 !important;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.mtfe-ex .mtfe-ex__text {
    max-width: 38em;
    margin: 10px 0 0;
    color: var(--ex-muted);
    font-size: 16px;
    line-height: 1.6;
}
.mtfe-ex .mtfe-ex__dl {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
}
.mtfe-ex .mtfe-ex__dl li {
    margin: 0;
    padding: 4px 8px 3px;
    border: 1px solid var(--ex-ink);
    font-family: var(--ex-mono);
    font-size: 10.5px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: background-color 0.2s ease;
}
.mtfe-ex .mtfe-ex__row:hover .mtfe-ex__dl li { background: #FFFFFF; }
.mtfe-ex a.mtfe-ex__link,
.mtfe-ex a.mtfe-ex__link:visited {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    padding: 10px 14px;
    border: 1px solid var(--ex-ink);
    color: var(--ex-ink);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.mtfe-ex a.mtfe-ex__link span:last-child { transition: transform 0.3s cubic-bezier(0.3, 1.6, 0.5, 1); }
.mtfe-ex a.mtfe-ex__link:hover { background: var(--ex-ink); color: #F2EFE8; }
.mtfe-ex a.mtfe-ex__link:hover span:last-child { transform: translateX(4px); }

@media (max-width: 1024px) {
    .mtfe-ex { grid-template-columns: minmax(0, 1fr); }
    .mtfe-ex .mtfe-ex__side { position: static; }
}
@media (max-width: 767px) {
    .mtfe-ex .mtfe-ex__row { grid-template-columns: 34px minmax(0, 1fr); }
    .mtfe-ex a.mtfe-ex__link { grid-column: 2; justify-self: start; }
}

/* ---- photo preview on hover (desktop) ---- */
.mtfe-ex .mtfe-ex__preview {
    position: absolute;
    right: 170px;
    top: 50%;
    z-index: 3;
    width: 220px;
    border: 6px solid #FFFFFF;
    box-shadow: 6px 6px 0 var(--ex-ink);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-50%) rotate(4deg) scale(0.7);
    transition: opacity 0.25s ease, transform 0.4s cubic-bezier(0.3, 1.5, 0.5, 1);
}
.mtfe-ex .mtfe-ex__preview-img { display: block; width: 100%; max-width: none; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.mtfe-ex .mtfe-ex__row:hover .mtfe-ex__preview { opacity: 1; transform: translateY(-50%) rotate(-3deg) scale(1); }
@media (hover: none), (max-width: 1024px) { .mtfe-ex .mtfe-ex__preview { display: none; } }

/* ---- icon tile under the number ---- */
.mtfe-ex .mtfe-ex__lead { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.mtfe-ex .mtfe-ex__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border: 1px solid var(--ex-ink);
    background: #FFFFFF;
    color: var(--ex-cobalt);
    box-shadow: 3px 3px 0 var(--ex-ink);
    transition: transform 0.4s cubic-bezier(0.3, 1.6, 0.5, 1), background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}
.mtfe-ex .mtfe-ex__icon svg { width: 26px; height: 26px; }
.mtfe-ex .mtfe-icon__draw { stroke: var(--ex-ink); stroke-dasharray: 40; stroke-dashoffset: 0; transition: stroke 0.3s ease; }
.mtfe-ex .mtfe-ex__row:hover .mtfe-ex__icon { transform: rotate(-8deg) scale(1.06); background: var(--ex-accent); color: var(--ex-ink); box-shadow: 4px 4px 0 var(--ex-cobalt); }
.mtfe-ex .mtfe-ex__row:hover .mtfe-icon__draw { stroke: var(--ex-cobalt); animation: mtfe-ex-draw 0.7s ease both; }
@keyframes mtfe-ex-draw { from { stroke-dashoffset: 40; } to { stroke-dashoffset: 0; } }
@media (max-width: 767px) {
    .mtfe-ex .mtfe-ex__row { grid-template-columns: 42px minmax(0, 1fr); }
    .mtfe-ex .mtfe-ex__icon { width: 40px; height: 40px; box-shadow: 2px 2px 0 var(--ex-ink); }
    .mtfe-ex .mtfe-ex__icon svg { width: 22px; height: 22px; }
}
@media (prefers-reduced-motion: reduce) { .mtfe-ex .mtfe-ex__row:hover .mtfe-icon__draw { animation: none; } }
