/*
 * Approved Figma homepage — 37:8 (1440) / 37:129 (390).
 * Layout-only layer, loaded last. The original typography engine,
 * authenticated media, editorial ordering and scroll choreography stay intact.
 * Measurements derive from the editable artboards, not the grey image slots.
 */
.mak-home-page {
    --mak-editorial-wall: 1184px;
    --mak-editorial-gutter: clamp(22px, 5vw, 78px);
}
.mak-home-page .mak-home-stage {
    margin-bottom: 0;
}
/* Keep the animated vector flowing behind the exhibition, clipping only horizontal overflow. */
@media (min-width: 901px) {
    .mak-home-page .mak-home-stage:has(.mak-home-intro__facade:not(.mak-home-intro__facade--custom)) {
        overflow-x: clip;
        overflow-y: visible;
    }
    .mak-home-page .mak-home-intro__facade:not(.mak-home-intro__facade--custom) {
        transform: none;
    }
    .mak-home-page .mak-home-intro__logo {
        top: 5.763889cqw;       /* y83 at 1440 */
        left: 21.145833cqw;    /* x304.5, centred at x360 */
        width: 7.708333cqw;    /* 111 */
        height: 7.708333cqw;
    }
    .mak-home-page .intro-home {
        top: 17.222222cqw;     /* y248 */
    }
    .mak-home-page .intro-home-2 {
        left: 6.597222cqw;
        width: 36.805556cqw;  /* 530 */
    }
    .mak-home-page .intro-home-2 span,
    .mak-home-page .intro-home span {
        white-space: normal;
        overflow-wrap: anywhere;
    }
    .mak-home-page .mak-home-intro__contact {
        top: 40.833333cqw;
        gap: .277778cqw;
    }
    .mak-home-page .mak-home-intro__street {
        margin-bottom: .972222cqw !important;
    }
    .mak-home-page .mak-home-intro__email,
    .mak-home-page .mak-home-intro__person { margin-top: 0 !important; }
    .mak-home-page .mak-home-intro::after {
        content: "";
        position: absolute;
        z-index: 2;
        left: 50%;
        top: 57.638889cqw;
        width: 37.777778cqw;
        height: 7.777778cqw;
        transform: translateX(-50%);
        background: radial-gradient(ellipse at center,
            rgba(255,255,255,.96) 0%, rgba(255,255,255,.74) 55%,
            rgba(255,255,255,0) 100%);
        pointer-events: none;
    }
    .mak-home-page .mak-home-exhibition__intro-title { bottom: 4.55cqw; }
    .mak-home-page .mak-home-exhibition__scroll-cue { bottom: .972222cqw; }
}
.mak-home-page .mak-home-exhibition {
    background: linear-gradient(to bottom,
        rgba(255,255,255,.03) 0%, rgba(255,255,255,.16) 16%,
        rgba(255,255,255,.68) 42%, #fff 78%);
    padding: clamp(40px, 4.861111vw, 70px) var(--mak-editorial-gutter)
             clamp(48px, 5.416667vw, 78px);
}
.mak-home-page .mak-home-selection__inner,
.mak-home-page .mak-home-selection .mak-index__catalogue {
    max-width: var(--mak-editorial-wall);
}
.mak-home-page .mak-home-selection .mak-index .mak-index__grid[data-layout="rows"] {
    gap: clamp(44px, 5.416667vw, 78px);
}
.mak-home-page .mak-home-selection .mak-index .mak-index__grid:not([data-layout="rows"]) {
    gap: clamp(44px, 5.416667vw, 78px) clamp(26px, 4.166667vw, 60px);
    align-items: center;
}
.mak-home-page .mak-home-selection .mak-index__caption { padding-top: 12px; }
.mak-home-page .mak-home-selection .mak-index__row .mak-index__caption { padding-top: 12px; }
.mak-home-page .mak-home-exhibition .mak-home-cta { padding-top: clamp(40px, 3.611111vw, 52px); }
.mak-home-page .mak-home-cta--artist .mak-home-cta__button {
    min-width: min(282px, 100%);
    min-height: 58px;
}
/* White space is the only section boundary, never a separator line. */
.mak-home-page .mak-home-utrillo,
.mak-home-page .mak-home-chosen,
.mak-home-page .mak-home-auguste {
    border-top: 0;
    background: #fff;
}
.mak-home-page .mak-home-utrillo {
    padding: clamp(40px, 3.75vw, 54px) var(--mak-editorial-gutter)
             clamp(44px, 4.166667vw, 60px);
}
.mak-home-page .mak-home-utrillo__inner { max-width: 1040px; }
.mak-home-page .mak-home-utrillo__header { margin-bottom: clamp(36px, 3.75vw, 54px); }
.mak-home-page .mak-home-utrillo__columns {
    grid-template-columns: minmax(0, 512fr) minmax(0, 424fr);
    gap: clamp(36px, 7.222222vw, 104px);
}
.mak-home-page .mak-home-utrillo__caption { gap: 7px; padding-top: 13px; }
.mak-home-page .mak-home-utrillo__committee { gap: 32px; align-items: center; }
.mak-home-page .mak-home-utrillo__committee p { max-width: 404px; }
.mak-home-page .mak-home-utrillo__committee-logo { width: min(100%, 248px); }
.mak-home-page .mak-home-artist-ticker {
    --ticker-gap: clamp(14px, 2.222222vw, 32px);
    padding: 18px 0 44px;
}
.mak-home-page .mak-home-artist-ticker__viewport {
    max-width: none;
    width: 100%;
    margin-inline: 0;
}
.mak-home-page .mak-home-chosen {
    padding: clamp(48px, 4.583333vw, 66px) var(--mak-editorial-gutter)
             clamp(38px, 4.583333vw, 66px);
}
.mak-home-page .mak-home-chosen .mak-home-selection__header {
    margin-bottom: clamp(38px, 3.611111vw, 52px);
}
.mak-home-page .mak-home-auguste {
    padding-block: clamp(44px, 3.75vw, 54px) clamp(52px, 5.138889vw, 74px);
}
.mak-home-page .mak-home-auguste__inner {
    max-width: 960px;
    grid-template-columns: minmax(0, 400fr) minmax(0, 464fr);
    gap: clamp(36px, 6.666667vw, 96px);
}
.mak-home-page .mak-home-auguste__inner:not(:has(.mak-home-auguste__media)) {
    grid-template-columns: minmax(0, 1fr);
}
.mak-home-page .mak-home-auguste__media { width: min(100%, 288px); }
.mak-home-page .mak-home-auguste__media video { max-height: none; }
.mak-home-page .mak-home-auguste__copy { gap: 32px; }
.mak-home-page .mak-home-auguste__headline { max-width: 440px; }
.mak-home-page .mak-home-auguste__cta .mak-home-cta__button {
    min-width: min(100%, 154px);
    min-height: 66px;
}
/* Homepage-specific footer: map geometry is visually independent of the
   contact column, while all existing map logic and required OSM attribution survive. */
.mak-home-page .mak-footer {
    max-width: 1340px;
    padding: 60px clamp(24px, 5vw, 78px) 30px;
}
.mak-home-page .mak-footer__contact { border-top: 0; padding-top: 0; }
.mak-home-page .mak-footer__inner { align-items: center; }
.mak-home-page .mak-footer__main { align-items: center; }
.mak-home-page .mak-footer__photo { aspect-ratio: 360 / 281; }
.mak-home-page .mak-footer__street { color: var(--mak-blue); }
.mak-home-page .mak-footer__col--map { align-self: center; }
.mak-home-page .mak-footer__map-frame { height: auto; aspect-ratio: 1; }
.mak-home-page .mak-home-footer__copyright {
    margin: 36px 0 0;
    color: #717681;
    font-size: 11px;
    line-height: 16px;
    text-align: center;
}
@media (min-width: 1151px) {
    .mak-home-page .mak-footer__inner {
        grid-template-columns: minmax(0, 748fr) minmax(0, 392fr);
        gap: clamp(28px, 3.055556vw, 44px);
    }
    .mak-home-page .mak-footer__main {
        grid-template-columns: minmax(0, 360fr) minmax(0, 344fr);
        gap: clamp(28px, 3.055556vw, 44px);
    }
}
@media (min-width: 651px) and (max-width: 1150px) {
    .mak-home-page .mak-footer__map-frame {
        width: min(100%, 560px);
        margin-inline: auto;
        aspect-ratio: 4 / 3;
    }
}
@media (max-width: 900px) {
    .mak-home-page .mak-home-intro {
        gap: 8px;
    }
    .mak-home-page .mak-home-intro__copy {
        min-height: 0;
        padding-bottom: 26px;
    }
    .mak-home-page .mak-home-intro__logo { margin: 48px 0 28px; }
    .mak-home-page .intro-home-2 { margin-top: 40px; }
    .mak-home-page .intro-home-2 span,
    .mak-home-page .intro-home span { white-space: normal; overflow-wrap: anywhere; }
    .mak-home-page .mak-home-intro__contact { margin-top: 40px; gap: 4px; }
    .mak-home-page .mak-home-intro__copy,
    .mak-home-page .mak-home-intro__contact { align-items: center; text-align: center; }
    .mak-home-page .intro-home-2 { text-wrap: wrap; }
    .mak-home-page .mak-home-intro__street { margin-bottom: 11px !important; }
    .mak-home-page .mak-home-intro__email,
    .mak-home-page .mak-home-intro__person { margin-top: 0 !important; }
    .mak-home-page .mak-home-intro__person span { font-size: 18px; }
    .mak-home-page .mak-home-intro__facade {
        transform: none;
        margin-bottom: 0;
    }
    /* Continue the original drawing behind the title and first work.
       Custom photographs keep their independent geometry. */
    .mak-home-page .mak-home-stage {
        overflow-x: clip;
        overflow-y: visible;
    }
    .mak-home-page .mak-home-intro__facade:not(.mak-home-intro__facade--custom) {
        aspect-ratio: 839 / 660;
        overflow: visible;
    }
    .mak-home-page .mak-home-intro__facade:not(.mak-home-intro__facade--custom) .mak-home-facade-scene {
        position: absolute;
        inset: -7.875% 0 auto;
        height: auto;
        aspect-ratio: 711.59 / 816.94;
    }
    .mak-home-page .mak-home-exhibition__intro-title {
        margin: 0 auto;
    }
    .mak-home-page .mak-home-exhibition__scroll-cue {
        margin: 0 auto;
    }
    .mak-home-page .mak-home-exhibition { padding: 32px 22px 44px; }
    .mak-home-page .mak-home-exhibition .mak-home-cta { padding-top: 40px; }
    .mak-home-page .mak-home-utrillo { padding: 46px 20px 44px; }
    .mak-home-page .mak-home-utrillo__header { margin-bottom: 36px; }
    .mak-home-page .mak-home-utrillo__columns {
        grid-template-columns: minmax(0, 1fr);
        gap: 30px;
    }
    .mak-home-page .mak-home-utrillo__work { width: min(100%, 326px); margin-inline: auto; }
    .mak-home-page .mak-home-utrillo__committee { gap: 24px; }
    .mak-home-page .mak-home-utrillo__committee p { max-width: 310px; }
    .mak-home-page .mak-home-utrillo__committee-logo { width: min(100%, 220px); }
    .mak-home-page .mak-home-artist-ticker { padding: 12px 0 32px; }
    .mak-home-page .mak-home-chosen { padding: 48px 22px 38px; }
    .mak-home-page .mak-home-chosen .mak-home-selection__header { margin-bottom: 38px; }
    .mak-home-page .mak-home-auguste { padding-block: 44px 52px; }
    .mak-home-page .mak-home-auguste__inner { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .mak-home-page .mak-home-auguste__media { width: min(100%, 244px); }
    .mak-home-page .mak-home-auguste__copy { gap: 26px; }
}
@media (max-width: 760px) {
    .mak-home-page .mak-home-selection .mak-index .mak-index__grid[data-layout="rows"],
    .mak-home-page .mak-home-selection .mak-index .mak-index__grid:not([data-layout="rows"]) {
        gap: 44px;
        grid-template-columns: minmax(0, 1fr);
    }
    /* Retain varied work sizes but centre every artwork and caption on phones. */
    .mak-home-page [data-home-wall] > .mak-index__row { justify-content: center; }
    .mak-home-page [data-home-wall]:not([data-layout="rows"]) > .mak-index__card { justify-self: center; }
    .mak-home-page [data-home-wall="exposition"]:not([data-layout="rows"]) > .mak-index__card:nth-child(3n+1) { width: 84.393064%; }
    .mak-home-page [data-home-wall="exposition"]:not([data-layout="rows"]) > .mak-index__card:nth-child(3n+3) { width: 74.566474%; }
    .mak-home-page [data-home-wall="choisies"]:not([data-layout="rows"]) > .mak-index__card:nth-child(5n+1),
    .mak-home-page [data-home-wall="choisies"]:not([data-layout="rows"]) > .mak-index__card:nth-child(5n+4) { width: 88.439306%; }
    .mak-home-page [data-home-wall="choisies"]:not([data-layout="rows"]) > .mak-index__card:nth-child(5n+3) { width: 73.410405%; }
    .mak-home-page [data-home-wall="choisies"]:not([data-layout="rows"]) > .mak-index__card:nth-child(5n+5) { width: 89.595376%; }
}
@media (max-width: 650px) {
    .mak-home-page .mak-footer { padding: 42px 24px 24px; }
    .mak-home-page .mak-footer__inner { row-gap: 28px; }
    .mak-home-page .mak-footer__main { gap: 28px; }
    .mak-home-page .mak-footer__photo { aspect-ratio: 342 / 226; }
    .mak-home-page .mak-footer__map-frame { aspect-ratio: 342 / 324; }
    .mak-home-page .mak-home-footer__copyright { margin-top: 30px; }
}
@media (max-width: 360px) {
    .mak-home-page .mak-footer { padding-inline: 16px; }
}

/* Nuanced typography, same Nunito variable family. */
.mak-home-page .mak-home-cta--artist .mak-home-cta__artist-name {
    text-transform: uppercase;
    font-variation-settings: "wght" 520, "wdth" 100, "YTLC" 500;
}
.mak-home-page .mak-home-cta--artist .mak-home-cta__button {
    padding-inline: clamp(19px, 2.25vw, 32px);
}
.mak-home-page .mak-home-auguste__headline {
    width: 100%;
    max-width: 440px;
    font-size: clamp(26px, 2.36vw, 34px);
    font-weight: 470;
    font-variation-settings: "wght" 470, "wdth" 94, "YTLC" 500;
    line-height: 1.29;
    letter-spacing: -.025em;
    text-wrap: balance;
    overflow-wrap: anywhere;
}
.mak-home-page .mak-home-auguste__headline--composed {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .13em;
}
.mak-home-page .mak-home-auguste__headline--composed > span { display: block; max-width: 100%; }
.mak-home-page .mak-home-auguste__headline-ending {
    font-variation-settings: "wght" 610, "wdth" 94, "YTLC" 500;
    color: var(--mak-blue);
}
.mak-home-page .mak-home-auguste__copy { justify-self: center; width: 100%; }
.mak-home-page .mak-home-auguste__cta .mak-home-cta__label {
    line-height: 1.15;
    letter-spacing: .055em;
    font-variation-settings: "wght" 520, "wdth" 100, "YTLC" 500;
}
/* Address first, gallery contact second, personal contact third. */
.mak-home-page .mak-footer__col--addr { font-optical-sizing: none; font-synthesis: none; color: #090909; }
.mak-home-page .mak-footer__street {
    margin-bottom: 24px !important;
    font-size: clamp(20px, 1.74vw, 25px);
    line-height: 1.21;
    letter-spacing: -.025em;
    font-weight: 560;
    font-variation-settings: "wght" 560, "wdth" 94, "YTLC" 500;
    color: var(--mak-blue);
    text-wrap: balance;
}
.mak-home-page .mak-footer__phone,
.mak-home-page .mak-footer__email,
.mak-home-page .mak-footer__contact > a {
    font-size: clamp(14px, 1.075vw, 15.5px);
    line-height: 1.55;
    letter-spacing: .005em;
    font-weight: 480;
    font-variation-settings: "wght" 480, "wdth" 98, "YTLC" 500;
}
.mak-home-page .mak-footer__col--addr .nombre {
    font: inherit;
    font-variation-settings: inherit;
    font-variant-numeric: lining-nums tabular-nums;
}
.mak-home-page .mak-footer__email { margin-top: 3px !important; }
.mak-home-page .mak-footer__contact { gap: 3px; margin-top: 23px; }
.mak-home-page .mak-footer__person {
    font-size: clamp(14px, 1.075vw, 15.5px);
    line-height: 1.45;
    font-weight: 650;
    font-variation-settings: "wght" 650, "wdth" 98, "YTLC" 500;
}
.mak-home-page .mak-home-footer__copyright {
    font-variation-settings: "wght" 450, "wdth" 100, "YTLC" 500;
    letter-spacing: .025em;
}
@media (max-width: 900px) {
    .mak-home-page .mak-home-auguste__headline {
        font-size: clamp(24px, 6.65vw, 31px);
        max-width: min(100%, 370px);
    }
    .mak-home-page .mak-home-auguste__inner { justify-items: center; }
}
@media (max-width: 650px) {
    .mak-home-page .mak-footer__col--addr { text-align: center; }
    .mak-home-page .mak-footer__street { font-size: 24px; margin-bottom: 19px !important; }
    .mak-home-page .mak-footer__contact { align-items: center; margin-top: 22px; }
    .mak-home-page .mak-footer__phone,
    .mak-home-page .mak-footer__email,
    .mak-home-page .mak-footer__contact > a { font-size: 15px; }
}
