:root {
    --bg-deep: #0e0e10;
    --surface: #1a1a1e;
    --surface-pressed: #151517;
    --gray-mid: #3a3a42;
    --gray-light: #8a8a96;
    --near-white: #e8e8ec;
    --pure-white: #f5f5f7;
    --accent-blue: #4a7cff;
    --shadow-light: rgba(30, 30, 35, 0.7);
    --shadow-dark: rgba(4, 4, 5, 0.9);
    --radius: 16px;
    --transition-ease: cubic-bezier(0.16, 1, 0.3, 1);
    --transition-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg-deep);
    color: var(--near-white);
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 0.95rem;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Noise Overlay */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 200px 200px;
}

/* Scroll Progress */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 24px;
    width: 2px;
    height: 0%;
    background: var(--accent-blue);
    z-index: 1000;
    transition: none;
}

/* Wordmark */
.wordmark {
    position: fixed;
    top: 32px;
    left: 48px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    color: var(--gray-light);
    text-decoration: none;
    z-index: 1000;
    text-transform: lowercase;
}

.wordmark:hover {
    color: var(--pure-white);
}

/* Acts */
.act {
    position: relative;
    width: 100%;
}

/* Act 1 */
.act-1 {
    height: 100vh;
    display: flex;
    align-items: center;
    padding-left: 12vw;
}

.act-1-content {
    opacity: 0;
    transform: translateY(20px);
    animation: heroReveal 800ms var(--transition-ease) 400ms forwards;
}

@keyframes heroReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-word {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(4rem, 12vw, 11rem);
    letter-spacing: -0.03em;
    line-height: 0.9;
    color: var(--near-white);
}

.hero-subtitle {
    margin-top: 3rem;
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 0.95rem;
    color: var(--gray-light);
}

/* Act 2 */
.act-2 {
    padding: 20vh 0;
    min-height: 200vh;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}

.statement {
    padding: 10vh 12vw;
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 800ms var(--transition-ease), transform 800ms var(--transition-ease), color 600ms ease;
}

.statement.visible {
    opacity: 1;
    transform: translateX(0);
}

.statement h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1.15;
    color: var(--gray-light);
    transition: color 600ms ease;
}

.statement.visible h2 {
    color: var(--near-white);
}

.statement-2 {
    padding-left: 20vw;
    transform: translateX(30px);
}

.statement-2.visible {
    transform: translateX(0);
}

.statement-3 {
    padding-left: 16vw;
}

/* Act 3 */
.act-3 {
    padding: 15vh 12vw;
    max-width: 900px;
}

.section-rule {
    width: 60%;
    height: 1px;
    background: var(--gray-mid);
    margin-bottom: 8vh;
}

.card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 3rem;
    margin-bottom: 3rem;
    box-shadow: -6px -6px 16px var(--shadow-light), 6px 6px 16px var(--shadow-dark);
    transition: transform 300ms var(--transition-spring), box-shadow 300ms var(--transition-spring);
    opacity: 0;
    transform: translateY(20px);
}

.card.visible {
    opacity: 1;
    transform: translateY(0);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: -8px -8px 20px var(--shadow-light), 8px 8px 20px var(--shadow-dark);
}

.card-even {
    margin-left: auto;
}

.card-category {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gray-light);
    display: block;
    margin-bottom: 1rem;
}

.card-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    color: var(--near-white);
    margin-bottom: 0.75rem;
}

.card-desc {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 0.95rem;
    color: var(--gray-light);
    line-height: 1.6;
}

/* Act 4 */
.act-4 {
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 15vh 12vw;
}

.signal-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    background: linear-gradient(135deg, #1a1a2e 0%, #0e0e10 40%, #1a1a2e 70%, #0e0e10 100%);
    filter: grayscale(100%) contrast(1.2) brightness(0.7);
    transform: translateY(var(--signal-parallax, 0px));
}

.signal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    background: var(--accent-blue);
    mix-blend-mode: screen;
    opacity: 0.2;
    pointer-events: none;
}

.signal-text {
    position: relative;
    z-index: 2;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 4rem);
    color: var(--pure-white);
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.6);
    max-width: 600px;
}

/* Act 5 */
.act-5 {
    height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-link {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(1.5rem, 4vw, 3rem);
    color: var(--near-white);
    text-decoration: none;
    position: relative;
}

.contact-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-blue);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 400ms var(--transition-ease);
}

.contact-link:hover::after {
    transform: scaleX(1);
}

/* Responsive */
@media (max-width: 768px) {
    .act-1 {
        padding-left: 6vw;
    }

    .hero-word {
        font-size: clamp(2.5rem, 10vw, 4rem);
    }

    .statement {
        padding: 8vh 6vw;
    }

    .statement-2 {
        padding-left: 6vw;
    }

    .statement-3 {
        padding-left: 6vw;
    }

    .act-3 {
        padding: 10vh 6vw;
        max-width: 100%;
    }

    .card-even {
        margin-left: 0;
    }

    .act-4 {
        padding: 10vh 6vw;
    }

    .wordmark {
        left: 24px;
        top: 20px;
    }

    .scroll-progress {
        left: 12px;
    }
}
