:root {
    /* Impeccable Design: High-Performance Electric Blue */
    --bg-base: oklch(14% 0.01 250); /* Deep blue-tinted charcoal */
    --bg-surface: oklch(18% 0.01 250);
    --bg-deep: oklch(10% 0.01 250);
    --text-main: oklch(98% 0.005 250); /* Tinted off-white */
    --text-muted: oklch(80% 0.01 250); /* Brighter muted for readability */
    --neon: oklch(65% 0.20 250); /* Electric Blue */
    --grid-line: oklch(100% 0 0 / 0.06);
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    background: radial-gradient(circle at top right, #0a1128, #010101);
    background-attachment: fixed;
    color: var(--text-main);
    font-family: 'Mona Sans', sans-serif;
    font-variation-settings: 'wdth' 100, 'wght' 400; /* Standard readable body text */
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

::selection {
    background: var(--neon);
    color: var(--text-main);
}

/* Visible Grid System */
.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    pointer-events: none;
    z-index: 50;
}

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

.grid-column:first-child {
    border-left: 1px solid var(--grid-line);
}

/* Typography - Better readability on headings */
h1, h2, h3 {
    font-variation-settings: 'wdth' 115, 'wght' 800; /* Slightly less extreme for readability */
    text-transform: uppercase;
    line-height: 0.95;
    letter-spacing: -0.03em;
}

.text-neon { color: var(--neon); }
.text-muted { color: var(--text-muted); }

/* Reveal Component Styles */
.hero-section {
    position: relative;
    height: 250vh;
    width: 100%;
}

.hero-sticky {
    position: sticky;
    top: 0;
    height: 100vh; /* Fallback */
    height: 100dvh; /* Modern mobile fix */
    width: 100%;
    overflow: hidden;
}

.hero-img-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-deep);
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: contrast(1.05) brightness(0.85);
    opacity: 0.7; /* Blend with background */
}

.dirty-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    transform-origin: center center;
}

.clean-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    /* Angled wipe start state (offscreen left) */
    clip-path: polygon(0% 0%, 0% 0%, -20% 100%, -20% 100%);
}

.clean-layer .hero-img {
    filter: contrast(1.1) brightness(0.95);
    opacity: 1;
    transform-origin: center center;
}

/* Content Overlays */
.hero-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 5vw;
}

.blur-backdrop {
    position: absolute;
    inset: 0;
    z-index: 5;
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    mask-image: linear-gradient(to right, black 0%, rgba(0,0,0,0.8) 40%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, black 0%, rgba(0,0,0,0.8) 40%, transparent 100%);
    pointer-events: none;
    opacity: 0;
    will-change: opacity;
}

/* Buttons - Glassmorphic Pill with Radial Hover */
.btn-norris {
    position: relative;
    overflow: hidden;
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 0.8rem;
    font-variation-settings: 'wght' 800;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: white;
    background: rgba(10, 10, 10, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 9999px; /* Perfect pill shape */
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: all 0.3s ease;
    cursor: pointer;
    z-index: 1;
}

.btn-norris::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle 80px at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.15), transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: -1;
}

.btn-norris:hover::before {
    opacity: 1;
}

.btn-norris:hover {
    color: var(--neon);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Performance Sliders */
.horizontal-section {
    background: var(--bg-deep);
    display: flex;
}

.slide {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 10vw;
    position: relative;
}

/* Desktop specific horizontal slide borders */
@media (min-width: 768px) {
    .slide {
        border-right: 1px solid var(--grid-line);
    }
}

/* Mobile specific vertical stack borders */
@media (max-width: 767px) {
    .slide {
        border-bottom: 1px solid var(--grid-line);
    }
    .slide:last-child {
        border-bottom: none;
    }
}

.number-tag {
    font-variation-settings: 'wght' 200;
    font-size: 6rem;
    opacity: 0.05;
    position: absolute;
    top: 5vh;
    right: 5vw;
    user-select: none;
}

@media (min-width: 768px) {
    .number-tag {
        font-size: 8rem;
    }
}

/* Scroll Progress */
.scroll-indicator {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.75rem;
    font-variation-settings: 'wght' 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

@media (min-width: 768px) {
    .scroll-indicator {
        bottom: 40px;
        right: 40px;
    }
}

.progress-bar {
    width: 80px;
    height: 2px;
    background: rgba(255,255,255,0.05);
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .progress-bar {
        width: 120px;
    }
}

.progress-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: var(--neon);
    width: 0%;
}

.hairline-bottom { border-bottom: 1px solid var(--grid-line); }

/* Custom Scrollbar for Modal Content */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: var(--neon);
    border-radius: 10px;
}
.custom-scrollbar {
    scrollbar-width: thin;
    scrollbar-color: var(--neon) transparent;
}
