/* MT - Annotated Case Cards */
.mtfe-cc {
    --cc-ink: #171917;
    --cc-cobalt: #3155E7;
    --cc-accent: #E2F268;
    --cc-muted: #565952;
    --cc-card: #FFFFFF;
    --cc-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
    color: var(--cc-ink);
}
.mtfe-cc .mtfe-cc__head { margin-bottom: 44px; }
.mtfe-cc .mtfe-cc__kicker {
    margin: 0 0 14px;
    font-family: var(--cc-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
body .elementor .mtfe-cc .mtfe-cc__title {
    margin: 0;
    color: var(--cc-ink);
    font-family: "Bricolage Grotesque", "Inter", sans-serif;
    font-weight: 800;
    font-size: clamp(32px, 3.6vw, 56px) !important;
    line-height: 1.04 !important;
    letter-spacing: -0.025em;
}
body .elementor .mtfe-cc h2 span,
body .elementor .mtfe-cc h3 span { color: inherit; font-size: inherit !important; line-height: inherit !important; }
.mtfe-cc .mtfe-cc__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
}
.mtfe-cc .mtfe-cc__card {
    display: flex;
    flex-direction: column;
    padding: 28px;
    border: 1.5px solid var(--cc-ink);
    background: var(--cc-card);
    transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.3s ease;
}
.mtfe-cc .mtfe-cc__card:hover { transform: translate(-4px, -4px); box-shadow: 8px 8px 0 var(--cc-cobalt); }
.mtfe-cc .mtfe-cc__meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
    margin: 0 0 14px;
    font-family: var(--cc-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.mtfe-cc .mtfe-cc__industry { padding: 3px 8px 2px; border: 1px solid var(--cc-ink); }
body .elementor .mtfe-cc .mtfe-cc__headline {
    margin: 0 0 18px;
    color: var(--cc-ink);
    font-family: "Bricolage Grotesque", "Inter", sans-serif;
    font-weight: 800;
    font-size: clamp(22px, 2vw, 28px) !important;
    line-height: 1.15 !important;
    letter-spacing: -0.02em;
}
.mtfe-cc .mtfe-cc__figure {
    padding: 14px 10px 6px;
    border-top: 1px solid var(--cc-ink);
    border-bottom: 1px solid var(--cc-ink);
    background: #F7F5F0;
}
.mtfe-cc .mtfe-cc__chart { display: block; width: 100%; height: auto; overflow: visible; }
.mtfe-cc .mtfe-cc__grid line, .mtfe-cc line.mtfe-cc__grid { stroke: rgba(23, 25, 23, 0.12); stroke-width: 1; stroke-dasharray: 3 4; }
.mtfe-cc .mtfe-cc__axis { stroke: var(--cc-ink); stroke-width: 1.2; }
.mtfe-cc .mtfe-cc__tick,
.mtfe-cc .mtfe-cc__date,
.mtfe-cc .mtfe-cc__ylabel,
.mtfe-cc .mtfe-cc__marker text {
    fill: var(--cc-muted);
    font-family: var(--cc-mono);
    font-size: 10px;
    letter-spacing: 0.04em;
}
.mtfe-cc .mtfe-cc__ylabel { fill: var(--cc-ink); font-weight: 500; text-transform: uppercase; }
.mtfe-cc .mtfe-cc__marker line { stroke: var(--cc-cobalt); stroke-width: 1.2; stroke-dasharray: 4 3; }
.mtfe-cc .mtfe-cc__marker text { fill: var(--cc-cobalt); font-weight: 500; }
.mtfe-cc .mtfe-cc__stop-a { stop-color: #3155E7; stop-opacity: 0.22; }
.mtfe-cc .mtfe-cc__stop-b { stop-color: #3155E7; stop-opacity: 0; }
.mtfe-cc .mtfe-cc__line { fill: none; stroke: var(--cc-cobalt); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.mtfe-cc .mtfe-cc__pt { fill: #FFFFFF; stroke: var(--cc-cobalt); stroke-width: 1.8; transition: r 0.2s ease, fill 0.2s ease; }
.mtfe-cc .mtfe-cc__pt.is-last { fill: var(--cc-accent); stroke: var(--cc-ink); }
.mtfe-cc .mtfe-cc__pt:hover { fill: var(--cc-accent); r: 6; }

.mtfe-cc .mtfe-cc__facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 22px;
    margin: 20px 0 0;
}
.mtfe-cc .mtfe-cc__facts div { margin: 0; }
.mtfe-cc .mtfe-cc__facts dt {
    margin: 0 0 4px;
    color: var(--cc-cobalt);
    font-family: var(--cc-mono);
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.mtfe-cc .mtfe-cc__facts dd { margin: 0; font-size: 14.5px; line-height: 1.5; }
.mtfe-cc .mtfe-cc__result dd { display: flex; flex-direction: column; gap: 2px; }
.mtfe-cc .mtfe-cc__result strong {
    width: fit-content;
    font-family: "Bricolage Grotesque", "Inter", sans-serif;
    font-size: 40px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
    background: linear-gradient(var(--cc-accent), var(--cc-accent)) 0 88% / 100% 34% no-repeat;
}
.mtfe-cc .mtfe-cc__result span { color: var(--cc-muted); font-size: 13px; }
.mtfe-cc .mtfe-cc__source {
    margin: 16px 0 0;
    padding-top: 12px;
    border-top: 1px dashed rgba(23, 25, 23, 0.3);
    color: var(--cc-muted);
    font-family: var(--cc-mono);
    font-size: 10.5px;
    letter-spacing: 0.04em;
}
.mtfe-cc a.mtfe-cc__link,
.mtfe-cc a.mtfe-cc__link:visited {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding: 14px 16px;
    border: 1.5px solid var(--cc-ink);
    color: var(--cc-ink);
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.mtfe-cc .mtfe-cc__source + a.mtfe-cc__link,
.mtfe-cc .mtfe-cc__facts + a.mtfe-cc__link { margin-top: 20px; }
.mtfe-cc a.mtfe-cc__link span:last-child { transition: transform 0.3s cubic-bezier(0.3, 1.6, 0.5, 1); }
.mtfe-cc a.mtfe-cc__link:hover { background: var(--cc-ink); color: #F2EFE8; }
.mtfe-cc a.mtfe-cc__link:hover span:last-child { transform: rotate(45deg); }
.mtfe-cc .mtfe-cc__note {
    margin: 26px 0 0;
    color: var(--cc-muted);
    font-family: var(--cc-mono);
    font-size: 10.5px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
@media (prefers-reduced-motion: no-preference) {
    .is-reveal-ready .mtfe-cc__line { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s cubic-bezier(0.5, 0, 0.2, 1) 0.5s; }
    .is-reveal-ready.is-inview .mtfe-cc__line { stroke-dashoffset: 0; }
    .is-reveal-ready .mtfe-cc__area, .is-reveal-ready .mtfe-cc__pt, .is-reveal-ready .mtfe-cc__marker { opacity: 0; transition: opacity 0.6s ease 1.7s; }
    .is-reveal-ready.is-inview .mtfe-cc__area, .is-reveal-ready.is-inview .mtfe-cc__pt, .is-reveal-ready.is-inview .mtfe-cc__marker { opacity: 1; }
}
@media (max-width: 1024px) {
    .mtfe-cc .mtfe-cc__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
    .mtfe-cc .mtfe-cc__card { padding: 20px 16px; }
    .mtfe-cc .mtfe-cc__facts { grid-template-columns: minmax(0, 1fr); }
}

/* ---- project photo + mascot ---- */
.mtfe-cc .mtfe-cc__head { position: relative; }
.mtfe-cc .mtfe-cc__scout { position: absolute; right: 3%; bottom: -30px; --scout-w: 128px; }
.mtfe-cc .mtfe-cc__scout .mtfe-scout__bubble { left: auto; right: 84%; bottom: 60%; }
.mtfe-cc .mtfe-cc__photo { margin: -28px -28px 22px; aspect-ratio: 16 / 7; overflow: hidden; border-bottom: 1.5px solid var(--cc-ink); }
.mtfe-cc .mtfe-cc__img { display: block; width: 100%; max-width: none; height: 100%; object-fit: cover; transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
.mtfe-cc .mtfe-cc__card:hover .mtfe-cc__img { transform: scale(1.05); }
@media (max-width: 767px) {
    .mtfe-cc .mtfe-cc__photo { margin: -20px -16px 18px; }
    .mtfe-cc .mtfe-cc__scout { position: relative; right: auto; bottom: auto; margin-top: 16px !important; --scout-w: 100px; }
    .mtfe-cc .mtfe-cc__scout .mtfe-scout__bubble { left: 100%; right: auto; bottom: 40%; }
}
