/* 
    PJ3D Cinematic Prototype - HOME STYLES
    Hero, Flashlight, Portfolio Grid
*/

/* HERO UTILS */
.hero-type {
    font-size: clamp(2rem, 5vw, 4rem);
    white-space: nowrap;
    opacity: 0;
    transform: translateY(100px);
    line-height: 1.2;
}

.hero-description {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: #ccc;
    max-width: 600px;
    margin-top: 2rem;
    line-height: 1.6;
    opacity: 0;
    transform: translateY(20px);
}

.hero-cta-wrapper {
    margin-top: 3rem;
    opacity: 0;
    transform: translateY(20px);
}

.video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 0.4;
    filter: grayscale(100%) contrast(1.2);
}

.hero-mask-wrapper {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.line-wrapper {
    overflow: hidden;
}

/* MARQUEE */
.marquee-container {
    width: 100%;
    overflow: hidden;
    padding: 2rem 0;
    background: var(--bg-color);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.marquee-content {
    display: flex;
    white-space: nowrap;
    animation: scroll-left 20s linear infinite;
}

.marquee-item {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 800;
    text-transform: uppercase;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.5);
    padding-right: 4rem;
}

@keyframes scroll-left {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* FLASHLIGHT REVEAL */
.reveal-image-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 600px;
}

.reveal-image-bw,
.reveal-image-color {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reveal-image-bw {
    filter: grayscale(100%) contrast(1.1);
    z-index: 1;
}

.reveal-image-color {
    z-index: 2;
    clip-path: circle(0% at 50% 50%);
    transition: clip-path 0.1s ease-out;
}

/* ZOOM */
.zoom-image-container {
    width: 100%;
    height: 80vh;
    overflow: hidden;
    margin: 4rem 0;
}

.zoom-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    scale: 1;
}

/* PORTFOLIO GRID */
.portfolio-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4vw;
}

.project-card {
    position: relative;
    margin-bottom: 4rem;
}

.project-image-wrapper {
    width: 100%;
    aspect-ratio: 4/5;
    overflow: hidden;
    margin-bottom: 1rem;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--easing), filter 0.6s var(--easing);
    filter: grayscale(100%);
}

.project-card:hover .project-image {
    transform: scale(1.05);
    filter: grayscale(0%);
}

.project-meta h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.project-meta p {
    color: #888;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .project-card {
        margin-top: 0 !important;
    }
}

/* PJD-16895 v124 home correction: calmer editorial commerce system. */
body.home:not(.single-product) .site-main,
body.home:not(.single-product) .entry-content {
    background: transparent !important;
}

body.home:not(.single-product) .hero-type,
body.home:not(.single-product) .section-title,
body.home:not(.single-product) .marquee-item {
    white-space: normal !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

body.home:not(.single-product) .hero-type {
    max-width: 860px;
    color: #fffdf8 !important;
    font-size: clamp(2.4rem, 6vw, 5.8rem) !important;
    line-height: 1.04 !important;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.28);
    opacity: 1 !important;
    transform: none !important;
}

body.home:not(.single-product) .hero-description {
    color: #f2eadf !important;
    max-width: 680px;
    font-size: clamp(1rem, 1.4vw, 1.25rem);
    opacity: 1 !important;
    transform: none !important;
}

body.home:not(.single-product) .hero-cta-wrapper {
    opacity: 1 !important;
    transform: none !important;
}

body.home:not(.single-product) .full-screen,
body.home:not(.single-product) .hero-mask-wrapper {
    min-height: clamp(520px, 76vh, 760px) !important;
}

body.home:not(.single-product) .video-bg,
body.home:not(.single-product) .wp-block-cover img,
body.home:not(.single-product) .wp-block-cover video {
    filter: brightness(0.76) saturate(0.82) contrast(1.02) !important;
    opacity: 1 !important;
}

body.home:not(.single-product) .marquee-container {
    background: #fffdf8 !important;
    border-color: rgba(54, 47, 39, 0.12) !important;
}

body.home:not(.single-product) .marquee-item {
    color: #5f503b !important;
    -webkit-text-stroke: 0 !important;
    font-family: var(--font-body) !important;
    font-size: clamp(1.3rem, 3vw, 2.3rem) !important;
    font-weight: 800 !important;
}

body.home:not(.single-product) .project-card,
body.home:not(.single-product) .wp-block-column,
body.home:not(.single-product) .wp-block-cover,
body.home:not(.single-product) .wp-block-media-text {
    border-radius: 8px;
}

body.home:not(.single-product) .project-image-wrapper {
    aspect-ratio: 4 / 3;
    border-radius: 8px;
    border: 1px solid rgba(54, 47, 39, 0.12);
    background: #fffdf8;
}

body.home:not(.single-product) .project-image {
    filter: none !important;
}

body.home:not(.single-product) .project-meta h3 {
    color: var(--pj-text) !important;
    font-size: clamp(1.15rem, 2vw, 1.55rem);
}

body.home:not(.single-product) .project-meta p {
    color: var(--pj-text-muted) !important;
    text-transform: none;
    letter-spacing: 0;
}

@media (max-width: 768px) {
    body.home:not(.single-product) .full-screen,
    body.home:not(.single-product) .hero-mask-wrapper {
        min-height: 520px !important;
        align-items: flex-end;
        padding-bottom: 3rem;
    }

    body.home:not(.single-product) .hero-type {
        font-size: clamp(2.2rem, 13vw, 3.6rem) !important;
    }

    body.home .wp-block-cover .wp-block-buttons {
        width: min(100%, 22rem) !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.75rem !important;
    }

    body.home .wp-block-cover .wp-block-button,
    body.home .wp-block-cover .wp-block-button__link {
        width: 100% !important;
        max-width: 100% !important;
    }

    body.home .wp-block-cover .wp-block-button__link {
        min-height: 44px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0.75rem 1rem !important;
        white-space: normal !important;
        word-break: normal !important;
        overflow-wrap: normal !important;
        hyphens: none !important;
        line-height: 1.25 !important;
    }
}

/* Keep full-width home Getwid blocks inside the measured viewport at every gate width. */
body.home .entry-content > .wp-block-getwid-custom-post-type.alignfull {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}
