:root {
    --ml-ink: #17212b;
    --ml-ink-soft: #2c3945;
    --ml-navy: #173d5b;
    --ml-navy-dark: #0f2b41;
    --ml-paper: #f4f1eb;
    --ml-paper-dark: #eae4da;
    --ml-white: #ffffff;
    --ml-muted: #66717b;
    --ml-line: rgba(23, 33, 43, 0.12);
    --ml-accent: #ad6249;
    --ml-shell: 1180px;
    --ml-radius: 18px;
    --ml-shadow: 0 20px 60px rgba(21, 31, 40, 0.09);
}

html {
    scroll-behavior: smooth;
}

body.mattialoy-redesign {
    margin: 0;
    background: var(--ml-paper);
    color: var(--ml-ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

body.mattialoy-redesign * {
    box-sizing: border-box;
}

body.mattialoy-redesign img {
    max-width: 100%;
}

:where(body.mattialoy-redesign) a {
    color: inherit;
}

.ml-shell {
    width: min(calc(100% - 48px), var(--ml-shell));
    margin-inline: auto;
}

.ml-skip-link {
    position: fixed;
    z-index: 9999;
    left: 16px;
    top: 12px;
    transform: translateY(-160%);
    padding: 10px 14px;
    background: var(--ml-white);
    color: var(--ml-ink);
    border-radius: 8px;
}

.ml-skip-link:focus {
    transform: translateY(0);
}

/* Header */
.ml-header {
    position: relative;
    z-index: 100;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(23, 33, 43, 0.08);
}

.ml-header__inner {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.ml-brand {
    display: inline-flex;
    flex-direction: column;
    text-decoration: none;
    line-height: 1.15;
}

.ml-brand__name {
    font-size: 1.22rem;
    font-weight: 780;
    letter-spacing: -0.02em;
}

.ml-brand__role {
    margin-top: 5px;
    color: var(--ml-muted);
    font-size: 0.76rem;
    letter-spacing: 0.02em;
}

.ml-nav__list {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ml-nav__item {
    position: relative;
    list-style: none;
}

.ml-nav__list > .ml-nav__item > a,
.ml-nav__parent-row > a {
    position: relative;
    display: inline-block;
    text-decoration: none;
    font-size: 0.91rem;
    font-weight: 650;
    white-space: nowrap;
}

.ml-nav__list > .ml-nav__item > a::after,
.ml-nav__parent-row > a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: -8px;
    height: 2px;
    background: var(--ml-accent);
    transition: right 180ms ease;
}

.ml-nav__list > .ml-nav__item > a:hover::after,
.ml-nav__list > .ml-nav__item > a:focus-visible::after,
.ml-nav__parent-row > a:hover::after,
.ml-nav__parent-row > a:focus-visible::after {
    right: 0;
}

.ml-nav__parent-row {
    display: flex;
    align-items: center;
    gap: 5px;
}

.ml-nav__submenu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 30px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--ml-ink);
    cursor: pointer;
}

.ml-nav__submenu-toggle span {
    width: 7px;
    height: 7px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    transition: transform 160ms ease;
}

.ml-nav__item--has-children.is-submenu-open .ml-nav__submenu-toggle span {
    transform: translateY(2px) rotate(225deg);
}

.ml-nav__submenu {
    position: absolute;
    z-index: 130;
    top: calc(100% + 10px);
    left: -16px;
    min-width: 230px;
    margin: 0;
    padding: 8px;
    list-style: none;
    border: 1px solid var(--ml-line);
    border-radius: 12px;
    background: var(--ml-white);
    box-shadow: 0 18px 38px rgba(23, 33, 43, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    pointer-events: none;
    transition: opacity 150ms ease, transform 150ms ease, visibility 150ms ease;
}

.ml-nav__submenu::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -11px;
    height: 11px;
}

.ml-nav__item--has-children:hover > .ml-nav__submenu,
.ml-nav__item--has-children:focus-within > .ml-nav__submenu,
.ml-nav__item--has-children.is-submenu-open > .ml-nav__submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.ml-nav__submenu li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ml-nav__submenu a {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--ml-ink);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 620;
    line-height: 1.35;
    white-space: nowrap;
}

.ml-nav__submenu a:hover,
.ml-nav__submenu a:focus-visible {
    background: var(--ml-paper);
}

.ml-nav__item--has-children:last-child > .ml-nav__submenu {
    left: auto;
    right: -8px;
}

.ml-nav-toggle {
    display: none;
    align-items: center;
    gap: 10px;
    border: 0;
    padding: 10px 0;
    background: transparent;
    color: var(--ml-ink);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.ml-nav-toggle__icon {
    width: 24px;
    height: 18px;
    display: grid;
    align-content: center;
    gap: 6px;
}

.ml-nav-toggle__icon span {
    display: block;
    height: 2px;
    background: currentColor;
}

/* Hero */
.ml-hero {
    position: relative;
    min-height: clamp(620px, 72vw, 760px);
    overflow: hidden;
    background: #352c25;
}

.ml-hero__media,
.ml-hero__shade {
    position: absolute;
    inset: 0;
}

.ml-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

.ml-hero__shade {
    background:
        linear-gradient(90deg, rgba(13, 25, 35, 0.90) 0%, rgba(13, 25, 35, 0.78) 30%, rgba(13, 25, 35, 0.30) 54%, rgba(13, 25, 35, 0.04) 74%),
        linear-gradient(0deg, rgba(13, 25, 35, 0.20), rgba(13, 25, 35, 0.02) 40%);
}

.ml-hero__inner {
    position: relative;
    z-index: 2;
    min-height: inherit;
    display: flex;
    align-items: center;
    padding-block: 86px;
}

.ml-hero__copy {
    width: min(610px, 52%);
    color: var(--ml-white);
}

.ml-eyebrow {
    margin: 0 0 18px;
    color: var(--ml-accent);
    font-size: 0.76rem;
    line-height: 1.3;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.ml-eyebrow--light {
    color: #e7c2b5;
}

.ml-hero h1,
.ml-section h2,
.ml-cta h2 {
    margin: 0;
    font-weight: 760;
    letter-spacing: -0.045em;
    line-height: 1.04;
}

.ml-hero h1 {
    max-width: 660px;
    font-size: clamp(2.65rem, 5.1vw, 5rem);
}

.ml-hero__lead {
    max-width: 610px;
    margin: 27px 0 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(1.05rem, 1.6vw, 1.28rem);
    line-height: 1.62;
}

.ml-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
    margin-top: 34px;
}

.ml-button {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border: 1px solid transparent;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.94rem;
    font-weight: 760;
    transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.ml-button:hover,
.ml-button:focus-visible {
    transform: translateY(-2px);
}

body.mattialoy-redesign .ml-button--primary {
    background: var(--ml-white);
    color: var(--ml-ink);
}

.ml-button--ghost {
    border-color: rgba(255, 255, 255, 0.36);
    color: var(--ml-white);
    background: rgba(255, 255, 255, 0.04);
}

.ml-button--ghost:hover,
.ml-button--ghost:focus-visible {
    border-color: rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.10);
}

body.mattialoy-redesign .ml-button--light {
    flex: 0 0 auto;
    background: var(--ml-white);
    color: var(--ml-navy-dark);
}

.ml-hero__micro {
    margin: 25px 0 0;
    max-width: 510px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.84rem;
}

/* Proof */
.ml-proof {
    background: var(--ml-white);
    border-bottom: 1px solid var(--ml-line);
}

.ml-proof__inner {
    min-height: 100px;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 36px;
}

.ml-proof__label {
    margin: 0;
    color: var(--ml-muted);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.ml-proof__names {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    color: var(--ml-ink-soft);
    font-size: 0.92rem;
    font-weight: 740;
}

/* Sections */
.ml-section {
    padding: clamp(84px, 10vw, 132px) 0;
}

.ml-section--paper {
    background: var(--ml-paper);
}

.ml-section--white {
    background: var(--ml-white);
}

.ml-section--ink {
    background: var(--ml-ink);
    color: var(--ml-white);
}

.ml-section-heading {
    max-width: 800px;
    margin-bottom: 52px;
}

.ml-section-heading h2,
.ml-profile__intro h2,
.ml-cta h2 {
    font-size: clamp(2.1rem, 4.2vw, 3.75rem);
}

.ml-section-heading > p:last-child,
.ml-profile__intro > p,
.ml-cta p {
    color: var(--ml-muted);
    font-size: 1.05rem;
}

.ml-section-heading--light > p:last-child {
    color: rgba(255, 255, 255, 0.65);
}

.ml-cards {
    display: grid;
    gap: 22px;
}

.ml-cards--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ml-card {
    border-radius: var(--ml-radius);
}

.ml-card--service,
.ml-card--compact {
    background: var(--ml-white);
    border: 1px solid var(--ml-line);
    box-shadow: 0 1px 0 rgba(23, 33, 43, 0.02);
}

.ml-card--service {
    min-height: 360px;
    padding: 34px;
    display: flex;
    flex-direction: column;
}

.ml-card--service:hover {
    box-shadow: var(--ml-shadow);
}

.ml-card__number {
    margin-bottom: 50px;
    color: var(--ml-accent);
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0.12em;
}

.ml-card h3,
.ml-case h3 {
    margin: 0;
    font-size: 1.35rem;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.ml-card p,
.ml-case p {
    color: var(--ml-muted);
}

.ml-card--service .ml-text-link {
    margin-top: auto;
}

.ml-text-link {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    color: var(--ml-navy);
    font-size: 0.92rem;
    font-weight: 780;
    text-decoration: none;
}

.ml-text-link:hover,
.ml-text-link:focus-visible {
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* Cases */
.ml-cases {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.ml-case {
    min-height: 330px;
    padding: 32px 30px 26px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.ml-case + .ml-case {
    padding-left: 30px;
    border-left: 1px solid rgba(255, 255, 255, 0.16);
}

.ml-case__meta {
    margin-bottom: 56px;
    color: #e7c2b5;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ml-case p {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.66);
}

.ml-section-action {
    margin-top: 28px;
}

.ml-note {
    color: rgba(255, 255, 255, 0.50);
    font-size: 0.82rem;
}

/* Profile */
.ml-profile {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: clamp(55px, 9vw, 125px);
    align-items: start;
}

.ml-profile__intro > p {
    max-width: 680px;
}

.ml-profile__facts {
    display: grid;
    border-top: 1px solid var(--ml-line);
}

.ml-fact {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 22px;
    align-items: baseline;
    padding: 23px 0;
    border-bottom: 1px solid var(--ml-line);
}

.ml-fact strong {
    color: var(--ml-navy);
    font-size: 1.8rem;
    letter-spacing: -0.04em;
}

.ml-fact span {
    color: var(--ml-muted);
    font-size: 0.92rem;
}

/* Compact cards */
.ml-card--compact {
    min-height: 280px;
    padding: 30px;
}

.ml-card__kicker {
    margin: 0 0 42px;
    color: var(--ml-accent) !important;
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.ml-card--compact .ml-text-link {
    margin-top: 20px;
}

/* CTA */
.ml-cta {
    padding: clamp(76px, 9vw, 110px) 0;
    background: var(--ml-navy-dark);
    color: var(--ml-white);
}

.ml-cta__inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 60px;
    align-items: end;
}

.ml-cta__inner > div {
    max-width: 780px;
}

.ml-cta p {
    color: rgba(255, 255, 255, 0.66);
}

/* Footer */
.ml-footer {
    padding: 56px 0 26px;
    background: #0b1d2b;
    color: var(--ml-white);
}

.ml-footer__grid {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    padding-bottom: 42px;
}

.ml-footer__brand {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 800;
}

.ml-footer__text {
    margin: 7px 0 0;
    color: rgba(255, 255, 255, 0.50);
    font-size: 0.88rem;
}

.ml-footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: flex-start;
}

.ml-footer__links a {
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    font-size: 0.88rem;
}

.ml-footer__links a:hover,
.ml-footer__links a:focus-visible {
    color: var(--ml-white);
}

.ml-footer__bottom {
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    color: rgba(255, 255, 255, 0.38);
    font-size: 0.75rem;
}

/* Focus */
body.mattialoy-redesign :focus-visible {
    outline: 3px solid #d8a995;
    outline-offset: 4px;
}

@media (max-width: 1100px) {
    .ml-nav-toggle {
        display: inline-flex;
    }

    .ml-nav {
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        display: none;
        padding: 18px 24px 28px;
        background: var(--ml-white);
        border-top: 1px solid var(--ml-line);
        box-shadow: 0 20px 30px rgba(23, 33, 43, 0.08);
    }

    .ml-nav.is-open {
        display: block;
    }

    .ml-nav__list {
        align-items: stretch;
        flex-direction: column;
        gap: 0;
    }

    .ml-nav__list > .ml-nav__item > a,
    .ml-nav__parent-row {
        border-bottom: 1px solid var(--ml-line);
    }

    .ml-nav__list > .ml-nav__item > a {
        display: block;
        padding: 13px 0;
    }

    .ml-nav__parent-row {
        gap: 0;
    }

    .ml-nav__parent-row > a {
        display: block;
        flex: 1 1 auto;
        padding: 13px 0;
    }

    .ml-nav__submenu-toggle {
        flex: 0 0 46px;
        width: 46px;
        height: auto;
        min-height: 46px;
    }

    .ml-nav__list > .ml-nav__item > a::after,
    .ml-nav__parent-row > a::after {
        display: none;
    }

    .ml-nav__submenu {
        position: static;
        display: none;
        min-width: 0;
        margin: 0;
        padding: 5px 0 8px 16px;
        border: 0;
        border-bottom: 1px solid var(--ml-line);
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        pointer-events: auto;
        transition: none;
    }

    .ml-nav__submenu::before {
        display: none;
    }

    .ml-nav__item--has-children:hover > .ml-nav__submenu,
    .ml-nav__item--has-children:focus-within > .ml-nav__submenu {
        display: none;
    }

    .ml-nav__item--has-children.is-submenu-open > .ml-nav__submenu {
        display: block;
    }

    .ml-nav__submenu a {
        padding: 10px 0;
        white-space: normal;
    }

    .ml-hero {
        min-height: 680px;
    }

    .ml-hero__copy {
        width: min(600px, 63%);
    }

    .ml-proof__inner {
        grid-template-columns: 1fr;
        gap: 14px;
        padding-block: 25px;
    }

    .ml-proof__names {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .ml-cards--three,
    .ml-cases {
        grid-template-columns: 1fr;
    }

    .ml-card--service {
        min-height: auto;
    }

    .ml-card__number,
    .ml-case__meta {
        margin-bottom: 28px;
    }

    .ml-case,
    .ml-case + .ml-case {
        min-height: auto;
        padding: 30px 0;
        border-left: 0;
    }

    .ml-profile {
        grid-template-columns: 1fr;
        gap: 52px;
    }
}

@media (max-width: 720px) {
    .ml-shell {
        width: min(calc(100% - 34px), var(--ml-shell));
    }

    .ml-header__inner {
        min-height: 72px;
    }

    .ml-brand__role {
        display: none;
    }

    .ml-hero {
        min-height: 760px;
        display: flex;
        align-items: flex-end;
    }

    .ml-hero__media img {
        object-position: 66% center;
    }

    .ml-hero__shade {
        background:
            linear-gradient(0deg, rgba(12, 25, 36, 0.98) 0%, rgba(12, 25, 36, 0.92) 32%, rgba(12, 25, 36, 0.18) 67%, rgba(12, 25, 36, 0.04) 100%);
    }

    .ml-hero__inner {
        min-height: 760px;
        align-items: flex-end;
        padding-top: 260px;
        padding-bottom: 50px;
    }

    .ml-hero__copy {
        width: 100%;
    }

    .ml-hero h1 {
        font-size: clamp(2.25rem, 10vw, 3.25rem);
    }

    .ml-hero__lead {
        margin-top: 20px;
        font-size: 1rem;
    }

    .ml-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .ml-button {
        width: 100%;
    }

    .ml-proof__names {
        gap: 12px 20px;
        font-size: 0.84rem;
    }

    .ml-section {
        padding-block: 74px;
    }

    .ml-section-heading {
        margin-bottom: 36px;
    }

    .ml-card--service,
    .ml-card--compact {
        padding: 27px;
    }

    .ml-profile__facts {
        margin-top: 5px;
    }

    .ml-fact {
        grid-template-columns: 90px 1fr;
    }

    .ml-cta__inner {
        grid-template-columns: 1fr;
        gap: 30px;
        align-items: start;
    }

    .ml-footer__grid {
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}


/* Inner pages */
.ml-page-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(92px, 11vw, 150px) 0;
    background:
        radial-gradient(circle at 78% 18%, rgba(173, 98, 73, 0.20), transparent 30%),
        linear-gradient(135deg, #0d2638 0%, #173d5b 55%, #102d44 100%);
    color: var(--ml-white);
}

.ml-page-hero::after {
    content: "";
    position: absolute;
    inset: auto -8% -55% 46%;
    height: 520px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.035);
    transform: rotate(-8deg);
}

.ml-page-hero__grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.75fr);
    gap: clamp(50px, 8vw, 100px);
    align-items: end;
}

.ml-page-hero__copy {
    max-width: 760px;
}

.ml-page-hero h1 {
    margin: 0;
    max-width: 800px;
    font-size: clamp(3rem, 6vw, 5.7rem);
    font-weight: 760;
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.ml-page-hero__lead {
    max-width: 710px;
    margin: 30px 0 0;
    color: rgba(255, 255, 255, 0.76);
    font-size: clamp(1.08rem, 1.7vw, 1.28rem);
    line-height: 1.66;
}

.ml-page-hero__facts {
    display: grid;
    border-top: 1px solid rgba(255, 255, 255, 0.17);
}

.ml-page-stat {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 22px;
    align-items: baseline;
    padding: 24px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.17);
}

.ml-page-stat strong {
    font-size: 1.55rem;
    line-height: 1;
    letter-spacing: -0.035em;
}

.ml-page-stat span {
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.9rem;
    line-height: 1.5;
}

.ml-story-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: clamp(55px, 9vw, 120px);
    align-items: start;
}

.ml-story-grid__title {
    position: sticky;
    top: 42px;
}

.ml-story-grid__title h2 {
    margin: 0;
    font-size: clamp(2.2rem, 4vw, 3.6rem);
    line-height: 1.05;
    letter-spacing: -0.045em;
}

.ml-prose {
    max-width: 730px;
}

.ml-prose p {
    margin: 0 0 24px;
    color: #46525d;
    font-size: 1.08rem;
    line-height: 1.8;
}

.ml-prose p:first-child {
    color: var(--ml-ink);
    font-size: 1.22rem;
}

.ml-experience-list {
    border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.ml-experience-row {
    display: grid;
    grid-template-columns: minmax(180px, 0.45fr) minmax(0, 1.55fr);
    gap: 42px;
    padding: 34px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.ml-experience-row__label {
    color: #e7c2b5;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ml-experience-row h3 {
    margin: 0;
    font-size: clamp(1.35rem, 2.3vw, 1.75rem);
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.ml-experience-row p {
    max-width: 780px;
    margin: 10px 0 0;
    color: rgba(255, 255, 255, 0.62);
}

.ml-project-card__logo-wrap {
    height: 62px;
    display: flex;
    align-items: center;
    margin-bottom: 18px;
}

.ml-project-card__logo {
    display: block;
    width: auto;
    max-width: 170px;
    max-height: 62px;
    object-fit: contain;
    border-radius: 4px;
}

@media (max-width: 980px) {
    .ml-page-hero__grid,
    .ml-story-grid {
        grid-template-columns: 1fr;
    }

    .ml-page-hero__facts {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.17);
    }

    .ml-page-stat {
        grid-template-columns: 1fr;
        padding: 22px 20px;
        border-bottom: 0;
        border-right: 1px solid rgba(255, 255, 255, 0.17);
    }

    .ml-page-stat:last-child {
        border-right: 0;
    }

    .ml-story-grid__title {
        position: static;
    }
}

@media (max-width: 720px) {
    .ml-page-hero {
        padding: 78px 0 64px;
    }

    .ml-page-hero h1 {
        font-size: clamp(2.55rem, 13vw, 4rem);
    }

    .ml-page-hero__lead {
        margin-top: 24px;
        font-size: 1rem;
    }

    .ml-page-hero__facts {
        grid-template-columns: 1fr;
    }

    .ml-page-stat {
        grid-template-columns: 74px 1fr;
        padding: 19px 0;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.17);
    }

    .ml-page-stat:last-child {
        border-bottom: 0;
    }

    .ml-story-grid {
        gap: 38px;
    }

    .ml-prose p {
        font-size: 1rem;
    }

    .ml-prose p:first-child {
        font-size: 1.08rem;
    }

    .ml-experience-row {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 28px 0;
    }
}

/* ==========================================================
   V1 DESIGN SYSTEM - reusable components for editor pages
   ========================================================== */
.ml-header__actions {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-left: auto;
}

.ml-editor-content {
    overflow: clip;
}

/* Generic page hero */
.ml-intro {
    padding: clamp(86px, 10vw, 142px) 0 clamp(70px, 8vw, 110px);
    background: var(--ml-navy-dark);
    color: var(--ml-white);
}

.ml-intro__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
    gap: clamp(42px, 8vw, 100px);
    align-items: end;
}

.ml-intro h1 {
    margin: 0;
    max-width: 830px;
    font-size: clamp(3rem, 6vw, 5.8rem);
    line-height: 0.99;
    letter-spacing: -0.055em;
    font-weight: 770;
}

.ml-intro__lead {
    max-width: 760px;
    margin: 28px 0 0;
    color: rgba(255,255,255,.76);
    font-size: clamp(1.08rem, 1.65vw, 1.3rem);
    line-height: 1.65;
}

.ml-intro__aside {
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,.18);
    color: rgba(255,255,255,.66);
}

.ml-intro__aside strong {
    display: block;
    margin-bottom: 8px;
    color: var(--ml-white);
    font-size: 1.05rem;
}

/* Two-column section */
.ml-split {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    gap: clamp(48px, 8vw, 110px);
    align-items: start;
}

.ml-split__sticky {
    position: sticky;
    top: 32px;
}

.ml-split h2 {
    margin: 0;
    font-size: clamp(2.1rem, 4vw, 3.65rem);
    line-height: 1.04;
    letter-spacing: -0.045em;
}

/* Metrics */
.ml-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    border-top: 1px solid var(--ml-line);
    border-bottom: 1px solid var(--ml-line);
}

.ml-metric {
    padding: 28px 26px;
    border-right: 1px solid var(--ml-line);
}

.ml-metric:last-child { border-right: 0; }
.ml-metric strong {
    display: block;
    color: var(--ml-navy);
    font-size: clamp(1.8rem, 3vw, 2.65rem);
    line-height: 1;
    letter-spacing: -0.05em;
}
.ml-metric span {
    display: block;
    margin-top: 8px;
    color: var(--ml-muted);
    font-size: .88rem;
    line-height: 1.45;
}

/* National reach */
.ml-reach {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.ml-reach__map,
.ml-reach__copy {
    min-height: 360px;
    padding: clamp(28px, 4vw, 48px);
    border-radius: var(--ml-radius);
}

.ml-reach__map {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: var(--ml-navy-dark);
    color: var(--ml-white);
}

.ml-reach__cities {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ml-reach__cities span {
    padding: 8px 12px;
    border: 1px solid rgba(255,255,255,.20);
    border-radius: 999px;
    color: rgba(255,255,255,.84);
    font-size: .82rem;
    font-weight: 720;
}

.ml-reach__copy {
    background: var(--ml-white);
    border: 1px solid var(--ml-line);
}

/* Logos */
.ml-logo-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0,1fr));
    align-items: center;
    gap: 20px;
}
.ml-logo-grid__item {
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    border: 1px solid var(--ml-line);
    border-radius: 12px;
    background: var(--ml-white);
    color: var(--ml-muted);
    text-align: center;
    font-size: .86rem;
    font-weight: 750;
}
.ml-logo-grid__item img { max-height: 44px; width: auto; object-fit: contain; }

/* Horizontal editorial/media carousel: no external library */
.ml-carousel {
    position: relative;
}

.ml-carousel__controls {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-bottom: 18px;
}

.ml-carousel__button {
    width: 42px;
    height: 42px;
    border: 1px solid var(--ml-line);
    border-radius: 50%;
    background: var(--ml-white);
    color: var(--ml-ink);
    cursor: pointer;
    font: inherit;
    font-weight: 800;
}

.ml-carousel__track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(250px, 30%);
    gap: 20px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    scrollbar-width: thin;
    padding: 2px 2px 18px;
}

.ml-carousel__item {
    scroll-snap-align: start;
}

.ml-book-card,
.ml-video-card {
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--ml-line);
    border-radius: var(--ml-radius);
    background: var(--ml-white);
}

.ml-book-card__cover {
    aspect-ratio: 4 / 5;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: #f8f7f3;
}
.ml-book-card__cover img { width: 100%; height: 100%; object-fit: contain; }
.ml-book-card__body,
.ml-video-card__body { padding: 22px; }
.ml-book-card h3,
.ml-video-card h3 { margin: 0 0 8px; font-size: 1.12rem; line-height: 1.25; }
.ml-book-card p,
.ml-video-card p { margin: 0; color: var(--ml-muted); font-size: .9rem; }

.ml-video-card__media {
    aspect-ratio: 16 / 9;
    background: #101820;
}
.ml-video-card__media iframe,
.ml-video-card__media img { width: 100%; height: 100%; border: 0; object-fit: cover; display: block; }

/* Project cards */
.ml-project-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 22px;
}
.ml-project {
    min-height: 320px;
    padding: clamp(28px,4vw,42px);
    border: 1px solid var(--ml-line);
    border-radius: var(--ml-radius);
    background: var(--ml-white);
}
.ml-project__logo { max-width: 180px; max-height: 70px; width: auto; object-fit: contain; }

/* Executive case layout */
.ml-case-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}
.ml-case-card {
    min-height: 330px;
    padding: clamp(28px,4vw,42px);
    border-radius: var(--ml-radius);
    background: var(--ml-white);
    border: 1px solid var(--ml-line);
}
.ml-case-card__meta {
    color: var(--ml-accent);
    font-size: .72rem;
    font-weight: 850;
    letter-spacing: .09em;
    text-transform: uppercase;
}
.ml-case-card h3 { margin: 18px 0 14px; font-size: 1.45rem; line-height: 1.18; }
.ml-case-card p { color: var(--ml-muted); }

/* Quote / proof */
.ml-quote {
    margin: 0;
    padding: clamp(30px, 5vw, 54px);
    border-left: 4px solid var(--ml-accent);
    background: var(--ml-white);
    box-shadow: var(--ml-shadow);
}
.ml-quote p { margin: 0; font-size: clamp(1.25rem, 2.3vw, 1.8rem); line-height: 1.45; letter-spacing: -.02em; }
.ml-quote cite { display: block; margin-top: 20px; color: var(--ml-muted); font-size: .88rem; font-style: normal; }

/* Utility content helpers */
.ml-content-narrow { max-width: 780px; }
.ml-content-wide { max-width: 980px; }
.ml-center { margin-inline: auto; }
.ml-muted { color: var(--ml-muted); }
.ml-spacer-sm { height: 24px; }
.ml-spacer-md { height: 48px; }
.ml-spacer-lg { height: 78px; }

.ml-footer__bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

@media (max-width: 980px) {
    .ml-intro__grid,
    .ml-split,
    .ml-reach {
        grid-template-columns: 1fr;
    }
    .ml-split__sticky { position: static; }
    .ml-metrics { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .ml-metric:nth-child(2) { border-right: 0; }
    .ml-metric:nth-child(-n+2) { border-bottom: 1px solid var(--ml-line); }
    .ml-logo-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
    .ml-carousel__track { grid-auto-columns: minmax(260px, 48%); }
}

@media (max-width: 720px) {
    .ml-header__actions { gap: 10px; }
    .ml-intro { padding: 72px 0 62px; }
    .ml-intro h1 { font-size: clamp(2.55rem, 13vw, 4rem); }
    .ml-metrics { grid-template-columns: 1fr; }
    .ml-metric,
    .ml-metric:nth-child(2) { border-right: 0; border-bottom: 1px solid var(--ml-line); }
    .ml-metric:last-child { border-bottom: 0; }
    .ml-logo-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .ml-carousel__track { grid-auto-columns: 84%; }
    .ml-project-grid,
    .ml-case-grid { grid-template-columns: 1fr; }
    .ml-footer__bottom { flex-direction: column; }
}

/* Selettore lingua IT / EN */
.ml-header .ml-lang-switch {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    font-size: 0.78rem;
    line-height: 1;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.ml-lang-switch__link {
    color: var(--ml-muted);
    text-decoration: none;
    transition: color 160ms ease;
}

.ml-lang-switch__link:hover,
.ml-lang-switch__link:focus-visible,
.ml-lang-switch__link.is-current {
    color: var(--ml-ink);
}

.ml-lang-switch__link.is-current {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.ml-lang-switch__sep {
    color: var(--ml-line-strong, #aeb6bc);
    font-weight: 500;
}
