/* relativity.studio - Complete Design Implementation */

/* Color Palette Reference: #0A0A0A, #141414, #1A1A1A, #2A2A2A, #ABABAB, #FF4D4D, #FFFFFF, #666666 */

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

html {
    scroll-behavior: smooth;
}

body {
    background: #0A0A0A;
    color: #ABABAB;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ============================================================
   Hero Title Sequence - Scroll-Driven Scaling Type
   ============================================================ */

.title-seq {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    position: relative;
}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-outline {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 800;
    font-size: 6vw;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    -webkit-text-stroke: 2px #FFFFFF;
    color: transparent;
    line-height: 1;
    margin: 0;
    transition: font-size 0.1s linear;
    will-change: font-size;
}

.hero-solid {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(1rem, 2.5vw, 2rem);
    color: #FFFFFF;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-top: 0.5rem;
}

.scroll-hint {
    font-size: 0.8rem;
    color: #666666;
    margin-top: 3rem;
    letter-spacing: 0.05em;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ============================================================
   Film Reel Section - Horizontal Scroll with Snap
   ============================================================ */

.reel-section {
    padding: 4rem 0;
    background: #0A0A0A;
}

.section-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: #666666;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0 2rem;
    margin-bottom: 1.5rem;
}

.reel-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: 1.5rem;
    padding: 0 2rem;
    -webkit-overflow-scrolling: touch;
}

.reel-container::-webkit-scrollbar {
    height: 4px;
}

.reel-container::-webkit-scrollbar-track {
    background: #141414;
}

.reel-container::-webkit-scrollbar-thumb {
    background: #2A2A2A;
    border-radius: 2px;
}

.reel-item {
    flex: 0 0 calc(70vw - 1rem);
    aspect-ratio: 16 / 9;
    background: #141414;
    border-radius: 4px;
    scroll-snap-align: start;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.reel-item:hover {
    transform: scale(1.02);
}

.reel-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.reel-overlay {
    position: relative;
    z-index: 2;
    width: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(10, 10, 10, 0.9) 60%);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.reel-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: #FFFFFF;
    text-transform: capitalize;
}

.reel-cat {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: #666666;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ============================================================
   Divider
   ============================================================ */

.divider {
    border-top: 1px solid #2A2A2A;
    margin: 3rem 2rem;
}

/* ============================================================
   Capabilities Grid - 2x2 with Grid Lines
   ============================================================ */

.capabilities-section {
    padding: 4rem 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.cap-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border: 1px solid #2A2A2A;
}

.cap-block {
    padding: 3rem;
    border-right: 1px solid #2A2A2A;
    border-bottom: 1px solid #2A2A2A;
    position: relative;
    transition: background 0.3s ease;
}

.cap-block:hover {
    background: rgba(255, 255, 255, 0.02);
}

.cap-block:nth-child(2n) {
    border-right: none;
}

.cap-block:nth-child(n+3) {
    border-bottom: none;
}

.cap-num {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 500;
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.05);
    display: block;
    margin-bottom: 1rem;
    line-height: 1;
}

.cap-name {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: #FFFFFF;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.cap-desc {
    font-size: 0.9rem;
    color: #ABABAB;
    line-height: 1.6;
}

/* ============================================================
   Process Timeline - Vertical with Growing Line
   ============================================================ */

.process-section {
    padding: 4rem 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.process-timeline {
    position: relative;
    padding-left: 3rem;
}

.process-line {
    position: absolute;
    left: 0;
    top: 0;
    width: 2px;
    background: linear-gradient(180deg, #FF4D4D 0%, #FF4D4D 0%, transparent 100%);
    height: 0;
    transition: height 0.6s ease-out;
}

.process-steps {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.step {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    animation: fadeInUp 0.6s ease-out backwards;
}

.step:nth-child(1) { animation-delay: 0s; }
.step:nth-child(2) { animation-delay: 0.1s; }
.step:nth-child(3) { animation-delay: 0.2s; }
.step:nth-child(4) { animation-delay: 0.3s; }

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

.step-num {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 500;
    font-size: 1rem;
    color: #FF4D4D;
    min-width: 32px;
    flex-shrink: 0;
}

.step-info {
    flex: 1;
}

.step-name {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: #FFFFFF;
    margin-bottom: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.step-desc {
    font-size: 0.9rem;
    color: #ABABAB;
    line-height: 1.6;
}

/* ============================================================
   Credits Footer
   ============================================================ */

.credits-section {
    text-align: center;
    padding: 5rem 2rem;
    border-top: 1px solid #2A2A2A;
}

.credits-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 800;
    font-size: clamp(2rem, 5vw, 3.5rem);
    -webkit-text-stroke: 1px #FFFFFF;
    color: transparent;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    line-height: 1;
}

.credits-email {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: #ABABAB;
    margin-bottom: 0.5rem;
    letter-spacing: 0.02em;
}

.credits-tagline {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.8rem;
    color: #666666;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ============================================================
   Responsive Design
   ============================================================ */

@media (max-width: 768px) {
    .title-seq {
        min-height: 80vh;
        padding: 1rem;
    }

    .hero-outline {
        font-size: 5vw;
    }

    .hero-solid {
        font-size: clamp(0.9rem, 2vw, 1.5rem);
    }

    .cap-grid {
        grid-template-columns: 1fr;
    }

    .cap-block {
        border-right: none;
        border-bottom: 1px solid #2A2A2A;
    }

    .cap-block:last-child {
        border-bottom: none;
    }

    .cap-block {
        padding: 2rem;
    }

    .cap-num {
        font-size: 2.5rem;
    }

    .reel-item {
        flex: 0 0 85vw;
    }

    .reel-container {
        padding: 0 1rem;
    }

    .reel-overlay {
        padding: 1.5rem;
    }

    .reel-title {
        font-size: 1rem;
    }

    .process-timeline {
        padding-left: 2.5rem;
    }

    .process-steps {
        gap: 2rem;
    }

    .step {
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-outline {
        font-size: 4vw;
    }

    .title-seq {
        padding: 1rem;
    }

    .scroll-hint {
        margin-top: 2rem;
        font-size: 0.7rem;
    }

    .cap-block {
        padding: 1.5rem;
    }

    .cap-num {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

    .cap-name {
        font-size: 0.95rem;
    }

    .cap-desc {
        font-size: 0.8rem;
    }

    .reel-item {
        flex: 0 0 90vw;
    }

    .section-label {
        padding: 0 1rem;
    }

    .reel-overlay {
        padding: 1rem;
    }

    .reel-title {
        font-size: 0.95rem;
    }

    .credits-title {
        font-size: 2rem;
    }

    .step-num {
        font-size: 0.9rem;
    }

    .step-name {
        font-size: 0.9rem;
    }

    .step-desc {
        font-size: 0.8rem;
    }
}
