/* Global Typography & Reset */
:root {
    --font-primary: 'Helvetica Neue', 'Helvetica', 'Arial', 'PingFang SC', 'Hiragino Sans GB', 'Heiti SC', sans-serif;
    --font-serif: 'Georgia', 'Times New Roman', serif;
    --color-gold: #D4AF37;
    --color-black: #0d0d0d;
    --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
}

body {
    font-family: var(--font-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: #F8F8F8;
    color: var(--color-black);
    overflow-x: hidden;
}

/* Custom Selection Style */
::selection {
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
}

/* Minimalist Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* Utility Animations */
.fade-enter {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s var(--ease-out-expo) forwards;
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover Effects */
.hover-scale {
    transition: transform 0.6s var(--ease-out-expo), filter 0.4s ease;
    will-change: transform;
}
.group:hover .hover-scale {
    transform: scale(1.03);
}

/* Navigation Line Animation */
.nav-line {
    position: relative;
    display: inline-block;
}
.nav-line::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 50%;
    background-color: currentColor;
    transition: width 0.4s ease, left 0.4s ease;
}
.nav-line:hover::after,
.nav-line.active::after {
    width: 100%;
    left: 0;
}

/* Parallax Utilities */
.parallax-section {
    position: relative;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    will-change: transform;
}

/* Modal Transitions */
.modal-overlay {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: opacity 0.4s ease;
}

/* Loader */
.loader-spinner {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(0,0,0,0.1);
    border-left-color: var(--color-black);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin { 100% { transform: rotate(360deg); } }

/* Story Page Typography */
.text-serif {
    font-family: var(--font-serif);
}

/* Custom Cursor (Optional for Desktop) */
@media (min-width: 1024px) {
    .custom-cursor {
        cursor: none;
    }
    .cursor-dot {
        pointer-events: none;
        position: fixed;
        width: 10px;
        height: 10px;
        background: #000;
        border-radius: 50%;
        transform: translate(-50%, -50%);
        z-index: 9999;
        transition: width 0.3s, height 0.3s, background 0.3s;
    }
}