.asset-search-bento {
    gap: 10px;
}

body.asset-search-modal-open,
body.asset-search-scroll-locked {
    overflow: hidden;
}

.asset-search__video-frame {
    position: relative;
    isolation: isolate;
}

.asset-search__video-frame::after,
.asset-search__map-stage::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.asset-search__video-frame::after {
    background:
        radial-gradient(circle at 12% 18%, rgba(255, 185, 140, 0.12), transparent 22%),
        radial-gradient(circle at 88% 14%, rgba(120, 163, 255, 0.12), transparent 18%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 28%);
    mix-blend-mode: screen;
}

.asset-search__video-frame video {
    transition: transform 0.55s ease, filter 0.55s ease;
    filter: saturate(0.78) contrast(1.05);
}

.asset-search__video-frame--alt video {
    filter: hue-rotate(12deg) saturate(0.68) contrast(1.1);
}

.asset-search__video-frame--muted video {
    filter: grayscale(0.18) saturate(0.56) contrast(1.08);
}

.asset-search__video-frame:hover video,
.asset-search__video-frame:focus-within video,
.asset-search__video-frame:focus-visible video {
    transform: scale(1.06);
    filter: saturate(0.96) contrast(1.1);
}

.asset-search__video-caption {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    display: grid;
    gap: 0.5rem;
    padding: 1rem 1rem 1.05rem;
    background: linear-gradient(180deg, transparent, rgba(6, 6, 6, 0.86) 48%, rgba(6, 6, 6, 0.98));
    transform: translateY(calc(100% - 3.35rem));
    transition: transform 0.32s ease;
}

.asset-search__video-frame:hover .asset-search__video-caption,
.asset-search__video-frame:focus-within .asset-search__video-caption,
.asset-search__video-frame:focus-visible .asset-search__video-caption {
    transform: translateY(0);
}

.asset-search__video-label {
    margin: 0;
    font: 700 0.63rem/1 'Space Mono', monospace;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(247, 242, 232, 0.7);
}

.asset-search__video-title {
    margin: 0;
    font: 700 clamp(0.92rem, 1.1cqi, 1.08rem)/1.2 'Instrument Sans', sans-serif;
    letter-spacing: 0.02em;
    color: rgb(var(--ink));
}

.asset-search__video-copy {
    margin: 0;
    max-width: 22rem;
    font: 400 0.72rem/1.42 'Instrument Sans', sans-serif;
    letter-spacing: 0.08em;
    color: rgba(var(--ink), 0.84);
}

.asset-search__hero .ludo-bento__hero-summary {
    max-width: 19.5rem;
    font-size: 0.79rem;
    line-height: 1.42;
}

.asset-search__story-stack {
    width: min(100%, 360px);
}

.asset-search__story-stack .ludo-bento__quote-deck {
    min-height: 162px;
}

.asset-search__story-stack .ludo-bento__quote-card {
    padding: 0.9rem 1rem 0.95rem;
}

.asset-search__story-stack .ludo-bento__quote-text {
    font-size: 0.94rem;
    line-height: 1.34;
}

.asset-search__story-stack .ludo-bento__quote-meta,
.asset-search__story-stack .ludo-bento__quote-count {
    font-size: 0.56rem;
    line-height: 1.2;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.asset-search__map-grid {
    grid-template-columns: minmax(0, 1fr);
}

.asset-search__map-card {
    min-height: 351px;
    padding: 1.4rem 1.4rem 1.25rem;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 0.95rem;
}

.asset-search__map-shell {
    display: grid;
    gap: 0.95rem;
    height: 100%;
}

.asset-search__map-header {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    align-items: flex-start;
}

.asset-search__map-kicker {
    margin: 0;
    font: 700 0.62rem/1 'Space Mono', monospace;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(var(--subtext), 0.92);
}

.asset-search__map-title {
    margin: 0.35rem 0 0;
    font: 700 clamp(1.05rem, 1.9cqi, 1.38rem)/1.04 'Instrument Sans', sans-serif;
    letter-spacing: -0.03em;
    color: rgb(var(--ink));
}

.asset-search__map-copy {
    margin: 0.5rem 0 0;
    max-width: 33rem;
    font: 400 0.7rem/1.42 'Instrument Sans', sans-serif;
    letter-spacing: 0.08em;
    color: rgba(var(--ink), 0.84);
}

.asset-search__expand-button {
    position: relative;
    right: auto;
    bottom: auto;
    width: 50px;
    height: 50px;
    padding: 0;
    border: 0;
    background: none;
    pointer-events: auto;
    cursor: pointer;
}

.asset-search__expand-button:focus-visible {
    outline: 2px solid rgba(var(--ink), 0.38);
    outline-offset: 4px;
}

.asset-search__map-stage {
    position: relative;
    overscroll-behavior: contain;
    min-height: 230px;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(var(--rule), 0.65);
    background:
        radial-gradient(circle at 18% 18%, rgba(255, 175, 129, 0.16), transparent 24%),
        radial-gradient(circle at 84% 14%, rgba(115, 157, 255, 0.18), transparent 20%),
        linear-gradient(180deg, rgba(12, 12, 12, 0.96), rgba(20, 16, 16, 0.98));
}

.asset-search__map-stage::after {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 22%, transparent 84%, rgba(255, 255, 255, 0.02)),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02), transparent 22%, transparent 78%, rgba(255, 255, 255, 0.02));
}

.asset-search__map-stage canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.asset-search__map-legend {
    position: absolute;
    top: 0.8rem;
    left: 0.8rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    max-width: calc(100% - 2.4rem);
    z-index: 1;
    pointer-events: none;
}

.asset-search__map-pill,
.asset-search__map-stat {
    display: inline-flex;
    align-items: center;
    padding: 0.36rem 0.65rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(10, 10, 10, 0.58);
    font: 700 0.56rem/1 'Space Mono', monospace;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(247, 242, 232, 0.76);
}

.asset-search__map-status {
    position: absolute;
    right: 0.8rem;
    bottom: 0.8rem;
    margin: 0;
    padding: 0.36rem 0.65rem;
    border-radius: 999px;
    background: rgba(10, 10, 10, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font: 700 0.54rem/1 'Space Mono', monospace;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(247, 242, 232, 0.66);
    z-index: 1;
    pointer-events: none;
}

.asset-search__map-controls {
    display: flex;
    justify-content: space-between;
    gap: 0.85rem;
    align-items: center;
    flex-wrap: wrap;
}

.asset-search__map-toggle-group,
.asset-search__map-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.asset-search__map-toggle {
    border: 1px solid rgba(var(--rule), 0.7);
    border-radius: 999px;
    padding: 0.45rem 0.82rem;
    background: rgba(18, 18, 18, 0.6);
    color: rgba(247, 242, 232, 0.68);
    font: 700 0.58rem/1 'Space Mono', monospace;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, color 0.18s ease, background-color 0.18s ease;
}

.asset-search__map-toggle:hover,
.asset-search__map-toggle:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.22);
    color: rgba(247, 242, 232, 0.92);
    outline: none;
}

.asset-search__map-toggle.is-active {
    background: rgba(255, 182, 140, 0.13);
    color: rgba(247, 242, 232, 0.96);
    border-color: rgba(255, 210, 178, 0.32);
}

.asset-search__cta-card {
    min-height: 161px;
}

.asset-search__cta-card p {
    max-width: none;
}

.asset-search__modal[hidden] {
    display: none;
}

.asset-search__modal {
    position: fixed;
    inset: 0;
    z-index: 170;
    display: grid;
    place-items: center;
    padding: 1rem;
    background: rgba(4, 4, 4, 0.72);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.asset-search__modal-shell {
    width: min(1040px, calc(100vw - 2rem));
    height: min(88vh, 760px);
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 0.9rem;
    padding: 1rem;
    border-radius: 4px;
    border: 1px solid rgba(var(--rule), 0.78);
    background: linear-gradient(180deg, rgba(14, 11, 11, 0.98), rgba(23, 17, 17, 0.98));
    box-shadow: 0 26px 72px rgba(0, 0, 0, 0.34);
}

html.light-theme .asset-search__modal-shell {
    background: linear-gradient(180deg, rgba(247, 242, 232, 0.98), rgba(233, 223, 211, 0.98));
}

.asset-search__modal-stage {
    min-height: 0;
}

.asset-search__modal-stage .asset-search__map-stage {
    min-height: 100%;
    height: 100%;
}

.asset-search__modal-close {
    pointer-events: auto;
}

.asset-search__map-fallback {
    position: absolute;
    inset: auto 0.8rem 0.8rem 0.8rem;
    margin: 0;
    padding: 0.7rem 0.8rem;
    border-radius: 4px;
    background: rgba(10, 10, 10, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font: 400 0.68rem/1.44 'Instrument Sans', sans-serif;
    letter-spacing: 0.08em;
    color: rgba(247, 242, 232, 0.78);
}

@media (max-width: 1240px) {
    .asset-search__map-grid {
        min-height: 351px;
    }
}

@media (max-width: 980px) {
    .asset-search__map-grid {
        min-height: 0;
    }

    .asset-search__map-card {
        min-height: 420px;
    }

    .asset-search__map-stage {
        min-height: 270px;
    }
}

@media (max-width: 720px) {
    .asset-search__video-caption {
        transform: translateY(0);
    }

    .asset-search__map-card {
        padding: 1rem 1rem 1rem;
        min-height: 380px;
    }

    .asset-search__map-header,
    .asset-search__map-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .asset-search__map-stats {
        justify-content: flex-start;
    }

    .asset-search__modal {
        padding: 0.5rem;
    }

    .asset-search__modal-shell {
        width: calc(100vw - 1rem);
        height: calc(100vh - 1rem);
        height: calc(100svh - 1rem);
    }
}

.asset-search__expand-button {
    display: inline-grid;
    place-items: center;
    border: 1px solid rgba(var(--rule), 0.7);
    border-radius: 999px;
    background: rgba(12, 12, 12, 0.62);
    color: rgba(247, 242, 232, 0.9);
    transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.asset-search__expand-button svg {
    width: 22px;
    height: 22px;
}

.asset-search__expand-button:hover,
.asset-search__expand-button:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 182, 140, 0.14);
    color: rgba(247, 242, 232, 0.98);
}

html.light-theme .asset-search__expand-button {
    background: rgba(247, 242, 232, 0.78);
    color: rgba(38, 31, 29, 0.92);
}

.asset-search__video-caption {
    right: 0.75rem;
    bottom: 0.75rem;
    left: 0.75rem;
    display: block;
    padding: 0.55rem 3.45rem 0.55rem 0.78rem;
    border-radius: 4px;
    background: rgba(8, 8, 8, 0.88);
    color: #ffffff;
    font: 600 0.74rem/1.2 'Instrument Sans', sans-serif;
    letter-spacing: 0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.asset-search__video-frame:hover .asset-search__video-caption,
.asset-search__video-frame:focus-within .asset-search__video-caption,
.asset-search__video-frame:focus-visible .asset-search__video-caption {
    opacity: 1;
    transform: translateY(0);
}

.asset-search__video-label,
.asset-search__video-copy {
    display: none;
}

.asset-search__video-title {
    margin: 0;
    color: #ffffff;
    font: 600 0.74rem/1.2 'Instrument Sans', sans-serif;
    letter-spacing: 0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 720px) {
    .asset-search__video-caption {
        opacity: 0;
        transform: translateY(6px);
    }
}


.asset-search__video-link {
    position: absolute;
    right: 0.75rem;
    bottom: 0.75rem;
    z-index: 2;
    display: inline-grid;
    place-items: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(8, 8, 8, 0.78);
    color: #ffffff;
    text-decoration: none;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.asset-search__video-link:hover,
.asset-search__video-link:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(18, 18, 18, 0.92);
    outline: none;
}

.asset-search__video-link svg {
    width: 1.05rem;
    height: 1.05rem;
}

html.light-theme .asset-search__video-link {
    border-color: rgba(31, 27, 25, 0.12);
    background: rgba(247, 242, 232, 0.88);
    color: rgba(31, 27, 25, 0.94);
}

.asset-search__video-frame {
    overflow: hidden;
    background: rgba(8, 8, 8, 0.96);
}

.asset-search__video-media {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
    object-fit: cover;
    transform-origin: center center;
    transition: transform 0.55s ease, filter 0.55s ease;
    filter: saturate(0.78) contrast(1.05);
}

.asset-search__video-media--embed {
    pointer-events: none;
}

.asset-search__video-frame--alt .asset-search__video-media {
    filter: hue-rotate(12deg) saturate(0.68) contrast(1.1);
}

.asset-search__video-frame--muted .asset-search__video-media {
    filter: grayscale(0.18) saturate(0.56) contrast(1.08);
}

.asset-search__video-frame:hover .asset-search__video-media,
.asset-search__video-frame:focus-within .asset-search__video-media,
.asset-search__video-frame:focus-visible .asset-search__video-media {
    transform: scale(1.06);
    filter: saturate(0.96) contrast(1.1);
}

.asset-search__video-link {
    appearance: none;
    cursor: pointer;
}

.asset-search__video-modal[hidden] {
    display: none;
}

.asset-search__video-modal {
    position: fixed;
    inset: 0;
    z-index: 180;
    display: grid;
    place-items: center;
    padding: 1rem;
    background: rgba(4, 4, 4, 0.82);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.asset-search__video-modal-shell {
    width: min(1400px, calc(100vw - 2rem));
    height: min(92vh, 880px);
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 0.9rem;
    padding: 1rem;
    border-radius: 4px;
    border: 1px solid rgba(var(--rule), 0.78);
    background: linear-gradient(180deg, rgba(14, 11, 11, 0.98), rgba(23, 17, 17, 0.98));
    box-shadow: 0 26px 72px rgba(0, 0, 0, 0.34);
}

html.light-theme .asset-search__video-modal-shell {
    background: linear-gradient(180deg, rgba(247, 242, 232, 0.98), rgba(233, 223, 211, 0.98));
}

.asset-search__video-modal-stage {
    min-height: 0;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(var(--rule), 0.7);
    background: #050505;
}

.asset-search__video-modal-player {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
    background: #000000;
}

@media (max-width: 720px) {
    .asset-search__video-modal {
        padding: 0.5rem;
    }

    .asset-search__video-modal-shell {
        width: calc(100vw - 1rem);
        height: calc(100vh - 1rem);
        height: calc(100svh - 1rem);
    }
}



.asset-search__map-card {
    min-height: 420px;
    padding: 0;
    overflow: hidden;
}

.asset-search__map-shell,
.asset-search__modal-stage {
    position: relative;
    height: 100%;
}

.asset-search__map-stage {
    min-height: 100%;
    height: 100%;
    border: 0;
    border-radius: inherit;
    background:
        radial-gradient(circle at 18% 18%, rgba(255, 175, 129, 0.14), transparent 24%),
        radial-gradient(circle at 84% 14%, rgba(115, 157, 255, 0.16), transparent 20%),
        linear-gradient(180deg, rgba(10, 10, 10, 0.98), rgba(18, 14, 14, 0.98));
}

.asset-search__map-stage::after {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 22%, transparent 84%, rgba(255, 255, 255, 0.02)),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025), transparent 22%, transparent 78%, rgba(255, 255, 255, 0.025));
}

html.light-theme .asset-search__map-stage {
    background:
        radial-gradient(circle at 18% 18%, rgba(255, 186, 138, 0.2), transparent 24%),
        radial-gradient(circle at 84% 14%, rgba(107, 152, 255, 0.18), transparent 20%),
        linear-gradient(180deg, rgba(248, 244, 238, 0.98), rgba(234, 227, 218, 0.99));
}

html.light-theme .asset-search__map-stage::after {
    background:
        linear-gradient(180deg, rgba(31, 27, 25, 0.03), transparent 22%, transparent 84%, rgba(31, 27, 25, 0.02)),
        linear-gradient(90deg, rgba(31, 27, 25, 0.03), transparent 22%, transparent 78%, rgba(31, 27, 25, 0.02));
}

.asset-search__map-overlay {
    position: absolute;
    top: 0.9rem;
    right: 0.9rem;
    left: 0.9rem;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    pointer-events: none;
}

.asset-search__map-toggle-group {
    max-width: calc(100% - 8.8rem);
    pointer-events: auto;
}

.asset-search__map-action-stack {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    pointer-events: none;
}

.asset-search__map-action-stack > * {
    pointer-events: auto;
}

.asset-search__map-reset {
    min-height: 2.9rem;
    padding-inline: 0.92rem;
}

.asset-search__map-toggle,
.asset-search__expand-button {
    pointer-events: auto;
}

.asset-search__map-toggle {
    background: rgba(8, 8, 8, 0.62);
    color: rgba(247, 242, 232, 0.78);
    border-color: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.asset-search__map-toggle.is-active {
    background: rgba(72, 126, 255, 0.16);
    color: rgba(234, 241, 255, 0.98);
    border-color: rgba(133, 183, 255, 0.34);
}

html.light-theme .asset-search__map-toggle {
    background: rgba(247, 242, 232, 0.84);
    color: rgba(31, 27, 25, 0.78);
    border-color: rgba(31, 27, 25, 0.12);
}

html.light-theme .asset-search__map-toggle:hover,
html.light-theme .asset-search__map-toggle:focus-visible {
    border-color: rgba(31, 27, 25, 0.24);
    color: rgba(31, 27, 25, 0.92);
}

html.light-theme .asset-search__map-toggle.is-active {
    background: rgba(76, 121, 255, 0.12);
    color: rgba(21, 42, 91, 0.94);
    border-color: rgba(76, 121, 255, 0.22);
}

.asset-search__expand-button {
    width: 2.9rem;
    height: 2.9rem;
    background: rgba(8, 8, 8, 0.74);
    border-color: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

html.light-theme .asset-search__expand-button {
    background: rgba(247, 242, 232, 0.9);
    border-color: rgba(31, 27, 25, 0.12);
    color: rgba(31, 27, 25, 0.92);
}

.asset-search__modal-shell {
    width: min(1180px, calc(100vw - 2rem));
    height: min(90vh, 820px);
    padding: 0;
    overflow: hidden;
}

.asset-search__modal-stage .asset-search__map-stage {
    min-height: 100%;
    height: 100%;
}

.asset-search__modal-dismiss svg {
    width: 1.05rem;
    height: 1.05rem;
}

.asset-search__map-stage canvas {
    cursor: grab;
    touch-action: none;
}

@media (max-width: 980px) {
    .asset-search__map-card {
        min-height: 440px;
    }
}

@media (max-width: 720px) {
    .asset-search__map-card {
        min-height: 380px;
    }

    .asset-search__map-overlay {
        top: 0.75rem;
        right: 0.75rem;
        left: 0.75rem;
        align-items: flex-start;
    }

    .asset-search__map-toggle-group {
        max-width: calc(100% - 8rem);
    }
}


/* Project-longform asset map overrides */
.asset-search__map-card {
    min-height: clamp(380px, 44vw, 520px);
    padding: 0;
    display: flex;
    gap: 0;
}

.asset-search__map-card > .asset-search__map-shell {
    flex: 1 1 auto;
}

.asset-search__map-shell {
    display: grid;
    grid-template-rows: minmax(0, 1fr);
    gap: 0;
    min-height: 100%;
}

.asset-search__map-stage {
    min-height: 100%;
    height: 100%;
}

.asset-search__map-overlay {
    justify-content: flex-start;
}

.asset-search__map-toggle-group {
    max-width: min(100%, 34rem);
}

.asset-search__map-footer-controls {
    position: absolute;
    left: 0.9rem;
    bottom: 0.9rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    pointer-events: none;
}

.asset-search__map-footer-controls > * {
    pointer-events: auto;
}

.asset-search__map-zoom {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 2.9rem;
    padding: 0.55rem 0.78rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(8, 8, 8, 0.74);
    color: rgba(247, 242, 232, 0.86);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.asset-search__map-zoom-glyph {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1rem;
    height: 1rem;
    flex: 0 0 auto;
}

.asset-search__map-zoom-glyph svg {
    width: 1rem;
    height: 1rem;
}

.asset-search__map-zoom-input {
    width: clamp(6.25rem, 12vw, 8.75rem);
    margin: 0;
    accent-color: #85b7ff;
    cursor: pointer;
}

.asset-search__map-icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.9rem;
    height: 2.9rem;
    padding: 0;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(8, 8, 8, 0.74);
    color: rgba(247, 242, 232, 0.86);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, color 0.18s ease, background-color 0.18s ease;
}

.asset-search__map-icon-button:hover,
.asset-search__map-icon-button:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.24);
    color: rgba(247, 242, 232, 0.98);
    outline: none;
}

.asset-search__map-icon-button svg {
    width: 1rem;
    height: 1rem;
}

html.light-theme .asset-search__map-zoom,
html.light-theme .asset-search__map-icon-button {
    background: rgba(247, 242, 232, 0.9);
    border-color: rgba(31, 27, 25, 0.12);
    color: rgba(31, 27, 25, 0.88);
}

html.light-theme .asset-search__map-icon-button:hover,
html.light-theme .asset-search__map-icon-button:focus-visible {
    border-color: rgba(31, 27, 25, 0.24);
    color: rgba(31, 27, 25, 0.98);
}

html.light-theme .asset-search__map-zoom-input {
    accent-color: #4c79ff;
}

.project-longform__map-shell {
    width: min(880px, 100%);
}

.project-longform__map-explanations {
    width: 100%;
    margin: 0 auto;
    grid-template-columns: 1fr;
    gap: 0.8rem;
}

.project-longform__map-note {
    position: relative;
    min-height: 0;
    display: block;
    overflow: hidden;
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease, background-color 220ms ease, min-height 220ms ease, flex-basis 240ms ease, margin 240ms ease;
}

.project-longform__map-note[data-state='expanded'] {
    border-color: rgba(133, 183, 255, 0.26);
    box-shadow: 0 18px 48px -38px rgba(33, 47, 82, 0.38);
    transform: translateY(-1px);
}

html.dark-theme .project-longform__map-note[data-state='expanded'] {
    box-shadow: 0 18px 48px -38px rgba(0, 0, 0, 0.72);
}

.project-longform__map-note .asset-search__map-toggle {
    width: 100%;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 0.55rem 1.1rem 0;
    border: 0;
    border-bottom: 0;
    border-radius: 0;
    background: transparent;
    color: rgb(var(--subtext));
    font: 600 0.8rem/1.58 'Instrument Sans', sans-serif;
    letter-spacing: 0.04em;
    text-transform: none;
    text-align: left;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.project-longform__map-note .asset-search__map-toggle:hover,
.project-longform__map-note .asset-search__map-toggle:focus-visible {
    transform: none;
    border-color: transparent;
    color: rgb(var(--ink));
}

.project-longform__map-note .asset-search__map-toggle.is-active,
html.light-theme .project-longform__map-note .asset-search__map-toggle.is-active,
html.dark-theme .project-longform__map-note .asset-search__map-toggle.is-active {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
}

.project-longform__map-note[data-state='expanded'] .asset-search__map-toggle {
    color: rgb(var(--ink));
}

html.dark-theme .project-longform__map-note[data-state='expanded'] .asset-search__map-toggle {
    color: rgb(var(--ink));
}

.project-longform__map-note-body {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: max-height 260ms ease, opacity 220ms ease, transform 220ms ease;
}

.project-longform__map-note[data-state='expanded'] .project-longform__map-note-body {
    max-height: 12rem;
    opacity: 1;
    transform: translateY(0);
}

.project-longform__map-note p {
    margin: 0;
    padding: 0.12rem 1.1rem 0.7rem;
    font: 500 0.8rem/1.58 'Instrument Sans', sans-serif;
    letter-spacing: 0.04em;
    color: rgb(var(--subtext));
}

@media (min-width: 1024px) {
    .project-longform__map-explanations {
        --asset-map-note-width: calc(100% / 3);
        --asset-map-note-expanded: calc((100% / 3) * 2);
        --asset-map-note-stack-offset: clamp(1rem, 1.8vw, 1.35rem);
        --asset-map-note-height: 5.9rem;
        position: relative;
        display: block;
        height: var(--asset-map-note-height);
        min-height: var(--asset-map-note-height);
        overflow: visible;
        padding-inline: 0;
    }

    .project-longform__map-note {
        position: absolute;
        bottom: 0;
        width: var(--asset-map-note-width);
        max-width: none;
        height: var(--asset-map-note-height);
        min-height: 0;
        margin-left: 0;
        z-index: 1;
    }

    .project-longform__map-note[data-asset-map-note='before'] {
        left: 0;
        z-index: 3;
    }

    .project-longform__map-note[data-asset-map-note='after'] {
        left: var(--asset-map-note-width);
        z-index: 2;
    }

    .project-longform__map-note[data-asset-map-note='information'] {
        left: calc(var(--asset-map-note-width) * 2);
        z-index: 1;
    }

    .project-longform__map-note[data-state='expanded'] {
        width: var(--asset-map-note-expanded);
        height: var(--asset-map-note-height);
        min-height: 0;
        z-index: 5;
        transform: translateY(-2px);
    }

    .project-longform__map-note[data-state='collapsed'] {
        box-shadow: none;
    }

    html.dark-theme .project-longform__map-note[data-state='collapsed'] {
        box-shadow: none;
    }

    .project-longform__map-note[data-state='collapsed'] .asset-search__map-toggle {
        min-height: 100%;
        padding-bottom: 0;
    }

    .project-longform__map-note[data-state='expanded'] .project-longform__map-note-body {
        max-height: 3.35rem;
    }

    .project-longform__map-explanations[data-active-map='before'] .project-longform__map-note[data-asset-map-note='before'] {
        left: 0;
    }

    .project-longform__map-explanations[data-active-map='before'] .project-longform__map-note[data-asset-map-note='after'] {
        left: calc(100% - var(--asset-map-note-width) - var(--asset-map-note-stack-offset));
        z-index: 4;
    }

    .project-longform__map-explanations[data-active-map='before'] .project-longform__map-note[data-asset-map-note='information'] {
        left: calc(100% - var(--asset-map-note-width));
        z-index: 3;
    }

    .project-longform__map-explanations[data-active-map='after'] .project-longform__map-note[data-asset-map-note='before'] {
        left: 0;
        z-index: 3;
    }

    .project-longform__map-explanations[data-active-map='after'] .project-longform__map-note[data-asset-map-note='after'] {
        left: calc((100% - var(--asset-map-note-expanded)) / 2);
        z-index: 5;
    }

    .project-longform__map-explanations[data-active-map='after'] .project-longform__map-note[data-asset-map-note='information'] {
        left: calc(100% - var(--asset-map-note-width));
        z-index: 2;
    }

    .project-longform__map-explanations[data-active-map='information'] .project-longform__map-note[data-asset-map-note='before'] {
        left: 0;
        z-index: 3;
    }

    .project-longform__map-explanations[data-active-map='information'] .project-longform__map-note[data-asset-map-note='after'] {
        left: var(--asset-map-note-stack-offset);
        z-index: 4;
    }

    .project-longform__map-explanations[data-active-map='information'] .project-longform__map-note[data-asset-map-note='information'] {
        left: calc(100% - var(--asset-map-note-expanded));
        z-index: 5;
    }
}

@media (max-width: 980px) {
    .asset-search__map-card {
        min-height: 430px;
    }
}

@media (max-width: 720px) {
    .asset-search__map-card {
        min-height: 390px;
    }

    .asset-search__map-footer-controls {
        left: 0.75rem;
        bottom: 0.75rem;
    }

    .asset-search__map-zoom {
        min-height: 2.65rem;
        padding: 0.48rem 0.66rem;
    }

    .asset-search__map-zoom-input {
        width: 5.75rem;
    }

    .project-longform__map-note .asset-search__map-toggle {
        padding: 0.58rem 0.98rem 0;
        font-size: 0.8rem;
    }

    .project-longform__map-note p {
        padding: 0.1rem 0.98rem 0.62rem;
    }
}


/* Asset map notes: single-shell mode */
.project-longform__map-explanations {
    width: 100%;
    margin: 0 auto;
    display: block;
    height: auto;
    min-height: 0;
    overflow: visible;
}

.project-longform__map-copy-shell {
    width: 100%;
    min-height: 0;
    margin: 0;
    padding: 1rem 16rem 1.05rem;
    display: grid;
    gap: 0.18rem;
    border-color: rgba(var(--rule), 0.78);
    box-shadow: 0 22px 42px -34px rgba(63, 49, 37, 0.24);
}

html.dark-theme .project-longform__map-copy-shell {
    box-shadow: 0 22px 42px -32px rgba(0, 0, 0, 0.72);
}

.project-longform__map-copy-title {
    margin: 0;
    font: 600 0.8rem/1.58 'Instrument Sans', sans-serif;
    letter-spacing: 0.04em;
    color: rgb(var(--ink));
    text-align: left;
}

.project-longform__map-copy-body {
    margin: 0;
    font: 500 0.8rem/1.58 'Instrument Sans', sans-serif;
    letter-spacing: 0.04em;
    color: rgb(var(--subtext));
    text-align: left;
}

.project-longform__map-copy-sources {
    display: none;
}

@media (max-width: 720px) {
    .project-longform__map-copy-shell {
        padding: 0.9rem 1.1rem 0.95rem;
    }
}
