/* Costa 8 Welcome + Philip */
html.c8w-open,
html.c8w-open body {
    overflow: hidden !important;
}

.c8w[hidden] {
    display: none !important;
}

.c8w {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: block;
    font-family: inherit;
    color: #fff;
}

.c8w__backdrop {
    position: absolute;
    inset: 0;
    background: #0b0b0b;
}

.c8w__dialog {
    position: relative;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    background: #111;
}

.c8w__choice {
    --c8-bg: #111;
    --c8-image: none;
    position: relative;
    min-width: 0;
    min-height: 100%;
    display: flex;
    align-items: flex-end;
    isolation: isolate;
    overflow: hidden;
    background-color: var(--c8-bg);
    background-image: var(--c8-image);
    background-size: cover;
    background-position: center;
    transition: flex .45s ease, filter .45s ease;
}


.c8w__video {
    position: absolute;
    inset: 0;
    z-index: -3;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    pointer-events: none;
}

.c8w__choice::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(circle at 30% 25%, rgba(255,255,255,.10), transparent 35%),
        linear-gradient(135deg, rgba(255,255,255,.05), transparent 55%);
}

.c8w__shade {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(to top, rgba(0,0,0,.86) 0%, rgba(0,0,0,.45) 48%, rgba(0,0,0,.15) 100%);
}

.c8w__choice--traditional {
    border-right: 1px solid rgba(255,255,255,.22);
}

.c8w__content {
    width: min(620px, 100%);
    padding: clamp(32px, 6vw, 88px);
    padding-bottom: clamp(44px, 8vh, 104px);
}

.c8w__eyebrow {
    display: inline-block;
    margin-bottom: 18px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: .18em;
    text-transform: uppercase;
    opacity: .82;
}

.c8w h2 {
    max-width: 12ch;
    margin: 0 0 18px;
    color: inherit;
    font-size: clamp(38px, 4.4vw, 76px);
    line-height: .98;
    letter-spacing: -.045em;
    text-wrap: balance;
}

.c8w p {
    max-width: 520px;
    margin: 0 0 30px;
    color: rgba(255,255,255,.86);
    font-size: clamp(16px, 1.3vw, 20px);
    line-height: 1.55;
}

.c8w__button {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 14px 22px;
    border: 1px solid rgba(255,255,255,.7);
    border-radius: 999px;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}

.c8w__button--light {
    color: #111;
    background: #fff;
    border-color: #fff;
}

.c8w__button--accent {
    color: #fff;
    background: rgba(255,255,255,.10);
    backdrop-filter: blur(8px);
}

.c8w__button:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 4px;
}

@media (hover: hover) and (pointer: fine) {
    .c8w__choice:hover .c8w__button {
        transform: translateY(-2px);
    }

    .c8w__button:hover {
        transform: translateY(-2px) scale(1.01);
    }

    .c8w__button--accent:hover {
        background: #fff;
        color: #111;
    }
}

.c8w--closing {
    opacity: 0;
    transition: opacity .28s ease;
}

@media (max-width: 760px) {
    .c8w__dialog {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 1fr;
    }

    .c8w__choice {
        align-items: center;
    }

    .c8w__choice--traditional {
        border-right: 0;
        border-bottom: 1px solid rgba(255,255,255,.22);
    }

    .c8w__content {
        padding: 26px 24px;
    }

    .c8w__eyebrow {
        margin-bottom: 10px;
    }

    .c8w h2 {
        max-width: 18ch;
        margin-bottom: 10px;
        font-size: clamp(28px, 9vw, 42px);
    }

    .c8w p {
        margin-bottom: 16px;
        font-size: 14px;
        line-height: 1.4;
    }

    .c8w__button {
        min-height: 44px;
        padding: 11px 18px;
        font-size: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .c8w,
    .c8w__choice,
    .c8w__button {
        transition: none !important;
    }
}
