/* ============================================================
   MaxiaPulse — home page
   ------------------------------------------------------------
   Only index.html loads this. The old page ran eleven sections
   before it said what the product was; this one says it in the
   first screen and then earns the scroll three times.

   Depends on the tokens in maxiapulse.css, which loads first.
   ============================================================ */

/* Neutralise the old marketing chrome that used to wrap the page. */
.mp-home .header,
.mp-home .hero,
.mp-home .stats,
.mp-home .problem-solution,
.mp-home .features,
.mp-home .use-cases,
.mp-home .testimonials,
.mp-home .pricing,
.mp-home .cta { display: none !important; }

.mp-home { background: var(--mp-void); }

/* --- shared rhythm ----------------------------------------- */

.mp-wrap { max-width: 1240px; margin: 0 auto; padding: 0 4vw; }

.mp-kicker {
    font-family: var(--mp-mono);
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: .68rem;
    color: var(--mp-rust);
}

/* One display face, three sizes. Tight, heavy, sentence case —
   the reference shouts with size, not with capitals. */
.mp-display {
    font-weight: 800;
    letter-spacing: -.032em;
    line-height: 1.0;
    color: var(--mp-bone);
}
.mp-display .sig { color: var(--mp-signal); display: block; }
.mp-display .rust { color: var(--mp-rust); display: block; }

/* --- the ribbon -------------------------------------------- */

.mp-ribbon {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.6rem;
    flex-wrap: wrap;
    min-height: 38px;
    padding: .55rem 4vw;
    background: var(--mp-rust-dark);
    border-bottom: 1px solid var(--mp-rust);
    font-size: .76rem;
    color: var(--mp-bone);
    text-align: center;
}
.mp-ribbon .lead { color: #f1d0ca; }
.mp-ribbon a {
    color: var(--mp-bone);
    text-decoration: none;
    padding-left: 1.6rem;
    border-left: 1px solid rgba(255,255,255,.25);
}
.mp-ribbon a:hover { color: #fff; text-decoration: underline; }
@media (max-width: 640px) {
    .mp-ribbon { gap: .5rem; font-size: .72rem; padding: .5rem 4vw; }
    .mp-ribbon a { padding-left: 0; border-left: 0; }
    /* Three stacked rows of ribbon pushed the headline off the first screen.
       The label is the least useful of the three, so it goes first. */
    .mp-ribbon .lead { display: none; }
}

/* --- nav ---------------------------------------------------- */

.mp-nav {
    height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 0 4vw;
    background: var(--mp-black);
    border-bottom: 1px solid var(--mp-line);
}
.mp-nav-links { display: flex; gap: 2.1rem; }
.mp-nav-links a {
    color: var(--mp-paper);
    text-decoration: none;
    font-size: .84rem;
}
.mp-nav-links a:hover { color: var(--mp-signal); }
.mp-nav-right { display: flex; align-items: center; gap: 1.1rem; }
.mp-textlink {
    border: 0;
    background: none;
    color: var(--mp-paper);
    font-family: inherit;
    font-size: .84rem;
    font-weight: 700;
    cursor: pointer;
}
.mp-textlink:hover { color: var(--mp-bone); }
.mp-cta {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .68rem 1.15rem;
    border: 1px solid var(--mp-signal);
    border-radius: 3px;
    background: var(--mp-signal);
    color: var(--mp-void);
    font-family: inherit;
    font-size: .84rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background .15s ease;
}
.mp-cta:hover { background: #d3daae; color: var(--mp-void); }
.mp-cta.ghost {
    background: transparent;
    color: var(--mp-bone);
    border-color: var(--mp-line-strong);
}
.mp-cta.ghost:hover { background: var(--mp-raised); border-color: var(--mp-bone); color: var(--mp-bone); }
@media (max-width: 880px) { .mp-nav-links { display: none; } }
@media (max-width: 560px) {
    .mp-nav { height: auto; padding: .8rem 4vw; gap: .75rem; }
    .mp-nav-right { gap: .75rem; }
    /* Stop "Sign in" breaking across two lines in a 44px-tall control. */
    .mp-textlink, .mp-cta { white-space: nowrap; }
    .mp-cta { padding: .6rem .8rem; font-size: .78rem; }
    /* The arrow is decoration; the label is the message. */
    .mp-cta .long { display: none; }
    .mp-brand { font-size: 1.05rem; }
    .mp-brand .mp-mark { transform: scale(.78); transform-origin: left; }
}

/* --- hero --------------------------------------------------- */

.mp-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    border-bottom: 1px solid var(--mp-line);
}
.mp-hero-copy { padding: 5.5rem 4vw; align-self: center; max-width: 660px; }

.mp-hero h1 {
    font-size: clamp(3.4rem, 8.5vw, 6.6rem);
    font-weight: 800;
    letter-spacing: -.045em;
    line-height: .88;
    text-transform: uppercase;
    color: var(--mp-bone);
    margin: 0 0 1.6rem;
}
.mp-hero h1 .rust { color: var(--mp-rust); display: block; }

/* The one serif in the system. It carries the sentence that says
   what this is, so it should not look like the rest of the UI. */
.mp-hero-lede {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.3rem, 2.4vw, 1.85rem);
    line-height: 1.24;
    color: var(--mp-bone);
    margin: 0 0 1.1rem;
    max-width: 24ch;
}
.mp-hero-sub {
    font-size: .9rem;
    line-height: 1.65;
    color: var(--mp-muted);
    max-width: 48ch;
    margin: 0 0 2.2rem;
}

.mp-hero-actions { display: flex; gap: .7rem; flex-wrap: wrap; }
.mp-hero-note {
    margin-top: .9rem;
    font-size: .72rem;
    color: var(--mp-faint);
}

.mp-hero-figure {
    position: relative;
    min-height: 420px;
    border-left: 1px solid var(--mp-line);
    overflow: hidden;
}
.mp-hero-figure img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(.92) contrast(1.02);
}
/* Reads the caption over the darker left edge of the photograph. */
.mp-hero-figure::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(13,12,11,.55) 0%, rgba(13,12,11,0) 45%);
}
.mp-hero-caption {
    position: absolute;
    left: 1.6rem;
    bottom: 1.6rem;
    right: 1.6rem;
    z-index: 2;
    padding: .85rem 1rem;
    background: rgba(13,12,11,.82);
    border: 1px solid var(--mp-line);
    border-radius: 3px;
    font-size: .78rem;
    color: var(--mp-paper);
    max-width: 24rem;
}
@media (max-width: 900px) {
    .mp-hero { grid-template-columns: 1fr; }
    .mp-hero-copy { padding: 3.5rem 4vw 2.5rem; }
    .mp-hero-figure { min-height: 300px; border-left: 0; border-top: 1px solid var(--mp-line); }
}

/* --- statement band ----------------------------------------- */

.mp-statement {
    padding: 6rem 0;
    background: var(--mp-black);
    border-bottom: 1px solid var(--mp-line);
}
.mp-statement .mp-wrap {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 3rem;
    align-items: start;
}
/* This one is a caption, not a label — it belongs in the reading face,
   sentence case, sitting quietly beside the statement it introduces. */
.mp-statement .mp-kicker {
    font-family: Georgia, "Times New Roman", serif;
    text-transform: none;
    letter-spacing: -.01em;
    font-size: 1.05rem;
    line-height: 1.3;
    color: var(--mp-rust);
    padding-top: .35rem;
}
.mp-statement h2 {
    font-size: clamp(1.9rem, 4.4vw, 3.4rem);
    font-weight: 800;
    letter-spacing: -.032em;
    line-height: 1.04;
    color: var(--mp-bone);
    margin: 0 0 1.5rem;
}
.mp-statement h2 .sig { color: var(--mp-signal); display: block; }
.mp-statement p {
    font-size: .95rem;
    line-height: 1.7;
    color: var(--mp-muted);
    max-width: 58ch;
}
.mp-statement p b { color: var(--mp-bone); font-weight: 700; }
@media (max-width: 760px) {
    .mp-statement { padding: 3.5rem 0; }
    .mp-statement .mp-wrap { grid-template-columns: 1fr; gap: 1.2rem; }
}

/* --- the three things it does ------------------------------- */

.mp-does { padding: 6rem 0; }
.mp-does-head {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: end;
    margin-bottom: 3rem;
}
.mp-does-head h2 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -.032em;
    line-height: 1.04;
    color: var(--mp-bone);
    margin: 0;
    max-width: 16ch;
}
.mp-does-head p {
    font-size: .9rem;
    line-height: 1.7;
    color: var(--mp-muted);
    max-width: 42ch;
    margin: 0;
    justify-self: end;
}

.mp-does-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}
.mp-card {
    display: flex;
    flex-direction: column;
    background: var(--mp-surface);
    border: 1px solid var(--mp-line);
    border-radius: 4px;
    overflow: hidden;
    transition: border-color .15s ease;
}
.mp-card:hover { border-color: var(--mp-line-strong); }
.mp-card-shot {
    aspect-ratio: 16 / 10;
    background: var(--mp-black);
    border-bottom: 1px solid var(--mp-line);
    overflow: hidden;
}
.mp-card-shot img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left top;
}
.mp-card-body { padding: 1.4rem 1.4rem 1.6rem; }
.mp-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -.015em;
    color: var(--mp-bone);
    margin: 0 0 .5rem;
}
.mp-card p {
    font-size: .85rem;
    line-height: 1.65;
    color: var(--mp-muted);
    margin: 0;
}
@media (max-width: 980px) {
    .mp-does { padding: 3.5rem 0; }
    .mp-does-head { grid-template-columns: 1fr; gap: 1.2rem; align-items: start; }
    .mp-does-head p { justify-self: start; }
    .mp-does-grid { grid-template-columns: 1fr; }
}

/* --- client marks ------------------------------------------- */

.mp-home .mp-clients {
    display: block !important;
    padding: 0 0 5.5rem;
}

/* --- closing band ------------------------------------------- */

.mp-close {
    padding: 5.5rem 0;
    background: var(--mp-rust-dark);
    border-top: 1px solid var(--mp-rust);
    border-bottom: 1px solid var(--mp-rust);
}
.mp-close .mp-wrap {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 3rem;
    align-items: center;
}
.mp-close h2 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -.032em;
    line-height: 1.04;
    color: var(--mp-bone);
    margin: 0;
    max-width: 15ch;
}
.mp-close p {
    font-size: .92rem;
    line-height: 1.7;
    color: #f1d0ca;
    margin: 0 0 1.4rem;
    max-width: 40ch;
}
.mp-close .mp-cta {
    background: var(--mp-bone);
    border-color: var(--mp-bone);
    color: var(--mp-void);
}
.mp-close .mp-cta:hover { background: #fff; border-color: #fff; }
@media (max-width: 820px) {
    .mp-close { padding: 3.5rem 0; }
    .mp-close .mp-wrap { grid-template-columns: 1fr; gap: 1.6rem; }
}

/* --- footer -------------------------------------------------- */

.mp-home .footer { display: none !important; }
.mp-footer {
    padding: 2.2rem 4vw;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    background: var(--mp-black);
    border-top: 1px solid var(--mp-line);
    font-size: .78rem;
    color: var(--mp-faint);
}
.mp-footer nav { display: flex; gap: 1.4rem; align-items: center; }
.mp-footer a { color: var(--mp-muted); text-decoration: none; }
.mp-footer a:hover { color: var(--mp-bone); }
