@layer legacy {
/**
 * Morocco Passage — Homepage composition
 *
 * Frontend pass, 16 October 2026. Presentation only: catalogue selection and
 * order belong to the providers. Loaded on the front page only, before
 * brand.css. Every value comes from tokens.css.
 *
 * Chapters, top to bottom:
 *
 *   hero        full screen photograph, the name of the offer in large type
 *   passage     the positioning statement and the three planning steps
 *   journeys    lead journey as a feature, the others as a ledger of rows
 *   places      tall photographs named in type, stepping down the page
 *   map         unchanged (map.css); its heading joins the homepage voice
 *   moments     square photographs on Indigo
 *   why         principles beside a sticky heading
 *   arrival     transfer prices (journeys.css), set into the rhythm
 *   guide       one lead story and its companions
 *   closing     the planning invitation on Indigo, continuing into the footer
 *
 * Layout breakpoints: 768px (tablet) and 1024px (laptop), plus 1440px where
 * the wide container stops growing.
 */

/* ============================================================
   SHARED HOMEPAGE PARTS
   ============================================================ */

.home .mp-section {
    padding-block: var(--section-y-home);
}

/* Homepage-only discovery chapter. Content remains visible unless the small
   progressive-enhancement script has successfully initialised. */
.home .mp-find { background: var(--c-canvas-alt); }
.home .mp-find__grid { display:grid; gap:var(--s-4); }
.home .mp-find__card { position:relative; display:block; min-height:22rem; overflow:hidden; border-radius:var(--radius-media); color:var(--c-on-photo); text-decoration:none; background:var(--c-deep); }
.home .mp-find__card img { width:100%; height:100%; position:absolute; inset:0; object-fit:cover; transition:transform 700ms var(--ease-out); }
.home .mp-find__card::after { content:""; position:absolute; inset:35% 0 0; background:linear-gradient(0deg,rgba(9,18,37,.82),transparent); }
.home .mp-find__card span { position:absolute; z-index:1; inset:auto var(--s-6) var(--s-6); display:grid; gap:var(--s-1); }
.home .mp-find__card small { font-size:var(--fs-meta); font-weight:600; letter-spacing:.06em; text-transform:uppercase; }
.home .mp-find__card strong { font-family:var(--font-display); font-size:var(--fs-h2); font-weight:400; }
.home .mp-find__card:hover img,.home .mp-find__card:focus-visible img { transform:scale(1.045); }
.home .mp-find__card:focus-visible { outline:var(--focus-ring) solid var(--c-focus); outline-offset:4px; }
@media (min-width:768px) { .home .mp-find__grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (min-width:1024px) { .home .mp-find__grid { grid-template-columns:repeat(4,minmax(0,1fr)); } .home .mp-find__card { min-height:31rem; } .home .mp-find__card:nth-child(even) { margin-block-start:var(--s-12); } }

/* Section opening: the heading leads; on wide screens the lead paragraph
   sits on the heading's baseline to the right. */
.home .mp-home-head,
.home .mp-section__head {
    display: grid;
    gap: var(--s-6);
    max-width: none;
    margin: 0 0 var(--gap-home);
}

.home .mp-home-head__title,
.home .mp-section__head > h2 {
    max-width: 18ch;
    margin: 0;
    font-size: var(--fs-home-h2);
    line-height: var(--lh-statement);
    letter-spacing: var(--ls-display);
    color: var(--c-deep);
}

.home .mp-home-head__lead,
.home .mp-section__head > .mp-lead {
    max-width: var(--w-measure);
    margin: 0;
    font-size: var(--fs-lead);
    line-height: 1.6;
    color: var(--c-muted);
}

.home .mp-section--deep .mp-home-head__title {
    color: var(--c-on-deep);
}

.home .mp-section--deep .mp-home-head__lead {
    color: var(--c-on-deep-muted);
}

@media (min-width: 1024px) {
    .home .mp-home-head,
    .home .mp-section__head {
        grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
        column-gap: var(--gap-home);
        align-items: end;
    }

    .home .mp-section__head > .mp-heading__label,
    .home .mp-section__head > h2 {
        grid-column: 1;
    }

    .home .mp-section__head > .mp-lead {
        grid-column: 2;
        grid-row: 1 / span 2;
        align-self: end;
    }

    .home .mp-home-head__lead,
    .home .mp-section__head > .mp-lead {
        justify-self: end;
    }
}

.home .mp-home-foot,
.home .mp-section__foot {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-2) var(--s-8);
    margin-block-start: var(--gap-home);
}

/* Photographs fill their frames; a linked item answers hover and focus
   with a slow, small scale. */
.home .mp-moment__media {
    position: relative;
    margin: 0;
    overflow: hidden;
    background-color: var(--c-canvas-alt);
    border-radius: var(--radius-media);
}

.home .mp-moment__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: var(--media-focal);
}

@media (prefers-reduced-motion: no-preference) {
    .home .is-linked .mp-moment__media img {
        transition: transform 900ms var(--ease-out);
    }

    .home .is-linked:hover .mp-moment__media img,
.home .is-linked:focus-within .mp-moment__media img {
        transform: scale(var(--scale-hover));
    }
}

/* Whole-item links: the title link stretches over its item, so the image
   and the words are one target, while the accessible name stays the
   title alone. */
.home .is-linked {
    position: relative;
}

.home .mp-moment__link {
    color: inherit;
    text-decoration: none;
}

.home .mp-moment__link::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: var(--z-overlay);
}

.home .mp-moment__link:focus-visible {
    outline: none;
}

.home .mp-moment__link:focus-visible::after {
    outline: var(--focus-ring) solid var(--c-focus);
    outline-offset: 4px;
}

/* ============================================================
   HERO
   ============================================================ */

/* Portrait screens keep the invitation in the first visual chapter instead
   of turning the hero into a title-only billboard. */

/* One orchestrated arrival per visit: the photograph settles from a touch
   closer, then the words rise in order. Transform and opacity only, and the
   photograph is never hidden, so the LCP image paints immediately. */

@keyframes mp-hero-settle {
    from { transform: scale(1.06); }
    to { transform: scale(1); }
}

/* ============================================================
   PASSAGE — the positioning statement
   ============================================================ */

/* The legacy sticky intro is retired: the statement and its steps read as
   one column beside the photograph. */

/* Planning steps: a real sequence, so a real ordered list with numerals. */

/* ============================================================
   JOURNEYS — feature and ledger
   ============================================================ */

/* Journeys follow the statement on the same surface; a hairline at the
   content edge marks the change of chapter. */

/* Lead journey */

/* The cue is decorative (the title is the link); it mirrors .mp-action. */

/* Ledger of further journeys */

/* ============================================================
   PLACES — tall photographs, named in type
   ============================================================ */

/* Ink falls off from the bottom of the frame, only under the name. */

/* Phones: the places sit in one horizontal row that scrolls and snaps,
   bleeding to the screen edge, so all three are reachable in one gesture. */

/* Tablet: two columns, the second stepping down. */

/* Laptop and up: three columns, the lead widest, each next place set lower
   than the last, like stops along a road heading south. */

/* ============================================================
   MAP — heading joins the homepage voice; the map itself is map.css
   ============================================================ */

.home .mp-map {
    background-color: var(--c-canvas);
}

/* The map shares the homepage's wide measure, so every chapter keeps one
   left edge. */
.home #explore-map .mp-container {
    max-width: var(--w-wide);
}

/* ============================================================
   MOMENTS — experiences on Indigo
   ============================================================ */

.home .mp-home-moments .mp-kicker {
    color: var(--c-signal);
}

.home .mp-moments {
    display: grid;
    margin: 0;
    padding: 0;
    list-style: none;
}

.home .mp-moment {
    display: flex;
    flex-direction: column;
    gap: var(--s-6);
}

.home .mp-moment__media {
    aspect-ratio: var(--ratio-experience);
    background-color: var(--c-tile);
}

.home .mp-moment__media--empty {
    display: grid;
    place-items: center;
}

.home .mp-moment__kind {
    margin: 0 0 var(--s-2);
    font-size: var(--fs-meta);
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--c-signal);
}

.home .mp-moment__title {
    margin: 0;
    font-size: var(--fs-row);
    font-weight: 400;
    line-height: 1.2;
    color: var(--c-on-deep);
}

.home .mp-moment__excerpt {
    max-width: 38ch;
    margin: var(--s-3) 0 0;
    font-size: var(--fs-meta);
    line-height: 1.6;
    color: var(--c-on-deep-muted);
}

@media (max-width: 767.98px) {
    .home .mp-moments {
        grid-auto-flow: column;
        grid-auto-columns: 74%;
        gap: var(--s-4);
        margin-inline: calc(var(--gutter) * -1);
        padding-inline: var(--gutter);
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: var(--gutter);
        scrollbar-width: none;
    }

    .home .mp-moments::-webkit-scrollbar {
        display: none;
    }

    .home .mp-moments__item {
        scroll-snap-align: start;
    }
}

@media (min-width: 768px) {
    .home .mp-moments {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: var(--s-8);
    }
}

/* ============================================================
   WHY — principles beside a sticky heading
   ============================================================ */

/* ============================================================
   ARRIVAL — transfer prices (base styles in journeys.css)
   ============================================================ */

/* ============================================================
   GUIDE — one lead story and its companions
   ============================================================ */

/* ============================================================
   CLOSING — the planning invitation, continuing into the footer
   ============================================================ */

/* Transfers remains HOLD. Keep the global navigation available elsewhere,
   but do not expose that held service from the Homepage. */

/* ============================================================
   HOMEPAGE V2 — an editorial journey, not a stack of components
   ============================================================ */
.home { background: var(--c-canvas); }
.home .mp-section { position: relative; }
.home .mp-kicker, .home .mp-label { letter-spacing: .12em; text-transform: uppercase; }
.home .mp-home-head__title, .home .mp-section__head > h2 { text-wrap: balance; }

/* The warm discovery chapter flows out of the photograph rather than
   starting as another neutral block. */
.home .mp-find { padding-block: var(--section-y-home); background: linear-gradient(160deg, var(--c-canvas-alt) 0%, var(--c-canvas) 72%); }

.home .mp-find__grid { gap:clamp(1rem,2vw,1.75rem); }
.home .mp-find__card { min-height:25rem; border-radius:0; box-shadow:0 1.2rem 2.5rem rgba(13,29,48,.1); }
.home .mp-find__card span { inset:auto clamp(1rem,2.1vw,2rem) clamp(1rem,2.1vw,2rem); }
.home .mp-find__card strong { font-size:clamp(1.8rem,2.8vw,3.15rem); line-height:.95; }
.home .mp-find__card small { color:rgba(244,240,231,.82); }
.home .mp-find__card::after { inset:25% 0 0; background:linear-gradient(0deg,rgba(8,22,40,.9),rgba(8,22,40,.03) 76%); }
/* Four equal portraits, the even ones set a step lower: one clear rhythm that
   shares the wide measure of every other chapter. */
@media (min-width:1024px) {
  .home .mp-find__grid { grid-template-columns:repeat(4,minmax(0,1fr)); align-items:start; padding-block-end:var(--s-12); }
  .home .mp-find__card { min-height:0; aspect-ratio:4/5; }
  .home .mp-find__card:nth-child(even) { margin-block-start:var(--s-12); margin-block-end:calc(var(--s-12) * -1); }
}

/* The human approach becomes a pale editorial interlude between image-led
   chapters. A quiet rule, roomy copy and portrait photo create pause. */

/* Numerals, titles and text share rows, so the three steps line up whatever
   their length. */

/* Tablets: two columns leave the portrait too narrow to carry the chapter, so
   it follows the text at full measure, framed to keep the figure and the car. */

/* Tablets: the places share one frame, so names and summaries stay in line. */

/* Destinations have a deliberate gallery rhythm; they emerge from sand and
   are allowed to bleed slightly into the next chapter. */

/* Journeys read like broad route panels, not destination cards. */

/* Experiences are the one immersive dark chapter: generous image scale and
   quieter chrome make the photographs carry the energy. */
.home .mp-home-moments { padding-block:var(--section-y-home); background:radial-gradient(circle at 85% 4%,rgba(170,97,62,.27),transparent 32rem),var(--c-deep); }
.home .mp-moment__media { border-radius:0; box-shadow:0 1.2rem 2.75rem rgba(0,0,0,.22); }
@media (min-width:1024px) { .home .mp-moments { grid-template-columns:1.18fr .82fr .82fr; } .home .mp-moments__item:first-child { grid-row:span 2; } .home .mp-moments__item:first-child .mp-moment__media { aspect-ratio:4/5; } }

/* Planning needs calm: no heavy visual treatment, only numerals, white
   space and a thin contextual rule. */

/* Editorial reading and final invitation close as two intentional, opposing
   surfaces rather than another pair of cards. */

@media (max-width:767.98px) { .home .mp-find__grid { grid-template-columns:repeat(2,minmax(0,1fr)); } .home .mp-find__card { min-height:15rem; } .home .mp-find__card strong { font-size:var(--fs-card); line-height:1.1; }   }
}
