.template-showcase-section {
    margin-top: 5rem;
    display: grid;
    gap: 2rem;
}

.template-showcase-copy {
    max-width: 52rem;
}

.template-showcase-copy h2 {
    margin: 0.65rem 0 0;
    font-family: var(--font-serif);
    font-size: clamp(1.4rem, 2.4vw, 2.1rem);
    font-weight: 400;
    letter-spacing: 0.14em;
    color: var(--text);
}

.template-showcase-copy p:last-child {
    margin: 0.85rem 0 0;
    max-width: 38rem;
    color: var(--text-soft);
    line-height: 1.9;
}

.template-stack {
    position: relative;
    min-height: clamp(520px, 52vw, 760px);
    overflow: hidden;
    border-radius: 1.8rem;
}

.template-card {
    position: absolute;
    top: 50%;
    left: 50%;
    overflow: hidden;
    border-radius: 1.15rem;
    background: #111;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.42);
    transform: translateY(-50%);
}

.template-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: saturate(0.96) contrast(0.98);
}

.template-card-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.3));
    pointer-events: none;
}

.template-card-copy {
    position: absolute;
    left: 1.1rem;
    bottom: 1rem;
    z-index: 1;
}

.template-card-copy span {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.66rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.64);
}

.template-card-copy h3 {
    margin: 0;
    font-family: var(--font-serif);
    font-size: clamp(1rem, 1.45vw, 1.4rem);
    font-weight: 500;
    letter-spacing: 0.08em;
    color: #fff;
}

.template-card-main {
    width: min(58vw, 700px);
    aspect-ratio: 0.92;
    z-index: 4;
    transform: translate(-50%, -50%);
}

.template-card-layer-1 {
    width: min(34vw, 410px);
    aspect-ratio: 0.74;
    z-index: 3;
    transform: translate(calc(-50% + 18vw), -50%);
    opacity: 0.68;
    filter: blur(0.15px);
}

.template-card-layer-2 {
    width: min(28vw, 330px);
    aspect-ratio: 0.72;
    z-index: 2;
    transform: translate(calc(-50% + 31vw), -50%);
    opacity: 0.42;
}

.template-card-layer-3 {
    width: min(24vw, 280px);
    aspect-ratio: 0.72;
    z-index: 1;
    transform: translate(calc(-50% + 43vw), -50%);
    opacity: 0.26;
}

@media (max-width: 720px) {
    .template-stack {
        min-height: 620px;
    }

    .template-card-main {
        width: min(84vw, 640px);
    }

    .template-card-layer-1 {
        width: min(60vw, 420px);
        transform: translate(calc(-50% + 14vw), -50%);
    }

    .template-card-layer-2 {
        width: min(52vw, 360px);
        transform: translate(calc(-50% + 28vw), -50%);
    }

    .template-card-layer-3 {
        width: min(46vw, 320px);
        transform: translate(calc(-50% + 40vw), -50%);
    }
}
