/* ==========================================================================
   Wazo homepage
   Loaded on the homepage only (templates/layouts/head.php). Every rule is
   namespaced wz-* and scoped to the sections in templates/sections/home/.
   The shared pieces (tokens, header, buttons, arches, rails, index, closing
   block, dock) live in variables.css, site.css and components.css.

   Direction: a Marrakech courtyard, editorially. Fraunces for titles at
   display size with light weights and italics; Montserrat for every other
   word; arched photo frames as the one signature shape; navy and cream carry
   the page, turquoise is reserved for actions, and warm sand marks the
   Appart-Hôtel against the Hôtel's navy.
   ========================================================================== */

/* ==========================================================================
   1. Hero
   ========================================================================== */

.wz-hero {
    --focus: var(--wz-turq-light);

    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 100vh;
    min-height: max(640px, 100svh);
    padding-top: 7rem;
    overflow: hidden;
    background-color: var(--wz-navy-deep);
    color: #fff;
}

.wz-hero__media {
    position: absolute;
    inset: 0;
    z-index: -2;
    /* The settle lives on this wrapper, not the image: GSAP drives the image
       (parallax) and would fold a running CSS scale into its own transform. */
    animation: wz-settle 2.6s var(--wz-ease) both;
}

.wz-hero__image {
    position: absolute;
    top: -8%;
    left: 0;
    width: 100%;
    height: 116%;
    object-fit: cover;
    object-position: 50% 45%;
}

.wz-hero__veil {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(0, 27, 50, 0.72) 0%, rgba(0, 27, 50, 0.28) 48%, rgba(0, 27, 50, 0) 70%),
        linear-gradient(180deg, rgba(0, 27, 50, 0.55) 0%, rgba(0, 27, 50, 0) 30%, rgba(0, 27, 50, 0) 46%, rgba(0, 27, 50, 0.78) 100%);
}

.wz-hero__inner {
    padding-bottom: clamp(1.75rem, 4vw, 3rem);
}

.wz-hero__eyebrow {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0 0 1.25rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
}

.wz-hero__eyebrow::before {
    content: "";
    width: 2.25rem;
    height: 1px;
    background-color: var(--wz-turq-light);
}

.wz-hero__title {
    margin: 0;
    font-family: var(--wz-display);
    font-weight: 400;
    font-size: clamp(3.2rem, 8.4vw, 7.6rem);
    line-height: 0.96;
    letter-spacing: -0.022em;
    /* A sturdier optical size than the automatic one at this scale: the
       hairline cut both crowds its glyphs and vanishes over the photograph. */
    font-variation-settings: "opsz" 72;
    text-wrap: balance;
}

.wz-hero__line {
    display: block;
}

.wz-hero__line--alt {
    font-style: italic;
    font-weight: 300;
    letter-spacing: -0.012em;
}

.wz-hero__lead {
    max-width: 34rem;
    margin: 1.75rem 0 0;
    font-size: clamp(1.05rem, 1.5vw, 1.3rem);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.94);
}

.wz-hero__paths {
    padding-bottom: clamp(1.25rem, 3vw, 2.5rem);
}

.wz-hero__kicker {
    margin: 0 0 0.75rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.86);
}

.wz-hero__eyebrow,
.wz-hero__line,
.wz-hero__lead,
.wz-hero__paths {
    animation: wz-rise 0.95s var(--wz-ease) backwards;
}

.wz-hero__eyebrow { animation-delay: 0.05s; }
.wz-hero__line { animation-delay: 0.15s; }
.wz-hero__line--alt { animation-delay: 0.27s; }
.wz-hero__lead { animation-delay: 0.42s; }
.wz-hero__paths { animation-delay: 0.6s; }

/* The two booking paths: unlike in colour, and each one is the link. */
.wz-paths {
    display: grid;
    gap: 0.75rem;
}

.wz-path {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
        "name name"
        "meta meta"
        "cta arrow";
    align-items: center;
    row-gap: 0.15rem;
    padding: 1.15rem 1.35rem 1.15rem 1.6rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px 30px 30px 8px;
    transition: background-color 0.25s ease, translate 0.25s var(--wz-ease), scale 0.12s ease;
}

.wz-path--hotel {
    background-color: rgba(0, 41, 74, 0.74);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    color: #fff;
}

.wz-path--apart {
    background-color: rgba(250, 246, 238, 0.93);
    border-color: rgba(255, 255, 255, 0.7);
    color: var(--wz-navy);
}

.wz-path__name {
    grid-area: name;
    font-family: var(--wz-display);
    font-size: clamp(1.5rem, 2.2vw, 1.9rem);
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.wz-path__meta {
    grid-area: meta;
    font-size: 0.9rem;
    opacity: 0.85;
}

.wz-path__meta b {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.wz-path__cta {
    grid-area: cta;
    margin-top: 0.85rem;
    font-size: 0.95rem;
    font-weight: 700;
}

.wz-path__arrow {
    grid-area: arrow;
    position: relative;
    align-self: end;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 50%;
    background-color: var(--wz-turq);
    transition: translate 0.25s var(--wz-ease), background-color 0.2s ease;
}

.wz-path--apart .wz-path__arrow {
    background-color: var(--wz-navy);
}

.wz-path__arrow::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0.5rem;
    height: 0.5rem;
    border-top: 2px solid var(--arrow-ink, #fff);
    border-right: 2px solid var(--arrow-ink, #fff);
    translate: -65% -50%;
    rotate: 45deg;
}

.wz-path--hotel .wz-path__arrow {
    --arrow-ink: var(--wz-navy);
}

@media (hover: hover) and (pointer: fine) {
    .wz-path:hover {
        translate: 0 -3px;
    }

    .wz-path--hotel:hover {
        background-color: rgba(0, 41, 74, 0.9);
    }

    .wz-path--apart:hover {
        background-color: #fff;
    }

    .wz-path:hover .wz-path__arrow {
        translate: 4px 0;
    }
}

.wz-path:active {
    scale: 0.985;
}

@media (min-width: 720px) {
    .wz-paths {
        grid-template-columns: 1fr 1fr;
        max-width: 54rem;
    }
}

@media (min-width: 1024px) {
    .wz-hero {
        padding-top: 8rem;
    }
}

/* Short phones (320x568 to 375x667): tighten the hero so both booking paths
   still land on the first screen. */
@media (max-width: 480px) and (max-height: 720px) {
    .wz-hero {
        padding-top: 5.25rem;
    }

    .wz-hero__title {
        font-size: 2.85rem;
    }

    .wz-hero__lead {
        margin-top: 0.9rem;
        font-size: 1rem;
        line-height: 1.5;
    }

    .wz-hero__inner {
        padding-bottom: 1rem;
    }

    .wz-hero__kicker {
        display: none;
    }

    .wz-path {
        padding: 0.8rem 1rem 0.8rem 1.25rem;
    }

    .wz-path__name {
        font-size: 1.3rem;
    }

    .wz-path__cta {
        margin-top: 0.35rem;
    }
}

/* ==========================================================================
   2. Concept
   ========================================================================== */

.wz-concept {
    padding-block: clamp(5rem, 11vw, 10rem);
}

.wz-concept__grid {
    display: grid;
    gap: clamp(3rem, 7vw, 5rem);
    align-items: center;
}

.wz-concept__art {
    position: relative;
    padding-bottom: 3rem;
}

.wz-concept__arch {
    width: 82%;
    margin-inline-start: auto;
    aspect-ratio: 4 / 5.2;
}

.wz-concept__orb {
    position: absolute;
    inset-inline-start: 0;
    bottom: 0;
    width: 44%;
    aspect-ratio: 1;
    border: 8px solid var(--wz-cream);
}

/* The four figures stay on one row at every width: equal columns, figures
   sized to the column (cqi), and a long label wraps under its own figure
   instead of pushing a figure onto a second row. */
.wz-concept .wz-stats {
    container-type: inline-size;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem clamp(0.5rem, 2.5vw, 2rem);
}

.wz-concept .wz-stats__item {
    justify-content: flex-end;
}

.wz-concept .wz-stats__value {
    font-size: clamp(2rem, 9cqi, 4rem);
}

.wz-concept .wz-stats__label {
    font-size: clamp(0.75rem, 2.2cqi, 0.875rem);
    hyphens: auto;
}

@media (min-width: 960px) {
    .wz-concept__grid {
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    }
}

/* ==========================================================================
   3. Hôtel and Appart-Hôtel
   ========================================================================== */

.wz-units {
    padding-block: clamp(5rem, 10vw, 9rem);
    background-color: var(--wz-paper);
}

.wz-units__head {
    max-width: 46rem;
    margin-bottom: clamp(2.5rem, 6vw, 5rem);
}

.wz-units__grid {
    display: grid;
    gap: clamp(1.5rem, 3vw, 2.5rem);
    align-items: start;
}

.wz-unit {
    display: flex;
    flex-direction: column;
    border-radius: 36px;
    overflow: hidden;
}

.wz-unit--hotel {
    background-color: var(--wz-navy);
    color: #fff;
    --tick: var(--wz-turq-light);
}

.wz-unit--apart {
    background-color: var(--wz-sand);
    color: var(--wz-navy);
    --tick: var(--wz-navy);
}

.wz-unit__photo {
    margin: 1.25rem 1.25rem 0;
    overflow: hidden;
    aspect-ratio: 6 / 5;
}

.wz-unit--hotel .wz-unit__photo {
    border-radius: 999px 999px 26px 26px;
}

.wz-unit--apart .wz-unit__photo {
    border-radius: 26px 26px 999px 999px;
}

.wz-unit__photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wz-unit__body {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    padding: clamp(1.5rem, 3vw, 2.4rem);
}

.wz-unit__kicker {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.wz-unit--hotel .wz-unit__kicker {
    color: var(--wz-turq-light);
}

.wz-unit--apart .wz-unit__kicker {
    color: var(--wz-navy-2);
}

.wz-unit__name {
    margin: 0;
    font-family: var(--wz-display);
    font-size: clamp(2.2rem, 3.6vw, 3.2rem);
    font-weight: 300;
    line-height: 1.02;
    letter-spacing: -0.015em;
}

.wz-unit__count {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
}

.wz-unit__count b {
    margin-inline-end: 0.35rem;
    font-size: 1.75rem;
    font-weight: 300;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
}

.wz-unit__text {
    margin: 0;
    line-height: 1.65;
    opacity: 0.88;
}

.wz-unit__features {
    display: grid;
    gap: 0.7rem;
    margin: 0.4rem 0 0;
    padding: 0;
    list-style: none;
    font-size: 0.95rem;
    font-weight: 600;
}

.wz-unit__features li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

/* The tick is a background image centred in a circle, so it cannot drift off
   the circle's centre the way a text glyph or a hand-placed border can. */
.wz-unit__features li::before {
    content: "";
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.1rem;
    border-radius: 50%;
    background: var(--tick) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.4 5 8.5l4.5-5' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 0.75rem no-repeat;
}

.wz-unit--hotel .wz-unit__features li::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.4 5 8.5l4.5-5' fill='none' stroke='%2300294a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.wz-unit__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.5rem;
    margin-top: 0.75rem;
}

.wz-unit--hotel .link-arrow {
    color: #fff;
    text-decoration-color: rgba(255, 255, 255, 0.5);
}

@media (min-width: 960px) {
    .wz-units__grid {
        grid-template-columns: 1fr 1fr;
    }

    .wz-unit--apart {
        margin-top: 5.5rem;
    }
}

/* ==========================================================================
   4. Rooms and apartments: two arched photos
   ========================================================================== */

.wz-stays {
    padding-block: clamp(5rem, 10vw, 9rem);
}

.wz-stays__intro {
    max-width: 42rem;
    margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.wz-showcase {
    display: grid;
    gap: clamp(1.5rem, 3vw, 2.5rem);
}

/* The whole card is the link. The arch sits on the card itself so the focus
   ring, the clipped photo and the veil all share one outline; isolation keeps
   Safari from leaking square corners while the photo zooms. */
.wz-showcase__card {
    position: relative;
    display: block;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: var(--wz-arch);
    background-color: var(--wz-sand);
    color: #fff;
    isolation: isolate;
    transition: transform 0.16s ease-out;
}

.wz-showcase__card:focus-visible {
    outline-offset: 4px;
}

.wz-showcase__card:active {
    transform: scale(0.985);
}

.wz-showcase__photo {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: var(--focal, 50% 50%);
    transition: transform 0.9s var(--wz-ease);
}

/* Navy veil rising from the bottom: enough for white type over a white bed,
   gone by mid-height so the room itself stays bright. */
.wz-showcase__card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(to top, rgba(0, 27, 50, 0.82) 0%, rgba(0, 27, 50, 0.45) 30%, rgba(0, 27, 50, 0) 58%);
}

.wz-showcase__caption {
    position: absolute;
    inset: auto 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    padding: clamp(1.5rem, 4vw, 2.75rem);
}

.wz-showcase__unit {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--wz-turq-light);
}

/* The intro titles carry their own line break ("…,\n…"); pre-line keeps it. */
.wz-showcase__title {
    margin: 0;
    font-family: var(--wz-display);
    font-size: clamp(1.7rem, 2.9vw, 2.6rem);
    white-space: pre-line;
    font-weight: 300;
    line-height: 1.04;
    letter-spacing: -0.015em;
    color: #fff;
}

.wz-showcase__cta {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    gap: 0.5em;
    margin-top: 0.6rem;
    padding-bottom: 0.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.45);
    font-size: 0.95rem;
    font-weight: 600;
    transition: border-color 0.2s ease;
}

.wz-showcase__cta::after {
    content: "";
    flex-shrink: 0;
    width: 0.42em;
    height: 0.42em;
    border-top: 1.5px solid currentColor;
    border-right: 1.5px solid currentColor;
    rotate: 45deg;
    transition: translate 0.25s var(--wz-ease);
}

.wz-showcase__card:focus-visible .wz-showcase__cta {
    border-color: var(--wz-turq-light);
}

@media (hover: hover) and (pointer: fine) {
    .wz-showcase__card:hover .wz-showcase__photo {
        transform: scale(1.04);
    }

    .wz-showcase__card:hover .wz-showcase__cta {
        border-color: var(--wz-turq-light);
    }

    .wz-showcase__card:hover .wz-showcase__cta::after {
        translate: 4px 0;
    }
}

@media (min-width: 720px) {
    .wz-showcase {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 960px) {
    .wz-showcase__card {
        aspect-ratio: 5 / 6;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wz-showcase__card,
    .wz-showcase__photo,
    .wz-showcase__cta::after {
        transition: none;
    }

    .wz-showcase__card:active,
    .wz-showcase__card:hover .wz-showcase__photo {
        transform: none;
    }
}

/* Comfortable touch target: the link is 44px tall like every other control
   here. */
.wz-unit__actions .link-arrow {
    min-height: 44px;
}

/* ==========================================================================
   5. Photographic band
   ========================================================================== */

.wz-band {
    --focus: var(--wz-turq-light);

    position: relative;
    isolation: isolate;
    display: grid;
    place-items: center;
    min-height: clamp(420px, 72vh, 780px);
    overflow: hidden;
    background-color: var(--wz-navy-deep);
    color: #fff;
}

.wz-band__media {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.wz-band__media img {
    position: absolute;
    top: -9%;
    left: 0;
    width: 100%;
    height: 118%;
    object-fit: cover;
}

.wz-band__veil {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(0, 27, 50, 0.5), rgba(0, 27, 50, 0.32) 50%, rgba(0, 27, 50, 0.6));
}

.wz-band__quote {
    max-width: 17ch;
    margin: 0 auto;
    font-family: var(--wz-display);
    font-size: clamp(2.5rem, 6.6vw, 5.6rem);
    font-style: italic;
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: 0;
    font-variation-settings: "opsz" 72;
    text-align: center;
    text-wrap: balance;
}

/* ==========================================================================
   6. Services accordion
   ========================================================================== */

.wz-services {
    --focus: var(--wz-turq-light);

    padding-block: clamp(5rem, 10vw, 9rem);
    background-color: var(--wz-navy);
    color: #fff;
}

.wz-services .wz-h2 {
    color: #fff;
}

.wz-acc {
    display: grid;
    gap: 0.75rem;
    margin: 3rem 0 0;
    padding: 0;
    list-style: none;
}

.wz-acc__item {
    position: relative;
    min-height: 360px;
    border-radius: 28px;
    overflow: hidden;
    background-color: var(--wz-navy-deep);
}

.wz-acc__trigger {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    width: 100%;
    padding: 1.5rem;
    border: 0;
    background: none;
    color: #fff;
    font: inherit;
    text-align: start;
    cursor: pointer;
}

.wz-acc__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.9s var(--wz-ease), filter 0.5s ease;
}

.wz-acc__trigger::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 20, 40, 0.88), rgba(0, 20, 40, 0) 62%);
}

.wz-acc__label {
    position: relative;
    max-width: 12ch;
    font-family: var(--wz-display);
    font-size: clamp(1.4rem, 2vw, 1.85rem);
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: -0.02em;
}

.wz-acc__panel {
    position: absolute;
    inset-inline: 1rem;
    bottom: 1rem;
    z-index: 2;
    padding: 1.15rem 1.35rem;
    border-radius: 20px;
    background-color: rgba(250, 246, 238, 0.96);
    color: var(--wz-navy);
}

.wz-acc__list {
    display: grid;
    gap: 0.4rem;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.93rem;
    font-weight: 600;
}

.wz-acc__list li {
    display: flex;
    gap: 0.6rem;
}

.wz-acc__list li::before {
    content: "";
    flex-shrink: 0;
    width: 0.4rem;
    height: 0.4rem;
    margin-top: 0.5rem;
    border-radius: 50%;
    background-color: var(--wz-turq);
}

/* Enhanced (home.js): one open at a time. */
.wz-acc.is-enhanced {
    display: flex;
    flex-direction: column;
}

.wz-acc.is-enhanced .wz-acc__item {
    flex: none;
    min-height: 0;
    height: 104px;
    transition: height 0.55s var(--wz-ease);
}

.wz-acc.is-enhanced .wz-acc__item.is-open {
    height: 400px;
}

.wz-acc.is-enhanced .wz-acc__item:not(.is-open) .wz-acc__image {
    filter: brightness(0.8) saturate(0.9);
}

.wz-acc.is-enhanced .wz-acc__item.is-open .wz-acc__trigger {
    align-items: flex-start;
}

.wz-acc.is-enhanced .wz-acc__panel {
    visibility: hidden;
    opacity: 0;
    translate: 0 12px;
    transition: opacity 0.3s ease, translate 0.45s var(--wz-ease), visibility 0s linear 0.3s;
}

.wz-acc.is-enhanced .wz-acc__item.is-open .wz-acc__panel {
    visibility: visible;
    opacity: 1;
    translate: 0 0;
    transition: opacity 0.4s ease 0.15s, translate 0.5s var(--wz-ease) 0.15s, visibility 0s;
}

@media (hover: hover) and (pointer: fine) {
    .wz-acc__item:hover .wz-acc__image {
        transform: scale(1.04);
    }
}

@media (min-width: 640px) and (max-width: 899px) {
    .wz-acc:not(.is-enhanced) {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 900px) {
    .wz-acc:not(.is-enhanced) {
        grid-template-columns: repeat(4, 1fr);
    }

    .wz-acc.is-enhanced {
        flex-direction: row;
        height: clamp(440px, 46vw, 600px);
    }

    .wz-acc.is-enhanced .wz-acc__item {
        flex: 1 1 0;
        min-width: 0;
        height: auto;
        transition: flex-grow 0.65s var(--wz-ease);
    }

    .wz-acc.is-enhanced .wz-acc__item.is-open {
        flex-grow: 3.4;
        height: auto;
    }

    .wz-acc.is-enhanced .wz-acc__item.is-open .wz-acc__trigger {
        align-items: flex-end;
    }

    .wz-acc__panel {
        inset-inline: auto 1.25rem;
        bottom: 1.25rem;
        width: min(21rem, calc(100% - 2.5rem));
    }
}

/* ==========================================================================
   7. Gallery collage
   ========================================================================== */

.wz-gallery {
    padding-block: clamp(4rem, 9vw, 8rem) clamp(2rem, 5vw, 4rem);
}

.wz-collage {
    display: grid;
    gap: 2rem 1.25rem;
    grid-template-columns: 1fr 1fr;
}

.wz-shot {
    margin: 0;
}

.wz-shot img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 28px;
}

.wz-shot__caption {
    margin: 0.85rem 0.25rem 0;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--wz-muted);
}

.wz-collage--five .wz-shot--1 {
    grid-column: 1 / -1;
}

.wz-collage--five .wz-shot--1 img { aspect-ratio: 3 / 2; }
.wz-collage--five .wz-shot--2 img,
.wz-collage--five .wz-shot--3 img,
.wz-collage--five .wz-shot--4 img { aspect-ratio: 4 / 5; }
.wz-collage--five .wz-shot--5 { grid-column: 1 / -1; }
.wz-collage--five .wz-shot--5 img { aspect-ratio: 16 / 9; }
.wz-collage--flow .wz-shot img { aspect-ratio: 4 / 3; }

@media (min-width: 900px) {
    .wz-collage--five {
        grid-template-columns: repeat(12, 1fr);
        align-items: end;
        gap: 2.5rem 1.5rem;
    }

    .wz-collage--five .wz-shot--1 { grid-column: 1 / span 7; }
    .wz-collage--five .wz-shot--2 { grid-column: 8 / span 5; }
    .wz-collage--five .wz-shot--3 { grid-column: 1 / span 4; }
    .wz-collage--five .wz-shot--4 { grid-column: 5 / span 4; margin-bottom: -3rem; }
    .wz-collage--five .wz-shot--5 { grid-column: 9 / span 4; }

    .wz-collage--five .wz-shot--2 img { aspect-ratio: 4 / 4.6; }
    .wz-collage--five .wz-shot--5 img { aspect-ratio: 4 / 5; }
    .wz-collage--five .wz-shot--3 img,
    .wz-collage--five .wz-shot--4 img { aspect-ratio: 4 / 5; }

    .wz-collage--flow {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ==========================================================================
   Reduced motion: keep every state and colour, drop the movement.
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    .wz-hero__media,
    .wz-hero__eyebrow,
    .wz-hero__line,
    .wz-hero__lead,
    .wz-hero__paths {
        animation: none;
    }

    .wz-path,
    .wz-path__arrow,
    .wz-acc__image {
        transition: none;
        translate: none;
    }

    .wz-acc.is-enhanced .wz-acc__item {
        transition: none;
    }
}
