/* Corporate-design brandguide showcase.
   The outer composition mirrors the homepage showcase; the planar wall motion
   follows the supplied Ashfall Studio reference. */

.brandguide-showcase.showcase-block {
    position: relative;
    display: flex;
    min-height: calc(100svh - 70px);
    align-items: center;
    padding: 12px 0;
    overflow: hidden;
    background: var(--white);
}

.brandguide-showcase .showcase-panel {
    position: relative;
    isolation: isolate;
    display: flex;
    width: 100%;
    min-height: calc(100svh - 94px);
    align-items: center;
    overflow: hidden;
    padding: clamp(28px, 4vh, 48px) 0;
    border-radius: 20px;
    color: var(--text);
    background: #fff;
}

.brandguide-showcase .showcase-ambient,
.brandguide-showcase .showcase-ambient-orb,
.brandguide-showcase .showcase-ambient-grid {
    position: absolute;
    pointer-events: none;
}

.brandguide-showcase .showcase-ambient {
    z-index: 0;
    inset: 0;
    overflow: hidden;
}

.brandguide-showcase .showcase-ambient-orb {
    width: min(52vw, 760px);
    aspect-ratio: 1;
    border-radius: 50%;
    opacity: .28;
    filter: blur(2px);
}

.brandguide-showcase .showcase-ambient-orb-one {
    top: -42%;
    left: -18%;
}

.brandguide-showcase .showcase-ambient-orb-two {
    right: -19%;
    bottom: -54%;
}

.brandguide-showcase .showcase-ambient-grid {
    inset: 0;
    opacity: .055;
    background-image:
        linear-gradient(rgba(1, 17, 66, .22) 1px, transparent 1px),
        linear-gradient(90deg, rgba(1, 17, 66, .22) 1px, transparent 1px);
    background-size: 72px 72px;
    -webkit-mask-image: radial-gradient(circle at 50% 55%, #000 0%, transparent 72%);
    mask-image: radial-gradient(circle at 50% 55%, #000 0%, transparent 72%);
}

.brandguide-showcase .section-index-showcase {
    top: 50%;
    left: 30px;
    z-index: 2;
    color: var(--mauve);
    transform: translateY(-50%);
}

.brandguide-showcase .section-index-showcase i::after {
    box-shadow: 0 0 0 5px #f8fbff;
}

.brandguide-showcase .showcase-inner {
    position: relative;
    z-index: 1;
    display: flex;
    width: 100%;
    flex-direction: column;
    justify-content: center;
    padding-right: clamp(20px, 4vw, 58px);
    padding-left: clamp(88px, 9vw, 142px);
    border-radius: 20px;
}

.brandguide-showcase .showcase-intro {
    display: grid;
    align-items: end;
    margin-bottom: clamp(18px, 2.6vh, 30px);
    gap: clamp(28px, 5vw, 80px);
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, .46fr);
}

.brandguide-showcase .showcase-intro h2 {
    max-width: 830px;
    margin: 0;
    color: var(--text);
    font-size: clamp(38px, 4.6vw, 70px);
    font-weight: 680;
    line-height: .96;
    letter-spacing: -.058em;
}

.brandguide-showcase .showcase-intro h2 em {
    color: var(--mauve);
    font-style: normal;
}

.brandguide-showcase .showcase-media {
    width: min(100%, clamp(620px, calc((100svh - 340px) * 1.7778), 1240px));
    margin: 0 auto;
    perspective: 1400px;
    transform-style: preserve-3d;
}

.brandguide-showcase .showcase-frame {
    position: relative;
    isolation: isolate;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 20px;
    background: transparent;
    transform-origin: 50% 70%;
}

.brandguide-wall,
.brandguide-wall-stage,
.brandguide-wall-plane {
    position: absolute;
    inset: 0;
}

.brandguide-wall {
    z-index: 1;
    overflow: hidden;
    touch-action: pan-y;
    outline: none;
}

.brandguide-wall-stage {
    overflow: hidden;
    contain: layout paint;
    background: #d9d8d4;
}

.brandguide-wall-plane {
    transform: translate3d(0, 0, 0);
    transform-origin: 50% 50%;
}

.brandguide-wall.is-moving .brandguide-wall-plane {
    will-change: transform;
}

.brandguide-wall-card {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 1;
    width: 42%;
    aspect-ratio: 16 / 9;
    margin: 0;
    overflow: hidden;
    opacity: 0;
    border: 1px solid rgba(1, 17, 66, .2);
    border-radius: clamp(8px, .9vw, 13px);
    background: #fff;
    box-shadow:
        0 24px 54px rgba(1, 17, 66, .2),
        0 6px 16px rgba(1, 17, 66, .12);
    transform: translate3d(-50%, -50%, 0);
    backface-visibility: hidden;
}

.brandguide-wall-card.is-active {
    z-index: 2;
}

.brandguide-wall-card:first-child {
    opacity: 1;
}

.brandguide-wall.is-ready .brandguide-wall-card {
    opacity: 1;
}

.brandguide-wall-card img,
.brandguide-wall-wipe img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
}

.brandguide-wall-card-ghost {
    opacity: .96;
    pointer-events: none;
}

.brandguide-wall.is-static .brandguide-wall-stage {
    background: transparent;
}

.brandguide-wall.is-static .brandguide-wall-plane {
    transform: none !important;
}

.brandguide-wall.is-static .brandguide-wall-card,
.brandguide-wall.is-static.is-ready .brandguide-wall-card {
    top: 50% !important;
    left: 50% !important;
    width: 86%;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translate3d(-50%, -50%, 0) !important;
}

.brandguide-wall.is-static .brandguide-wall-card.is-active {
    z-index: 2;
    opacity: 1 !important;
    visibility: visible !important;
}

.brandguide-wall.is-static .brandguide-wall-card-ghost,
.brandguide-wall.is-static .brandguide-wall-wipe {
    display: none !important;
}

.brandguide-wall-wipe {
    position: absolute;
    z-index: 4;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.brandguide-wall-wipe-strip {
    position: absolute;
    right: 0;
    left: 0;
    overflow: hidden;
}

.brandguide-wall-wipe-strip img {
    position: absolute;
    right: 0;
    left: 0;
    width: 100%;
    max-width: none;
    object-fit: cover;
    will-change: transform;
}

.brandguide-showcase .showcase-frame-shade {
    position: absolute;
    z-index: 5;
    right: 0;
    bottom: 0;
    left: 0;
    height: clamp(72px, 17%, 112px);
    pointer-events: none;
}

.brandguide-showcase .showcase-meta {
    position: absolute;
    right: clamp(18px, 2.4vw, 34px);
    bottom: clamp(16px, 2.2vw, 30px);
    left: clamp(18px, 2.4vw, 34px);
    z-index: 7;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
    color: rgba(255, 255, 255, .84);
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: .12em;
    text-transform: uppercase;
    pointer-events: none;
}

.brandguide-showcase .pitch-deck-controls {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 6px;
    pointer-events: auto;
}

.brandguide-showcase .pitch-deck-controls button {
    min-height: 32px;
    padding: 7px 10px;
    border: 1px solid var(--mauve);
    border-radius: 999px;
    color: inherit;
    background: var(--mauve);
    font: inherit;
    letter-spacing: .08em;
    text-transform: uppercase;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    transition: border-color .25s ease, background-color .25s ease, color .25s ease;
    box-shadow: 0 9px 16px -5px rgba(230, 83, 211, .21);
}

.brandguide-showcase .pitch-deck-controls button:hover {
    border-color: var(--dark-lila);
    background: var(--dark-lila);
    box-shadow: 0 9px 16px -5px rgba(40, 55, 181, .61);
}

.brandguide-showcase .pitch-deck-controls button:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

@media (max-width: 991.98px) {
    .brandguide-showcase.showcase-block {
        min-height: auto;
        padding: 70px 0;
    }

    .brandguide-showcase .showcase-panel {
        display: block;
        min-height: auto;
        padding: 82px 20px 32px;
    }

    .brandguide-showcase .section-index-showcase {
        position: relative;
        top: auto;
        left: auto;
        margin-bottom: 28px;
        transform: none;
    }

    .brandguide-showcase .showcase-inner {
        padding: 0;
    }

    .brandguide-showcase .showcase-intro {
        display: block;
        margin-bottom: 34px;
    }

    .brandguide-showcase .showcase-intro h2 {
        font-size: clamp(42px, 9.2vw, 66px);
    }

    .brandguide-showcase .showcase-media {
        width: 100%;
    }

    .brandguide-wall-card {
        width: 54%;
    }
}

@media (max-width: 767.98px) {
    .brandguide-showcase.showcase-block {
        padding: 56px 0;
    }

    .brandguide-showcase .showcase-panel {
        border-radius: 20px;
    }

    .brandguide-showcase .showcase-intro h2 {
        font-size: clamp(42px, 12.4vw, 60px);
    }

    .brandguide-showcase .showcase-frame {
        border-radius: 14px;
        box-shadow: 0 24px 50px rgba(0, 5, 25, .38);
    }

    .brandguide-wall-card {
        width: 72%;
        border-radius: 8px;
        box-shadow:
            0 16px 34px rgba(1, 17, 66, .24),
            0 4px 12px rgba(1, 17, 66, .14);
    }

    .brandguide-showcase .showcase-meta {
        right: 12px;
        bottom: 11px;
        left: 12px;
        align-items: flex-end;
        gap: 8px;
        font-size: 8px;
        letter-spacing: .08em;
    }

    .brandguide-showcase .pitch-deck-controls {
        gap: 4px;
    }

    .brandguide-showcase .pitch-deck-controls button {
        min-width: 44px;
        min-height: 44px;
        padding: 8px 10px;
        font-size: 9px;
    }
}

@media (max-width: 479.98px) {
    .brandguide-wall-card {
        width: 76%;
    }

    .brandguide-showcase .pitch-deck-controls button {
        padding-inline: 6px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .brandguide-showcase.showcase-block,
    .brandguide-showcase .showcase-panel {
        min-height: auto;
    }

    .brandguide-wall-stage {
        background: transparent;
    }

    .brandguide-wall-plane {
        transform: none !important;
    }

    .brandguide-wall-card,
    .brandguide-wall.is-ready .brandguide-wall-card {
        top: 50% !important;
        left: 50% !important;
        width: 86%;
        opacity: 0 !important;
        visibility: hidden !important;
        transform: translate3d(-50%, -50%, 0) !important;
    }

    .brandguide-wall-card.is-active {
        z-index: 2;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .brandguide-wall-card-ghost,
    .brandguide-wall-wipe {
        display: none !important;
    }

    .brandguide-showcase .pitch-deck-controls button {
        transition: none;
    }
}
