/* ===================================
   Home — Products Showcase
   Overlay-menu inspired design
   =================================== */

.home-products-showcase {
    background-color: var(--bg-footer-color, #A9A193);
    color: #fff;
    padding: clamp(5rem, 10vw, 10rem) 0;
    position: relative;
    overflow: hidden;
}

/* --- Header --- */
.hps-header {
    display: flex;
    align-items: flex-end;
    gap: clamp(1.5rem, 3vw, 3rem);
    margin-bottom: clamp(3rem, 6vw, 5rem);
    padding-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.hps-header-left {
    flex: 1;
}

.hps-eyebrow {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(0.9rem, 1.5vw, 1.25rem);
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #fff;
    margin: 0;
}

.hps-header-right {
    flex-shrink: 0;
    text-align: right;
    padding-bottom: 0.3rem;
}

.hps-sub {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: clamp(0.78rem, 1vw, 0.9rem);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.9;
    margin: 0;
    letter-spacing: 0.04em;
}

/* --- Product List (Telha Clarke Style) --- */
.hps-works-list {
    display: flex;
    flex-direction: column;
    gap: clamp(4rem, 10vw, 8rem);
    padding: 0;
    margin: 0;
}

.hps-works-item {
    display: block;
    width: 100%;
    color: #fff;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    contain: paint;
}

.hps-works-item-wrapper {
    display: flex;
    flex-direction: column;
    gap: clamp(2rem, 5vw, 4rem);
}

/* Title Row */
.hps-title-row {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    font-size: clamp(2.5rem, 6vw, 6rem);
    line-height: 1;
    z-index: 2;
}

.hps-item-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    margin: 0;
    text-align: center;
    letter-spacing: -0.02em;
    padding: 0 clamp(1rem, 2vw, 2rem);
    /* Optional slight initial opacity */
    opacity: 0.8; 
}

/* Image Container */
.hps-image-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    /* Optional slight negative margin to pull image under title like Telha */
    margin-top: clamp(-10px, -2vw, -30px);
}

.hps-image-wrapper {
    position: relative;
    width: 100%;
    /* Use aspect-ratio instead of padding-top hack */
    aspect-ratio: 16 / 9;
    overflow: hidden;
    margin-bottom: clamp(1rem, 2vw, 1.5rem);
    /* Initial state before reveal animation */
    clip-path: inset(100% 0 0 0); 
    will-change: clip-path;
    contain: layout paint;
}

@media (max-width: 1024px) {
    .hps-image-wrapper {
        aspect-ratio: 3 / 2;
    }
}

@media (max-width: 768px) {
    .hps-image-wrapper {
        aspect-ratio: 4 / 3;
    }
}

.hps-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    /* 130% height allows room for the vertical parallax travel */
    height: 130%; 
    will-change: transform;
    backface-visibility: hidden;
}

.hps-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Meta Data */
.hps-item-meta {
    font-size: clamp(0.7rem, 1vw, 0.9rem);
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.6);
    padding: 0 var(--spacing-margin);
    overflow: hidden;
}

.hps-item-category {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 300;
}

.hps-item-date {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
}

/* --- View All Link --- */
.hps-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: clamp(2.5rem, 5vw, 4rem);
    padding-top: clamp(1.5rem, 3vw, 2.5rem);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.hps-view-all {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.74rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #fff;
    text-decoration: none;
    opacity: 0.6;
    transition: opacity 0.4s ease,
        letter-spacing 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.hps-view-all:hover {
    opacity: 1;
    letter-spacing: 0.28em;
}

.hps-count {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.68rem;
    font-weight: 400;
    letter-spacing: 0.14em;
    color: rgba(255, 255, 255, 0.35);
}

/* --- Responsive --- */
@media (max-width: 767px) {
    .hps-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .hps-header-right {
        text-align: left;
    }

    .hps-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}
