/* 
 * Gaming Creative Production Engine - Collage Styling
 */

.toonz-creative-engine-wrapper {
    position: relative;
    padding: 0px 0;
    overflow: hidden;
    color: #000;

    /* Premium Off-White as per design */
}

.tce-container {
    max-width: 100vw;
    width: 100%;
    padding: 0;
    margin: 0;
}

.tce-grid {
    display: grid;
    grid-template-columns: 550px 1fr;
    gap: 0;
    align-items: stretch;
    width: 100%;
    /* Stretch to fill height */
}

/* --- Left Content --- */
.tce-info {
    padding-top: 80px;
    padding-bottom: 80px;
    padding-right: 60px;
    z-index: 10;
    /* Keep the cream background on the left content specifically */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* ... existing styles ... */

/* --- Right Collage - Diagonal Clip --- */
.tce-collage-canvas {
    position: relative;
    min-height: 1100px;
    width: 100%;
    clip-path: polygon(15% 0%, 100% 0%, 100% 100%, 0% 100%);
    /* Stronger overlap as per design */
}

.tce-overline {
    font-size: 13px;
    font-weight: 700;
    color: #F87510;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
}

.tce-overline::before {
    content: '';
    width: 20px;
    height: 1px;
    background: currentColor;
    margin-right: 10px;
}

.tce-title {
    font-size: 85px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 40px;
    letter-spacing: -2px;
}

.tce-title span.accent {
    color: #F87510;
    position: relative;
    display: block;
}

.tce-title span.accent::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: currentColor;
    margin-top: 25px;
}

.tce-desc {
    font-size: 15px;
    line-height: 1.6;
    color: #333;
    max-width: 420px;
    margin-bottom: 20px;
}

/* Feature List with Dividers */
.tce-features {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.tce-feature-item {
    display: flex;
    align-items: center;
    gap: 0;
}

.tce-feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #F87510;
    font-size: 18px;
    flex-shrink: 0;
    margin-right: 0px;
}

.tce-feature-content {
    padding-left: 15px;
    /* border-left: 1px solid rgba(0, 0, 0, 0.1); */
}

.tce-feature-title {
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 4px;
    color: #000;
}

.tce-feature-desc {
    font-size: 12px;
    color: #666;
    margin: 0;
}

/* --- Right Collage - Dynamic Mesh --- */
.tce-collage-canvas {
    position: relative;
    min-height: 1000px;
    width: calc(100% + 100px);
    /* Over-expand to hit edge */
    margin-right: -100px;

    clip-path: polygon(15% 0%, 100% 0%, 100% 100%, 0% 100%);
    margin-left: -50px;
}

.tce-image-item {
    position: absolute;
    overflow: hidden;
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    cursor: pointer;
    /* 4-Point Dynamic Clipping: Top-Left, Top-Right, Bottom-Right, Bottom-Left */
    clip-path: polygon(var(--lt, 0%) 0%, var(--rt, 100%) 0%, var(--rb, 100%) 100%, var(--lb, 0%) 100%);
}

.tce-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s ease;
}

/* Default Mapped Mesh with 4-Point Parallel Tilt */
.tce-item-1 {
    width: 42%;
    height: 58%;
    left: 0;
    top: 0;
    --lt: 0%;
    --rt: 100%;
    --rb: 85%;
    --lb: 0%;
}

.tce-item-2 {
    width: 28%;
    height: 38%;
    left: 42.5%;
    top: 0;
    --lt: 25%;
    --rt: 100%;
    --rb: 100%;
    --lb: 0%;
}

.tce-item-3 {
    width: 29%;
    height: 38%;
    left: 71%;
    top: 0;
    --lt: 0%;
    --rt: 100%;
    --rb: 100%;
    --lb: -20%;
}

.tce-item-4 {
    width: 33%;
    height: 32%;
    left: 41%;
    top: 38.5%;
    --lt: 0%;
    --rt: 100%;
    --rb: 100%;
    --lb: -15%;
}

.tce-item-5 {
    width: 25.5%;
    height: 32%;
    left: 74.5%;
    top: 38.5%;
    --lt: 0%;
    --rt: 100%;
    --rb: 100%;
    --lb: 0%;
}

.tce-item-6 {
    width: 50%;
    height: 28.5%;
    left: 0;
    top: 58.5%;
    --lt: 0%;
    --rt: 100%;
    --rb: 90%;
    --lb: 0%;
}

.tce-item-7 {
    width: 49.5%;
    height: 28.5%;
    left: 50.5%;
    top: 58.5%;
    --lt: 10%;
    --rt: 100%;
    --rb: 100%;
    --lb: 0%;
}

.tce-image-item:hover {
    z-index: 100 !important;
}

.tce-image-item:hover img {
    transform: scale(1.1);
}

/* Default Angle Cutting Class */
.tce-angled {
    /* Will be controlled via inline styles/clip-path */
    clip-path: polygon(var(--l-angle, 0%) 0%, 100% 0%, var(--r-angle, 100%) 100%, 0% 100%);
}

/* Responsive */
@media (max-width: 1100px) {
    .tce-grid {
        grid-template-columns: 1fr;
    }

    .tce-collage-canvas {
        height: 500px;
    }

    .tce-title {
        font-size: 48px;
    }
}