/* ============================================
   Volume One — Global Styles
   ============================================ */

:root {
    --black: #000000;
    --white: #ffffff;
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #e5e5e5;
    --gray-300: #d4d4d4;
    --gray-400: #a3a3a3;
    --gray-500: #737373;
    --gray-600: #525252;
    --gray-700: #404040;
    --gray-800: #262626;
    --gray-900: #171717;
    --gray-950: #0a0a0a;
    
    --accent: #e5e5e5;
    --accent-dim: rgba(229, 229, 229, 0.1);
    
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    
    --container: 1400px;
    --gutter: clamp(24px, 4vw, 80px);
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background: var(--black);
    color: var(--white);
    overflow-x: hidden;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

img, video {
    display: block;
    max-width: 100%;
}

::selection {
    background: var(--white);
    color: var(--black);
}

/* ============================================
   Cursor Glow
   ============================================ */

.cursor-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
    opacity: 0;
}

body:hover .cursor-glow {
    opacity: 1;
}

/* ============================================
   Navigation
   ============================================ */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 var(--gutter);
    transition: all 0.5s var(--ease-out-expo);
}

.nav.scrolled {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.nav-inner {
    max-width: var(--container);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav.scrolled .nav-inner {
    border-bottom-color: transparent;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-link {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--gray-400);
    letter-spacing: 0.02em;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--white);
    transition: width 0.4s var(--ease-out-expo);
}

.nav-link:hover {
    color: var(--white);
}

.nav-link:hover::after {
    width: 100%;
}

/* ============================================
   Hero
   ============================================ */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: flex-end;
    padding: 0 var(--gutter);
    padding-bottom: clamp(60px, 10vh, 120px);
    overflow: hidden;
}

.hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-video, .hero-fallback {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-fallback {
    background: var(--black);
}

.hero-grain {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    background-repeat: repeat;
    opacity: 0.5;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: 
        linear-gradient(180deg, rgba(0,0,0,0.3) 0%, transparent 30%),
        linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.9) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: var(--container);
    width: 100%;
    margin: 0 auto;
}

.hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
    opacity: 0;
    animation: fadeUp 1s var(--ease-out-expo) 0.3s forwards;
}

.eyebrow-line {
    display: block;
    width: 40px;
    height: 1px;
    background: var(--gray-500);
}

.eyebrow-text {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gray-400);
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 7vw, 6rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 28px;
}

.title-line {
    display: block;
    opacity: 0;
    transform: translateY(40px);
    animation: fadeUp 1s var(--ease-out-expo) forwards;
}

.title-line:nth-child(1) { animation-delay: 0.5s; }
.title-line:nth-child(2) { animation-delay: 0.7s; }

.hero-sub {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    font-weight: 300;
    color: var(--gray-400);
    max-width: 560px;
    line-height: 1.7;
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeUp 1s var(--ease-out-expo) 0.9s forwards;
}

.hero-cta {
    display: flex;
    gap: 16px;
    opacity: 0;
    animation: fadeUp 1s var(--ease-out-expo) 1.1s forwards;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    padding: 14px 32px;
    background: var(--white);
    color: var(--black);
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    border-radius: 0;
    transition: all 0.4s var(--ease-out-expo);
}

.btn-primary:hover {
    background: var(--gray-200);
    transform: translateY(-2px);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    padding: 14px 32px;
    background: transparent;
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s var(--ease-out-expo);
}

.btn-ghost:hover {
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* Hero scroll indicator */
.hero-scroll {
    position: absolute;
    bottom: 40px;
    right: var(--gutter);
    z-index: 2;
    opacity: 0;
    animation: fadeIn 1s var(--ease-out-expo) 1.5s forwards;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(180deg, var(--gray-500), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

/* ============================================
   Marquee
   ============================================ */

.marquee-section {
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.marquee {
    position: relative;
    width: 100%;
}

.marquee-track {
    display: flex;
    align-items: center;
    gap: 40px;
    animation: marquee 30s linear infinite;
    white-space: nowrap;
    width: max-content;
}

.marquee-track span {
    font-family: var(--font-display);
    font-size: clamp(0.875rem, 1.2vw, 1rem);
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gray-500);
}

.marquee-dot {
    display: inline-block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--gray-600);
    flex-shrink: 0;
}

/* ============================================
   Sections — Shared
   ============================================ */

.section-container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.section-header {
    margin-bottom: clamp(48px, 6vw, 80px);
}

.section-number {
    display: block;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--gray-600);
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.section-desc {
    font-size: 1.125rem;
    font-weight: 300;
    color: var(--gray-400);
    max-width: 500px;
}

/* ============================================
   Work / Portfolio
   ============================================ */

.work {
    padding: clamp(80px, 12vw, 160px) 0;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.work-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.work-item-large {
    grid-column: span 2;
}

.work-item-wide {
    grid-column: span 2;
}

.work-media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
}

.work-item-large .work-media {
    aspect-ratio: 21/9;
}

.work-placeholder {
    position: absolute;
    inset: 0;
    background: var(--gray-950);
    border: 1px solid rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.6s var(--ease-out-expo);
}

.work-placeholder span {
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: var(--gray-600);
    letter-spacing: 0.05em;
}

.work-item:hover .work-placeholder {
    border-color: rgba(255, 255, 255, 0.08);
    background: var(--gray-900);
}

.work-info {
    padding: 20px 0;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}

.work-title {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 500;
}

.work-category {
    font-size: 0.8125rem;
    color: var(--gray-500);
    font-weight: 400;
}

/* ============================================
   About
   ============================================ */

.about {
    padding: clamp(80px, 12vw, 160px) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: clamp(40px, 6vw, 120px);
}

.about-text {
    font-size: 1rem;
    font-weight: 300;
    color: var(--gray-400);
    line-height: 1.8;
    margin-bottom: 24px;
}

.about-text-large {
    font-size: clamp(1.125rem, 1.8vw, 1.375rem);
    color: var(--gray-200);
    line-height: 1.7;
    margin-bottom: 32px;
}

.about-stats {
    display: flex;
    gap: clamp(32px, 4vw, 64px);
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 600;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.8125rem;
    color: var(--gray-500);
    letter-spacing: 0.05em;
}

/* ============================================
   Services
   ============================================ */

.services {
    padding: clamp(80px, 12vw, 160px) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.services-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

.service-item {
    display: grid;
    grid-template-columns: 60px 1fr 1.5fr;
    gap: 40px;
    align-items: start;
    padding: 40px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.4s var(--ease-out-expo);
}

.service-item:first-child {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.service-item:hover {
    padding-left: 16px;
}

.service-number {
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: var(--gray-600);
    padding-top: 4px;
}

.service-title {
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 2vw, 1.75rem);
    font-weight: 500;
    letter-spacing: -0.01em;
}

.service-desc {
    font-size: 0.9375rem;
    font-weight: 300;
    color: var(--gray-500);
    line-height: 1.7;
    max-width: 400px;
}

/* ============================================
   Contact
   ============================================ */

.contact {
    padding: clamp(100px, 15vw, 200px) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.contact-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 6vw, 120px);
    align-items: start;
}

.contact-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.contact-text {
    font-size: 1.125rem;
    font-weight: 300;
    color: var(--gray-400);
    margin-bottom: 32px;
    line-height: 1.7;
}

.contact-email {
    display: inline-block;
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    font-weight: 500;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    margin-bottom: 40px;
}

.contact-email:hover {
    border-bottom-color: var(--white);
}

.contact-links {
    display: flex;
    gap: 24px;
}

.contact-social {
    font-size: 0.875rem;
    color: var(--gray-500);
    transition: color 0.3s ease;
}

.contact-social:hover {
    color: var(--white);
}

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

.footer {
    padding: 32px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-500);
}

.footer-copy {
    font-size: 0.75rem;
    color: var(--gray-600);
}

/* ============================================
   Animations
   ============================================ */

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scrollPulse {
    0%, 100% { opacity: 1; transform: scaleY(1); }
    50% { opacity: 0.3; transform: scaleY(0.6); transform-origin: top; }
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Reveal animations */
[data-reveal] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

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

@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .contact-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .service-item {
        grid-template-columns: 40px 1fr;
        gap: 20px;
    }
    
    .service-desc {
        grid-column: 2;
    }
}

@media (max-width: 768px) {
    .nav-links {
        gap: 24px;
    }
    
    .work-grid {
        grid-template-columns: 1fr;
    }
    
    .work-item-large,
    .work-item-wide {
        grid-column: span 1;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .about-stats {
        flex-wrap: wrap;
    }
    
    .service-item {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .service-number {
        display: none;
    }
    
    .service-desc {
        grid-column: 1;
    }
}

@media (max-width: 480px) {
    .nav-links {
        gap: 16px;
    }
    
    .nav-link {
        font-size: 0.8125rem;
    }
    
    .hero-scroll {
        display: none;
    }
}