/* ===============================================
    Home page: About Us
    Markup: views/index.hbs (#about-us)     Behaviour: public/js/home-about.js
------------------------*/

.mp-about {
    --mp-ink: var(--brand-ink);
    --mp-navy: var(--brand-navy);
    --mp-green: var(--brand-green);
    --mp-accent: var(--brand-orange);
    --mp-accent-dark: var(--brand-orange-text);
    --mp-line: var(--brand-line);
    --mp-muted: var(--brand-muted);

    position: relative;
    padding: var(--sec-y) 0;
    overflow: hidden;
    background: var(--brand-cream);
}

/* two soft colour washes keep the white from feeling flat */
.mp-about:before,
.mp-about:after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.mp-about:before {
    top: -180px;
    right: -140px;
    width: 560px;
    height: 560px;
    background: radial-gradient(circle, rgba(var(--brand-orange-rgb), .2), transparent 68%);
}

.mp-about:after {
    bottom: -220px;
    left: -180px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(var(--brand-yellow-rgb), .4), transparent 66%);
}

.mp-about .container {
    position: relative;
    z-index: 1;
}

.mp-about__layout {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 64px;
    align-items: center;
}

.mp-about .mp-eyebrow {
    margin: 0 0 14px;
    color: var(--mp-accent-dark);
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: .14em;
    text-transform: uppercase;
}


/* Visual
------------------------*/

.mp-about__visual {
    position: relative;
    padding: 0 28px 28px 0;
}

/* offset panel behind the photo */
.mp-about__visual:before {
    content: "";
    position: absolute;
    top: 28px;
    right: 0;
    bottom: 0;
    left: 28px;
    border-radius: 32px;
    background: linear-gradient(135deg, var(--mp-green), var(--mp-navy));
}

.mp-about__dots {
    position: absolute;
    top: -26px;
    left: -26px;
    width: 128px;
    height: 128px;
    background: radial-gradient(var(--mp-accent) 2.6px, transparent 3.2px) 0 0 / 16px 16px;
    opacity: .6;
}

.mp-about__photo {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 32px;
    background: #dfe6ea;
    box-shadow: 0 40px 70px -40px rgba(var(--brand-navy-rgb), .65);
}

.mp-about__photo:after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(var(--brand-navy-rgb), .28));
    pointer-events: none;
}

.mp-about__photo img {
    display: block;
    width: 100%;
    max-width: none;
    height: 100%;
    object-fit: cover;
}

.mp-about__chip {
    position: absolute;
    top: 26px;
    right: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 18px 9px 10px;
    border-radius: 999px;
    background: #fff;
    color: var(--mp-ink);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    box-shadow: 0 22px 40px -22px rgba(var(--brand-navy-rgb), .55);
}

.mp-about__chip-icon {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--mp-green);
    color: #fff;
}

.mp-about__chip-icon svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mp-about__badge {
    position: absolute;
    bottom: 64px;
    left: -30px;
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: calc(100% - 20px);
    padding: 14px 22px 14px 14px;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 30px 50px -26px rgba(var(--brand-navy-rgb), .6);
}

.mp-about__badge img {
    display: block;
    flex: none;
    width: 46px;
    height: 46px;
}

.mp-about__badge-text {
    display: block;
    min-width: 0;
}

.mp-about__badge-text strong {
    display: block;
    color: var(--mp-ink);
    font-family: Poppins, sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
}

.mp-about__badge-text span {
    display: block;
    margin-top: 3px;
    color: var(--mp-muted);
    font-size: 13px;
    line-height: 1.3;
}


/* Content
------------------------*/

.mp-about__title {
    margin: 0 0 22px;
    color: var(--mp-ink);
    font-family: Poppins, sans-serif;
    font-size: 46px;
    font-weight: 600;
    line-height: 1.12;
}

.mp-about__title span {
    color: var(--mp-green);
}

.mp-about__lead {
    margin: 0 0 18px;
    color: var(--mp-ink);
    font-size: 20px;
    font-weight: 500;
    line-height: 1.65;
}

/* marker-pen highlight on the mantra */
.mp-about__lead mark {
    padding: 0 2px;
    background: linear-gradient(transparent 62%, rgba(var(--brand-orange-rgb), .38) 62%);
    color: inherit;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

.mp-about__text {
    margin: 0 0 22px;
    color: var(--mp-muted);
    font-size: 16px;
    line-height: 1.85;
}

.mp-about__pillars {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 0 0 26px;
    padding: 0;
    list-style: none;
}

.mp-pillar {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0;
    padding: 14px 18px 14px 14px;
    border: 1px solid var(--mp-line);
    border-radius: 16px;
    background: #fff;
}

.mp-pillar:hover {
    border-color: rgba(var(--brand-green-rgb), .35);
    box-shadow: 0 22px 36px -26px rgba(var(--brand-navy-rgb), .55);
    transform: translateY(-3px);
}

.mp-pillar__icon {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--brand-green-tint);
    color: var(--mp-green);
}

.mp-pillar__icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mp-pillar__label {
    min-width: 0;
    color: var(--mp-ink);
    font-family: Poppins, sans-serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
}

.mp-about__cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 30px;
    border-radius: 999px;
    background: var(--mp-navy);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    transition: background-color .25s ease, color .25s ease, box-shadow .25s ease;
}

.mp-about__cta svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .25s ease;
}

.mp-about__cta:hover,
.mp-about__cta:focus-visible {
    background: var(--mp-accent);
    color: var(--mp-ink);
    box-shadow: 0 16px 28px -16px rgba(var(--brand-orange-rgb), .9);
}

.mp-about__cta:hover svg {
    transform: translateX(4px);
}

.mp-about__cta:focus-visible {
    outline: 2px solid var(--mp-green);
    outline-offset: 3px;
}


/* Scroll reveal: only hidden once the script has marked the page (html.mp-js),
   so nothing disappears if the script never runs.
------------------------*/

.mp-js .mp-reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .7s ease var(--d, 0ms), transform .7s ease var(--d, 0ms);
}

.mp-js .mp-reveal.is-in {
    opacity: 1;
    transform: none;
}

/* the pillar hover lift must not fight the reveal transition, and needs the
   extra specificity to beat the revealed state's transform:none */
.mp-js .mp-pillar.is-in {
    transition: opacity .7s ease var(--d, 0ms), transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.mp-js .mp-pillar.is-in:hover {
    transform: translateY(-3px);
}


/* Responsive
------------------------*/

@media (max-width: 1199.98px) {

    .mp-about__layout {
        gap: 48px;
    }

    .mp-about__title {
        font-size: 40px;
    }
}

@media (max-width: 991.98px) {

    .mp-about {
        padding: var(--sec-y) 0;
    }

    .mp-about__layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 36px;
    }

    .mp-about__visual {
        width: 100%;
        max-width: 520px;
        margin: 0 auto;
    }

    .mp-about__badge {
        left: -14px;
    }
}

@media (max-width: 575.98px) {

    .mp-about {
        padding: var(--sec-y) 0;
    }

    .mp-about__layout {
        gap: 32px;
    }

    .mp-about__visual {
        padding: 0 18px 18px 0;
    }

    .mp-about__visual:before {
        top: 18px;
        left: 18px;
        border-radius: 24px;
    }

    .mp-about__photo {
        border-radius: 24px;
    }

    .mp-about__dots {
        top: -18px;
        left: -14px;
        width: 96px;
        height: 96px;
    }

    .mp-about__chip {
        top: 16px;
        padding: 7px 14px 7px 8px;
        font-size: 13px;
    }

    .mp-about__chip-icon {
        width: 24px;
        height: 24px;
    }

    .mp-about__badge {
        bottom: 40px;
        left: -8px;
        gap: 12px;
        padding: 12px 16px 12px 12px;
        border-radius: 16px;
    }

    .mp-about__badge img {
        width: 38px;
        height: 38px;
    }

    .mp-about__badge-text strong {
        font-size: 14px;
    }

    .mp-about__badge-text span {
        font-size: 12px;
    }

    .mp-about__title {
        font-size: 34px;
    }

    .mp-about__lead {
        font-size: 18px;
    }

    .mp-about__pillars {
        gap: 10px;
    }

    .mp-pillar {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 14px;
    }

    .mp-about__cta {
        width: 100%;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {

    .mp-js .mp-reveal,
    .mp-js .mp-pillar.is-in,
    .mp-about__cta,
    .mp-about__cta svg {
        transition: none;
    }

    .mp-js .mp-reveal {
        opacity: 1;
        transform: none;
    }

    .mp-pillar:hover,
    .mp-js .mp-pillar.is-in:hover {
        transform: none;
    }
}
