html {
    scroll-behavior: smooth;
}

* {
    scrollbar-width: thin;
    scrollbar-color: rgba(124, 45, 18, 0.55) transparent;
}

::-webkit-scrollbar {
    width: 3px;
    height: 3px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(124, 45, 18, 0.55);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(124, 45, 18, 0.75);
}

[x-cloak] {
    display: none !important;
}

.field-shell {
    width: 100%;
    border: 1px solid rgba(17, 24, 39, 0.2);
    background: #ffffff;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    color: #111827;
    outline: none;
    transition: border-color 0.2s ease;
}

.field-shell:focus,
.field-shell:focus-within {
    border-color: #ca8a04;
}

.select-panel {
    max-height: 16rem;
    overflow-y: auto;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

[data-section] {
    scroll-margin-top: 96px;
}

.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

.work-card img {
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.work-card:hover img {
    transform: scale(1.05);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    height: 2px;
    width: 0;
    background: linear-gradient(90deg, #7c2d12 0%, #ca8a04 100%);
    transition: width 0.25s ease;
}

.nav-link:hover::after,
.nav-link[data-active="true"]::after {
    width: 100%;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .work-card img {
        transition: none;
    }
}
