/* ========================================
   CUSTOM PROPERTIES & RESET
======================================== */
:root {
    --dark: #0D0D0D;
    --light: #F5F4F0;
    --cream: #E8E0C8;
    --accent: #C8FF00;
    --white: #FFFFFF;
    --font-display: 'Clash Display', 'Inter', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scrollbar-width: thin;
    scrollbar-color: var(--accent) var(--dark);
}

html.lenis, html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

body {
    font-family: var(--font-body);
    background: var(--dark);
    color: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: var(--accent);
    color: var(--dark);
}

::-webkit-scrollbar {
    width: 4px;
}
::-webkit-scrollbar-track {
    background: var(--dark);
}
::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 2px;
}
::-webkit-scrollbar-thumb:hover {
    opacity: 0.8;
}

a {
    color: inherit;
    text-decoration: none;
}
img {
    display: block;
    max-width: 100%;
}

/* ========================================
   GRAIN & CURSOR
======================================== */
.grain {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: 10000;
    opacity: 0;
}
.grain::after {
    content: '';
    position: absolute;
    top: -200%; left: -200%; width: 500%; height: 500%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 600'%3E%3Cfilter id='a'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23a)'/%3E%3C/svg%3E");
    background-size: 200px 200px;
    opacity: 0.04;
    animation: grainMove 8s steps(10) infinite;
}
@keyframes grainMove {
    0%, 100% { transform: translate(0, 0); }
    10% { transform: translate(-5%, -10%); }
    20% { transform: translate(-15%, 5%); }
    30% { transform: translate(7%, -25%); }
    40% { transform: translate(-5%, 25%); }
    50% { transform: translate(-15%, 10%); }
    60% { transform: translate(15%, 0%); }
    70% { transform: translate(0%, 15%); }
    80% { transform: translate(3%, 35%); }
    90% { transform: translate(-10%, 10%); }
}

.cursor {
    position: fixed;
    top: 0; left: 0; width: 20px; height: 20px;
    margin: -10px 0 0 -10px;
    border-radius: 50%;
    background: var(--white);
    mix-blend-mode: difference;
    pointer-events: none;
    z-index: 10001;
    opacity: 0;
    will-change: transform;
}
@media (pointer: coarse) { .cursor { display: none !important; } }
body.has-custom-cursor * { cursor: none !important; }

/* ========================================
   NAVIGATION
======================================== */
.nav {
    position: fixed;
    top: 0; left: 0; width: 100%;
    padding: clamp(20px, 3vw, 40px) clamp(24px, 5vw, 80px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 9000;
    mix-blend-mode: difference;
    color: var(--white);
}

.nav__logo {
    font-family: var(--font-display);
    font-size: clamp(20px, 2vw, 24px);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.nav__links {
    display: flex;
    gap: clamp(20px, 3vw, 32px);
}

.nav__link {
    font-family: var(--font-body);
    font-size: clamp(13px, 1.2vw, 15px);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: relative;
    padding: 4px 0;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; width: 0%; height: 1px;
    background: currentColor;
    transition: width 0.3s ease;
}

.nav__link:hover::after, .nav__link.active::after {
    width: 100%;
}

/* ========================================
   LAYOUT UTILITIES & ICONS
======================================== */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(24px, 5vw, 80px);
}
.section-label {
    display: block;
    font-family: var(--font-body);
    font-size: clamp(11px, 1vw, 14px);
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0.4;
    margin-bottom: 16px;
}
.section-title {
    font-family: var(--font-display);
    font-size: clamp(36px, 6vw, 90px);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.02em;
}
.section-subtitle-en {
    font-family: var(--font-body);
    font-size: clamp(14px, 1.5vw, 20px);
    font-weight: 300;
    opacity: 0.35;
    margin-top: 8px;
}
.scramble-char {
    color: var(--accent);
}
.icon-svg {
    fill: currentColor;
    color: var(--accent);
}

/* ========================================
   LOADER
======================================== */
.loader {
    position: fixed;
    inset: 0;
    background: var(--dark);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.loader__text {
    font-family: var(--font-display);
    font-size: clamp(18px, 2vw, 28px);
    font-weight: 500;
    color: var(--white);
    opacity: 0.6;
}
.loader__bar {
    position: absolute;
    bottom: 0; left: 0; height: 3px;
    background: var(--accent);
    width: 0%; transition: width 0.3s ease;
}

/* ========================================
   REDUCED MOTION
======================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
