.scroll-nav {
    /* base = over a DARK section -> light ink (matches the dark hero at top) */
    --nav-label: #9fb2d6;
    --nav-label-strong: #ffffff;
    --nav-dot: rgba(255, 255, 255, .28);
    --nav-dot-hover: rgba(255, 255, 255, .6);

    position: fixed;
    top: 45%;
    right: clamp(20px, 3vw, 48px);
    transform: translateY(-50%);
    z-index: 50;
}

/* over a LIGHT section -> dark ink */
.scroll-nav.is-on-light {
    --nav-label: #5a6577;
    --nav-label-strong: #0b1220;
    --nav-dot: rgba(0, 0, 0, .30);
    --nav-dot-hover: rgba(0, 0, 0, .6);
}

.scroll-nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-end;
}

.scroll-nav__link {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    text-decoration: none;
    cursor: pointer;
    padding: 4px 0 4px 24px;
}


.scroll-nav__label {
    font-size: 13px;
    color: var(--nav-label);
    white-space: nowrap;
    opacity: 0;
    line-height: 1;
    padding-bottom: 1px;
    transform: translateX(8px);
    transition: opacity .25s ease, transform .25s ease, color .25s ease;
    pointer-events: none;
}

.scroll-nav__label b {
    color: var(--nav-label-strong);
    font-weight: 600;
    margin-right: 2px;
    transition: color .25s ease;
}

.scroll-nav__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--nav-dot);
    flex-shrink: 0;
    transition: width .25s ease, height .25s ease, background .25s ease,
        border-color .25s ease, box-shadow .25s ease;
}

/* reveal on hover */
.scroll-nav__link:hover .scroll-nav__label {
    opacity: 1;
    transform: none;
}

.scroll-nav__link:hover .scroll-nav__dot {
    background: var(--nav-dot-hover);
}


.scroll-nav__link.is-active .scroll-nav__label {
    opacity: 1;
    transform: none;
}

.scroll-nav__link.is-active .scroll-nav__dot {
    position: relative;
    background: var(--red);
    border: none;
    box-shadow: none;
}

.scroll-nav__link.is-active .scroll-nav__dot::after {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid var(--red);
    pointer-events: none;
}

/* visible keyboard focus */
.scroll-nav__link:focus-visible {
    outline: 2px solid #d6467a;
    outline-offset: 2px;
    border-radius: 6px;
}


@media (max-width: 991px) {
    .scroll-nav {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {

    .scroll-nav__label,
    .scroll-nav__label b,
    .scroll-nav__dot {
        transition: none;
    }
}