.kvh-hero,
.kvh-hero *,
.kvh-modal,
.kvh-modal * {
    box-sizing: border-box;
}

.kvh-hero {
    --kvh-overlay: .2;
    --kvh-logo-width: 360px;
    --kvh-heading-size: 30px;
    --kvh-heading-size-mobile: 24px;
    --kvh-heading-color: #fff;
    --kvh-logo-text-spacing: 16px;
    --kvh-offset: 0px;
    --kvh-button-bg: #ff9418;
    --kvh-button-color: #fff;
    --kvh-real-height: 100vh;
    position: relative;
    isolation: isolate;
    display: block;
    width: 100%;
    max-width: none;
    height: var(--kvh-real-height) !important;
    min-height: var(--kvh-real-height) !important;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-color: #080808;
}

@supports (height: 100dvh) {
    .kvh-hero { --kvh-real-height: 100dvh; }
}

.kvh-media,
.kvh-overlay {
    position: absolute;
    inset: 0;
}

.kvh-media {
    z-index: -3;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #080808;
    pointer-events: none;
}

.kvh-media::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: auto;
    background: transparent;
}

.kvh-video,
.kvh-hero iframe.kvh-video,
.kvh-hero video.kvh-video {
    position: absolute !important;
    display: block !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    pointer-events: none !important;
    border: 0 !important;
    outline: 0 !important;
}

.kvh-hero iframe.kvh-video {
    top: 50% !important;
    left: 50% !important;
    right: auto !important;
    bottom: auto !important;
    width: 177.77777778vh !important;
    min-width: 100% !important;
    height: 56.25vw !important;
    min-height: 100% !important;
    transform: translate(-50%, -50%) !important;
    transform-origin: center center !important;
    aspect-ratio: 16 / 9 !important;
}

.kvh-hero video.kvh-video {
    inset: 0 !important;
    width: 100% !important;
    min-width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    transform: none !important;
}

.kvh-overlay {
    z-index: -2;
    background: rgba(0, 0, 0, var(--kvh-overlay));
    pointer-events: none;
}

.kvh-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: clamp(20px, 5vw, 80px);
    transform: translateY(var(--kvh-offset));
    text-align: center;
}

.kvh-logo {
    display: block;
    width: min(var(--kvh-logo-width), 82vw);
    max-width: 100%;
    max-height: 38%;
    margin: 0;
    object-fit: contain;
    filter: drop-shadow(0 4px 18px rgba(0, 0, 0, .22));
}

.kvh-heading,
.kvh-hero h1.kvh-heading {
    width: min(900px, 92vw);
    margin: 0 0 2px !important;
    padding: 0 !important;
    color: var(--kvh-heading-color) !important;
    font-family: inherit !important;
    font-size: var(--kvh-heading-size) !important;
    font-style: normal !important;
    font-weight: 700 !important;
    line-height: 1.08 !important;
    letter-spacing: -.025em !important;
    text-align: center !important;
    text-transform: none !important;
    text-shadow: 0 3px 14px rgba(0, 0, 0, .42);
}

.kvh-logo + .kvh-heading,
.kvh-logo + h1.kvh-heading {
    margin-top: var(--kvh-logo-text-spacing) !important;
}

.kvh-heading + .kvh-button,
.kvh-logo + .kvh-button {
    margin-top: clamp(12px, 2.2vh, 24px);
}

.kvh-button {
    -webkit-appearance: none;
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 54px;
    margin: 0;
    padding: 13px 24px;
    border: 0;
    border-radius: 999px;
    background: var(--kvh-button-bg);
    color: var(--kvh-button-color) !important;
    font-family: inherit;
    font-size: clamp(16px, 1.3vw, 20px);
    font-weight: 700;
    line-height: 1;
    text-decoration: none !important;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .24);
    transition: transform .2s ease, filter .2s ease, box-shadow .2s ease;
    -webkit-tap-highlight-color: transparent;
}

.kvh-button:hover,
.kvh-button:focus-visible {
    color: var(--kvh-button-color) !important;
    transform: translateY(-2px) scale(1.02);
    filter: brightness(1.06);
    box-shadow: 0 16px 36px rgba(0, 0, 0, .3);
}

.kvh-button:focus-visible,
.kvh-modal-close:focus-visible {
    outline: 3px solid rgba(255, 255, 255, .95);
    outline-offset: 4px;
}

.kvh-button-icon {
    font-size: 26px;
    line-height: .7;
    margin-top: -2px;
}

.kvh-camera-icon {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.kvh-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(18px, 4vw, 54px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .22s ease, visibility .22s ease;
}

.kvh-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.kvh-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .93);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.kvh-modal-dialog {
    position: relative;
    z-index: 2;
    width: min(1200px, 92vw);
    max-height: 90vh;
    max-height: 90dvh;
}

.kvh-modal-video-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 4px;
    background: #000;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .55);
}

.kvh-popup-video {
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: #000;
    object-fit: contain;
    pointer-events: none !important;
}

.kvh-modal-close {
    -webkit-appearance: none;
    appearance: none;
    position: absolute;
    top: -52px;
    right: -4px;
    z-index: 4;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 38px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}

.kvh-modal-close:hover {
    background: rgba(255, 255, 255, .2);
    transform: scale(1.06);
}

body.kvh-modal-open {
    overflow: hidden !important;
    touch-action: none;
}

@media (max-width: 782px) {
    .kvh-hero {
        width: 100vw;
        max-width: 100vw;
    }

    .kvh-content {
        gap: 0;
        padding: 20px;
    }

    .kvh-logo {
        width: min(var(--kvh-logo-width), 78vw);
        max-height: 30%;
    }

    .kvh-heading,
    .kvh-hero h1.kvh-heading {
        width: min(88vw, 720px);
        font-size: var(--kvh-heading-size-mobile) !important;
        line-height: 1.1 !important;
    }

    .kvh-button {
        min-height: 48px;
        padding: 11px 19px;
        font-size: 15px;
    }

    .kvh-modal { padding: 18px 12px; }
    .kvh-modal-dialog { width: 100%; }

    .kvh-modal-close {
        top: -48px;
        right: 2px;
        width: 42px;
        height: 42px;
    }
}

@media (max-height: 520px) and (orientation: landscape) {
    .kvh-content {
        gap: 0;
        padding: 14px 24px;
    }

    .kvh-logo { max-height: 36%; }

    .kvh-heading,
    .kvh-hero h1.kvh-heading {
        font-size: min(var(--kvh-heading-size-mobile), 22px) !important;
    }

    .kvh-button {
        min-height: 42px;
        padding: 9px 17px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .kvh-button,
    .kvh-modal,
    .kvh-modal-close { transition: none; }
}
