/* ==========================================================================
   Millionaire Street (pId 68041) — Our Story page.

   Auto-loaded by base.php for the view whose basename is `our-story`
   (app/Views/themes/ue_override/core_views/millionairestreet/our-story.php).
   Page-scoped by the `ms-story-*` prefix, so nothing here reaches another page.

   Colours come from the runtime brand tokens base.php injects on <body>.
   This brand's --brand-primary (#f5c07f) is a light gold — readable as a FILL
   or on a dark ground, never as ink on white. Headings therefore use
   --brand-secondary-raw (#762308, the brand's deep brown). Both are pId-scoped
   facts; this file only ever loads for 68041.

   Mobile-first; desktop starts at 768px.
   ========================================================================== */

/* --- Hero ---------------------------------------------------------------- */

.ms-story-hero {
    position: relative;
    isolation: isolate;
    display: grid;
    /* Items stay stretched so the scrim fills the band; only the copy block
       pins itself to the bottom (align-self below). */
    align-items: stretch;
    min-height: 340px;
    background: var(--brand-secondary-raw, #762308);
}

/* The source is 2170x725. On mobile that ratio is too shallow to carry a
   title, so the image fills a taller box and crops to its centre (the counter);
   from 768px it runs at its natural ratio. */
.ms-story-hero__img,
.ms-story-hero__veil,
.ms-story-hero__inner {
    grid-area: 1 / 1;
}

.ms-story-hero__img {
    width: 100%;
    height: 100%;
    min-height: 340px;
    object-fit: cover;
    object-position: center;
}

.ms-story-hero__veil {
    /* The room is lit warm and bright, so the title needs a real ground, not a
       hint of one — .94 at the base keeps the lead paragraph readable over the
       polished floor while the ceiling still reads as a room. */
    background: linear-gradient(
        to top,
        rgba(26, 10, 4, .92) 0%,
        rgba(26, 10, 4, .78) 40%,
        rgba(26, 10, 4, .40) 74%,
        rgba(26, 10, 4, .14) 100%
    );
}

.ms-story-hero__inner {
    z-index: 1;
    align-self: end;
    max-width: 760px;
    padding-block: var(--space-8, 32px) var(--space-10, 40px);
}

.ms-story-hero__eyebrow {
    margin: 0 0 var(--space-3, 12px);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--brand-primary, #f5c07f);
}

.ms-story-hero__title {
    margin: 0 0 var(--space-4, 16px);
    font-family: var(--font-display, inherit);
    font-size: clamp(2.25rem, 8vw, 3.25rem);
    line-height: 1.06;
    font-weight: 700;
    color: #fff;
}

.ms-story-hero__lead {
    margin: 0;
    font-size: clamp(1rem, 2.6vw, 1.1875rem);
    line-height: 1.6;
    font-weight: 500;
    color: rgba(255, 255, 255, .92);
}

/* --- Shared bits --------------------------------------------------------- */

.ms-story-eyebrow {
    margin: 0 0 var(--space-2, 8px);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--brand-secondary-raw, #762308) 70%, #fff);
}

.ms-story-vision__title,
.ms-story-mission__title {
    margin: 0 0 var(--space-4, 16px);
    font-family: var(--font-display, inherit);
    font-size: clamp(1.625rem, 5.5vw, 2.25rem);
    line-height: 1.14;
    font-weight: 700;
    color: var(--brand-secondary-raw, #762308);
}

.ms-story-vision__text,
.ms-story-mission__text {
    margin: 0;
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text-secondary, #555);
}

.ms-story-vision__figure,
.ms-story-mission__figure {
    margin: 0;
}

.ms-story-vision__img,
.ms-story-mission__img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg, 16px);
    background: var(--bg-surface, #f4f4f4);
}

/* --- Vision (tinted band) ------------------------------------------------ */

.ms-story-vision {
    background: color-mix(in srgb, var(--brand-primary, #f5c07f) 16%, #fff);
    border-bottom: 1px solid color-mix(in srgb, var(--brand-primary, #f5c07f) 32%, #fff);
}

.ms-story-vision__inner,
.ms-story-mission__inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6, 24px);
    padding-block: var(--space-10, 40px);
}

.ms-story-vision__img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

/* --- Mission (plain band) ------------------------------------------------ */

/* The shake photo is only 382x310, so it never stretches past its natural
   width — scaling it up to fill a half-column would soften it visibly. */
.ms-story-mission__figure {
    max-width: 382px;
    margin-inline: auto;
}

.ms-story-mission__img {
    aspect-ratio: 382 / 310;
    object-fit: cover;
}

/* --- Closer -------------------------------------------------------------- */

.ms-story-closer {
    background: var(--brand-secondary-raw, #762308);
}

.ms-story-closer__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-5, 20px);
    padding-block: var(--space-10, 40px);
    text-align: center;
}

.ms-story-closer__line {
    margin: 0;
    font-family: var(--font-display, inherit);
    font-size: clamp(1.375rem, 5vw, 1.875rem);
    line-height: 1.2;
    font-weight: 700;
    color: var(--brand-primary, #f5c07f);
}

.ms-story-closer__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: var(--space-3, 12px) var(--space-8, 32px);
    border-radius: var(--r-full, 100px);
    background: var(--brand-primary, #f5c07f);
    color: var(--cta-ink, #141414);
    font-size: 1rem;
    font-weight: 700;
    transition: background var(--dur, .3s) var(--ease, ease);
}

.ms-story-closer__cta:hover,
.ms-story-closer__cta:focus-visible {
    background: var(--brand-hover, #d9a86b);
    color: var(--cta-ink, #141414);
}

.ms-story-closer__cta:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

/* --- Desktop ------------------------------------------------------------- */

@media (min-width: 768px) {
    .ms-story-hero {
        min-height: 0;
    }

    .ms-story-hero__img {
        min-height: 0;
        aspect-ratio: 2170 / 725;
    }

    .ms-story-hero__inner {
        padding-block: var(--space-12, 48px);
    }

    .ms-story-vision__inner,
    .ms-story-mission__inner {
        grid-template-columns: 1fr 1fr;
        align-items: center;
        gap: var(--space-12, 48px);
        padding-block: var(--space-16, 64px);
    }

    .ms-story-vision__text,
    .ms-story-mission__text {
        font-size: 1.0625rem;
    }

    .ms-story-closer__inner {
        flex-direction: row;
        justify-content: center;
        gap: var(--space-8, 32px);
        padding-block: var(--space-12, 48px);
    }
}
