:root {
    color-scheme: light;
}

html {
    scroll-behavior: smooth;
}

body {
    text-rendering: optimizeLegibility;
}

.floating-orb {
    animation: drift 14s ease-in-out infinite;
}

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
    will-change: opacity, transform;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.icon-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 3rem;
    width: 3rem;
    border-radius: 9999px;
    background: linear-gradient(135deg, #b78b2d, #6f6f75);
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.social-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 3rem;
    width: 3rem;
    border-radius: 9999px;
    border: 1px solid #e2e8f0;
    color: #334155;
    transition: transform 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.social-chip:hover {
    transform: translateY(-2px);
    border-color: #e5cf92;
    color: #946c1e;
    box-shadow: 0 16px 30px -18px rgba(183, 139, 45, 0.4);
}

.portfolio-window {
    position: relative;
    overflow: hidden;
}

.portfolio-window::after {
    content: "";
    position: absolute;
    inset: auto -20% -50% auto;
    height: 9rem;
    width: 9rem;
    border-radius: 9999px;
    background: radial-gradient(circle, rgba(183, 139, 45, 0.18), rgba(183, 139, 45, 0));
}

@keyframes drift {
    0%,
    100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
        transform: translate3d(0, 18px, 0) scale(1.04);
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .floating-orb,
    .reveal,
    .social-chip {
        animation: none !important;
        transition: none !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}