*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: clamp(30px, 6vw, 70px);
    padding: 40px 20px 100px;
    background-color: #090c15;
    background-image: 
        radial-gradient(at 15% 15%, rgba(6, 182, 212, 0.18) 0px, transparent 50%),
        radial-gradient(at 85% 85%, rgba(255, 123, 0, 0.18) 0px, transparent 50%);
    overflow-x: hidden;
    color: #fff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    position: relative;
}

/* Background Mesh Grid & Glow Orbs */
.bg-grid {
    position: fixed;
    inset: 0;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
}

.bg-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
}

.orb-cyan {
    width: 450px;
    height: 450px;
    top: -100px;
    left: 10%;
    background: radial-gradient(circle, #06b6d4, transparent);
}

.orb-pink {
    width: 450px;
    height: 450px;
    bottom: -100px;
    right: 10%;
    background: radial-gradient(circle, #ff7b00, transparent);
}

/* Card Container & Figures */
figure {
    width: min(260px, 75vw);
    aspect-ratio: 1;
    margin: 0;
    padding: 5px 15px 0;
    display: grid;
    grid-template-rows: 100%;
    cursor: pointer;
    position: relative;
    z-index: 10;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.7));
    transition: filter 0.5s ease, transform 0.4s ease;
}

figure:hover {
    transform: translateY(-8px);
    filter: drop-shadow(0 20px 45px rgba(6, 182, 212, 0.45));
}

a.card-link:nth-of-type(2) figure:hover {
    filter: drop-shadow(0 20px 45px rgba(255, 123, 0, 0.45));
}

/* Card Background Plate */
figure::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform-origin: bottom;
    filter: brightness(.8);
    transition: .5s cubic-bezier(0.25, 1, 0.5, 1);
    border-radius: 16px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.7);
}

/* Engineer Card Background - Teal Color Theme */
figure.card-engineer::before {
    background: 
        radial-gradient(circle at 50% 25%, rgba(6, 182, 212, 0.35) 0%, transparent 65%),
        linear-gradient(160deg, #091e2b 0%, #060e17 55%, #041824 100%);
    border-color: rgba(6, 182, 212, 0.45);
    box-shadow: inset 0 0 35px rgba(6, 182, 212, 0.25), inset 0 0 15px rgba(0, 0, 0, 0.8);
}

/* Creator Card Background - Orange Color Theme */
figure.card-creator::before {
    background: 
        radial-gradient(circle at 50% 25%, rgba(255, 123, 0, 0.35) 0%, transparent 65%),
        linear-gradient(160deg, #2b1708 0%, #110904 55%, #241103 100%);
    border-color: rgba(255, 123, 0, 0.45);
    box-shadow: inset 0 0 35px rgba(255, 123, 0, 0.25), inset 0 0 15px rgba(0, 0, 0, 0.8);
}

/* Card Top Pill Tag - Hidden */
.card-tag {
    display: none !important;
}

/* Character Image Inside Card - Full Body View */
img {
    grid-area: 1/1;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center bottom;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.6));
    place-self: end center;
    transition: .5s cubic-bezier(0.25, 1, 0.5, 1);
    pointer-events: none;
}

/* Bottom Label Banner */
figcaption {
    grid-area: 1/1;
    width: calc(100% + 20px);
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: #fff;
    text-align: center;
    place-self: end center;
    transform: perspective(500px) translateY(100%) rotateX(-90deg);
    backface-visibility: hidden;
    transform-origin: top;
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-top: 3px solid #06b6d4;
    border-radius: 0 0 12px 12px;
    padding: 10px 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.9);
    transition: .5s cubic-bezier(0.25, 1, 0.5, 1);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.fig-title {
    font-weight: 900;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.fig-desc {
    font-size: 0.72rem;
    color: #94a3b8;
    font-weight: 500;
}

figure.card-creator figcaption {
    border-top-color: #ff7b00;
}

/* Controlled 3D Pop-out Hover Effects */
figure:hover img {
    width: 115%;
    height: 135%;
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.8)) brightness(1.08);
    transform: translateY(-10px);
}

figure:hover::before {
    filter: brightness(1.2);
    transform: perspective(500px) rotateX(40deg);
}

figure:hover figcaption {
    transform: perspective(500px) translateY(100%) rotateX(-15deg);
}

figure.card-engineer:hover figcaption .fig-title {
    color: #06b6d4;
    text-shadow: 0 0 10px rgba(6, 182, 212, 0.6);
}

figure.card-creator:hover figcaption .fig-title {
    color: #ff7b00;
    text-shadow: 0 0 10px rgba(255, 123, 0, 0.6);
}