/* ==========================================================================
   WEBPOT ENGINE SCROLL-DRIVEN FEATURE SHOWCASE
   Minimal, Luxury, Editorial Portfolio Design (Inspired by Apple & Linear)
   ========================================================================== */

.engine-section {
    position: relative;
    width: 100%;
    height: 100vh;
    background: transparent;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Centered Anchor Title: WEBPOT ENGINE */
.engine-anchor-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Poppins', sans-serif;
    font-size: clamp(3.2rem, 8vw, 7.5rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    color: #0f172a;
    opacity: 0.18;
    filter: blur(1px);
    user-select: none;
    pointer-events: none;
    z-index: 1;
    white-space: nowrap;
    text-transform: uppercase;
}

/* Pinned Viewport Stage Container */
.engine-stage {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    pointer-events: none;
}

/* Minimal Project Showcase Card */
.engine-card {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(90%, 460px);
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 22px;
    padding: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    opacity: 0;
    will-change: transform, opacity;
    pointer-events: auto;
    z-index: 10;
}

.engine-card-media {
    width: 100%;
    height: 250px;
    border-radius: 14px;
    overflow: hidden;
    background: #f1f5f9;
}

.engine-card-media img,
.engine-card-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.engine-card-info {
    margin-top: 14px;
    padding: 0 4px 4px 4px;
}

.engine-card-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
    margin-bottom: 4px;
}

.engine-card-desc {
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    color: #64748b;
    line-height: 1.5;
}

/* Responsive Scaling */
@media (max-width: 1024px) {
    .engine-card {
        width: min(92%, 380px);
        padding: 14px;
    }

    .engine-card-media {
        height: 210px;
    }
}
