/*
 * Page d'accueil M.A.K. — Figma 7PhK7a9iItifnXaf9gdHoV, artboard 1:8.
 *
 * EXACT REFERENCE (1200 × 800):
 * logo:          x245 y60    111 × 111
 * title:         x135 y201   331 × 96  Nunito Sans 24.895 / wght688 / wdth100
 * experience:    x112 y354   377 × 70  Nunito Sans 35.719 / wght520 / wdth81
 * address:       x181 y487   240 × 11  mixed original typesetting
 * contact group: x157 y519   287 × 89
 * FR/EN:         x435 y31.5  100 × 13
 * illustration:  extracted directly from the frame 1:17539;
 *                visible artboard portion x361..1200, y0..800.
 *
 * cqw ensures EVERY coordinate and font scales by the same factor.
 * The artboard never changes aspect ratio and never crops its content laterally.
 * All selectors are homepage-scoped: no edit to artworks, masonry or Filament.
 */
:root {
    --mak-blue: #1a237e;
    --mak-home-ink: #090909;
    --mak-home-type: "Nunito Sans", system-ui, -apple-system, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body.mak-home-page {
    margin: 0;
    min-width: 320px;
    background: #fff;
    color: var(--mak-home-ink);
    font-family: var(--mak-home-type);
    font-optical-sizing: none;
    font-synthesis: none;
    -webkit-font-smoothing: antialiased;
}
.mak-home-page img { max-width: 100%; }
.mak-home-skip {
    position: fixed;
    z-index: 100;
    top: -90px;
    left: 15px;
    padding: 10px 14px;
    color: #1a237e;
    border: 2px solid #1a237e;
    background: #fff;
}
.mak-home-skip:focus { top: 12px; }

/* Fit the 3:2 Figma page INSIDE the first viewport, without anisotropic
   distortion. On wider/taller monitors the white artboard is centred. */
.mak-home-stage {
    width: 100%;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fff;
    overflow: visible;
    /* The facade is extended only by the exterior Figma gutter.
       Reserve that same gutter vertically to reveal its lower portion
       on scroll before the CTA and footer, without obscuring either. */
    /* Full-height vector extends 100 px below the original 1200×800
       canvas, plus the proportional growth toward the window's right edge.
       Reserve that space so the drawing is revealed BEFORE the footer. */
    /* Stage itself is outside the cqw container: use its explicit
       min(100vw, 150svh) width, never an out-of-scope cqw. */
    margin-bottom: max(0px, calc(57.4vw - min(49.0667vw, 73.6svh)));
}
.mak-home-intro {
    position: relative;
    isolation: isolate;
    container-type: inline-size;
    flex: none;
    width: min(100vw, 150svh);
    aspect-ratio: 3 / 2;
    height: auto;
    margin: 0;
    padding: 0;
    overflow: visible;
    background: #fff;
}

/* All positions below are in Figma's 1200px artboard coordinate system.
   1cqw = 12px exactly at design size. */
.mak-home-intro__copy {
    position: absolute;
    z-index: 2;
    inset: 0 auto auto 0;
    width: 50%;
    height: 100%;
    pointer-events: none;
}
.mak-home-intro__copy a { pointer-events: auto; }

.mak-home-intro__languages {
    position: absolute;
    top: 2.625cqw;      /* 31.5px */
    left: 36.25cqw;     /* 435px */
    width: 8.333333cqw; /* 100px */
    height: 1.083333cqw;
    text-align: right;
    color: #7d7d7d;
    font-size: .875cqw; /* 10.5px */
    line-height: 1.2;
    font-variation-settings: "wght" 660, "wdth" 110, "YTLC" 500;
}

/* Original logo: 111px, x245, y60. No free-floating margin or flex gap. */
.mak-home-intro__logo {
    position: absolute;
    top: 5cqw;             /* 60px */
    left: 20.4166667cqw;   /* 245px */
    display: block;
    width: 9.25cqw;        /* 111px */
    height: 9.25cqw;
}
.mak-home-intro__logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Text block x135 y201 w331 h96. */
.mak-home-page .intro-home {
    position: absolute;
    top: 16.75cqw;
    left: 11.25cqw;
    width: 27.583333cqw;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #090909;
    font-size: 2.074583cqw; /* 24.895px */
    line-height: 1.272;
    letter-spacing: 0;
    text-transform: uppercase;
    text-align: center;
    font-optical-sizing: none;
    font-variation-settings: "wght" 688, "wdth" 100, "YTLC" 500;
}
.mak-home-page .intro-home span {
    display: block;
    max-width: 100%;
    white-space: nowrap;
}

/* Exact two-line Figma treatment, x112 y354 w377 h70.
   Both lines have IDENTICAL font and weight: no oversized "50" block. */
.mak-home-page .intro-home-2 {
    position: absolute;
    top: 29.5cqw;          /* 354px */
    left: 9.333333cqw;     /* 112px */
    width: 31.416667cqw;  /* 377px */
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
    padding: 0;
    color: #090909;
    font-size: 2.976583cqw; /* 35.719px */
    line-height: .972;
    letter-spacing: 0;
    text-align: center;
    text-wrap: nowrap;
    font-optical-sizing: none;
    font-variation-settings: "wght" 520, "wdth" 81, "YTLC" 500;
}
.mak-home-page .intro-home-2 span {
    display: block;
    white-space: nowrap;
}

/* Preserve the y487 contact anchor, but widen its centered measure so
   all five contact lines can grow 50% without clipping the street address. */
.mak-home-intro__contact {
    position: absolute;
    top: 40.583333cqw;      /* 487px */
    left: 4cqw;             /* wider typography, centred at x=300 */
    width: 42cqw;           /* sufficient room for the longer address */
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
    margin: 0;
    padding: 0;
    color: #090909;
    font-style: normal;
    text-align: center;
}
.mak-home-intro__contact p { margin: 0; }
.mak-home-intro__street {
    width: 100%;
    margin: 0 0 1.45cqw !important;
    font-size: 1.575cqw; /* +50% */
    line-height: 1.05;
    white-space: nowrap;
    font-variation-settings: "wght" 600, "wdth" 75, "YTLC" 503, "opsz" 10;
}
.mak-home-intro__contact a {
    display: block;
    max-width: 100%;
    color: #090909;
    text-decoration: none;
    overflow-wrap: anywhere;
}
.mak-home-intro__contact a:hover,
.mak-home-intro__contact a:focus-visible {
    color: var(--mak-blue);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.mak-home-intro__phone {
    font-size: 1.375cqw; /* +50% */
    line-height: 1.372;
    font-variation-settings: "wght" 696, "wdth" 125, "YTLC" 440, "opsz" 10;
}
.mak-home-intro__email,
.mak-home-intro__person span {
    font-size: 1.575cqw; /* +50% */
    line-height: 1.372;
    font-variation-settings: "wght" 600, "wdth" 75, "YTLC" 500, "opsz" 10;
}
.mak-home-intro__email { margin-top: .35cqw; }
.mak-home-intro__person {
    margin: .35cqw 0 0 !important;
    width: 100%;
    white-space: nowrap;
}
.mak-home-intro__person a {
    display: inline;
    font-size: 1.375cqw; /* +50% */
    line-height: 1.372;
    font-variation-settings: "wght" 696, "wdth" 125, "YTLC" 440, "opsz" 10;
}

/* This is the real, exported Figma facade image, NOT the differently
   framed WordPress PNG. Its original visible slot is x361..1200, y0..800.
   One-to-one proportions at every desktop screen size, with no zoom/crop. */
.mak-home-intro__facade {
    position: absolute;
    z-index: 1;
    top: -5.25cqw; /* original vector source frame y=-63 at 1200px */
    /* Preserve the exact left boundary of the validated Figma facade:
       x=361/1200. Only the RIGHT side grows to the browser edge. */
    left: 30.083333cqw;
    right: auto;
    width: calc(69.916667cqw + max(0px, (100vw - 100cqw) / 2));
    height: auto;
    /* Uploaded source: 711.59 × 816.94, same geometry as the 839×963
       Figma original. No distortion, cropped edges or raster scaling. */
    aspect-ratio: 711.59 / 816.94;
    margin: 0;
    padding: 0;
    background: transparent;
    overflow: visible;
    pointer-events: none;
    /* Lift the complete image by exactly 10% of its rendered height,
       keeping the original aspect ratio and the trace/parallax in sync. */
    transform: translateY(-10%);
}
.mak-home-facade-scene {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    transform: translate3d(0, var(--mak-home-facade-parallax, 0px), 0);
}
.mak-home-facade-scene > img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: contain;
    object-position: right top;
    transform: none;
}
/* Exact vector-derived outlines, always aligned to the unmodified image. */
.mak-home-facade-trace {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    opacity: 0; /* no JS = original SVG visible, no incomplete sketch */
}
.mak-home-facade-trace .mak-home-trace__line {
    fill: none;
    vector-effect: non-scaling-stroke;
}
.mak-home-intro__facade--custom img {
    object-fit: contain; /* Filament images may have a different aspect ratio. */
    object-position: right bottom;
}
/* Keep images uploaded from Filament free from the SVG's intrinsic ratio. */
.mak-home-intro__facade--custom {
    aspect-ratio: 3 / 4;
}

/* The link is deliberately outside the Figma 1200×800 artboard,
   preserving Filament's editable CTA without inventing a UI element. */
.mak-home-continue {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 0;
    padding: 25px 20px 8px;
}
.mak-home-continue a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 22px;
    width: min(100%, 440px);
    border-top: 1px solid #dedede;
    padding: 14px 0;
    color: #151515;
    font-size: 13px;
    text-decoration: none;
}
.mak-home-continue a:hover,
.mak-home-continue a:focus-visible { color: var(--mak-blue); }
.mak-home-continue a span:last-child { font-size: 22px; }

.mak-home-page .mak-footer { padding-top: clamp(24px, 3vw, 45px); }
.mak-home-page .mak-footer__street { font-size: clamp(16px, 1.3vw, 20px); }
.mak-home-page .mak-footer__phone,
.mak-home-page .mak-footer__email { font-size: clamp(12px, .93vw, 14px); }

/* The supplied Figma file has ONLY a desktop 1200×800 artboard.
   This responsive mode preserves the typography hierarchy, content and
   whole illustration on mobile without pretending to be a second Figma artboard. */
@media (max-width: 900px) {
    .mak-home-stage {
        display: block;
        min-height: 0;
        margin-bottom: 0; /* mobile artwork is already below the copy */
    }
    .mak-home-intro {
        display: flex;
        flex-direction: column;
        width: 100%;
        height: auto;
        aspect-ratio: auto;
        container-type: normal;
        overflow: visible;
    }
    .mak-home-intro__copy {
        position: relative;
        inset: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        height: auto;
        min-height: 625px;
        padding: 0 20px 40px;
        gap: 0;
        pointer-events: auto;
    }
    .mak-home-intro__languages {
        top: 24px;
        right: 20px;
        left: auto;
        width: 95px;
        height: auto;
        font-size: 10.5px;
    }
    .mak-home-intro__logo {
        position: relative;
        top: auto;
        left: auto;
        width: 104px;
        height: 104px;
        margin: 60px 0 32px;
    }
    .mak-home-page .intro-home {
        position: relative;
        top: auto;
        left: auto;
        width: min(100%, 440px);
        font-size: clamp(21px, 5vw, 29px);
        line-height: 1.272;
    }
    .mak-home-page .intro-home-2 {
        position: relative;
        top: auto;
        left: auto;
        width: min(100%, 440px);
        margin-top: 54px;
        font-size: clamp(28px, 5.8vw, 38px);
        align-items: center;
        text-align: center;
    }
    .mak-home-intro__contact {
        position: relative;
        top: auto;
        left: auto;
        width: min(100%, 400px);
        margin-top: 54px;
    }
    .mak-home-intro__street {
        margin-bottom: 16px !important;
        font-size: clamp(18px, 4.5vw, 22.5px);
        white-space: normal;
    }
    .mak-home-intro__phone,
    .mak-home-intro__person a { font-size: 18px; }
    .mak-home-intro__email,
    .mak-home-intro__person span { font-size: 21px; }
    .mak-home-intro__email,
    .mak-home-intro__person { margin-top: 5px !important; }
    .mak-home-intro__person { white-space: normal; }
    .mak-home-intro__facade {
        position: relative;
        inset: auto;
        flex: 0 0 auto;
        width: 100%;
        height: auto;
        aspect-ratio: 711.59 / 816.94;
        overflow: visible;
        /* A transformed image keeps its old layout box. Compensate
           the lifted 10% to avoid an empty strip before the exhibition. */
        margin-bottom: -11.48vw;
    }
    .mak-home-intro__facade--custom { aspect-ratio: 3 / 4; }
    .mak-home-facade-scene {
        transform: none; /* no parallax during stacked mobile layout */
    }
    .mak-home-facade-scene > img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
    .mak-home-continue { padding-top: 16px; }
}
@media (max-width: 420px) {
    .mak-home-intro__copy { min-height: 590px; padding-inline: 15px; }
    .mak-home-page .intro-home { font-size: 21px; }
    .mak-home-page .intro-home span { white-space: normal; }
    .mak-home-page .intro-home-2 { font-size: 28px; }
    .mak-home-intro__contact { width: min(100%, 400px); }
}
@media (prefers-reduced-motion: reduce) {
    .mak-home-page * { scroll-behavior: auto; }
}


/* Lightweight editorial choreography, no animation of thousands of SVG paths.
   Animation is opt-in via JS; without JavaScript all content stays visible. */
@media (prefers-reduced-motion: no-preference) {
    .mak-home-page.mak-home-motion-ready .mak-home-intro__logo,
    .mak-home-page.mak-home-motion-ready .intro-home,
    .mak-home-page.mak-home-motion-ready .intro-home-2,
    .mak-home-page.mak-home-motion-ready .mak-home-intro__contact {
        animation: mak-home-enter 960ms cubic-bezier(.2,.7,.2,1) both;
    }
    .mak-home-page.mak-home-motion-ready .intro-home { animation-delay: 130ms; }
    .mak-home-page.mak-home-motion-ready .intro-home-2 { animation-delay: 260ms; }
    .mak-home-page.mak-home-motion-ready .mak-home-intro__contact { animation-delay: 390ms; }
    /* The complete, original SVG first becomes a monochrome architectural
       drawing, then its exact original blue is restored (no recoloring of paths). */
    .mak-home-page.mak-home-architect-active .mak-home-facade-base {
        animation: mak-home-architect-complete 3200ms cubic-bezier(.28,.7,.2,1) both;
    }
    .mak-home-page.mak-home-architect-active .mak-home-facade-trace {
        animation: mak-home-trace-fade 3200ms linear both;
    }
    .mak-home-page.mak-home-architect-active .mak-home-trace__line {
        stroke-dasharray: var(--mak-line-len) var(--mak-line-len);
        stroke-dashoffset: var(--mak-line-len);
        animation: mak-home-trace-stroke 1550ms cubic-bezier(.4,0,.2,1) both;
        animation-delay: var(--mak-line-delay,0ms);
    }
    .mak-home-page .mak-home-intro__logo {
        transition: scale .35s cubic-bezier(.2,.7,.2,1);
    }
    .mak-home-page .mak-home-intro__logo:is(:hover,:focus-visible) {
        scale: 1.025;
    }
    .mak-home-continue a span:last-child {
        transition: transform .3s ease;
    }
    .mak-home-continue a:is(:hover,:focus-visible) span:last-child {
        transform: translate(4px,-4px);
    }
}
@keyframes mak-home-enter {
    from { opacity: 0; translate: 0 10px; }
    to { opacity: 1; translate: 0 0; }
}
@keyframes mak-home-trace-stroke {
    from { stroke-dashoffset: var(--mak-line-len); }
    to { stroke-dashoffset: 0; }
}
@keyframes mak-home-trace-fade {
    0% { opacity: 0; }
    7% { opacity: 1; }
    60% { opacity: 1; }
    80%, 100% { opacity: 0; }
}
@keyframes mak-home-architect-complete {
    0% { opacity: 1; filter: grayscale(1); }
    8% { opacity: .15; filter: grayscale(1); }
    34% { opacity: .24; filter: grayscale(1); }
    60% { opacity: 1; filter: grayscale(1); }
    78% { opacity: 1; filter: grayscale(1); }
    100% { opacity: 1; filter: grayscale(0); }
}
@media (prefers-reduced-motion: reduce) {
    .mak-home-page .mak-home-facade-scene,
    .mak-home-page .mak-home-facade-base {
        animation: none !important;
        transition: none !important;
        transform: none !important;
        filter: none !important;
        opacity: 1 !important;
    }
    .mak-home-page .mak-home-facade-trace {
        animation: none !important;
        opacity: 0 !important;
    }
    .mak-home-page .mak-home-trace__line {
        animation: none !important;
    }
    .mak-home-page :is(.mak-home-intro__logo, .intro-home, .intro-home-2, .mak-home-intro__contact) {
        animation: none !important;
        translate: 0 0 !important;
        transition: none !important;
        scale: 1 !important;
    }
}
