/* ============================================================
   MSINGI — HOME · Gallery-editorial design system (2026-07)
   Warm ivory paper, Marcellus display serif, hairline rules,
   one dark "jewel box" moment for Faraji Marijani.
   Loaded only on the home page, after app.min.css.
   ============================================================ */

:root {
    --mh-paper: #f4f2ec;
    --mh-paper-deep: #ece8df;
    --mh-ivory: #fbfaf7;
    --mh-ink: #17130e;
    --mh-muted: #716b60;
    --mh-line: rgba(23, 19, 14, 0.16);
    --mh-line-soft: rgba(23, 19, 14, 0.09);
    --mh-maroon: #8b191b;
    --mh-maroon-bright: #a81d20;
    --mh-coal: #131008;
    --mh-ease: cubic-bezier(.19, 1, .22, 1);
    --mh-serif: 'EB Garamond', Georgia, serif;
    --mh-sans: 'Open Sans', 'Helvetica Neue', sans-serif;
}

/* ---------- primitives ---------- */
.mh-wrap {
    max-width: 1320px;
    margin-inline: auto;
    padding-inline: clamp(22px, 4.5vw, 56px);
}
.mh-wrap--narrow { max-width: 880px; }

.mh-eyebrow {
    display: inline-flex;
    align-items: baseline;
    gap: 14px;
    font-family: var(--mh-sans);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.34em;
    text-transform: uppercase;
    color: var(--mh-muted);
    margin-bottom: 26px;
}
.mh-eyebrow__index {
    color: var(--mh-maroon);
    font-weight: 700;
    letter-spacing: 0.22em;
}
.mh-eyebrow--light { color: rgba(251, 250, 247, 0.62); }
.mh-eyebrow--light .mh-eyebrow__index { color: #d8807d; }

.mh-display {
    font-family: var(--mh-serif);
    font-weight: 400;
    color: var(--mh-ink);
    line-height: 1.06;
    letter-spacing: 0.002em;
    margin: 0;
}
.mh-display--xl { font-size: clamp(40px, 5.2vw, 82px); }
.mh-display--lg { font-size: clamp(34px, 4.2vw, 62px); }
.mh-display--md { font-size: clamp(26px, 3vw, 42px); }
.mh-display em {
    font-style: normal;
    color: var(--mh-maroon);
}

.mh-lede {
    font-family: var(--mh-sans);
    font-weight: 300;
    font-size: clamp(16px, 1.35vw, 19px);
    line-height: 1.75;
    color: var(--mh-muted);
    margin: 0;
}

/* ---------- buttons & links ---------- */
.mh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 17px 36px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-family: var(--mh-sans);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    line-height: 1;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.5s var(--mh-ease), color 0.5s var(--mh-ease),
                border-color 0.5s var(--mh-ease), transform 0.5s var(--mh-ease),
                box-shadow 0.5s var(--mh-ease);
}
.mh-btn .mh-btn__arrow {
    display: inline-block;
    transition: transform 0.5s var(--mh-ease);
}
.mh-btn:hover .mh-btn__arrow { transform: translateX(5px); }

.mh-btn--ivory {
    background: var(--mh-ivory);
    color: var(--mh-ink) !important;
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.28);
}
.mh-btn--ivory:hover {
    background: var(--mh-maroon);
    color: #fff !important;
    transform: translateY(-2px);
}
.mh-btn--maroon {
    background: var(--mh-maroon);
    color: #fff !important;
    box-shadow: 0 16px 44px rgba(139, 25, 27, 0.35);
}
.mh-btn--maroon:hover {
    background: var(--mh-maroon-bright);
    color: #fff !important;
    transform: translateY(-2px);
}
.mh-btn--ghost-light {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.38);
    color: #fff !important;
    backdrop-filter: blur(6px);
}
.mh-btn--ghost-light:hover {
    background: var(--mh-ivory);
    border-color: var(--mh-ivory);
    color: var(--mh-ink) !important;
    transform: translateY(-2px);
}
.mh-btn--ghost-dark {
    border-color: rgba(23, 19, 14, 0.3);
    color: var(--mh-ink) !important;
}
.mh-btn--ghost-dark:hover {
    background: var(--mh-ink);
    border-color: var(--mh-ink);
    color: var(--mh-ivory) !important;
    transform: translateY(-2px);
}

.mh-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--mh-sans);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--mh-ink) !important;
    text-decoration: none;
    padding-bottom: 8px;
    position: relative;
}
.mh-link::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 100%;
    height: 1px;
    background: var(--mh-line);
}
.mh-link::before {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 0;
    height: 1px;
    background: var(--mh-maroon);
    transition: width 0.6s var(--mh-ease);
    z-index: 1;
}
.mh-link:hover::before { width: 100%; }
.mh-link span { transition: transform 0.5s var(--mh-ease); }
.mh-link:hover span { transform: translateX(4px); }

/* ============================================================
   HERO — full-viewport video, bottom-left composition
   ============================================================ */
.mh-hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: flex-end;
    padding: 0 !important;
    overflow: hidden;
}
.mh-hero__film {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
    opacity: 0;
    transform: scale(1.015);
    transition: opacity 1.1s ease, transform 8s linear;
}
.mh-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: #17130e url('/images/hero-poster.jpg') center / cover no-repeat;
    z-index: 0;
}
.mh-hero--film-ready .mh-hero__film { opacity: 1; transform: scale(1); }
.mh-hero__scrim {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(10, 8, 5, 0.5) 0%, rgba(10, 8, 5, 0.16) 28%, rgba(10, 8, 5, 0.2) 48%, rgba(10, 8, 5, 0.68) 78%, rgba(10, 8, 5, 0.86) 100%);
}
.mh-hero__content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding-top: 120px;
    padding-bottom: clamp(36px, 5vh, 64px);
    /* localized pool of shade hugging the text corner so copy stays
       readable on any (bright) video frame, without flattening the film */
    background: radial-gradient(115% 150% at 16% 100%, rgba(8, 6, 4, 0.72) 0%, rgba(8, 6, 4, 0.4) 48%, rgba(8, 6, 4, 0) 74%);
}
.mh-hero__project {
    position: absolute;
    right: clamp(24px, 5vw, 72px);
    bottom: clamp(112px, 13vh, 160px);
    width: min(300px, 28vw);
    padding: 22px 24px;
    color: var(--mh-ivory) !important;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 18px;
    background: rgba(17,13,8,.42);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: transform .55s var(--mh-ease), background .55s var(--mh-ease), border-color .55s var(--mh-ease);
}
.mh-hero__project:hover { transform: translateY(-6px); background: rgba(17,13,8,.72); border-color: rgba(255,255,255,.5); }
.mh-hero__project-kicker,
.mh-hero__project > span:last-child {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font: 600 9px/1.4 var(--mh-sans);
    letter-spacing: .22em;
    text-transform: uppercase;
    color: rgba(255,255,255,.66);
}
.mh-hero__project-kicker { justify-content: flex-start; }
.mh-hero__project-kicker i { width: 6px; height: 6px; border-radius: 50%; background: #70d59a; box-shadow: 0 0 0 4px rgba(112,213,154,.14); }
.mh-hero__project strong { display: block; margin: 18px 0 13px; font: 400 clamp(20px,2vw,28px)/1.1 var(--mh-serif); }
.mh-hero__project b { font-size: 18px; color: #fff; transition: transform .4s var(--mh-ease); }
.mh-hero__project:hover b { transform: translate(3px,-3px); }
.mh-hero__eyebrow {
    color: rgba(251, 250, 247, 0.82);
    margin-bottom: 30px;
    text-shadow: 0 1px 14px rgba(0, 0, 0, 0.5);
}
.mh-hero__eyebrow .mh-eyebrow__index { color: #e09a95; }
.mh-hero h1 {
    font-family: var(--mh-serif);
    font-weight: 400;
    font-size: clamp(32px, 4.6vw, 76px);
    line-height: 1.1;
    letter-spacing: 0.002em;
    color: var(--mh-ivory);
    max-width: 21ch;
    margin: 0 0 38px;
    text-shadow: 0 2px 28px rgba(0, 0, 0, 0.5);
}
.mh-hero__cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
}
.mh-hero__foot {
    margin-top: clamp(40px, 6vh, 72px);
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.mh-hero__fact {
    font-family: var(--mh-sans);
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(251, 250, 247, 0.6);
}
.mh-hero__fact--scroll {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-right: clamp(0px, 22vw, 330px); /* clear the fixed enquiry pill */
}
.mh-hero__scrollline {
    display: inline-block;
    width: 1px;
    height: 34px;
    background: rgba(255, 255, 255, 0.5);
    overflow: hidden;
    position: relative;
}
.mh-hero__scrollline::after {
    content: "";
    position: absolute;
    left: 0; top: -100%;
    width: 100%; height: 100%;
    background: #fff;
    animation: mhScroll 2.2s var(--mh-ease) infinite;
}
@keyframes mhScroll {
    0%   { top: -100%; }
    55%  { top: 100%; }
    100% { top: 100%; }
}

/* entrance */
@keyframes mhRise {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}
.mh-hero__eyebrow { animation: mhRise 1.1s var(--mh-ease) 0.15s both; }
.mh-hero h1        { animation: mhRise 1.1s var(--mh-ease) 0.3s both; }
.mh-hero__cta      { animation: mhRise 1.1s var(--mh-ease) 0.45s both; }
.mh-hero__foot     { animation: mhRise 1.1s var(--mh-ease) 0.6s both; }

/* ============================================================
   SECTIONS — shared shells
   ============================================================ */
.mh-sec {
    background: var(--mh-paper);
    padding: clamp(64px, 7.5vw, 108px) 0;
}
.mh-sec--flush-btm { padding-bottom: clamp(44px, 5vw, 72px); }
.mh-sec--flush-top { padding-top: clamp(44px, 5vw, 72px); }

.mh-sechead {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: clamp(44px, 5vw, 72px);
}
.mh-sechead .mh-eyebrow { margin-bottom: 18px; }
.mh-sechead__aside {
    flex-shrink: 0;
    padding-bottom: 10px;
}

/* ============================================================
   INTRO — manifesto text + layered build/interior imagery
   ============================================================ */
.mh-intro {
    display: grid;
    grid-template-columns: 1fr 1.02fr;
    gap: clamp(40px, 6vw, 100px);
    align-items: center;
}
.mh-intro__copy .mh-display { font-size: clamp(30px, 3.4vw, 52px); margin-bottom: 26px; }
.mh-intro__copy .mh-lede { margin-bottom: 36px; max-width: 50ch; }
.mh-intro__media {
    position: relative;
    padding-bottom: clamp(44px, 5vw, 72px);   /* room for the offset image */
    padding-left: clamp(24px, 3vw, 56px);
}
.mh-intro__big {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 4.4;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 30px 80px rgba(23, 19, 14, 0.18);
}
.mh-intro__small {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 52%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 14px;
    border: 7px solid var(--mh-paper);
    box-shadow: 0 24px 60px rgba(23, 19, 14, 0.24);
}
.mh-intro__badge {
    position: absolute;
    top: clamp(18px, 2vw, 28px);
    right: clamp(-14px, -1vw, -10px);
    background: var(--mh-maroon);
    color: #fff;
    border-radius: 999px;
    padding: 12px 20px;
    font-family: var(--mh-sans);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    box-shadow: 0 16px 40px rgba(139, 25, 27, 0.4);
}

/* ============================================================
   PRODUCT LINES — two editorial cards, captions below
   ============================================================ */
.mh-products {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(24px, 3vw, 44px);
}
.mh-card {
    display: block;
    text-decoration: none;
    color: var(--mh-ink);
}
.mh-card__media {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 4 / 4.7;
    background: var(--mh-paper-deep);
    box-shadow: 0 1px 0 rgba(23,19,14,0.04);
}
.mh-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.02);
    transition: transform 1.6s var(--mh-ease);
}
.mh-card:hover .mh-card__media img { transform: scale(1.07); }
.mh-card__tag {
    position: absolute;
    top: 20px; left: 20px;
    z-index: 2;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(20, 16, 10, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.92);
    font-family: var(--mh-sans);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.26em;
    text-transform: uppercase;
}
.mh-card__caption {
    padding: 26px 6px 0;
}
.mh-card__index {
    font-family: var(--mh-sans);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--mh-muted);
    margin-bottom: 12px;
}
.mh-card__toprow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}
.mh-card__title {
    font-family: var(--mh-serif);
    font-weight: 400;
    font-size: clamp(26px, 2.4vw, 36px);
    line-height: 1.1;
    color: var(--mh-ink);
    margin: 0;
}
.mh-card__go {
    flex-shrink: 0;
    width: 48px; height: 48px;
    border-radius: 50%;
    border: 1px solid var(--mh-line);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--mh-ink);
    transition: background 0.5s var(--mh-ease), color 0.5s var(--mh-ease),
                border-color 0.5s var(--mh-ease), transform 0.5s var(--mh-ease);
}
.mh-card:hover .mh-card__go {
    background: var(--mh-maroon);
    border-color: var(--mh-maroon);
    color: #fff;
    transform: rotate(-45deg);
}
.mh-card__sub {
    font-family: var(--mh-sans);
    font-weight: 300;
    font-size: 15.5px;
    line-height: 1.7;
    color: var(--mh-muted);
    margin: 12px 0 0;
    max-width: 46ch;
}

/* ============================================================
   FARAJI — the dark jewel box
   ============================================================ */
.mh-faraji {
    background: var(--mh-paper-deep);
    color: var(--mh-ink);
    padding: clamp(88px, 10vw, 152px) 0;
}
.mh-faraji__head {
    text-align: center;
    max-width: 760px;
    margin: 0 auto clamp(48px, 5vw, 72px);
}
.mh-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 22px;
    border-radius: 999px;
    background: var(--mh-maroon);
    color: #fff;
    font-family: var(--mh-sans);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: 30px;
    box-shadow: 0 14px 40px rgba(139, 25, 27, 0.45);
}
.mh-chip__dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 8px rgba(74, 222, 128, 0.9);
    animation: mhPulse 1.8s ease-in-out infinite;
}
@keyframes mhPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%      { transform: scale(1.45); opacity: 0.7; }
}
.mh-faraji__head .mh-display { color: var(--mh-ink); margin-bottom: 22px; }
.mh-faraji__head .mh-lede { color: var(--mh-muted); }

.mh-faraji__frame {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(23, 19, 14, 0.22);
    outline: 1px solid rgba(23, 19, 14, 0.08);
    display: block;
}
.mh-faraji__frame img {
    width: 100%;
    aspect-ratio: 21 / 10;
    object-fit: cover;
    display: block;
    transform: scale(1.01);
    transition: transform 1.8s var(--mh-ease);
}
.mh-faraji__frame:hover img { transform: scale(1.045); }
.mh-faraji__frame::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 62%, rgba(10, 7, 4, 0.55) 100%);
    pointer-events: none;
}
.mh-faraji__framecap {
    position: absolute;
    left: clamp(20px, 3vw, 40px);
    bottom: clamp(18px, 2.6vw, 34px);
    z-index: 2;
    font-family: var(--mh-sans);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
}

.mh-specs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: clamp(44px, 5vw, 64px);
    margin-bottom: clamp(40px, 4.5vw, 56px);
}
.mh-spec {
    text-align: center;
    padding: 6px 18px;
    border-left: 1px solid var(--mh-line);
}
.mh-spec:first-child { border-left: none; }
.mh-spec__value {
    font-family: var(--mh-serif);
    font-size: clamp(24px, 2.3vw, 34px);
    line-height: 1.15;
    color: var(--mh-ink);
    margin-bottom: 10px;
}
.mh-spec__label {
    font-family: var(--mh-sans);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--mh-muted);
}
.mh-faraji__cta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
}

/* ============================================================
   PROOF — light section, the real project photo in a frame
   ============================================================ */
.mh-proof {
    position: relative;
    padding: clamp(72px, 8.5vw, 124px) 0;
    background: var(--mh-paper);
}
.mh-proof__bg {
    width: 100%;
    aspect-ratio: 21 / 9;
    object-fit: cover;
    object-position: center 62%;
    display: block;
    border-radius: 22px;
    box-shadow: 0 36px 90px rgba(23, 19, 14, 0.2);
    margin-bottom: clamp(40px, 5vw, 64px);
}
.mh-proof__tint { display: none; }
.mh-proof .mh-display { color: var(--mh-ink); }
.mh-proof__note {
    font-family: var(--mh-sans);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--mh-muted);
    margin-top: clamp(32px, 4vw, 48px);
}

.mh-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(28px, 3.4vw, 52px);
}
.mh-stat {
    border-top: 1px solid var(--mh-line);
    padding-top: 26px;
}
.mh-stat__value {
    font-family: var(--mh-sans);
    font-weight: 200;
    font-size: clamp(52px, 5vw, 78px);
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--mh-maroon);   /* brand numerals — make capacity pop (Jul 24 review) */
    font-variant-numeric: tabular-nums;
    margin-bottom: 16px;
}
.mh-stat__value--word { font-size: clamp(38px, 3.4vw, 54px); padding-top: 10px; padding-bottom: 4px; }
.mh-stat__label {
    font-family: var(--mh-sans);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--mh-ink);
    margin-bottom: 8px;
}
.mh-stat__sub {
    font-family: var(--mh-sans);
    font-weight: 300;
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--mh-muted);
}
.mh-stat__sub a {
    color: var(--mh-maroon) !important;
    text-decoration: none;
    border-bottom: 1px solid rgba(139, 25, 27, 0.35);
    transition: border-color 0.4s ease;
}
.mh-stat__sub a:hover { border-color: var(--mh-maroon); }

/* legacy light-link variant (now identical to the standard link on paper) */
.mh-link--light { color: var(--mh-ink) !important; }
.mh-link--light::after { background: var(--mh-line); }
.mh-link--light::before { background: var(--mh-maroon); }

/* ============================================================
   QUOTE — deep-paper band
   ============================================================ */
.mh-quote {
    background: var(--mh-paper-deep);
    text-align: center;
    padding: clamp(60px, 7vw, 96px) 0;
}
.mh-quote__mark {
    font-family: var(--mh-serif);
    font-size: clamp(64px, 7vw, 104px);
    line-height: 0.6;
    color: var(--mh-maroon);
    opacity: 0.4;
    display: block;
    margin-bottom: 26px;
}
.mh-quote__text {
    font-family: var(--mh-serif);
    font-size: clamp(24px, 2.8vw, 40px);
    line-height: 1.4;
    color: var(--mh-ink);
    max-width: 21ch;
    margin: 0 auto 34px;
}
.mh-quote__attr {
    font-family: var(--mh-sans);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--mh-muted);
}
.mh-quote__attr strong {
    color: var(--mh-ink);
    font-weight: 600;
}

/* ============================================================
   CLOSING — paper, centered (maroon footer is the dark bookend)
   ============================================================ */
.mh-close {
    background: var(--mh-paper);
    text-align: center;
    padding: clamp(72px, 8.5vw, 120px) 0;
}
.mh-close .mh-eyebrow { justify-content: center; }
.mh-close .mh-display {
    color: var(--mh-ink);
    margin-bottom: 26px;
}
.mh-close .mh-lede {
    max-width: 560px;
    margin: 0 auto 44px;
}
.mh-close__cta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991px) {
    .mh-hero__project { display: none; }
    .mh-hero h1 { max-width: 100%; }
    .mh-sechead {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    .mh-intro { grid-template-columns: 1fr; gap: 40px; }
    .mh-intro__media { padding-left: 0; }
    .mh-products { grid-template-columns: 1fr; gap: 44px; }
    .mh-card__media { aspect-ratio: 4 / 3.4; }
    .mh-specs { grid-template-columns: 1fr 1fr; row-gap: 8px; }
    .mh-spec {
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
        padding: 22px 12px;
    }
    .mh-spec:nth-child(-n+2) { border-top: none; }
    .mh-stats { grid-template-columns: 1fr 1fr; row-gap: 36px; }
}
@media (prefers-reduced-motion: reduce) {
    .mh-hero__film { display: none; }
    .mh-hero__eyebrow,
    .mh-hero h1,
    .mh-hero__cta,
    .mh-hero__foot { animation: none; }
}

/* ============================================================
   VIEWPORT CHAPTERS — deliberate, screen-sized storytelling
   ============================================================ */
html {
    scroll-snap-type: y proximity;
    scroll-padding-top: 0;
    background: #17130e;
}
body {
    min-height: 100%;
    margin: 0;
    background: #17130e;
}
#wrapper { margin-bottom: 0 !important; }
.mh-hero,
.mh-chapter,
body > footer {
    scroll-snap-align: start;
    scroll-snap-stop: normal;
}
.mh-chapter {
    /* Content decides the height — generous padding keeps the editorial
       rhythm without forcing short sections to waste a whole viewport. */
    min-height: auto;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-block: clamp(56px, 7vh, 96px);
}
.mh-chapter > .mh-wrap { width: 100%; }

/* Intro: architectural split-screen with a quiet editorial rail. */
.mh-chapter--intro {
    position: relative;
    padding-block: clamp(56px, 7vh, 84px);
}
.mh-chapter--intro::before {
    content: "FOUNDATION / 01";
    position: absolute;
    left: clamp(10px, 1.6vw, 24px);
    top: 50%;
    writing-mode: vertical-rl;
    transform: translateY(-50%) rotate(180deg);
    font: 600 9px/1 var(--mh-sans);
    letter-spacing: .38em;
    color: rgba(23,19,14,.3);
}
.mh-intro__big { max-height: 62svh; }
.mh-intro__copy { position: relative; }
.mh-intro__copy::before {
    content: "“";
    position: absolute;
    left: -12px;
    top: -56px;
    font: 120px/1 var(--mh-serif);
    color: rgba(139,25,27,.08);
    pointer-events: none;
}

/* Product chapter: wide cinematic cards, faster to scan than tall tiles. */
.mh-chapter--products {
    background: var(--mh-ivory);
    padding-block: clamp(52px, 6vh, 76px);
}
.mh-chapter--products .mh-sechead { margin-bottom: clamp(26px, 4vh, 46px); }
.mh-chapter--products .mh-sechead::after {
    content: "Choose your path";
    font: 600 9px/1 var(--mh-sans);
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--mh-muted);
}
.mh-card__media { aspect-ratio: 16 / 10; max-height: 48svh; }
.mh-card__caption { padding-top: 20px; }

/* Featured community: a composed two-column showroom. */
@media (min-width: 992px) {
    .mh-faraji { padding-block: clamp(46px, 6vh, 72px); }
    .mh-faraji > .mh-wrap {
        display: grid;
        grid-template-columns: .78fr 1.35fr;
        grid-template-areas:
            "head frame"
            "specs specs"
            "cta cta";
        gap: clamp(28px, 4vw, 64px);
        align-items: center;
    }
    .mh-faraji__head { grid-area: head; text-align: left; margin: 0; }
    .mh-faraji__frame { grid-area: frame; }
    .mh-faraji__frame img { aspect-ratio: 16 / 10; max-height: 48svh; }
    .mh-specs { grid-area: specs; margin: 0; }
    .mh-faraji__cta { grid-area: cta; }
}

/* Testimonial and proof use the full viewport as focused pauses. */
.mh-quote {
    position: relative;
    background: linear-gradient(115deg, var(--mh-paper-deep) 0 58%, #ded8cc 58% 100%);
}
.mh-quote::after {
    content: "12+ projects / 3 countries";
    position: absolute;
    right: clamp(24px, 6vw, 90px);
    top: 28px;   /* top corner — the fixed enquiry pill owns the bottom-right */
    font: 600 9px/1 var(--mh-sans);
    letter-spacing: .3em;
    text-transform: uppercase;
    color: rgba(23,19,14,.45);
}
.mh-proof { padding-block: clamp(54px, 8vh, 100px); }
.mh-close { padding-block: clamp(60px, 9vh, 110px); }

/* Footer terminates the document cleanly; modal markup remains fixed. */
body > footer {
    margin: 0 !important;
    min-height: auto;
}
body > footer:last-of-type { margin-bottom: 0 !important; }
.qualifier { position: fixed !important; }

@media (max-width: 991px), (max-height: 720px) {
    html { scroll-snap-type: y proximity; }
    .mh-chapter {
        min-height: auto;
        height: auto;
        overflow: visible;
        padding-block: clamp(56px, 8vh, 84px);
    }
    .mh-chapter--intro::before,
    .mh-chapter--products .mh-sechead::after { display: none; }
    .mh-card__media { max-height: none; }
}

@media (max-width: 640px) {
    html { scroll-snap-type: none; }
    .mh-chapter { min-height: auto; }
    .mh-quote { background: var(--mh-paper-deep); }
    .mh-quote::after { display: none; }
}

/* Faraji is a warm coastal feature, not a black interruption. */
.mh-faraji {
    background:
        radial-gradient(circle at 84% 12%, rgba(196,143,93,.22), transparent 34%),
        linear-gradient(135deg, #eee6d8 0%, #f8f3e9 58%, #e8ddca 100%);
    color: var(--mh-ink);
}
.mh-faraji__head .mh-display { color: var(--mh-ink); }
.mh-faraji__head .mh-lede { color: var(--mh-muted); }
.mh-faraji__frame {
    box-shadow: 0 40px 90px rgba(73,48,24,.2);
    outline-color: rgba(73,48,24,.12);
}
.mh-spec { border-color: rgba(23,19,14,.14); }
.mh-spec__value { color: var(--mh-ink); }
.mh-spec__label { color: var(--mh-muted); }
.mh-faraji .mh-btn--ivory {
    background: var(--mh-maroon);
    color: #fff !important;
    box-shadow: 0 14px 36px rgba(139,25,27,.24);
}
.mh-faraji .mh-btn--ivory:hover { background: var(--mh-ink); }
.mh-faraji .mh-btn--ghost-light {
    border-color: rgba(23,19,14,.28);
    color: var(--mh-ink) !important;
    background: rgba(255,255,255,.24);
}
.mh-faraji .mh-btn--ghost-light:hover {
    background: var(--mh-ink);
    border-color: var(--mh-ink);
    color: #fff !important;
}

/* Product choice behaves as an expanding visual diptych. */
@media (min-width: 992px) {
    .mh-products { display: flex; gap: 12px; }
    .mh-products .mh-card {
        flex: 1 1 0;
        min-width: 0;
        transition: flex .8s var(--mh-ease);
    }
    .mh-products .mh-card:hover { flex: 1.5 1 0; }
    .mh-card__media { max-height: 52svh; border-radius: 0; }
    .mh-card__sub { max-height: 0; opacity: 0; overflow: hidden; transition: max-height .6s var(--mh-ease), opacity .4s ease; }
    .mh-card:hover .mh-card__sub { max-height: 100px; opacity: 1; }
    .mh-faraji__frame { border-radius: 0; }
}
@media (max-width: 640px) {
    .mh-hero { min-height: 92svh; }
    .mh-hero__foot { flex-direction: row; }
    .mh-hero__fact--scroll { display: none; }
    .mh-hero__fact--extra { display: none; }
    .mh-hero__eyebrow { font-size: 10px; letter-spacing: 0.24em; }
    .mh-hero__eyebrow .mh-eyebrow__index { display: none; } /* logo already says Msingi */
    .mh-hero h1 { margin-bottom: 30px; text-shadow: 0 2px 22px rgba(0, 0, 0, 0.55); }
    .mh-hero__scrim {
        background:
            linear-gradient(180deg, rgba(10, 8, 5, 0.55) 0%, rgba(10, 8, 5, 0.36) 30%, rgba(10, 8, 5, 0.44) 55%, rgba(10, 8, 5, 0.78) 82%, rgba(10, 8, 5, 0.9) 100%);
    }
    .mh-hero__cta .mh-btn { width: 100%; }
    .mh-intro__media { padding-bottom: 0; }
    .mh-intro__small { display: none; }        /* keep mobile clean — one image */
    .mh-intro__badge { right: 10px; }
    .mh-intro__big { aspect-ratio: 4 / 3.6; }
    .mh-stats { grid-template-columns: 1fr; gap: 30px; }
    .mh-faraji__frame img { aspect-ratio: 4 / 3; }
    .mh-faraji__cta .mh-btn,
    .mh-close__cta .mh-btn { width: 100%; }
    .mh-card__media { aspect-ratio: 4 / 3.8; }
}
.mh-faraji__frame.mp-story-slider { height: min(56svh, 590px); }
.mh-faraji__frame .mp-story-slider__track,
.mh-faraji__frame .mp-story-slider__slide,
.mh-faraji__frame .mp-story-slider__slide img { height: 100%; }
.mh-faraji__frame .mp-story-slider__slide img { object-fit: cover; }

/* ===== v13 — Jul 28 feedback: hero brand lockup + captions above card images ===== */

/* "MSINGI" reads as the brand; the descriptor sits under it, small and unshouted. */
.mh-hero__brand {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 30px;
    animation: mhRise 1.1s var(--mh-ease) 0.15s both;
}
.mh-hero__brand-name {
    font-family: var(--mh-sans);
    font-size: clamp(20px, 2.3vw, 31px);
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.34em;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 0 1px 14px rgba(0, 0, 0, 0.5);
}
.mh-hero__brand-sub {
    font-family: var(--mh-sans);
    font-size: clamp(12px, 1.1vw, 15px);
    font-weight: 400;
    line-height: 1.35;
    letter-spacing: 0.05em;
    text-transform: none;
    color: rgba(251, 250, 247, 0.8);
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
}
@media (max-width: 640px) {
    .mh-hero__brand-name { font-size: 19px; letter-spacing: 0.28em; }
    .mh-hero__brand-sub { font-size: 12px; }
}

/* Product cards: caption now leads, image follows. */
.mh-card__caption { padding: 0 6px 24px; }
.mh-products { align-items: end; }
