/*
 * Marketing Mavens
 * Monochrome, like the mark. One family (Archivo) in two widths: expanded
 * for headlines, echoing the mark's broad strokes, and normal for reading.
 * The one loud moment is the journey: six slanted bars that rise like the
 * strokes of the logo.
 */

@font-face {
    font-family: "Archivo";
    src: url("/assets/fonts/archivo-normal.woff2") format("woff2");
    font-weight: 100 900;
    font-stretch: 62% 125%;
    font-style: normal;
    font-display: swap;
}

:root {
    --ink: #111111;
    --paper: #ffffff;
    --mist: #eef0f2;
    --graphite: #5a5f66;
    --hairline: rgba(17, 17, 17, 0.14);
    --signal: #1e73be;

    --wrap: 72rem;
    --gutter: clamp(1.25rem, 4vw, 2.5rem);
    --section: clamp(4.5rem, 10vw, 8rem);

    --text: clamp(1.0625rem, 1rem + 0.2vw, 1.125rem);
    --text-small: 0.9375rem;
    --h3: 1.25rem;
    --h2: clamp(2rem, 1.35rem + 2.6vw, 3.25rem);
    --h1: clamp(2.75rem, 1.1rem + 6.6vw, 6.5rem);

    --skew: -12deg;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

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

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: var(--text);
    line-height: 1.6;
    font-stretch: 100%;
    text-rendering: optimizeLegibility;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

h1,
h2,
h3 {
    margin: 0;
    font-stretch: 125%;
    text-wrap: balance;
}

h2 {
    font-size: var(--h2);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.012em;
}

h3 {
    font-size: var(--h3);
    font-weight: 700;
    line-height: 1.2;
}

p {
    margin: 0;
    text-wrap: pretty;
}

a {
    color: inherit;
}

:focus-visible {
    outline: 3px solid var(--signal);
    outline-offset: 3px;
}

.wrap {
    width: 100%;
    max-width: calc(var(--wrap) + 2 * var(--gutter));
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.skip-link {
    position: absolute;
    left: var(--gutter);
    top: -4rem;
    z-index: 10;
    padding: 0.6rem 1rem;
    background: var(--ink);
    color: var(--paper);
    border-radius: 6px;
}

.skip-link:focus {
    top: 1rem;
}

/* Buttons and links */

.button {
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3.25rem;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    background: var(--ink);
    color: var(--paper);
    font-weight: 650;
    font-stretch: 112%;
    text-decoration: none;
    line-height: 1.2;
    transition: background-color 150ms ease;
}

.button:hover {
    background: #2b2b2b;
}

.button--small {
    min-height: 2.5rem;
    padding: 0.5rem 1rem;
    font-size: var(--text-small);
}

.button--inverse {
    background: var(--paper);
    color: var(--ink);
}

.button--inverse:hover {
    background: var(--mist);
}

.text-link {
    font-weight: 600;
    text-decoration-thickness: 2px;
    text-underline-offset: 0.3em;
}

.text-link:hover {
    text-decoration-color: var(--signal);
}

/* Header */

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding-block: 1.25rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.brand img {
    width: 2.5rem;
}

.brand__name {
    white-space: nowrap;
    font-weight: 750;
    font-stretch: 125%;
    font-size: 1.0625rem;
    letter-spacing: -0.005em;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 2.5vw, 2rem);
    font-size: var(--text-small);
}

.site-nav a:not(.button) {
    color: var(--graphite);
    text-decoration: none;
    font-weight: 550;
}

.site-nav a:not(.button):hover {
    color: var(--ink);
}

@media (max-width: 40rem) {
    .site-nav a:not(.button) {
        display: none;
    }

    .brand__name {
        font-size: 1rem;
    }
}

/* The smallest phones: the name may take two short lines, the button keeps one. */
@media (max-width: 22.5rem) {
    .brand__name {
        white-space: normal;
        font-size: 0.9375rem;
        line-height: 1.15;
    }

    .brand img {
        width: 2rem;
    }
}

/* Hero: quiet type, the mark large and faint behind it */

.hero {
    position: relative;
    overflow: hidden;
    padding-block: clamp(3.5rem, 9vw, 8rem) var(--section);
}

.hero::after {
    content: "";
    position: absolute;
    top: clamp(1rem, 4vw, 3rem);
    right: max(-6rem, -6vw);
    width: min(46vw, 40rem);
    aspect-ratio: 644 / 498;
    background: var(--mist);
    -webkit-mask: url("/assets/img/mm-mark.svg") no-repeat center / contain;
    mask: url("/assets/img/mm-mark.svg") no-repeat center / contain;
    pointer-events: none;
}

.hero .wrap {
    position: relative;
    z-index: 1;
}

.hero__title {
    max-width: 11ch;
    font-size: var(--h1);
    font-weight: 820;
    line-height: 0.98;
    letter-spacing: -0.02em;
}

.hero__lede {
    max-width: 36ch;
    margin-top: clamp(1.5rem, 3vw, 2.25rem);
    font-size: clamp(1.125rem, 1rem + 0.6vw, 1.375rem);
    line-height: 1.5;
    color: var(--graphite);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.75rem;
    margin-top: 2.25rem;
}

@media (max-width: 54rem) {
    .hero::after {
        width: 70vw;
        top: auto;
        bottom: -8vw;
        right: -18vw;
        opacity: 0.7;
    }
}

/* Section intros */

.section-intro {
    max-width: 40rem;
}

.section-intro p {
    margin-top: 1.125rem;
    color: var(--graphite);
    font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
}

/* Approach: the journey */

.approach {
    padding-block: var(--section);
    border-top: 1px solid var(--hairline);
}

.journey {
    --bar-room: 12rem;
    list-style: none;
    margin: clamp(3rem, 6vw, 4.5rem) 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 2.5rem clamp(1.25rem, 2vw, 2rem);
}

.journey__stage {
    display: flex;
    flex-direction: column;
}

.journey__bar {
    display: block;
    width: 2.6rem;
    height: calc(var(--rise) * var(--bar-room));
    margin-top: calc((1 - var(--rise)) * var(--bar-room));
    margin-left: 0.75rem;
    border-radius: 0.55rem;
    background: var(--ink);
    transform: skewX(var(--skew));
    transform-origin: bottom left;
}

.journey__stage h3 {
    margin-top: 1.5rem;
}

.journey__stage p {
    margin-top: 0.6rem;
    font-size: var(--text-small);
    line-height: 1.55;
    color: var(--graphite);
}

/* Armed by the script only when motion is welcome; grows once in view. */
.journey--armed .journey__bar {
    transform: skewX(var(--skew)) scaleY(0.04);
    transition: transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.journey--armed.journey--grown .journey__bar {
    transform: skewX(var(--skew)) scaleY(1);
}

.journey__stage:nth-child(2) .journey__bar { transition-delay: 90ms; }
.journey__stage:nth-child(3) .journey__bar { transition-delay: 180ms; }
.journey__stage:nth-child(4) .journey__bar { transition-delay: 270ms; }
.journey__stage:nth-child(5) .journey__bar { transition-delay: 360ms; }
.journey__stage:nth-child(6) .journey__bar { transition-delay: 450ms; }

@media (max-width: 68rem) {
    .journey {
        --bar-room: 8rem;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 3rem 2rem;
    }
}

/* On a phone the bars lie down and grow to the right, one per stage. */
@media (max-width: 40rem) {
    .journey {
        grid-template-columns: 1fr;
        gap: 2.25rem;
    }

    .journey__bar {
        width: calc(var(--rise) * 100%);
        height: 0.9rem;
        margin: 0;
        border-radius: 0.3rem;
        transform: skewX(var(--skew));
        transform-origin: left center;
    }

    .journey--armed .journey__bar {
        transform: skewX(var(--skew)) scaleX(0.04);
    }

    .journey--armed.journey--grown .journey__bar {
        transform: skewX(var(--skew)) scaleX(1);
    }

    .journey__stage h3 {
        margin-top: 0.9rem;
    }

    .journey__stage p {
        font-size: var(--text);
    }
}

/* Work */

.work {
    padding-block: var(--section);
    background: var(--mist);
}

.work__inner {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: center;
    gap: clamp(2rem, 5vw, 4.5rem);
}

.work__text p {
    margin-top: 1.125rem;
    color: var(--graphite);
}

.work__text a {
    color: var(--ink);
    font-weight: 650;
    text-decoration-thickness: 2px;
    text-underline-offset: 0.25em;
}

.work__shot {
    margin: 0;
}

.work__shot img {
    width: 100%;
    border-radius: 10px;
    border: 1px solid var(--hairline);
}

@media (max-width: 54rem) {
    .work__inner {
        grid-template-columns: 1fr;
    }
}

/* Team */

.team {
    padding-block: var(--section);
}

.section-intro .team__record {
    color: var(--ink);
}

.people {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.5rem clamp(2rem, 5vw, 4rem);
    margin-top: clamp(2.5rem, 5vw, 3.5rem);
    max-width: 56rem;
}

.person {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
}

.person img {
    flex: none;
    width: 5.5rem;
    height: 5.5rem;
    border-radius: 50%;
    object-fit: cover;
}

.person__role {
    margin-top: 0.2rem;
    font-size: var(--text-small);
    font-weight: 600;
    color: var(--graphite);
}

.person p:last-child {
    margin-top: 0.6rem;
}

@media (max-width: 40rem) {
    .people {
        grid-template-columns: 1fr;
    }
}

/* Clients */

.clients {
    padding-block: var(--section);
    border-top: 1px solid var(--hairline);
}

.quotes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(2.5rem, 5vw, 3.5rem) clamp(2rem, 6vw, 5rem);
    margin-top: clamp(2.5rem, 5vw, 3.5rem);
}

.quote {
    margin: 0;
}

.quote blockquote {
    margin: 0;
}

.quote blockquote p {
    max-width: 62ch;
}

.quote blockquote p::before {
    content: "“";
    display: block;
    height: 2.1rem;
    font-size: 3.5rem;
    font-weight: 800;
    font-stretch: 125%;
    line-height: 1;
}

.quote figcaption {
    margin-top: 1rem;
    font-weight: 700;
    font-stretch: 112%;
    font-size: var(--text-small);
}

@media (max-width: 54rem) {
    .quotes {
        grid-template-columns: 1fr;
    }
}

.logos {
    margin-top: clamp(3.5rem, 7vw, 5rem);
    padding-top: 2rem;
    border-top: 1px solid var(--hairline);
}

.logos__label {
    font-size: var(--text-small);
    color: var(--graphite);
}

.logos__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.75rem clamp(2rem, 5vw, 3.5rem);
    list-style: none;
    margin: 1.5rem 0 0;
    padding: 0;
}

.logos__list img {
    width: auto;
    max-width: 10rem;
    max-height: 2.4rem;
    object-fit: contain;
    filter: grayscale(1);
    opacity: 0.75;
}

/* Contact */

.contact {
    padding-block: var(--section);
    background: var(--ink);
    color: var(--paper);
}

.contact h2 {
    max-width: 16ch;
}

.contact__lede {
    max-width: 44ch;
    margin-top: 1.25rem;
    color: #c7cbd1;
    font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
}

.contact .button {
    margin-top: 2.25rem;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: center;
}

.contact :focus-visible {
    outline-color: #8fc3f2;
}

/* Footer */

.site-footer__inner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-block: 1.75rem;
    font-size: var(--text-small);
    color: var(--graphite);
}

.site-footer__inner img {
    width: 1.75rem;
}
