@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;700&family=Manrope:wght@400;600;800&family=Montserrat:wght@400;500;700;800&display=swap');

:root {
    --bg-color: #f0f0f0;
    --text-color: #010203;
    --accent-bg: #f0f0f0;
    --grid-line: rgba(1, 2, 3, 0.05); /* Subtle grid for the "white" theme */
    --safe-area-top: env(safe-area-inset-top, 0px);
    --safe-area-bottom: env(safe-area-inset-bottom, 0px);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
    max-width: 100%;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Manrope', sans-serif;
    overflow-x: hidden;
    max-width: 100%;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    position: relative;
}

@media (min-width: 769px) {
    body {
        cursor: none;
    }
}

/* --- GRID OVERLAY --- */
.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    z-index: -1;
    pointer-events: none;
}

@media (min-width: 768px) {
    .grid-overlay {
        grid-template-columns: repeat(4, 1fr);
    }
}

.grid-line {
    border-right: 1px solid var(--grid-line);
    height: 100%;
}

/* --- CUSTOM CURSOR --- */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
    display: none;
}

@media (pointer: fine) {
    .cursor-dot,
    .cursor-outline {
        display: block;
    }
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: #f0f0f0;
    mix-blend-mode: difference;
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid #f0f0f0;
    transition: width 0.2s, height 0.2s, border-color 0.2s;
    mix-blend-mode: difference;
}

/* --- NAVIGATION & FIXED ELEMENTS --- */
nav, .fixed-inverted {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 4000; /* Higher than menu-overlay */
    mix-blend-mode: difference;
    color: #f0f0f0;
}

.hamburger {
    position: fixed;
    right: 2rem;
    top: 2.2rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 5000; /* Absolute top */
}

.hamburger div {
    width: 30px;
    height: 2px;
    background: #f0f0f0;
    transition: 0.3s cubic-bezier(0.85, 0, 0.15, 1);
}

.menu-overlay {
    position: fixed;
    inset: 0;
    background: #010203;
    z-index: 2500;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateY(-100%);
    transition: transform 0.8s cubic-bezier(0.85, 0, 0.15, 1);
}

.menu-overlay.open {
    transform: translateY(0);
}

.menu-links {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
}

.menu-link-large {
    font-size: 5vw;
    font-weight: 800;
    text-transform: uppercase;
    text-decoration: none;
    color: #f0f0f0;
    line-height: 1;
    overflow: hidden;
}

.menu-link-large span {
    display: block;
    transition: transform 0.5s ease;
}

.menu-link-large:hover span {
    transform: translateY(-10%) skewY(-2deg);
}

.menu-sub-links {
    display: flex;
    gap: 2rem;
    margin-top: 4rem;
    flex-wrap: wrap;
    justify-content: center;
}

.menu-sub-link {
    font-size: 0.75rem;
    font-family: monospace;
    text-transform: uppercase;
    color: rgba(240, 240, 240, 0.4);
    text-decoration: none;
    letter-spacing: 0.2em;
}

.menu-sub-link:hover {
    color: #f0f0f0;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, .heading-xl {
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: -0.04em;
    line-height: 0.9;
}

.serif-accent {
    font-family: 'Cinzel', serif;
}

.text-reveal {
    overflow: hidden;
}

.text-reveal span {
    display: block;
    transform: translateY(100%);
}

/* --- LOADER --- */
.loader {
    position: fixed;
    inset: 0;
    background: #010203;
    color: #f0f0f0;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 10vw;
    font-weight: 800;
    text-transform: uppercase;
}

/* --- SHARED COMPONENTS --- */
.section {
    padding: 10rem 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (max-width: 768px) {
    .section {
        padding: 6rem 1rem;
        min-height: auto;
    }
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 768px) {
    .container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

.marquee-container {
    overflow: hidden;
    white-space: nowrap;
    padding: 4rem 0;
    border-top: 1px solid var(--grid-line);
    border-bottom: 1px solid var(--grid-line);
}

@media (max-width: 768px) {
    .marquee-container {
        padding: 2rem 0;
    }
}

.marquee-content {
    display: inline-block;
    font-size: 8vw;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1;
}

.btn-theon {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: inherit;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .btn-theon {
        font-size: 0.75rem;
        gap: 0.5rem;
    }
}

.btn-theon .line {
    width: 40px;
    height: 2px;
    background: currentColor;
    transition: width 0.3s ease;
}

.btn-theon:hover .line {
    width: 80px;
}

/* --- UTILITIES --- */
.bg-dark { background-color: #010203; color: #f0f0f0; }
.text-white { color: #f0f0f0; }
.text-black { color: #010203; }

/* --- MOBILE RESPONSIVE FIXES --- */
@media (max-width: 768px) {
    nav, .fixed-inverted {
        padding: 1rem;
    }
    
    .hamburger {
        right: 1rem;
        top: 1.2rem;
    }
    
    .menu-link-large {
        font-size: 8vw;
    }
    
    .menu-sub-links {
        gap: 1rem;
        margin-top: 2rem;
        padding: 0 1rem;
    }
    
    .menu-sub-link {
        font-size: 0.65rem;
    }
}

