/**
 * Homepage v2 — matches design/homepage.png
 * Hero, What I Do, Featured Projects, Blog, CTA.
 */

/* ==================== Hero ==================== */
.mp-hero {
    position: relative;
    /* matches the artwork's dark navy so the masked edges blend seamlessly */
    background: radial-gradient(120% 100% at 50% 40%, #0a0e1d 0%, #070a14 55%, var(--ink) 100%);
    overflow: hidden;
}

.mp-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

/* Static-size artwork: never scales with viewport; edges fade into the
   hero base color so ultrawide screens just gain dark margin */
.mp-hero-bg img {
    position: absolute;
    left: calc(50% - 100px);
    top: 50%;
    transform: translate(-50%, -50%);
    width: 1700px;
    max-width: none;
    height: auto;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.mp-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(6, 8, 15, 0.94) 0%, rgba(6, 8, 15, 0.72) 30%, rgba(6, 8, 15, 0.18) 58%, rgba(6, 8, 15, 0.42) 100%),
        linear-gradient(180deg, rgba(6, 8, 15, 0.55) 0%, transparent 22%, transparent 72%, rgba(6, 8, 15, 0.82) 100%);
}

.mp-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    margin: 0 auto;
    padding: 38px 32px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Marc cutout — fixed size, anchored to the centered 1280px container
   (50% - 640px = container right edge), so he holds position at any width */
.mp-hero-marc {
    position: absolute;
    z-index: 1;
    bottom: 0;
    right: calc(50% - 440px);
    height: 555px;
    width: auto;
    pointer-events: none;
    -webkit-user-select: none;
    user-select: none;
    filter: drop-shadow(0 0 40px rgba(120, 60, 220, 0.35));
}

/* Signature */
.mp-hero-signature {
    position: absolute;
    z-index: 3;
    right: calc(50% - 580px);
    bottom: 108px;
    width: 230px;
    height: auto;
    transform: rotate(-3deg);
    filter: drop-shadow(0 2px 14px rgba(0, 0, 0, 0.7));
    pointer-events: none;
    -webkit-user-select: none;
    user-select: none;
}


/* Copy column */
.mp-hero-copy {
    max-width: 660px;
}

.mp-hero-chips {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 10px 22px 10px 14px;
    border-radius: 999px;
    background: rgba(11, 22, 36, 0.6);
    border: 1px solid rgba(94, 234, 212, 0.22);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    margin-bottom: 18px;
    font-family: var(--font-display);
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.mp-chip-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid rgba(45, 217, 208, 0.55);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.mp-chip-dot::after {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 10px var(--cyan);
}

.mp-hero-chips .mp-chip-ai { color: var(--cyan); }
.mp-hero-chips .mp-chip-sep { color: rgba(255, 255, 255, 0.35); letter-spacing: 0; }
.mp-hero-chips .mp-chip-years { color: rgba(255, 255, 255, 0.9); }

.mp-hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.1rem, 3.4vw, 3.05rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.035em;
    color: #fff;
    margin: 0 0 16px;
}

.mp-grad-word {
    background: var(--grad-hot);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.mp-script-word {
    font-family: var(--font-script);
    font-weight: 400;
    font-size: 1.22em;
    color: #ff5fa8;
    -webkit-text-stroke: 0.018em #ff5fa8;
    padding: 0 0.14em;
    letter-spacing: 0;
    display: inline-block;
    transform: rotate(-7deg) translateY(-0.04em);
    position: relative;
}

.mp-script-word::after {
    content: '';
    position: absolute;
    left: 8%;
    right: 8%;
    bottom: -0.02em;
    height: 0.16em;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 10' preserveAspectRatio='none'%3E%3Cpath d='M2 6 Q 9 2 17 6 T 32 6 T 46 6 T 58 5' fill='none' stroke='%23ff5fa8' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}

.mp-hero-desc {
    font-size: 0.98rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.62);
    max-width: 480px;
    margin: 0 0 24px;
}

/* Buttons */
.mp-hero-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.mp-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.88rem;
    padding: 10px 12px 10px 22px;
    border-radius: 999px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.mp-btn .mp-btn-circle {
    width: 27px;
    height: 27px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.55);
    display: grid;
    place-items: center;
    font-size: 0.72rem;
}

.mp-btn-primary {
    color: #fff !important;
    background: var(--grad-btn);
    box-shadow: 0 8px 26px rgba(255, 80, 60, 0.4);
}

.mp-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(255, 80, 60, 0.55);
}

.mp-btn-ghost {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.22);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.mp-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Trusted-by strip */
.mp-trusted {
    margin-top: 32px;
}

.mp-trusted-label {
    font-family: var(--font-display);
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    margin: 0 0 10px;
}

.mp-trusted-bar {
    display: inline-flex;
    align-items: center;
    gap: 38px;
    background: rgba(22, 26, 38, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.12);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    padding: 13px 30px;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.3);
}

.mp-trusted-bar span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.92);
    white-space: nowrap;
}

.mp-trusted-bar i {
    font-size: 1rem;
    color: #fff;
}

/* Side badges (flat, transparent) */
.mp-hero-badges {
    position: absolute;
    z-index: 3;
    right: max(16px, calc(50% - 688px));
    top: calc(50% - 48px);
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 208px;
}

.mp-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.03) 55%, rgba(9, 13, 26, 0.22) 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 8px 22px rgba(0, 0, 0, 0.18);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

.mp-badge-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.mp-badge--ai .mp-badge-icon { background: rgba(45, 217, 208, 0.14); color: var(--cyan); }
.mp-badge--web .mp-badge-icon { background: rgba(139, 92, 246, 0.16); color: #a78bfa; }
.mp-badge--infra .mp-badge-icon { background: rgba(255, 122, 24, 0.14); color: var(--orange); }
.mp-badge--devops .mp-badge-icon { background: rgba(59, 130, 246, 0.16); color: #60a5fa; }

.mp-badge-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.85rem;
    color: #fff;
    line-height: 1.25;
}

.mp-badge-sub {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.3;
}

/* ==================== Light region (What I Do → Blog) ==================== */
.mp-light {
    background:
        linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px) 0 0 / 100% 26px,
        linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px) 0 0 / 26px 100%,
        radial-gradient(90% 50% at 20% 0%, rgba(80, 60, 200, 0.07), transparent 60%),
        radial-gradient(80% 40% at 85% 100%, rgba(255, 110, 30, 0.05), transparent 65%),
        #0c0f1b;
    border-radius: 28px 28px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    position: relative;
    z-index: 4;
    margin-top: -26px;
    color: #e8eaf0;
    padding-bottom: 84px;
}

.mp-light .mp-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

.mp-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
}

.mp-section-title {
    font-family: var(--font-display);
    font-size: 1.55rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.mp-section-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 0.85em;
    border-radius: 4px;
    background: var(--grad-btn);
    margin-right: 12px;
    vertical-align: -0.08em;
}

.mp-view-all {
    font-family: var(--font-display);
    font-size: 0.84rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.mp-view-all:hover { color: var(--orange); }

/* ---- What I Do ---- */
.mp-what {
    padding: 28px 0 26px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mp-what-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
    align-items: stretch;
}

.mp-what-item {
    padding: 16px 18px 14px;
    border-radius: 14px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3), 0 14px 30px rgba(0, 0, 0, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mp-what-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3), 0 20px 40px rgba(0, 0, 0, 0.45);
}

/* uniform plain dark gradient */
.mp-what-item {
    background: linear-gradient(150deg, #1b2034 0%, #131726 55%, #0e111c 100%);
    border: 1px solid rgba(255, 255, 255, 0.09);
}

.mp-what-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-size: 0.92rem;
    margin-bottom: 11px;
}

.mp-what-item--ai .mp-what-icon { background: rgba(139, 92, 246, 0.22); color: #b39bff; }
.mp-what-item--design .mp-what-icon { background: rgba(255, 46, 154, 0.2); color: #ff7ab8; }
.mp-what-item--eng .mp-what-icon { background: rgba(59, 130, 246, 0.22); color: #7fb0ff; }
.mp-what-item--infra .mp-what-icon { background: rgba(255, 122, 24, 0.2); color: #ffa45e; }
.mp-what-item--strategy .mp-what-icon { background: rgba(20, 184, 166, 0.22); color: #4fd9c8; }

.mp-what-item h3 {
    font-family: var(--font-display);
    font-size: 0.92rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 5px;
}

.mp-what-item p {
    font-size: 0.78rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.55);
    margin: 0;
}

/* ---- Featured Projects ---- */
.mp-projects { padding: 52px 0 0; }

.mp-projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.mp-project-card {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    min-height: 262px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background:
        radial-gradient(120% 120% at 80% 0%, rgba(80, 60, 200, 0.35), transparent 60%),
        var(--card-dark);
    text-decoration: none;
    box-shadow: 0 3px 8px rgba(10, 12, 20, 0.14), 0 18px 40px rgba(10, 12, 20, 0.28);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.mp-project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 12px rgba(10, 12, 20, 0.16), 0 26px 52px rgba(10, 12, 20, 0.38);
}

/* gradient ring around the card */
.mp-project-card::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 3;
    border-radius: 18px;
    padding: 1.5px;
    background: linear-gradient(135deg, rgba(255, 138, 42, 0.85) 0%, rgba(255, 61, 110, 0.55) 38%, rgba(139, 92, 246, 0.5) 70%, rgba(45, 217, 208, 0.45) 100%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    pointer-events: none;
}

.mp-project-card .mp-project-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s ease;
}

.mp-project-card:hover .mp-project-img { transform: scale(1.05); }

.mp-project-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 10, 18, 0.05) 0%, rgba(8, 10, 18, 0.3) 42%, rgba(8, 10, 18, 0.9) 72%, rgba(8, 10, 18, 0.97) 100%);
}

.mp-project-body {
    position: relative;
    z-index: 2;
    padding: 20px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
}

.mp-project-body h3 {
    font-family: var(--font-display);
    font-size: 1.02rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mp-project-body p {
    font-size: 0.78rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.66);
    margin: 0;
    max-width: 250px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mp-project-arrow {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 0.78rem;
    flex-shrink: 0;
    transition: background 0.2s ease, color 0.2s ease;
}

.mp-project-card:hover .mp-project-arrow {
    background: #fff;
    color: #14161c;
    border-color: #fff;
}

/* ---- Blog ---- */
.mp-blog { padding: 56px 0 0; }

.mp-blog-grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 32px;
    align-items: stretch;
}

.mp-blog-list {
    background: #121525;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 10px 26px;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
}

.mp-blog-item {
    display: flex;
    gap: 18px;
    align-items: center;
    padding: 18px 0;
}

.mp-blog-item + .mp-blog-item {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.mp-blog-thumb {
    width: 116px;
    height: 82px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
}

.mp-blog-date {
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--orange);
    display: block;
    margin-bottom: 5px;
}

.mp-blog-item h3 {
    font-family: var(--font-display);
    font-size: 0.96rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 7px;
}

.mp-blog-item h3 a {
    color: #f2f3f8;
    text-decoration: none;
    transition: color 0.2s ease;
}

.mp-blog-item h3 a:hover { color: var(--orange); }

.mp-blog-more {
    font-family: var(--font-display);
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--coral);
    text-decoration: none;
}

.mp-blog-more:hover { color: var(--orange); }

/* Featured post (large, left) — full-bleed image fading into white on the left */
.mp-blog-feature {
    position: relative;
    background: #121525;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    min-height: 290px;
}

.mp-blog-feature-img {
    display: block;
    position: absolute;
    inset: 0;
}

.mp-blog-feature-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
    transition: transform 0.35s ease;
}

.mp-blog-feature:hover .mp-blog-feature-img img {
    transform: scale(1.04);
}

/* dark wash that blends the image away toward the left */
.mp-blog-feature-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #121525 0%, #121525 30%, rgba(18, 21, 37, 0.92) 48%, rgba(18, 21, 37, 0.55) 68%, rgba(18, 21, 37, 0.08) 100%);
}

.mp-blog-feature-body {
    position: relative;
    z-index: 1;
    max-width: 70%;
    padding: 24px 26px;
}

.mp-blog-feature-body h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 9px;
}

.mp-blog-feature-body h3 a {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.mp-blog-feature-body h3 a:hover { color: var(--orange); }

.mp-blog-feature-body p {
    font-size: 0.86rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==================== CTA ==================== */
.mp-cta {
    position: relative;
    background: var(--ink);
    padding: 44px 32px 50px;
    overflow: hidden;
    text-align: center;
}

.mp-cta-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(70% 60% at 50% 108%, rgba(255, 110, 30, 0.34), transparent 65%),
        radial-gradient(45% 45% at 16% 100%, rgba(255, 70, 90, 0.18), transparent 70%),
        radial-gradient(55% 50% at 88% 96%, rgba(130, 60, 220, 0.22), transparent 70%),
        linear-gradient(180deg, #06080f 0%, #0b0e1d 55%, #19112b 100%);
}

.mp-cta-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.35) 1px, transparent 1.4px);
    background-size: 110px 90px;
    opacity: 0.14;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
    mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
}

.mp-cta-content {
    position: relative;
    z-index: 1;
    max-width: 620px;
    margin: 0 auto;
}

.mp-cta h2 {
    font-family: var(--font-display);
    font-size: 1.55rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.mp-cta p {
    font-size: 0.88rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 20px;
}

.mp-cta-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.mp-cta .mp-btn {
    font-size: 0.8rem;
    padding: 8px 10px 8px 18px;
    gap: 8px;
}

.mp-cta .mp-btn .mp-btn-circle {
    width: 22px;
    height: 22px;
    font-size: 0.62rem;
}

/* ==================== Entrance animations ==================== */
@media (prefers-reduced-motion: no-preference) {

    /* Hero: staggered rise on page load */
    @keyframes mp-rise {
        from { opacity: 0; transform: translateY(26px); }
        to { opacity: 1; transform: none; }
    }

    @keyframes mp-marc-in {
        from { opacity: 0; transform: translateX(70px); }
        to { opacity: 1; transform: none; }
    }

    @keyframes mp-badge-in {
        from { opacity: 0; transform: translateX(46px); }
        to { opacity: 1; transform: none; }
    }

    @keyframes mp-fade {
        from { opacity: 0; }
        to { opacity: 1; }
    }

    .mp-hero-chips { animation: mp-rise 0.6s cubic-bezier(0.22, 0.8, 0.3, 1) 0.05s both; }
    .mp-hero-title { animation: mp-rise 0.65s cubic-bezier(0.22, 0.8, 0.3, 1) 0.14s both; }
    .mp-hero-desc { animation: mp-rise 0.65s cubic-bezier(0.22, 0.8, 0.3, 1) 0.24s both; }
    .mp-hero-actions { animation: mp-rise 0.65s cubic-bezier(0.22, 0.8, 0.3, 1) 0.34s both; }
    .mp-trusted { animation: mp-rise 0.65s cubic-bezier(0.22, 0.8, 0.3, 1) 0.46s both; }

    .mp-hero-marc { animation: mp-marc-in 0.9s cubic-bezier(0.22, 0.8, 0.3, 1) 0.15s both; }
    .mp-hero-signature { animation: mp-fade 0.8s ease 1s both; }

    .mp-hero-badges .mp-badge { animation: mp-badge-in 0.55s cubic-bezier(0.22, 0.8, 0.3, 1) both; }
    .mp-hero-badges .mp-badge:nth-child(1) { animation-delay: 0.4s; }
    .mp-hero-badges .mp-badge:nth-child(2) { animation-delay: 0.52s; }
    .mp-hero-badges .mp-badge:nth-child(3) { animation-delay: 0.64s; }
    .mp-hero-badges .mp-badge:nth-child(4) { animation-delay: 0.76s; }

    /* Scroll-triggered slide-ins (elements tagged .mp-animate by home.php) */
    .mp-animate {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s cubic-bezier(0.22, 0.8, 0.3, 1), transform 0.6s cubic-bezier(0.22, 0.8, 0.3, 1);
    }

    .mp-animate.in-view {
        opacity: 1;
        transform: none;
    }
}

/* ==================== Responsive ==================== */
@media (max-width: 1180px) {
    .mp-hero-badges { display: none; }
    .mp-hero-marc { right: 0; }
    .mp-hero-signature { right: 60px; }
}

@media (max-width: 900px) {
    .mp-hero-marc { height: 440px; opacity: 0.85; }
    .mp-hero-signature { display: none; }

    .mp-what-grid {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }

    .mp-projects-grid { grid-template-columns: 1fr; }
    .mp-blog-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .mp-hero-marc { display: none; }
    .mp-hero-inner { min-height: 0; padding: 44px 24px 56px; }
    .mp-trusted-bar { gap: 22px; padding: 14px 20px; flex-wrap: wrap; }
    .mp-light .mp-container { padding: 0 24px; }
    .mp-what-grid { grid-template-columns: 1fr; }
}
