/* This rail belongs to the first native scroll scene, not the viewport. */
.contact-intro {
    position: absolute;
    top: max(24px, env(safe-area-inset-top));
    left: max(24px, env(safe-area-inset-left));
    z-index: 5;
    width: max-content;
    color: #9d96a9;
    pointer-events: auto;
}

.contact-intro[hidden],
html[data-bubble-entry]:not([data-bubble-entry="revealed"]):not([data-bubble-entry="done"]) .contact-intro,
html[data-portfolio-works="open"] .contact-intro {
    display: none;
}

.contact-intro ul {
    display: flex;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.contact-intro a {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: inherit;
    text-decoration: none;
    touch-action: manipulation;
    transition: color 160ms ease;
}

.contact-intro a:hover {
    color: #e4dfed;
}

.contact-intro a:focus-visible {
    outline: 2px solid #c5adff;
    outline-offset: 0;
    color: #e4dfed;
}

.contact-intro svg {
    display: block;
    width: 15px;
    height: 15px;
    pointer-events: none;
}

/* Transparent touch targets stay clear of the top-right music control. */
@media (max-width: 480px) {
    .contact-intro ul {
        display: grid;
        grid-template-columns: repeat(2, 44px);
        gap: 0;
    }

}

@media (prefers-reduced-motion: reduce) {
    .contact-intro a { transition: none; }
}
