/* ========== BASE ========== */
* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    height: 100%;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    background: #111;
    color: #fff;
    overflow: hidden; /* we scroll inside .scroll */
}

.in-fs body {
    overflow: hidden;
}

.in-fs .scroll {
    overflow: hidden;
}

.in-fs .overlay .scene {
    transform: none !important;
}

input,
textarea,
select {
    font-size: 16px;
}

/* ========== TYPE ========== */
.standardText {
    font-family: placa, sans-serif;
    font-weight: 400;
    font-style: normal;
}

.headerText {
    font-family: "titular-alt", sans-serif;
    font-weight: 800;
    font-style: normal;
}

/* Quote text is static */
.quoteText {
    font-family: placa, sans-serif;
    font-weight: 700;
    font-style: normal;
    font-size: clamp(19px, 2vw, 30px);
    line-height: 1.35;
    text-align: right;
    letter-spacing: 0;
    word-spacing: 0;
    opacity: 1;
    transition: none;
}

    .quoteText .emphasis {
        display: inline-block;
        font-size: 1.35em;
        font-weight: 800;
        letter-spacing: 0.03em;
        white-space: nowrap;
    }

small {
    font-size: smaller;
}

/* ========== BUTTONS / IMAGES ========== */
.ctabtn {
    height: auto;
    width: 75%;
}

.conbtn {
    height: auto;
    width: 75%;
}

.btnholder {
    text-align: center;
    cursor: pointer;
}

.btnholder2 {
    text-align: left;
}


/* ========== LAYOUT ========== */
.stage {
    position: relative;
    height: 100vh;
    isolation: isolate;
}

.scroll {
    height: 100vh;
    overflow-y: auto;
    overflow-anchor: none;
    overscroll-behavior: contain;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

    .scroll::-webkit-scrollbar {
        width: 0;
        height: 0;
    }

.panel {
    min-height: 100vh;
    width: 100%;
    display: flex;
    overflow-anchor: none;
}

.panel-content {
    width: 50%;
    padding: 6vh clamp(24px, 4vw, 64px) 10vh;
}

.panel-spacer {
    width: 50%;
}

.panel-content h2 {
    font-size: clamp(28px, 3vw, 44px);
    margin: 0 0 16px;
    letter-spacing: -0.02em;
}

.panel-content p {
    font-size: clamp(16px, 1.25vw, 20px);
    max-width: 42ch;
    line-height: 1.6;
    margin: 0 0 14px;
    opacity: 0.92;
}

/* Panel colors */
.panel:nth-of-type(1) {
    background: #e85b27;
    color: #ffffff;
}

.panel:nth-of-type(2) {
    background: #ffffff;
    color: #000000;
}

.panel:nth-of-type(3) {
    background: #0c72b6;
    color: #ffffff;
}

.panel:nth-of-type(4) {
    background: #ffffff;
    color: #000000;
}

.panel:nth-of-type(5) {
    background: #e85b27;
    color: #ffffff;
}

.panel:nth-of-type(6) {
    background: #ffffff;
    color: #000000;
}

.panel:nth-of-type(7) {
    background: #0c72b6;
    color: #ffffff;
}

.panel:nth-of-type(8) {
    background: #ffffff;
    color: #000000;
}

.panel:nth-of-type(9) {
    background: #e85b27;
    color: #ffffff;
}

.panel:nth-of-type(10) {
    background: #ffffff;
    color: #000000;
}

.panel:nth-of-type(11) {
    background: #0c72b6;
    color: #ffffff;
}

/* ========== OVERLAY / SCENES ========== */
.overlay {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100vh;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(24px, 4vw, 64px);
    background: transparent;
    pointer-events: auto;
    visibility: hidden;
}

.scene {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.98);
    transition: opacity 0.15s linear, transform 0.15s linear;
    pointer-events: none;
    visibility: hidden;
}

.overlay .scene.is-on {
    visibility: visible;
    pointer-events: auto;
    z-index: 1;
}

.overlay .scene {
    opacity: 0;
    transform: scale(0.98);
    transition: opacity 0.15s linear, transform 0.15s linear;
    pointer-events: none;
    z-index: 0;
}

.overlay .scene.is-on {
    opacity: 1;
    transform: none;
}

    .overlay .scene.is-on .card,
    .overlay .scene.is-on .scene-video {
        pointer-events: auto;
    }

/* ========== CARDS ========== */
.card {
    width: min(440px, 80%);
    border-radius: 24px;
    padding: 26px 24px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
    overflow: hidden;
    pointer-events:none;
}


/* Images in cards */
.scene-img {
    display: block;
    width: 400px;
    height: 400px;
    margin: 0 auto 18px;
    object-fit: contain;
    max-width: 100%;
}

.scene-video {
    display: block;
    width: 250px;
    height: auto;
    border-radius: 25px;
    margin: 0 auto 18px;
    object-fit: contain;
    max-width: 100%;
    pointer-events: auto;
}

    .scene-video:fullscreen,
    .scene-video:-webkit-full-screen {
        width: 100vw !important;
        height: 100vh !important;
        max-width: none !important;
        max-height: none !important;
        margin: 0 !important;
        border-radius: 0 !important;
        background: #000 !important;
        object-fit: contain !important;
    }


/* Light overlay variant */
.overlay.is-light .card {
    background: rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 0, 0, 0.10);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.10);
}

/* Mobile inline graphic */
.inline-graphic {
    display: none;
    margin-bottom: 28px;
}

/* Honeypot */
.hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none; 
}

/* ========== MODAL ========== */
.modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 9999;
}

    .modal.is-open {
        display: block;
    }

.modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.modal__dialog {
    position: relative;
    width: min(560px, calc(100vw - 32px));
    margin: min(10vh, 80px) auto;
    padding: 22px 20px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    color: #fff;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

    .modal__dialog label {
        display: block;
        margin: 12px 0;
    }

    .modal__dialog input,
    .modal__dialog textarea {
        width: 100%;
        margin-top: 6px;
        padding: 10px 12px;
        border-radius: 12px;
        border: 1px solid rgba(255, 255, 255, 0.25);
        background: rgba(0, 0, 0, 0.18);
        color: #fff;
        outline: none;
    }

    .modal__dialog button[type="submit"] {
        padding: 10px 14px;
        border-radius: 12px;
        border: 1px solid rgba(255, 255, 255, 0.25);
        background: rgba(255, 255, 255, 0.14);
        color: #fff;
        cursor: pointer;
    }

.modal__close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.10);
    color: #fff;
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
}

.contact__status {
    margin-top: 12px;
    opacity: 0.9;
}

@media (prefers-reduced-motion: no-preference) {
    .modal__dialog {
        animation: pop 0.14s ease-out;
    }

    @keyframes pop {
        from {
            transform: translateY(8px) scale(0.99);
            opacity: 0.6;
        }

        to {
            transform: none;
            opacity: 1;
        }
    }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
    .panel {
        display: block;
    }

    .panel-content {
        width: 100%;
        padding: 10vh clamp(20px, 5vw, 32px);
        display: flex;
        flex-direction: column;
    }

    .panel-spacer {
        display: none;
    }

    .overlay {
        display: none;
    }

    .inline-graphic {
        display: block;
        order: -1;
        opacity: 0.35;
        transform: translateY(8px) scale(0.99);
        transition: opacity 0.25s linear, transform 0.25s linear;
    }

        .inline-graphic.is-on {
            opacity: 1;
            transform: none;
        }

    .card {
        width: 100%;
        max-width: 520px;
    }

    .panel:nth-of-type(2) .card,
    .panel:nth-of-type(4) .card,
    .panel:nth-of-type(6) .card,
    .panel:nth-of-type(8) .card,
    .panel:nth-of-type(10) .card {
        background: rgba(0, 0, 0, 0.06);
        border-color: rgba(0, 0, 0, 0.10);
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.10);
    }
}
