/* Full-bleed map section with the complete world kept inside the viewport. */
.swm-map-section {
    position: relative !important;
    width: 100vw !important;
    max-width: none !important;
    min-height: 100vh !important;
    height: 100vh !important;
    margin-left: calc(50% - 50vw) !important;
    padding: 0 !important;
    overflow: hidden !important;
}

.swm-map-section .swm-layout {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.swm-map-section .swm-map-wrap {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    z-index: 1 !important;
    overflow: visible !important;
    transform: translate3d(0, 0, 0) !important;
}

.swm-map-section .swm-map-canvas {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-width: 100% !important;
    overflow: visible !important;
}

.swm-map-section .swm-map-canvas svg {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-width: 100% !important;
    overflow: visible !important;
}

/* Reveal from the right without enlarging the map beyond its frame. */
.swm-map-section.swm-ready .swm-map-wrap {
    opacity: 0 !important;
    transform: translate3d(1.5vw, 0, 0) !important;
    transition:
        opacity 3.2s ease,
        transform 4.4s cubic-bezier(.22, .61, .36, 1) !important;
}

.swm-map-section.swm-ready.swm-visible .swm-map-wrap {
    opacity: 1 !important;
    transform: translate3d(0, 0, 0) !important;
}

/* Copy and stats sit over the lower-left ocean area. */
.swm-map-section .swm-copy {
    position: absolute !important;
    left: clamp(24px, 4vw, 74px) !important;
    bottom: clamp(24px, 5vh, 64px) !important;
    width: min(430px, 40vw) !important;
    max-width: 430px !important;
    z-index: 5 !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-end !important;
    transition: opacity 3s ease .35s !important;
}

.swm-map-section .swm-eyebrow {
    font-size: 28px !important;
    letter-spacing: .12em !important;
}

.swm-map-section .swm-eyebrow span {
    display: none !important;
}

.swm-map-section.swm-ready .swm-copy {
    opacity: 0 !important;
}

.swm-map-section.swm-ready.swm-visible .swm-copy {
    opacity: 1 !important;
}

.swm-map-section .swm-stats {
    width: min(230px, 100%);
    max-width: 230px;
}

.swm-map-section .swm-stat {
    gap: 24px;
}

.swm-map-section .swm-stat span {
    margin-left: auto;
}

/* The base world silhouette fades in with the map. Selected locations are
   revealed individually by scroll progress in animation.js. */
.swm-map-section.swm-ready .swm-land {
    opacity: 0 !important;
    transition: opacity 1.8s ease .7s !important;
}

.swm-map-section.swm-ready.swm-visible .swm-land {
    opacity: 1 !important;
}

.swm-map-section .swm-location-item {
    transition: opacity 180ms linear;
}

@media (max-width: 1024px) {
    .swm-map-section .swm-copy {
        left: clamp(22px, 3.5vw, 48px) !important;
        width: min(380px, 42vw) !important;
    }
}

@media (max-width: 767px) {
    .swm-map-section {
        min-height: 82vh !important;
        height: 82vh !important;
    }

    .swm-map-section .swm-map-wrap {
        height: 100% !important;
    }

    .swm-map-section .swm-copy {
        left: 20px !important;
        right: 20px !important;
        bottom: 22px !important;
        width: auto !important;
        max-width: 360px !important;
    }

    .swm-map-section .swm-stats {
        width: 100%;
        max-width: 360px;
    }

    .swm-map-section .swm-stat {
        gap: 7px;
    }

    .swm-map-section .swm-stat span {
        margin-left: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .swm-map-section.swm-ready .swm-copy,
    .swm-map-section.swm-ready .swm-map-wrap,
    .swm-map-section.swm-ready .swm-land,
    .swm-map-section.swm-ready .swm-location-item {
        opacity: 1 !important;
        transition: none !important;
    }

    .swm-map-section.swm-ready .swm-map-wrap {
        transform: none !important;
    }
}
