/* FUNMOA partnership: content-first visuals, isolated from the existing layouts. */
:root {
    --red: #9b2e42;
    --red-dark: #762236;
    --red-soft: #f4e7e8;
    --fm-red: #9b2e42;
    --fm-red-hover: #762236;
    --fm-rose: #f7aa9d;
}
.brand-dot { background: var(--fm-red); }
.fm-hero .fm-hero-primary, .fm-contact .channel-email { background: #9b2e42; }
.fm-hero .fm-hero-primary:hover, .fm-contact .channel-email:hover { background: #81283a; }
.fm-contact .channel-email { border-color: #c16c7c; }
.fm-partner { background: linear-gradient(180deg, #fbf4ee, #f8eeea); }
.fm-partner .fm-problem-intro { align-items: start; margin-bottom: 35px; }
.fm-partner .fm-problem-intro > div { min-width: 0; flex: 1; }
.fm-partner .fm-problem-intro h2 { font-size: clamp(34px, 4.15vw, 58px); line-height: 1.22; }
.fm-partner h2 em { color: var(--fm-red-hover); font-style: normal; }
.fm-partner .fm-partner-lead { max-width: 450px; padding-top: 29px; }
.fm-partner-lead p { color: var(--fm-muted); font-size: 16px; line-height: 1.85; }
.fm-partner-lead p + p { margin-top: 13px; }
.fm-partner-lead strong { color: #572d36; font-weight: 700; }
.fm-partner-model {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    margin: 0;
    padding: clamp(24px, 3.4vw, 46px);
    border: 1px solid #713844;
    border-radius: 22px;
    background: radial-gradient(ellipse at 92% 0%, #81334580, transparent 65%), linear-gradient(120deg, #271119, #421c29);
    color: #fff6f0;
    box-shadow: 0 22px 55px -30px #4c182a80, inset 0 1px #fff0e516;
}
.fm-partner-model::before {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background-image: linear-gradient(#f7c6b708 1px, transparent 1px), linear-gradient(90deg, #f7c6b708 1px, transparent 1px);
    background-size: 32px 32px;
    -webkit-mask-image: linear-gradient(100deg, transparent, #000);
    mask-image: linear-gradient(100deg, transparent, #000);
}
.fm-partner-model-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.fm-partner-model-head > div { min-width: 0; }
.fm-model-label { color: #e5a597; font-size: 10px; font-weight: 700; letter-spacing: .12em; }
.fm-partner-model-head h3 { margin-top: 10px; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.35; letter-spacing: -.045em; }
.fm-model-tag { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; padding: 7px 11px; border: 1px solid #f5c4b733; border-radius: 30px; color: #f4d4cb; font-size: 11px; }
.fm-model-tag > span { width: 5px; height: 5px; border-radius: 50%; background: #f8ad98; }
.fm-cycle { margin-top: 28px; }
.fm-cycle-return { display: flex; justify-content: center; align-items: center; gap: 10px; width: 100%; margin: 0; padding: 12px 16px; border: 1px solid #e6a39738; border-radius: 10px; background: #ffffff05; text-align: center; }
.fm-cycle-return > span { color: #efc4b5; font-size: 12px; line-height: 1.65; }
.fm-cycle-return > .bi { flex: 0 0 auto; color: #f7b7a0; font-size: 17px; line-height: 1; }
.fm-cycle-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px; padding-block: 0 18px; }
.fm-cycle-steps > li { position: relative; display: grid; grid-template-rows: 72px 38px minmax(38px, auto); align-items: start; justify-items: center; padding: 18px 10px 16px; border: 1px solid #e9b2a626; border-radius: 13px; background: linear-gradient(155deg, #f8d3c308, #fff3e803); text-align: center; min-width: 0; }
.fm-cycle-steps > li + li::before { content: ""; position: absolute; top: 53px; right: calc(100% + 4px); width: 18px; height: 1px; background: #cf9385; }
.fm-cycle-steps > li + li::after { content: ""; position: absolute; top: 51px; right: calc(100% + 4px); width: 5px; height: 5px; border-top: 1px solid #efb3a0; border-right: 1px solid #efb3a0; transform: rotate(45deg); }
.fm-cycle-icon { position: relative; display: grid; place-items: center; width: 72px; height: 72px; margin-bottom: 0; border: 1px solid #e4a09366; border-radius: 18px; background: linear-gradient(145deg, #753346, #4b2332); box-shadow: inset 0 1px #f5d3bf22; }
.fm-cycle-icon > .bi { color: #ffd2c0; font-size: 27px; line-height: 1; }
.fm-cycle-icon small { position: absolute; right: -6px; bottom: -5px; display: grid; place-items: center; width: 21px; height: 21px; border: 1px solid #a76b6b; border-radius: 50%; color: #ffdfd2; background: #44212d; font-size: 9px; line-height: 1; }
.fm-cycle-steps strong { margin-top: 14px; font-size: clamp(14px, 1.3vw, 17px); line-height: 1.4; }
.fm-cycle-steps strong + span { margin-top: 6px; color: #dfbdb8; font-size: 12px; line-height: 1.6; }
.fm-partner-equation { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 17px; margin-top: 22px; font-size: 13px; }
.fm-partner-equation > span { display: inline-flex; align-items: center; gap: 7px; color: #e7c8c1; }
.fm-partner-equation b, .fm-partner-equation > .bi { color: #c98c88; font-weight: 500; }
.fm-partner-equation strong { color: #ffcfba; }
.fm-partner-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 24px; }
.fm-partner-card { display: flex; flex-direction: column; min-width: 0; padding: clamp(20px, 2.4vw, 30px); overflow: hidden; border: 1px solid #e7d4cd; border-radius: 16px; background: #fffcf8; }
.fm-partner-card-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; color: #894353; }
.fm-partner-card-top > span { font-size: 11px; font-weight: 700; letter-spacing: .015em; }
.fm-partner-card-top > .bi { font-size: 21px; }
.fm-partner-card h3 { margin-top: 19px; color: var(--fm-ink); font-size: clamp(21px, 2vw, 27px); line-height: 1.4; letter-spacing: -.045em; }
.fm-partner-card h3 + p { flex: 1; margin-top: 13px; color: var(--fm-muted); font-size: 14px; line-height: 1.85; }
.fm-mini { display: flex; justify-content: center; align-items: center; min-height: 100px; margin-top: 22px; padding: 14px 10px; border: 1px solid #e9dcd7; border-radius: 10px; background: linear-gradient(140deg, #f9f0ec, #f1e2e1); }
.fm-mini-modules { gap: 7px; }
.fm-mini-modules > span { display: grid; justify-items: center; gap: 6px; flex: 1; padding: 12px 3px; border: 1px solid #dcbfbd; border-radius: 7px; color: #62313d; background: #fffbf9; font-size: 10px; line-height: 1.2; }
.fm-mini-modules .bi { font-size: 20px; }
.fm-mini-modules .fm-module-new { border-style: dashed; color: #8e364d; background: #f5e7e6; }
.fm-mini-handover { gap: 0; }
.fm-mini-handover > span { position: relative; display: grid; justify-items: center; gap: 5px; width: 33.333%; color: #8a4b58; line-height: 1.2; }
.fm-mini-handover > span + span::before { content: ""; position: absolute; top: 16px; right: calc(50% + 19px); width: calc(100% - 38px); height: 1px; background: #bf9095; }
.fm-mini-handover .bi { z-index: 1; font-size: 25px; }
.fm-mini-handover small { font-size: 10px; color: #704851; }
.fm-mini-handover .fm-record { color: #6f253b; }
.fm-record b { position: absolute; top: 13px; left: -3px; width: 5px; height: 5px; border-radius: 50%; background: #a4475a; opacity: 0; }
.fm-mini-insight { gap: 24px; }
.fm-insight-records { display: grid; grid-template-columns: repeat(3, 15px); justify-content: center; align-items: end; gap: 5px; }
.fm-insight-records > i { display: block; height: 25px; border-radius: 3px 3px 0 0; background: #c7989c; transform-origin: bottom; }
.fm-insight-records > i:nth-child(2) { height: 37px; background: #a76476; }
.fm-insight-records > i:nth-child(3) { height: 31px; background: #873f56; }
.fm-insight-records small { grid-column: 1 / -1; white-space: nowrap; justify-self: center; margin-top: 4px; }
.fm-mini-insight > .bi { color: #aa7781; font-size: 17px; }
.fm-insight-result { display: grid; justify-items: center; gap: 5px; color: #783349; }
.fm-insight-result > .bi { font-size: 28px; line-height: 1.3; }
.fm-mini-insight small { color: #704851; font-size: 10px; }
.fm-partner-card-foot { margin-top: 14px; color: #8a5b63; font-size: 11px; line-height: 1.6; }
.fm-partner-bottom { display: flex; justify-content: space-between; align-items: center; gap: 25px; margin-top: 27px; padding: 5px 1px; }
.fm-partner-bottom p { color: var(--fm-muted); font-size: 14px; line-height: 1.8; }
.fm-partner-bottom strong { color: #4c2832; }
.fm-partner-bottom .fm-inline-link { flex: 0 0 auto; }
.fm-vision { position: relative; overflow: hidden; background: radial-gradient(ellipse at 92% 12%, #75344960, transparent 55%), #301820; }
.fm-vision-steps li { position: relative; }
.fm-vision-steps li::after { content: ""; position: absolute; bottom: 0; left: 0; width: 100%; height: 1px; background: linear-gradient(90deg, #f3b09c80, transparent); transform-origin: left; }
.fm-services .service-card { position: relative; overflow: hidden; }
.fm-services .service-card::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; background: var(--fm-red); transform: scaleX(0); transform-origin: left; transition: transform .3s ease; }
.fm-services .service-card:hover::after, .fm-services .service-card:focus-visible::after { transform: scaleX(1); }

@keyframes fm-partner-highlight { 0%, 18%, 100% { border-color: #e4a09366; box-shadow: inset 0 1px #f5d3bf22; } 6%, 12% { border-color: #ffd0ba; box-shadow: 0 0 0 4px #ffd0ba12, 0 0 24px #edb49d20, inset 0 1px #ffe6d14d; } }
@keyframes fm-module-fit { 0%, 100% { transform: translateY(3px); opacity: .6; } 35%, 75% { transform: translateY(-3px); opacity: 1; } }
@keyframes fm-record-pass { 0% { transform: translateX(-18px); opacity: 0; } 20%, 80% { opacity: 1; } 100% { transform: translateX(88px); opacity: 0; } }
@keyframes fm-record-read { from { transform: scaleY(.45); opacity: .6; } to { transform: scaleY(1); opacity: 1; } }
@keyframes fm-vision-line { from { transform: scaleX(.12); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: no-preference) {
    .fm-map.is-visible .fm-map-signal, .fm-map.is-visible .fm-map-core-dot { animation-play-state: paused; }
    .fm-map.fm-in-view .fm-map-signal, .fm-map.fm-in-view .fm-map-core-dot { animation-play-state: running; }
    .fm-partner-model.fm-in-view .fm-cycle-icon { animation: fm-partner-highlight 7.2s ease-in-out infinite; }
    .fm-cycle-steps > li:nth-child(2) .fm-cycle-icon { animation-delay: 1.8s; }
    .fm-cycle-steps > li:nth-child(3) .fm-cycle-icon { animation-delay: 3.6s; }
    .fm-cycle-steps > li:nth-child(4) .fm-cycle-icon { animation-delay: 5.4s; }
    .fm-partner-card.fm-in-view .fm-module-new { animation: fm-module-fit 3.6s ease-in-out infinite; }
    .fm-partner-card.fm-in-view .fm-record b { animation: fm-record-pass 3.6s ease-in-out infinite; }
    .fm-partner-card.fm-in-view .fm-insight-records > i { animation: fm-record-read 1.1s cubic-bezier(.2,.7,.2,1) both; }
    .fm-partner-card.fm-in-view .fm-insight-records > i:nth-child(2) { animation-delay: .18s; }
    .fm-partner-card.fm-in-view .fm-insight-records > i:nth-child(3) { animation-delay: .36s; }
    .fm-vision-steps.fm-in-view li::after { animation: fm-vision-line 1s ease both; }
    .fm-vision-steps.fm-in-view li:nth-child(2)::after { animation-delay: .15s; }
    .fm-vision-steps.fm-in-view li:nth-child(3)::after { animation-delay: .3s; }
    .fm-partner-card { transition: border-color .3s, box-shadow .3s; }
}
.fm-document-hidden .fm-map *, .fm-document-hidden [data-fm-motion] *,
.fm-document-hidden .fm-vision-steps li::after { animation-play-state: paused !important; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .fm-partner-card:hover { border-color: #b97e89; box-shadow: 0 14px 28px -22px #6f2e4580; }
    .fm-services .service-card .service-icon { transition: transform .3s; }
    .fm-services .service-card:hover .service-icon { transform: translateY(-3px) rotate(-5deg); }
}
@media (min-width: 961px) {
    .fm-partner-model-head h3 br { display: none; }
}
@media (max-width: 960px) {
    .fm-partner-cards { gap: 12px; }
    .fm-partner-card { padding: 21px 17px; }
    .fm-partner-card h3 { font-size: 22px; }
    .fm-partner .fm-partner-lead { max-width: 390px; }
    .fm-mini-insight { gap: 15px; }
}
@media (max-width: 760px) {
    .fm-partner .fm-problem-intro { gap: 18px; margin-bottom: 25px; }
    .fm-partner .fm-problem-intro h2 { font-size: clamp(32px, 8.5vw, 45px); }
    .fm-partner .fm-partner-lead { max-width: none; padding-top: 0; }
    .fm-partner-lead p { font-size: 15px; }
    .fm-partner-model { padding: 23px 20px; border-radius: 16px; }
    .fm-partner-model-head h3 { font-size: 26px; }
    .fm-partner-model-head { flex-wrap: wrap; align-items: flex-start; gap: 14px; }
    .fm-model-label { font-size: 9px; letter-spacing: .08em; }
    .fm-model-tag { font-size: 10px; padding: 5px 9px; }
    .fm-cycle { margin-top: 22px; }
    .fm-cycle-return { display: flex; align-items: flex-start; gap: 9px; width: 100%; margin: 0 0 20px; padding: 10px 12px; border: 1px solid #e6a39733; border-radius: 8px; background: #ffffff05; text-align: left; }
    .fm-cycle-return > span { position: static; max-width: none; padding: 0; background: none; font-size: 11px; line-height: 1.65; }
    .fm-cycle-return > .bi { position: static; flex: 0 0 auto; margin-top: 2px; padding: 0; background: none; transform: none; font-size: 14px; line-height: 1; }
    .fm-cycle-steps { grid-template-columns: minmax(0, 1fr); gap: 25px; padding-block: 0 25px; }
    .fm-cycle-steps > li { display: grid; grid-template-columns: 54px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 18px; row-gap: 4px; justify-items: start; padding: 0; border: 0; border-radius: 0; background: none; text-align: left; }
    .fm-cycle-icon { grid-row: 1 / 3; width: 54px; height: 54px; margin: 0; border-radius: 13px; }
    .fm-cycle-icon > .bi { font-size: 23px; }
    .fm-cycle-icon small { right: -5px; bottom: -4px; width: 20px; height: 20px; }
    .fm-cycle-steps strong { align-self: end; margin: 0; font-size: 16px; }
    .fm-cycle-steps strong + span { align-self: start; margin: 0; font-size: 12px; line-height: 1.65; }
    .fm-cycle-steps > li + li::before { top: -24px; right: auto; left: 27px; width: 1px; height: 17px; }
    .fm-cycle-steps > li + li::after { top: -12px; right: auto; left: 25px; transform: rotate(135deg); }
    .fm-partner-equation { gap: 10px; margin-top: 0; padding-top: 18px; border-top: 1px solid #e6af9f2b; font-size: 11px; }
    .fm-partner-equation > .bi { display: none; }
    .fm-partner-equation strong { flex-basis: 100%; text-align: center; font-size: 13px; }
    .fm-partner-cards { grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 18px; }
    .fm-partner-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(100px, .8fr); gap: 0 16px; padding: 22px; }
    .fm-partner-card-top { grid-column: 1 / -1; }
    .fm-partner-card h3 { grid-column: 1 / -1; margin-top: 13px; font-size: 24px; }
    .fm-partner-card h3 + p { grid-column: 1 / -1; margin-top: 10px; font-size: 14px; }
    .fm-mini { grid-column: 1 / -1; margin-top: 17px; min-height: 94px; }
    .fm-mini-modules > span { max-width: 100px; }
    .fm-mini-handover > span { max-width: 100px; }
    .fm-partner-card-foot { grid-column: 1 / -1; margin-top: 11px; }
    .fm-partner-bottom { flex-direction: column; align-items: start; gap: 13px; margin-top: 24px; }
    .fm-partner-bottom p { font-size: 13px; }
}
@media (max-width: 360px) {
    .fm-partner-model { padding-inline: 16px; }
    .fm-partner-card { padding: 20px; }
    .fm-partner-card h3 { font-size: 22px; }
    .fm-cycle-steps strong + span { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
    .fm-services .service-card::after { transition: none; }
}
@media print {
    .fm-partner-model { color: #2c1d20; background: #f8eeea; box-shadow: none; border-color: #d2b9bf; }
    .fm-partner-model * { color: #3b2330 !important; }
    .fm-cycle-icon { background: #f2dfe2; }
    .fm-cycle-return { display: none; }
    .fm-partner-card { break-inside: avoid; }
}
