/* =====================================================================
   MANAWA FLOW — STRONA „O MNIE” (includes/omnie.php) (2026-09-28)

   Wczytywana PO css/home.css i dzieli z nią wszystko: tokeny kolorów
   (.mf-home), przezroczystą belkę menu nad grafitem, przyciski, etykiety,
   wstęgę, ocean i hibiskus. Tu są tylko elementy własne tej podstrony:
   scena z portretem i liczbami, oś czasu drogi, cytat, kompetencje,
   zasady pracy, drzwi do współpracy i głosy klientów.

   Zasada jak na stronie głównej: bez ikon Font Awesome w treści,
   luksus robimy skalą, światłem i złotą kreską.
   ===================================================================== */

/* --- 1. Scena powitalna ------------------------------------------------ */
.mfa-hero .mfh-hero-copy { max-width: min(660px, 58%); }
.mfa-hero h1 { font-size: clamp(2.5rem, 5vw, 4.3rem); }
.mfa-hero-lead { max-width: 50ch; }

/* Liczby pod podpisem */
.mfa-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 22px clamp(28px, 4vw, 54px);
    margin: clamp(30px, 4vh, 44px) 0 0;
    padding: 24px 0 0;
    list-style: none;
    border-top: 1px solid var(--mfh-hairline);
}
.mfa-stats li { display: flex; flex-direction: column; gap: 6px; }
.mfa-stats strong {
    font-family: var(--font-head);
    font-weight: 200;
    font-size: clamp(2rem, 3.2vw, 2.8rem);
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--mfh-gold);
}
.mfa-stats span {
    max-width: 18ch;
    font-family: var(--font-head);
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    line-height: 1.5;
    color: var(--mfh-muted);
}


/* --- 2. Oś czasu: droga ------------------------------------------------ */
.mfa-journey-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: clamp(40px, 6vw, 96px);
    align-items: start;
}

/* Zdjęcie przyklejone przy przewijaniu osi — tekst płynie obok */
.mfa-journey-aside { position: sticky; top: 110px; }
.mfa-journey-photo {
    position: relative;
    margin: 34px 22px 0 0;
}
.mfa-journey-photo::before {
    content: '';
    position: absolute;
    inset: 22px -22px -22px 22px;
    border: 1px solid rgba(253, 197, 0, 0.65);
    pointer-events: none;
}
.mfa-journey-photo img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    /* zdjęcie z nagłówkiem musi się zmieścić w oknie, bo kolumna jest przyklejona */
    max-height: min(52vh, 540px);
    object-fit: cover;
    object-position: 50% 20%;
}
.mfa-journey-aside .mfh-h2 { margin-bottom: 16px; }
.mfa-journey-aside { top: 96px; }
.mfa-journey-aside > p { color: var(--mfh-text-soft); line-height: 1.75; margin: 0; }

.mfa-timeline {
    position: relative;
    list-style: none;
    margin: 0;
    padding: 0 0 0 clamp(40px, 4vw, 56px);
}
/* Złota nitka — rysuje się, gdy oś wjeżdża na ekran */
.mfa-timeline::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 10px;
    bottom: 10px;
    width: 1px;
    background: linear-gradient(to bottom, var(--mfh-violet), var(--mfh-gold) 55%, var(--mfh-blue));
    opacity: 0.55;
    transform-origin: top;
}
.mfh-js .mfa-timeline::before { transform: scaleY(0); transition: transform 2.4s var(--mfh-ease); }
.mfh-js .mfa-timeline.is-in::before { transform: scaleY(1); }

.mfa-chapter { position: relative; padding: 0 0 clamp(40px, 5vw, 58px); }
.mfa-chapter:last-child { padding-bottom: 0; }
/* Węzeł: romb jak na stronie głównej */
.mfa-chapter::before {
    content: '';
    position: absolute;
    left: calc(-1 * clamp(40px, 4vw, 56px) + 1px);
    top: 8px;
    width: 11px;
    height: 11px;
    background: var(--mfh-canvas);
    box-shadow: inset 0 0 0 2px var(--mfh-gold);
    transform: rotate(45deg);
}
.mfa-chapter-no {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin: 0 0 10px;
    font-family: var(--font-head);
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--mfh-violet);
}
.mfa-chapter-no b {
    font-weight: 200;
    font-size: 2.1rem;
    letter-spacing: -0.04em;
    color: rgba(15, 18, 25, 0.22);
}
.mfa-chapter h3 {
    font-family: var(--font-head);
    font-weight: 500;
    font-size: clamp(1.25rem, 1.9vw, 1.55rem);
    line-height: 1.3;
    letter-spacing: -0.015em;
    margin: 0 0 12px;
    color: var(--color-dark);
}
.mfa-chapter p { margin: 0; color: var(--mfh-text-soft); line-height: 1.8; }
.mfa-chapter p + p { margin-top: 12px; }
.mfa-chapter strong { color: var(--color-dark); font-weight: 700; }
.mfa-chapter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
}
.mfa-chapter-tags li {
    font-family: var(--font-head);
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-dark);
    padding: 7px 12px;
    border: 1px solid var(--mfh-line);
}


/* --- 3. Cytat na graficie ---------------------------------------------- */
.mfa-quote {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(90px, 11vw, 150px) 0 clamp(120px, 13vw, 180px);
    background: var(--mfh-ink);
    color: var(--mfh-paper);
    text-align: center;
}
.mfa-quote::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(55% 60% at 50% 30%, rgba(253, 197, 0, 0.09), transparent 70%),
        radial-gradient(45% 60% at 10% 100%, rgba(106, 13, 173, 0.34), transparent 70%),
        radial-gradient(45% 60% at 92% 90%, rgba(0, 71, 171, 0.26), transparent 70%);
}
.mfa-quote .mfh-ocean { bottom: 0; }
.mfa-quote-mark {
    display: block;
    font-family: var(--font-head);
    font-weight: 200;
    font-size: clamp(5rem, 10vw, 8rem);
    line-height: 0.6;
    color: var(--mfh-gold);
    opacity: 0.7;
    margin-bottom: 18px;
}
.mfa-quote blockquote {
    max-width: 22ch;
    margin: 0 auto;
    font-family: var(--font-head);
    font-weight: 200;
    font-size: clamp(2rem, 4.4vw, 3.7rem);
    line-height: 1.16;
    letter-spacing: -0.035em;
    color: var(--mfh-paper);
}
.mfa-quote blockquote em {
    font-family: inherit;
    font-style: italic;
    font-weight: 300;
    color: var(--mfh-gold);
}
.mfa-quote cite {
    display: block;
    margin-top: 30px;
    font-family: var(--font-head);
    font-style: normal;
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--mfh-muted-soft);
}


/* --- 4. Kompetencje ---------------------------------------------------- */

/* Pasek wykształcenia i akredytacji nad kartami */
.mfa-creds {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin: 0 0 clamp(28px, 3vw, 40px);
    padding: 0;
    list-style: none;
    background: #fff;
    border: 1px solid var(--mfh-line-soft);
}
.mfa-creds li {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: clamp(22px, 2.4vw, 32px) clamp(18px, 2vw, 28px);
}
.mfa-creds li + li { border-left: 1px solid var(--mfh-line-soft); }
.mfa-cred-mark {
    font-family: var(--font-head);
    font-weight: 200;
    font-size: clamp(1.7rem, 2.4vw, 2.2rem);
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--mfh-violet);
    margin-bottom: 6px;
}
.mfa-creds li:nth-child(2) .mfa-cred-mark { color: #B88A00; }
.mfa-creds li:nth-child(3) .mfa-cred-mark { color: var(--mfh-blue); }
.mfa-creds strong {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.35;
    color: var(--color-dark);
}
.mfa-creds li > span:last-child { font-size: 0.88rem; line-height: 1.5; color: var(--mfh-text-soft); }

.mfa-skills {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(18px, 2vw, 28px);
    align-items: stretch;
}
.mfa-skill {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: clamp(34px, 3vw, 46px) clamp(26px, 2.4vw, 38px);
    background: #fff;
    border: 1px solid var(--mfh-line-soft);
    transition: transform 0.55s var(--mfh-ease), box-shadow 0.55s var(--mfh-ease);
    --skill: var(--mfh-blue);
}
.mfa-skill::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--skill);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s var(--mfh-ease);
}
.mfa-skill:hover { transform: translateY(-6px); box-shadow: 0 34px 70px -34px rgba(15, 18, 25, 0.35); }
.mfa-skill:hover::before { transform: scaleX(1); }
.mfa-skill-no {
    font-family: var(--font-head);
    font-weight: 200;
    font-size: 2.6rem;
    line-height: 1;
    letter-spacing: -0.04em;
    color: rgba(15, 18, 25, 0.22);
    margin-bottom: 18px;
}
.mfa-skill h3 {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 1.12rem;
    letter-spacing: 0.02em;
    margin: 0 0 6px;
    color: var(--color-dark);
}
.mfa-skill-sub {
    margin: 0 0 22px;
    font-size: 0.92rem;
    color: var(--mfh-text-soft);
}
.mfa-skill ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.mfa-skill li {
    position: relative;
    padding: 0 0 14px 22px;
    border-bottom: 1px solid var(--mfh-line-soft);
    font-size: 0.93rem;
    line-height: 1.55;
    color: var(--mfh-text-soft);
}
.mfa-skill li:last-child { border-bottom: 0; padding-bottom: 0; }
.mfa-skill li::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 0.5em;
    width: 7px;
    height: 7px;
    box-shadow: inset 0 0 0 1.5px var(--skill);
    transform: rotate(45deg);
}
.mfa-skill li b {
    display: block;
    margin-bottom: 2px;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--color-dark);
}

/* Środkowa karta — rdzeń, grafit jak na stronie głównej */
.mfa-skill--core {
    background: var(--mfh-ink);
    border-color: var(--mfh-ink);
    --skill: var(--mfh-gold);
}
.mfa-skill--core::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(120% 80% at 50% 120%, rgba(168, 85, 247, 0.32), transparent 68%);
}
.mfa-skill--core > * { position: relative; z-index: 1; }
.mfa-skill--core .mfa-skill-no { color: rgba(246, 244, 239, 0.28); }
.mfa-skill--core h3, .mfa-skill--core li b { color: var(--mfh-paper); }
.mfa-skill--core .mfa-skill-sub, .mfa-skill--core li { color: var(--mfh-muted); }
.mfa-skill--core li { border-bottom-color: var(--mfh-hairline); }
.mfa-skill-tag {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 2;
    font-family: var(--font-head);
    font-size: 0.56rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--mfh-gold);
    padding-bottom: 5px;
    border-bottom: 1px solid rgba(253, 197, 0, 0.5);
}
.mfa-skills-note {
    max-width: 70ch;
    margin: clamp(34px, 4vw, 48px) auto 0;
    text-align: center;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--mfh-text-soft);
}


/* --- 5. Zasady pracy --------------------------------------------------- */
.mfa-values {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 0;
    border-top: 1px solid var(--mfh-line);
}
.mfa-value {
    padding: clamp(28px, 3vw, 40px) clamp(20px, 2vw, 30px) clamp(28px, 3vw, 38px) 0;
    border-bottom: 1px solid var(--mfh-line);
}
.mfa-value + .mfa-value { padding-left: clamp(20px, 2vw, 30px); border-left: 1px solid var(--mfh-line); }
.mfa-value-word {
    display: block;
    margin-bottom: 14px;
    font-family: var(--font-head);
    font-weight: 200;
    font-style: italic;
    font-size: clamp(1.9rem, 2.6vw, 2.4rem);
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--mfh-violet);
}
.mfa-value:nth-child(2) .mfa-value-word { color: #B88A00; }
.mfa-value:nth-child(3) .mfa-value-word { color: var(--mfh-blue); }
.mfa-value h3 {
    font-family: var(--font-head);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin: 0 0 12px;
    color: var(--color-dark);
}
.mfa-value p { margin: 0; color: var(--mfh-text-soft); line-height: 1.75; font-size: 0.97rem; }


/* Wartości — rząd słów z włoskowatymi rombami */
.mfa-chips {
    margin: clamp(40px, 5vw, 60px) 0 0;
    text-align: center;
}
.mfa-chips p {
    margin: 0 0 18px;
    font-family: var(--font-head);
    font-size: 0.64rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(15, 18, 25, 0.5);
}
.mfa-chips ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 0;
    margin: 0;
    padding: 0;
    list-style: none;
}
.mfa-chips li {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-head);
    font-weight: 300;
    font-style: italic;
    font-size: clamp(1.2rem, 1.9vw, 1.6rem);
    letter-spacing: -0.02em;
    color: var(--color-dark);
}
.mfa-chips li + li::before {
    content: '';
    width: 7px;
    height: 7px;
    margin: 0 clamp(14px, 2vw, 26px);
    box-shadow: inset 0 0 0 1.5px var(--mfh-gold);
    transform: rotate(45deg);
}

/* --- 6. Drzwi do współpracy ------------------------------------------- */
.mfa-doors {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(18px, 2vw, 28px);
}
.mfa-door {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: clamp(420px, 42vw, 560px);
    padding: clamp(26px, 2.6vw, 38px);
    color: var(--mfh-paper);
    text-decoration: none;
    background: var(--mfh-ink);
}
.mfa-door img {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s var(--mfh-ease), filter 0.8s var(--mfh-ease);
    filter: saturate(0.85);
}
.mfa-door::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(11, 11, 18, 0.05) 0%, rgba(11, 11, 18, 0.45) 45%, rgba(11, 11, 18, 0.94) 100%);
    transition: background 0.8s var(--mfh-ease);
}
.mfa-door:hover img { transform: scale(1.07); filter: saturate(1.05); }
.mfa-door:hover::before { background: linear-gradient(180deg, rgba(40, 10, 70, 0.15) 0%, rgba(11, 11, 18, 0.55) 45%, rgba(11, 11, 18, 0.96) 100%); }
.mfa-door-no {
    position: absolute;
    top: clamp(22px, 2.4vw, 32px);
    left: clamp(26px, 2.6vw, 38px);
    font-family: var(--font-head);
    font-weight: 200;
    font-size: 2.4rem;
    letter-spacing: -0.04em;
    color: rgba(246, 244, 239, 0.5);
}
.mfa-door-kicker {
    font-family: var(--font-head);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--mfh-gold);
    margin-bottom: 10px;
}
.mfa-door h3 {
    font-family: var(--font-head);
    font-weight: 300;
    font-size: clamp(1.5rem, 2.2vw, 2rem);
    letter-spacing: -0.025em;
    line-height: 1.15;
    color: var(--mfh-paper);
    margin: 0 0 12px;
}
.mfa-door p {
    margin: 0 0 20px;
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--mfh-muted);
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.7s var(--mfh-ease), opacity 0.6s var(--mfh-ease);
}
.mfa-door:hover p, .mfa-door:focus-visible p { max-height: 10em; opacity: 1; }
.mfa-door-go {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-head);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--mfh-paper);
    padding-top: 16px;
    border-top: 1px solid var(--mfh-hairline);
}
.mfa-door-go span { transition: transform 0.45s var(--mfh-ease); }
.mfa-door:hover .mfa-door-go { color: var(--mfh-gold); }
.mfa-door:hover .mfa-door-go span { transform: translateX(6px); }
/* Na dotyku nie ma najechania — opis widoczny od razu */
@media (hover: none) { .mfa-door p { max-height: none; opacity: 1; } }


/* --- 7. Wąskie ekrany -------------------------------------------------- */
@media (max-width: 1100px) {
    .mfa-hero .mfh-hero-copy { max-width: min(560px, 64%); }
}
@media (max-width: 992px) {
    .mfa-hero .mfh-hero-copy { max-width: none; }
    .mfa-journey-grid { grid-template-columns: 1fr; }
    .mfa-journey-aside { position: static; max-width: 560px; }
    .mfa-journey-photo img { max-height: none; }
    .mfa-skills, .mfa-doors { grid-template-columns: 1fr; }
    .mfa-door { min-height: 380px; }
    .mfa-door p { max-height: none; opacity: 1; }
    .mfa-value + .mfa-value { padding-left: 0; border-left: 0; }
    .mfa-creds { grid-template-columns: repeat(2, 1fr); }
    .mfa-creds li:nth-child(3) { border-left: 0; }
    .mfa-creds li:nth-child(n+3) { border-top: 1px solid var(--mfh-line-soft); }
}
@media (max-width: 560px) {
    .mfa-stats { gap: 18px 26px; }
    .mfa-journey-photo::before { inset: 14px -14px -14px 14px; }
    .mfa-creds { grid-template-columns: 1fr; }
    .mfa-creds li + li { border-left: 0; border-top: 1px solid var(--mfh-line-soft); }
}
@media (prefers-reduced-motion: reduce) {
    .mfh-js .mfa-timeline::before { transform: none; transition: none; }
    .mfa-door img, .mfa-skill { transition: none; }
}
