/* Projects Video Hero — Elementor widget */

.pvh {
    --pvh-crossfade: 600ms;
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background-color: #000;
    color: #fff;
}

.pvh *,
.pvh *::before,
.pvh *::after {
    box-sizing: border-box;
}

/* --- Video stack: all layers absolutely overlapping, only .is-active is visible --- */
.pvh__videos {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.pvh__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    opacity: 0;
    transition: opacity var(--pvh-crossfade) ease;
    pointer-events: none;
    background-color: #000;
}

/* Image fallback variant: a wrapper div with an <img> child that fills it.
   The <img> carries srcset so the browser picks a high-DPR variant on retina. */
.pvh__video--image {
    overflow: hidden;
}
.pvh__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    /* Hint the browser to render high-quality scaling for upscaled posters */
    image-rendering: auto;
}

.pvh__video.is-active {
    opacity: 1;
    z-index: 2;
}

/* --- Overlay --- */
.pvh__overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
}

.pvh[data-overlay="none"] .pvh__overlay { display: none; }

/* --- Content layer above overlay --- */
.pvh__content {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    flex-direction: column;
    /* Top sits at top, middle expands, project block sits at bottom */
}

.pvh__middle {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pvh__middle--empty {
    flex: 1 1 auto;
}

.pvh__h1 {
    margin: 0;
    font-size: clamp(28px, 5vw, 64px);
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.1;
    color: #fff;
    text-align: center;
}

.pvh__h1 a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 200ms ease;
}

.pvh__h1 a:hover,
.pvh__h1 a:focus-visible {
    border-bottom-color: currentColor;
    outline: none;
}

/* H1 top variant */
.pvh[data-h1-pos="top"] .pvh__content { padding-top: 40px; }

/* --- Project block (rotating per project) --- */
.pvh__block {
    display: flex;
    flex-direction: column;
    padding: 0 60px 80px 60px;
    position: relative;
}

/* Use grid stacking so the rotating cards occupy the same space — only one shows at a time */
.pvh__block > .pvh__project {
    grid-area: 1 / 1;
}
.pvh__block {
    display: grid;
    grid-template-columns: 1fr;
}
.pvh__block > .pvh__h1 {
    grid-area: 1 / 1;
}

.pvh__block[data-align="flex-start"] { justify-items: flex-start; }
.pvh__block[data-align="center"]     { justify-items: center; }
.pvh__block[data-align="flex-end"]   { justify-items: flex-end; }

.pvh__project {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity var(--pvh-crossfade) ease, transform var(--pvh-crossfade) ease;
    pointer-events: none;
    max-width: 760px;
    width: 100%;
}

.pvh__project.is-active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    position: relative;
    z-index: 1;
}

.pvh__h2 {
    margin: 0 0 6px 0;
    font-size: clamp(22px, 2.6vw, 32px);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: 0.005em;
}
.pvh__h2 a { color: inherit; text-decoration: none; }
.pvh__h2 a:hover, .pvh__h2 a:focus-visible { text-decoration: underline; outline: none; }

.pvh__h3 {
    margin: 0 0 18px 0;
    font-size: clamp(14px, 1.2vw, 17px);
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
}
.pvh__h3 a { color: inherit; text-decoration: none; }
.pvh__h3 a:hover, .pvh__h3 a:focus-visible { text-decoration: underline; outline: none; }

/* --- Button --- */
.pvh__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    padding: 14px 26px;
    border: 1px solid #fff;
    color: #fff;
    background-color: transparent;
    font-size: 14px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1;
    transition: color 250ms ease, background-color 250ms ease, border-color 250ms ease, transform 250ms ease;
    cursor: pointer;
}

.pvh__btn:hover,
.pvh__btn:focus-visible {
    background-color: #fff;
    color: #000;
    outline: none;
}

.pvh__btn-arrow { transition: transform 250ms ease; }
.pvh__btn:hover .pvh__btn-arrow,
.pvh__btn:focus-visible .pvh__btn-arrow { transform: translateX(3px); }

/* --- Chevron --- */
.pvh__chevron {
    position: absolute;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    background: transparent;
    border: 0;
    padding: 8px;
    cursor: pointer;
    color: #fff;
    z-index: 5;
    line-height: 0;
}

.pvh__chevron svg {
    width: 28px;
    height: 28px;
    display: block;
}

.pvh__chevron:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
    border-radius: 4px;
}

.pvh__chevron--bounce {
    animation: pvh-bounce 2.2s ease-in-out infinite;
}

@keyframes pvh-bounce {
    0%, 100% { transform: translate(-50%, 0); }
    50%      { transform: translate(-50%, 8px); }
}

/* --- Navigation arrows --- */
.pvh__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    background-color: transparent;
    color: #fff;
    border: 0 solid transparent;
    border-radius: 50%;
    cursor: pointer;
    line-height: 0;
    transition: color 220ms ease, background-color 220ms ease, border-color 220ms ease, opacity 220ms ease, transform 220ms ease;
}

.pvh__arrow--prev { left: 28px; }
.pvh__arrow--next { right: 28px; }

.pvh__arrow svg {
    width: 22px;
    height: 22px;
    display: block;
    pointer-events: none;
}

.pvh__arrow:hover,
.pvh__arrow:focus-visible {
    outline: none;
}

.pvh__arrow:focus-visible {
    box-shadow: 0 0 0 2px currentColor;
}

.pvh__arrow[disabled] {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .pvh__block {
        padding: 0 24px 64px 24px;
    }
    .pvh__h1 {
        font-size: clamp(24px, 8vw, 40px);
    }
    .pvh__arrow--hide-mobile {
        display: none;
    }
    .pvh__arrow--prev { left: 12px; }
    .pvh__arrow--next { right: 12px; }
}

@media (prefers-reduced-motion: reduce) {
    .pvh__video,
    .pvh__project,
    .pvh__chevron--bounce {
        transition: none !important;
        animation: none !important;
    }
}

/* Specificity reinforcement — kills theme/Elementor img height overrides */
.pvh .pvh__videos .pvh__img,
.pvh .pvh__video--image > .pvh__img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: center center !important;
    display: block !important;
}
