/* ============================================================
   Video Scroll Points
   ============================================================ */

.section-video-scroll {
    position: relative;
    --vsp-fast-panel-enter-duration: 0.16s;
}

/* Stage: tall scrollable container */
.vsp-stage {
    position: relative;
}

/* Native video layer */
.vsp-video {
    position: absolute;
    inset: 0;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    object-fit: cover;
    pointer-events: none;
    z-index: 1;
}

.vsp-video.vsp-video--active {
    opacity: 1;
}

/* Sticky wrapper */
.vsp-sticky {
    height: 100vh;
    overflow: hidden;
}

/* Kept in the template for compatibility; rendering now uses native videos. */
.vsp-canvas {
    display: none;
}

/* ============================================================
   Left Timeline
   ============================================================ */

.vsp-timeline {
    position: absolute;
    left: 40px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
}

/* Dots between items */
.vsp-timeline__dots {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 30px 0;
    width: 14px;
}

.vsp-timeline__dots span {
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    transition: background 0.15s ease;
}

.vsp-timeline__dots span.filled {
    background: #FD0;
}

/* Timeline item button */
.vsp-timeline__item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    text-align: left;
}

/* Circle */
.vsp-timeline__dot {
    display: block;
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.50);
    background: transparent;
    transition: border-color 0.25s ease, background 0.25s ease;
}

/* Label */
.vsp-timeline__label {
    font-family: Barlow, sans-serif;
    font-size: var(--text-sm);
    font-weight: var(--font-weight-semibold);
    color: rgba(255, 255, 255, 0.50);
    white-space: nowrap;
    opacity: 1;
    transform: translateX(0);
    transition: color 0.25s ease, text-shadow 0.25s ease;
}

/* Active state */
.vsp-timeline__item--active .vsp-timeline__dot,
.vsp-timeline__item--done .vsp-timeline__dot {
    border-color: #FD0;
    background: #FD0;
    box-shadow: 0 0 8px 2px rgba(255, 221, 0, 0.55);
}

.vsp-timeline__item--active .vsp-timeline__label,
.vsp-timeline__item--done .vsp-timeline__label {
    color: #FD0;
    text-shadow: 0 0 15px #FD0;
    font-size: var(--text-base);
    font-weight: var(--font-weight-bold);
    font-style: normal;
    line-height: normal;
}

/* Show label on hover */
.vsp-timeline__item:hover .vsp-timeline__label {
    opacity: 1;
    transform: translateX(0);
    color: rgba(255, 255, 255, 0.85);
}

.vsp-timeline__item:hover .vsp-timeline__dot {
    border-color: rgba(255, 255, 255, 0.85);
}

/* ============================================================
   Content Panels
   ============================================================ */

.vsp-panel {
    --vsp-tx: 0px;
    --vsp-ty: 0px;
    position: absolute;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    align-items: flex-start;
    opacity: 0;
    transform: translate(var(--vsp-tx), calc(var(--vsp-ty) + 20px));
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
    border-radius: 27px;
    background: linear-gradient(94deg, rgba(255, 255, 255, 0.05) 0.65%, rgba(255, 255, 255, 0.10) 28.83%, rgba(255, 255, 255, 0.05) 100%);
    box-shadow: var(--shadow-default);
    backdrop-filter: var(--glass-blur);
    padding: 18px 24px;
    width: fit-content;
    max-width: min(600px, 70vw);
}

.vsp-panel--active {
    opacity: 1;
    transform: translate(var(--vsp-tx), var(--vsp-ty));
    pointer-events: auto;
}

.vsp--playing .vsp-panel--active {
    opacity: 0;
    pointer-events: none;
    transform: translate(var(--vsp-tx), calc(var(--vsp-ty) + 20px));
}

.vsp--fast-panel-enter .vsp-panel--active {
    transition-duration: var(--vsp-fast-panel-enter-duration);
}

/* ── Position modifiers ────────────────────────────────────────── */

.vsp-panel--pos-top-left    { top: 10%; left: 17%; }
.vsp-panel--pos-middle-left { top: 50%; left: 17%; --vsp-ty: -50%; }
.vsp-panel--pos-bottom-left { bottom: 10%; left: 17%; }

.vsp-panel--pos-top-right    { top: 10%; right: 5%; }
.vsp-panel--pos-middle-right { top: 50%; right: 5%; --vsp-ty: -50%; }
.vsp-panel--pos-bottom-right { bottom: 10%; right: 5%; }

.vsp-panel--pos-top-center    { top: 10%; left: 50%; --vsp-tx: -50%; }
.vsp-panel--pos-center-center { top: 50%; left: 50%; --vsp-tx: -50%; --vsp-ty: -50%; }
.vsp-panel--pos-bottom-center { bottom: 10%; left: 50%; --vsp-tx: -50%; }

/* Scroll button: mobile only */
.vsp-scroll-btn {
    display: none;
}

/* Desktop: header uses display:contents so icon+headline
   participate directly in the panel's grid */
.vsp-panel__header {
    display: contents;
}

/* Icon — fixed size, stays on first row */
.vsp-panel__icon {
    flex: 0 0 72px;
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vsp-panel__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Text — full width, wraps below icon+headline row */
.vsp-panel__body {
    flex: 0 0 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.vsp-panel__headline {
    flex: 1 1 0;
    min-width: 0;
    font-family: Barlow, SansSerif, sans-serif;
    font-size: 50px !important;
    font-style: normal;
    font-weight: var(--font-weight-light);
    line-height: normal;
}

.vsp-panel__desc {
    font-family: Barlow, SansSerif, sans-serif;
    font-size: var(--text-md) !important;
    font-style: normal;
    font-weight: var(--font-weight-regular);
    line-height: normal;
    color: var(--color-white);
}

.vsp-panel__link {
    font-family: Barlow, SansSerif, sans-serif;
    font-size: 22px;
    font-style: normal;
    font-weight: var(--font-weight-bold);
    line-height: normal;
    color: #FD0;
}


.vsp-panel__link:hover {
    text-shadow: 0 0 12px rgba(255, 221, 0, 0.70);
    text-decoration: none !important;
    transition: text-shadow 0.2s ease;
}

/* ============================================================
   Mobile
   ============================================================ */

@media (max-width: 1024px) {
    .section-video-scroll,
    .vsp-stage,
    .vsp-sticky {
        overscroll-behavior: contain;
        touch-action: none;
    }

    .vsp-timeline {
        display: none;
    }

    /* Override all position modifiers — panel full-width docked to bottom */
    .vsp-panel,
    .vsp-panel--pos-top-left,
    .vsp-panel--pos-middle-left,
    .vsp-panel--pos-bottom-left,
    .vsp-panel--pos-top-right,
    .vsp-panel--pos-middle-right,
    .vsp-panel--pos-bottom-right,
    .vsp-panel--pos-top-center,
    .vsp-panel--pos-center-center,
    .vsp-panel--pos-bottom-center {
        top: auto !important;
        right: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 27px 27px 0 0 !important;
        transform: translateY(30px) !important;
        opacity: 0;
        pointer-events: none;
        padding: 24px 24px 20px !important;
    }

    .vsp-panel--active {
        transform: translateY(0) !important;
        opacity: 1;
        pointer-events: auto;
    }

    .vsp--playing .vsp-panel--active {
        transform: translateY(30px) !important;
        opacity: 0;
        pointer-events: none;
    }

    .vsp--fast-panel-enter .vsp-panel--active {
        transition-duration: var(--vsp-fast-panel-enter-duration);
    }

    /* Panel: flex-col on mobile */
    .vsp-panel {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
    }

    /* Header: flex-row — icon + headline side by side */
    .vsp-panel__header {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 16px !important;
        width: 100% !important;
        min-width: 0 !important;
    }

    .vsp-panel__icon {
        grid-column: unset !important;
        grid-row: unset !important;
        width: 60px !important;
        height: 60px !important;
        flex-shrink: 0 !important;
        align-self: center !important;
    }

    .vsp-panel__headline {
        grid-column: unset !important;
        grid-row: unset !important;
        flex: 1 1 auto !important;
        min-width: 0 !important;
        margin: 0 !important;
        font-size: clamp(25px, 28px, 31px) !important;
        line-height: 1 !important;
        white-space: nowrap !important;
        word-break: normal !important;
        overflow-wrap: normal !important;
        hyphens: none !important;
    }

    .vsp-panel__body {
        grid-column: unset !important;
        grid-row: unset !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
        max-width: none !important;
    }

    .vsp-panel__desc {
        font-size: 18px !important;
    }

    .vsp-scroll-btn {
        display: block !important;
    }

    /* Scroll-down button */
    .vsp-scroll-btn {
        display: block;
        width: 44px;
        height: 44px;
        background: none;
        border: none;
        cursor: pointer;
        margin: 16px auto 0;
        padding: 0;
        flex-shrink: 0;
        transition: transform 0.15s ease;
    }

    .vsp-scroll-btn:active {
        transform: scale(0.92);
    }

    .vsp-scroll-btn img {
        width: 44px;
        height: 44px;
        display: block;
    }
}
