/* Presentation V2 — scoped styles migrated from FlexPark PresentationV2 */

.presentation-v2-page {
    --pv2-ink: #121417;
    --pv2-white: #ffffff;
    --pv2-green-dark: #08261f;
    --pv2-sand: #dcc79b;
}

.presentation-v2-page .site-container {
    width: min(100% - 80px, 1400px);
    margin-inline: auto;
}

.presentation-v2-page .hero.hero--presentation {
    position: relative;
    background-image:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.55) 0%,
            rgba(0, 0, 0, 0.30) 35%,
            rgba(0, 0, 0, 0.10) 60%,
            rgba(0, 0, 0, 0) 100%
        ),
        url('/images/Presentation/hero.webp');
    background-size: cover;
    background-position: center center;
}

.presentation-v2-page .hero-inner {
    min-height: 660px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-block: 96px;
}

.presentation-v2-page .hero--presentation .hero-inner {
    margin-left: 125px;
}

.presentation-v2-page .hero-content {
    max-width: 560px;
    margin-left: -40px;
    text-align: left;
}

.presentation-v2-page .eyebrow {
    margin: 0 0 18px;
    color: var(--pv2-sand);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.78rem;
    line-height: 1.2;
    font-weight: 800;
}

.presentation-v2-page .hero h1 {
    margin: 0;
    max-width: 560px;
    color: #ffffff;
    font-size: clamp(3rem, 4vw, 4.65rem);
    line-height: 0.98;
    letter-spacing: -0.045em;
}

.presentation-v2-page .hero-copy {
    max-width: 620px;
    margin: 26px 0 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    line-height: 1.6;
}

.presentation-v2-page .hero-actions {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 34px;
}

.presentation-v2-page .button-primary,
.presentation-v2-page .button-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 999px;
    font-size: 0.98rem;
    font-weight: 800;
    text-decoration: none;
}

.presentation-v2-page .button-primary {
    background: var(--pv2-sand);
    color: var(--pv2-green-dark);
}

.presentation-v2-page .button-secondary {
    border: 1px solid rgba(255, 255, 255, 0.45);
    color: var(--pv2-white);
}

.presentation-v2-page .presentation-hero-play-button {
    position: absolute;
    top: 19%;
    left: 67.5%;
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--pv2-white);
    cursor: pointer;
    transform: translate(-50%, -50%);
    transition: transform 0.35s ease, filter 0.35s ease;
}

.presentation-v2-page .presentation-hero-play-button__circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.85);
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow:
        0 0 30px rgba(255, 255, 255, 0.15),
        0 0 60px rgba(255, 255, 255, 0.1);
    transition: box-shadow 0.35s ease, background 0.35s ease;
}

.presentation-v2-page .presentation-hero-play-button__icon {
    margin-left: 5px;
    font-size: 1.75rem;
    line-height: 1;
}

.presentation-v2-page .presentation-hero-play-button__label {
    margin-top: 2px;
    margin-left: 18px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.presentation-v2-page .presentation-hero-play-button:hover {
    transform: translate(-50%, -50%) scale(1.06);
    filter: drop-shadow(0 0 18px rgba(255, 255, 255, 0.35));
}

.presentation-v2-page .presentation-hero-play-button:hover .presentation-hero-play-button__circle {
    background: rgba(255, 255, 255, 0.16);
    box-shadow:
        0 0 28px rgba(255, 255, 255, 0.32),
        0 0 52px rgba(220, 199, 155, 0.22);
}

.presentation-v2-page .presentation-hero-play-button:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.75);
    outline-offset: 6px;
}

.presentation-v2-page .presentation-v2-gallery {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.presentation-v2-page .presentation-v2-slide {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #121417;
}

.presentation-v2-page .presentation-v2-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.presentation-video-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.presentation-video-modal.is-open {
    display: flex;
}

.presentation-video-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
}

.presentation-video-modal__content {
    position: relative;
    width: min(92vw, 1200px);
    max-height: calc(100vh - 32px);
    z-index: 2;
    padding-top: 48px;
}

.presentation-video-modal__content video {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    max-height: calc(100vh - 96px);
    border-radius: 12px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.presentation-video-modal__close {
    position: absolute;
    top: 0;
    right: 0;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    background: transparent;
    border: 0;
    color: white;
    font-size: 42px;
    line-height: 1;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.presentation-v2-page {
    overflow-x: clip;
}

/* Tablet — gallery, modal, container (hero desktop rules unchanged above 768px) */
@media (max-width: 991.98px) {
    .presentation-v2-page .site-container {
        width: min(100% - 48px, 1400px);
    }

    .presentation-v2-page .presentation-v2-slide {
        aspect-ratio: auto;
    }

    .presentation-v2-page .presentation-v2-image {
        width: 100%;
        height: auto;
        object-fit: initial;
    }

    .presentation-video-modal {
        padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
    }

    .presentation-video-modal__content {
        width: 100%;
        padding-top: 52px;
    }

    .presentation-video-modal__content video {
        max-height: calc(100svh - 80px);
        border-radius: 8px;
    }

    .presentation-video-modal__close {
        position: fixed;
        top: max(8px, env(safe-area-inset-top));
        right: max(8px, env(safe-area-inset-right));
        min-width: 48px;
        min-height: 48px;
        font-size: 36px;
        z-index: 3;
    }
}

/* Tablet hero — iPad, Surface Pro 7 (768px–992px); desktop unchanged above 992px */
@media (min-width: 768px) and (max-width: 991.98px) {
    .presentation-v2-page .hero.hero--presentation {
        background-position: 52% 22%;
    }

    .presentation-v2-page .hero.hero--presentation .hero-inner {
        min-height: auto;
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        padding-block: 108px 72px;
        padding-inline: clamp(1.5rem, 4vw, 2rem);
        box-sizing: border-box;
    }

    .presentation-v2-page .hero.hero--presentation .hero-content {
        max-width: min(100%, 30rem);
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        padding: 0;
        box-sizing: border-box;
    }

    .presentation-v2-page .hero.hero--presentation .hero-content h1 {
        max-width: 100%;
        font-size: clamp(1.95rem, 4.2vw, 2.65rem);
        line-height: 1.1;
    }

    .presentation-v2-page .hero.hero--presentation .hero-copy {
        max-width: 100%;
        margin-top: 22px;
        font-size: 1rem;
        line-height: 1.6;
    }

    .presentation-v2-page .hero.hero--presentation .hero-actions {
        margin-top: 28px;
        gap: 14px;
    }

    .presentation-v2-page .hero.hero--presentation .presentation-hero-play-button {
        top: calc(72px + 16px);
        right: max(28px, env(safe-area-inset-right));
        left: auto;
        transform: none;
    }

    .presentation-v2-page .hero.hero--presentation .presentation-hero-play-button__circle {
        width: 64px;
        height: 64px;
    }

    .presentation-v2-page .hero.hero--presentation .presentation-hero-play-button__icon {
        font-size: 1.25rem;
    }

    .presentation-v2-page .hero.hero--presentation .presentation-hero-play-button__label {
        margin-left: 0;
        font-size: 0.7rem;
    }

    .presentation-v2-page .hero.hero--presentation .presentation-hero-play-button:hover {
        transform: scale(1.05);
    }
}

/* ==========================================
   PRESENTATION V2 — MOBILE HERO (< 768px)
   Dedicated single-column layout; desktop unchanged
========================================== */

@media (max-width: 767.98px) {
    .presentation-v2-page .hero.hero--presentation {
        position: relative;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        align-items: stretch;
        width: 100%;
        max-width: 100%;
        min-height: 100svh;
        margin: 0;
        padding: 72px 0 max(44px, env(safe-area-inset-bottom));
        box-sizing: border-box;
        overflow-x: clip;
        background-color: #0a1210;
        background-image:
            linear-gradient(
                180deg,
                rgba(0, 0, 0, 0.12) 0%,
                rgba(0, 0, 0, 0.04) 32%,
                rgba(0, 0, 0, 0.35) 58%,
                rgba(0, 0, 0, 0.82) 78%,
                rgba(0, 0, 0, 0.94) 100%
            ),
            url('/images/Presentation/hero.webp');
        background-size: cover;
        background-position: 56% 14%;
        background-repeat: no-repeat;
    }

    /* Reset desktop offsets: margin-left:125px and margin-left:-40px */
    .presentation-v2-page .hero.hero--presentation .site-container.hero-inner {
        position: relative;
        z-index: 2;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        max-width: 100%;
        min-height: 0;
        margin: 0;
        padding: 0 clamp(1rem, 5vw, 1.5rem);
        box-sizing: border-box;
    }

    .presentation-v2-page .hero.hero--presentation .hero-content {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        text-align: left;
        overflow-wrap: break-word;
        word-wrap: break-word;
    }

    .presentation-v2-page .hero.hero--presentation .eyebrow {
        order: 1;
        width: 100%;
        max-width: 100%;
        margin: 0 0 16px;
        padding: 0;
        font-size: 0.65rem;
        letter-spacing: 0.13em;
        line-height: 1.4;
    }

    .presentation-v2-page .hero.hero--presentation .hero-content h1 {
        order: 2;
        width: 100%;
        max-width: 100%;
        margin: 0 0 18px;
        padding: 0;
        font-size: clamp(1.4rem, 5vw + 0.15rem, 1.75rem);
        line-height: 1.14;
        letter-spacing: -0.028em;
    }

    .presentation-v2-page .hero.hero--presentation .hero-copy {
        order: 3;
        width: 100%;
        max-width: 100%;
        margin: 0 0 24px;
        padding: 0;
        font-size: 0.9rem;
        line-height: 1.56;
        color: rgba(255, 255, 255, 0.88);
    }

    .presentation-v2-page .hero.hero--presentation .hero-actions {
        order: 4;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        max-width: 100%;
        gap: 10px;
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    .presentation-v2-page .hero.hero--presentation .button-primary,
    .presentation-v2-page .hero.hero--presentation .button-secondary {
        display: flex;
        width: 100%;
        max-width: 100%;
        min-height: 48px;
        margin: 0;
        padding-inline: clamp(1rem, 4vw, 1.25rem);
        box-sizing: border-box;
        font-size: 0.9rem;
    }

    .presentation-v2-page .hero.hero--presentation .presentation-hero-play-button {
        position: absolute;
        z-index: 3;
        top: calc(72px + 10px);
        right: clamp(0.875rem, 4vw, 1.125rem);
        left: auto;
        flex-direction: column;
        align-items: center;
        gap: 5px;
        margin: 0;
        padding: 0;
        transform: none;
    }

    .presentation-v2-page .hero.hero--presentation .presentation-hero-play-button__circle {
        width: 52px;
        height: 52px;
        border-width: 1.5px;
    }

    .presentation-v2-page .hero.hero--presentation .presentation-hero-play-button__icon {
        margin-left: 3px;
        font-size: 1.05rem;
    }

    .presentation-v2-page .hero.hero--presentation .presentation-hero-play-button__label {
        margin: 0;
        font-size: 0.62rem;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        opacity: 0.92;
    }

    .presentation-v2-page .hero.hero--presentation .presentation-hero-play-button:hover {
        transform: scale(1.04);
        filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.25));
    }

    .presentation-v2-page .hero.hero--presentation .presentation-hero-play-button:hover .presentation-hero-play-button__circle {
        background: rgba(255, 255, 255, 0.14);
    }
}

@media (max-width: 575.98px) {
    .presentation-v2-page .hero.hero--presentation {
        background-position: 54% 12%;
        padding-bottom: max(40px, env(safe-area-inset-bottom));
    }

    .presentation-v2-page .hero.hero--presentation .site-container.hero-inner {
        padding-inline: clamp(0.875rem, 4.5vw, 1.25rem);
    }

    .presentation-v2-page .hero.hero--presentation .hero-content h1 {
        font-size: clamp(1.35rem, 4.8vw + 0.12rem, 1.62rem);
        line-height: 1.15;
        margin-bottom: 16px;
    }

    .presentation-v2-page .hero.hero--presentation .hero-copy {
        margin-bottom: 22px;
        font-size: 0.875rem;
        line-height: 1.54;
    }

    .presentation-v2-page .hero.hero--presentation .eyebrow {
        margin-bottom: 14px;
    }

    .presentation-v2-page .hero.hero--presentation .hero-actions {
        gap: 10px;
    }

    .presentation-v2-page .hero.hero--presentation .presentation-hero-play-button {
        top: calc(72px + 8px);
    }

    .presentation-v2-page .hero.hero--presentation .presentation-hero-play-button__circle {
        width: 48px;
        height: 48px;
    }

    .presentation-v2-page .hero.hero--presentation .presentation-hero-play-button__label {
        display: none;
    }
}

@media (max-width: 479.98px) {
    .presentation-v2-page .hero.hero--presentation {
        background-position: 52% 10%;
        padding-bottom: max(36px, env(safe-area-inset-bottom));
    }

    .presentation-v2-page .hero.hero--presentation .site-container.hero-inner {
        padding-inline: clamp(0.75rem, 4vw, 1rem);
    }

    .presentation-v2-page .hero.hero--presentation .eyebrow {
        font-size: 0.6rem;
        letter-spacing: 0.11em;
        margin-bottom: 12px;
    }

    .presentation-v2-page .hero.hero--presentation .hero-content h1 {
        font-size: clamp(1.28rem, 4.4vw + 0.1rem, 1.48rem);
        line-height: 1.16;
        margin-bottom: 14px;
    }

    .presentation-v2-page .hero.hero--presentation .hero-copy {
        font-size: 0.85rem;
        line-height: 1.52;
        margin-bottom: 20px;
    }

    .presentation-v2-page .hero.hero--presentation .hero-actions {
        gap: 8px;
    }

    .presentation-v2-page .hero.hero--presentation .button-primary,
    .presentation-v2-page .hero.hero--presentation .button-secondary {
        min-height: 46px;
        font-size: 0.86rem;
    }

    .presentation-v2-page .hero.hero--presentation .presentation-hero-play-button__circle {
        width: 44px;
        height: 44px;
    }

    .presentation-v2-page .hero.hero--presentation .presentation-hero-play-button__icon {
        font-size: 0.95rem;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    .presentation-v2-page .hero.hero--presentation {
        background-position: 55% 13%;
    }

    .presentation-v2-page .hero.hero--presentation .hero-content h1 {
        font-size: clamp(1.5rem, 3.8vw + 0.3rem, 1.82rem);
    }

    .presentation-v2-page .hero.hero--presentation .hero-copy {
        font-size: 0.92rem;
        margin-bottom: 26px;
    }

    .presentation-v2-page .hero.hero--presentation .eyebrow {
        margin-bottom: 18px;
    }
}
