/* Interactive category constellation — visually follows the home hero. */
.mw-showcase {
    --showcase-blue: #135bec;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    padding: clamp(76px, 9vw, 128px) 20px clamp(64px, 8vw, 112px);
    background:
        radial-gradient(circle at 50% 42%, rgba(19, 91, 236, .12), transparent 31%),
        radial-gradient(circle at 8% 78%, rgba(123, 162, 255, .12), transparent 23%),
        #f7f8fb;
    color: #0b1220;
}

.mw-showcase::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: .38;
    background-image: radial-gradient(rgba(19, 91, 236, .24) .8px, transparent .8px);
    background-size: 28px 28px;
    mask-image: linear-gradient(to bottom, transparent, #000 20%, #000 80%, transparent);
}

.mw-showcase__content { width: min(1240px, 100%); margin: 0 auto; }
.mw-showcase__intro { max-width: 760px; margin: 0 auto clamp(42px, 5vw, 68px); text-align: center; }

.mw-showcase__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--showcase-blue);
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .16em;
}

.mw-showcase__eyebrow .material-symbols-outlined { font-size: 18px; }
.mw-showcase__title { margin: 0; color: #0a1020; font-size: clamp(2.55rem, 5.3vw, 5rem); line-height: .98; letter-spacing: -.055em; font-weight: 800; text-wrap: balance; }
.mw-showcase__title em { color: var(--showcase-blue); font-family: Georgia, serif; font-weight: 400; }
.mw-showcase__desc { max-width: 610px; margin: 24px auto 0; color: #687187; font-size: clamp(.98rem, 1.3vw, 1.12rem); line-height: 1.65; }
.mw-showcase__experience { position: relative; min-height: 700px; }

.mw-showcase__stage {
    position: absolute;
    z-index: 2;
    top: 0;
    bottom: 94px;
    left: 16%;
    right: 16%;
    overflow: hidden;
    border: 8px solid #fff;
    border-radius: clamp(28px, 3vw, 42px);
    background: #d8d5cd;
    box-shadow: 0 32px 90px rgba(25, 40, 72, .18), 0 4px 14px rgba(25, 40, 72, .08);
}

.mw-showcase__image,
.mw-showcase__scrim,
.mw-showcase__scan { position: absolute; inset: 0; }

.mw-showcase__image { width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: 0; transform: scale(1.025); transition: opacity .44s ease, transform 1.15s cubic-bezier(.2, .7, .2, 1); }
.mw-showcase__image.is-active { opacity: 1; transform: scale(1); }
.mw-showcase__scrim { z-index: 2; background: linear-gradient(0deg, rgba(7, 12, 24, .75), transparent 38%), linear-gradient(180deg, rgba(7, 12, 24, .32), transparent 23%); pointer-events: none; }

.mw-showcase__scan { z-index: 3; opacity: 0; overflow: hidden; pointer-events: none; transition: opacity .18s ease; }
.mw-showcase__scan::before { content: ''; position: absolute; inset: 0; background: rgba(19, 91, 236, .08); backdrop-filter: blur(4px); }
.mw-showcase__scan span { position: absolute; right: 0; left: 0; top: 0; height: 2px; background: linear-gradient(90deg, transparent 8%, #73a5ff 46%, #fff 50%, #73a5ff 54%, transparent 92%); box-shadow: 0 0 28px 7px rgba(79, 139, 255, .75); }
.mw-showcase.is-processing .mw-showcase__scan { opacity: 1; }
.mw-showcase.is-processing .mw-showcase__scan span { animation: mwShowcaseScan .72s ease-in-out both; }
@keyframes mwShowcaseScan { from { top: 6%; } to { top: 94%; } }

.mw-showcase__stage-top { position: absolute; z-index: 4; top: 22px; left: 22px; display: inline-flex; align-items: center; gap: 9px; padding: 9px 13px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 999px; background: rgba(6, 11, 22, .42); color: rgba(255, 255, 255, .9); backdrop-filter: blur(12px); font-size: .72rem; font-weight: 700; }
.mw-showcase__live-dot { width: 7px; height: 7px; border-radius: 50%; background: #52e0a5; box-shadow: 0 0 0 4px rgba(82, 224, 165, .16); }
.mw-showcase.is-processing .mw-showcase__live-dot { background: #8bb5ff; animation: mwShowcasePulse .7s ease-in-out infinite alternate; }
@keyframes mwShowcasePulse { to { opacity: .35; transform: scale(.75); } }

.mw-showcase__stage-caption { position: absolute; z-index: 4; right: 26px; bottom: 25px; left: 26px; display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; align-items: end; color: #fff; }
.mw-showcase__stage-caption > span { grid-row: 1 / span 2; align-self: center; padding-right: 14px; border-right: 1px solid rgba(255,255,255,.28); color: #a9c7ff; font-size: .7rem; font-weight: 800; letter-spacing: .12em; }
.mw-showcase__stage-caption strong { font-size: clamp(1.25rem, 2vw, 1.8rem); line-height: 1.1; }
.mw-showcase__stage-caption small { color: rgba(255,255,255,.72); font-size: .76rem; }
.mw-showcase__buttons { position: absolute; inset: 0 0 94px; z-index: 5; pointer-events: none; }

.mw-showcase__node {
    position: absolute;
    width: 164px;
    min-height: 154px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 8px;
    border: 1px solid #e0e5ef;
    border-radius: 17px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 12px 34px rgba(25, 40, 72, .12);
    color: #111827;
    cursor: pointer;
    text-align: left;
    pointer-events: auto;
    backdrop-filter: blur(15px);
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.mw-showcase__node::after { content: ''; position: absolute; top: 50%; width: clamp(22px, 3vw, 48px); height: 1px; background: linear-gradient(90deg, rgba(19, 91, 236, .65), rgba(19, 91, 236, .1)); }
.mw-showcase__node--one::after,
.mw-showcase__node--two::after,
.mw-showcase__node--three::after { left: 100%; }
.mw-showcase__node--four::after,
.mw-showcase__node--five::after,
.mw-showcase__node--six::after { right: 100%; transform: rotate(180deg); }
.mw-showcase__node:hover { transform: translateY(-4px); border-color: #a9c7ff; box-shadow: 0 18px 42px rgba(25, 40, 72, .18); }
.mw-showcase__node:focus-visible { outline: 3px solid #8bb5ff; outline-offset: 4px; }
.mw-showcase__node.is-active { border-color: var(--showcase-blue); box-shadow: 0 0 0 1px var(--showcase-blue), 0 16px 42px rgba(19, 91, 236, .18); }
.mw-showcase__node:disabled { cursor: wait; }
.mw-showcase__node--one { top: 2%; left: 0; }
.mw-showcase__node--two { top: 39%; left: 0; }
.mw-showcase__node--three { bottom: 2%; left: 0; }
.mw-showcase__node--four { top: 2%; right: 0; }
.mw-showcase__node--five { top: 39%; right: 0; }
.mw-showcase__node--six { right: 0; bottom: 2%; }

.mw-showcase__node-media { position: relative; width: 100%; height: 104px; flex: 0 0 104px; overflow: hidden; border-radius: 12px; background: linear-gradient(145deg, #f7f9ff, #eaf0ff); transition: background .2s ease; }
.mw-showcase__node-media img { position: absolute; inset: 12px; display: block; width: calc(100% - 24px) !important; height: calc(100% - 24px) !important; max-width: none; max-height: none; padding: 0; object-fit: contain; object-position: center; }
.mw-showcase__node.is-active .mw-showcase__node-media { background: linear-gradient(145deg, #edf3ff, #dce8ff); }
.mw-showcase__node-copy { width: 100%; display: flex; min-width: 0; align-items: center; gap: 8px; padding: 0 4px 2px; font-size: .8rem; font-weight: 800; }
.mw-showcase__node-copy strong { color: #929aad; font-size: .59rem; letter-spacing: .12em; }
.mw-showcase__check { position: absolute; top: -7px; right: -7px; display: grid; place-items: center; width: 23px; height: 23px; border: 3px solid #f7f8fb; border-radius: 50%; background: var(--showcase-blue); color: #fff; font-size: 13px; opacity: 0; transform: scale(.6); transition: .2s ease; }
.mw-showcase__node.is-active .mw-showcase__check { opacity: 1; transform: scale(1); }

.mw-showcase__original {
    position: absolute;
    z-index: 6;
    bottom: 0;
    left: 50%;
    width: min(390px, calc(100% - 24px));
    min-height: 74px;
    display: grid;
    grid-template-columns: 82px 1fr auto;
    align-items: center;
    gap: 13px;
    padding: 8px;
    border: 1px solid #dfe4ee;
    border-radius: 18px;
    background: rgba(255, 255, 255, .95);
    box-shadow: 0 15px 38px rgba(25, 40, 72, .13);
    color: #111827;
    cursor: pointer;
    text-align: left;
    transform: translateX(-50%);
    backdrop-filter: blur(15px);
    transition: border-color .22s ease, box-shadow .22s ease, transform .22s ease;
}

.mw-showcase__original::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    width: 1px;
    height: 20px;
    background: linear-gradient(to top, rgba(19, 91, 236, .65), transparent);
}

.mw-showcase__original:hover { border-color: #a9c7ff; box-shadow: 0 19px 44px rgba(25, 40, 72, .18); transform: translate(-50%, -3px); }
.mw-showcase__original:focus-visible { outline: 3px solid #8bb5ff; outline-offset: 4px; }
.mw-showcase__original.is-active { border-color: var(--showcase-blue); box-shadow: 0 0 0 1px var(--showcase-blue), 0 16px 42px rgba(19, 91, 236, .16); }
.mw-showcase__original:disabled { cursor: wait; }
.mw-showcase__original.is-active .mw-showcase__check { opacity: 1; transform: scale(1); }

.mw-showcase__original > img { width: 82px; height: 56px; border-radius: 12px; object-fit: cover; object-position: center; }
.mw-showcase__original-copy { display: flex; min-width: 0; flex-direction: column; gap: 3px; }
.mw-showcase__original-copy small { color: #8b94a7; font-size: .57rem; font-weight: 800; letter-spacing: .12em; }
.mw-showcase__original-copy strong { font-size: .86rem; line-height: 1.2; }
.mw-showcase__original-action { display: inline-flex; align-items: center; gap: 5px; padding-right: 10px; color: var(--showcase-blue); font-size: .68rem; font-weight: 800; white-space: nowrap; }
.mw-showcase__original-action .material-symbols-outlined { font-size: 18px; }

@media (max-width: 1050px) {
    .mw-showcase__experience { min-height: 820px; }
    .mw-showcase__stage { top: 0; bottom: 270px; left: 4%; right: 4%; }
    .mw-showcase__buttons {
        inset: auto 0 88px;
        display: flex;
        gap: 9px;
        overflow-x: auto;
        padding: 8px 28px 16px 16px;
        pointer-events: auto;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-y;
        cursor: grab;
        overscroll-behavior-inline: contain;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
        user-select: none;
        will-change: scroll-position;
        -webkit-mask-image: linear-gradient(90deg, transparent, #000 16px, #000 88%, transparent);
        mask-image: linear-gradient(90deg, transparent, #000 16px, #000 88%, transparent);
    }
    .mw-showcase__buttons::-webkit-scrollbar { display: none; }
    .mw-showcase__buttons.is-dragging { cursor: grabbing; scroll-snap-type: none; }
    .mw-showcase__node { position: relative; inset: auto; min-width: 158px; width: 158px; scroll-snap-align: start; }
    .mw-showcase__node-media img { -webkit-user-drag: none; user-select: none; }
    .mw-showcase__node::after { display: none; }
}

@media (max-width: 640px) {
    .mw-showcase { padding: 64px 14px 54px; }
    .mw-showcase__intro { margin-bottom: 34px; }
    .mw-showcase__title { font-size: clamp(2.3rem, 11vw, 3.35rem); }
    .mw-showcase__desc { margin-top: 18px; line-height: 1.52; }
    .mw-showcase__experience { min-height: 720px; }
    .mw-showcase__stage { right: 0; bottom: 260px; left: 0; border-width: 5px; border-radius: 25px; }
    .mw-showcase__stage-top { top: 14px; left: 14px; }
    .mw-showcase__stage-caption { right: 17px; bottom: 17px; left: 17px; grid-template-columns: 1fr; gap: 3px; }
    .mw-showcase__stage-caption > span { grid-row: auto; padding: 0 0 7px; border-right: 0; }
    .mw-showcase__stage-caption small { max-width: 250px; }
    .mw-showcase__node { min-width: 146px; width: 146px; min-height: 140px; padding: 7px; }
    .mw-showcase__buttons {
        scroll-snap-type: none;
        -webkit-mask-image: none;
        mask-image: none;
    }
    .mw-showcase__node-media { height: 92px; flex-basis: 92px; }
    .mw-showcase__node-media img { inset: 10px; width: calc(100% - 20px) !important; height: calc(100% - 20px) !important; }
    .mw-showcase__original { min-height: 72px; grid-template-columns: 72px 1fr; gap: 10px; }
    .mw-showcase__original > img { width: 72px; height: 52px; }
    .mw-showcase__original-action { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .mw-showcase__image, .mw-showcase__node { transition: none; }
    .mw-showcase__scan { display: none; }
}
