:root {
    /* Colors */
    --color-black: #000000;
    --color-white: #ffffff;
    --color-grey-light: #f5f5f5;
    --color-grey-medium: #666666;
    --color-grey-dark: #333333;
    
    /* Typography */
    --font-headline: 'Cormorant Garamond', serif;
    --font-subhead: 'Crimson Pro', serif;
    --font-body: 'Crimson Pro', serif;
    --font-ui: 'Nunito', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    /* Layout */
    --max-width: 1400px;
    --content-width: 900px;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--color-grey-dark);
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headline);
    font-weight: 400;
    line-height: 1.2;
    color: var(--color-black);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: var(--spacing-md);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: var(--spacing-md);
}

h3 {
    font-family: var(--font-subhead);
    font-weight: 300;
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    margin-bottom: var(--spacing-sm);
}

.subhead {
    font-family: var(--font-subhead);
    font-weight: 300;
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    line-height: 1.6;
    color: var(--color-grey-medium);
}

p {
    margin-bottom: var(--spacing-sm);
}

a {
    color: var(--color-black);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.6;
}

/* Navigation */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--color-black);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-black);
    z-index: 1000;
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--spacing-sm) var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.logo-name {
    font-family: var(--font-ui);
    font-weight: 300;
    font-size: 1.25rem;
    letter-spacing: 0.1em;
    color: var(--color-white);
}

.logo-tagline {
    font-family: var(--font-ui);
    font-weight: 300;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: var(--spacing-md);
    font-family: var(--font-ui);
    font-weight: 300;
    font-size: 0.9rem;
}

.nav-links a {
    color: var(--color-white);
    text-decoration: none;
    transition: opacity 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    opacity: 0.7;
}

/* Hero Carousel */
.hero-carousel {
    position: relative;
    width: 100%;
    height: 100vh;
    margin-top: 4rem;
    overflow: hidden;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.carousel-item.active {
    opacity: 1;
    pointer-events: auto;
}

.carousel-video-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.carousel-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-family: var(--font-ui);
    font-size: 0.875rem;
    text-align: center;
    line-height: 1.6;
}

.carousel-text {
    position: absolute;
    bottom: 10%;
    left: 5%;
    text-align: left;
    width: 90%;
    max-width: 800px;
    z-index: 10;
}

.carousel-text h2 {
    font-family: var(--font-headline);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    color: var(--color-white);
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
    margin: 0;
}

/* Carousel Controls */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.3);
    border: none;
    width: 3rem;
    height: 3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    z-index: 20;
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.5);
}

.carousel-btn.prev {
    left: 2rem;
}

.carousel-btn.next {
    right: 2rem;
}

.carousel-indicators {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    z-index: 20;
}

.indicator {
    width: 2rem;
    height: 2px;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
    padding: 0;
}

.indicator.active {
    background: rgba(255, 255, 255, 1);
}


/* Main Content */
.home-content {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: var(--spacing-xl) var(--spacing-md);
}

.hero-text {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.divider {
    height: 1px;
    background: #cccccc;
    margin: var(--spacing-xl) 0;
}

/* Services */
.services {
    display: grid;
    gap: var(--spacing-md);
}

.service-card h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    line-height: 1.5;
    margin-bottom: var(--spacing-sm);
}

.service-link {
    display: inline-block;
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 1.125rem;
    color: rgba(51, 51, 51, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
}

.service-link:hover {
    text-decoration: underline;
    opacity: 1;
}

/* Contact Section */
.contact-section {
    text-align: center;
}

.contact-section h2 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    font-weight: 300;
}

.email-link {
    display: inline-block;
    font-size: 1.125rem;
    text-decoration: none;
}

/* Footer */
.main-footer {
    background-color: var(--color-black);
    color: var(--color-white);
    padding: var(--spacing-md);
    margin-top: var(--spacing-xl);
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
    text-align: center;
    font-family: var(--font-ui);
    font-size: 0.875rem;
    color: var(--color-grey-medium);
}

/* Project Pages */
.project-page {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: calc(4rem + var(--spacing-xl)) var(--spacing-md) var(--spacing-xl);
}

.project-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.project-subhead {
    max-width: 700px;
    margin: 0 auto;
}

.video-section {
    margin: var(--spacing-xl) 0;
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background: var(--color-grey-light);
    margin-bottom: var(--spacing-sm);
}

.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-placeholder-static {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-family: var(--font-ui);
    font-size: 0.875rem;
    text-align: center;
}

/* YouTube embed (commented out for now) */
/*
.youtube-embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
*/

.content-section {
    margin: var(--spacing-xl) 0;
}

.content-section h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    margin-bottom: var(--spacing-md);
}

.content-section h3 {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1.125rem;
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
}

.content-section ul {
    list-style: none;
    padding-left: 0;
}

.content-section ul li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.75rem;
}

.content-section ul li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--color-grey-medium);
}

/* Before/After Slider */
.comparison-slider {
    position: relative;
    width: 100%;
    height: 500px;
    margin: var(--spacing-xl) 0;
    overflow: hidden;
    cursor: ew-resize;
    background: var(--color-grey-light);
}

.before-image,
.after-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    user-select: none;
    pointer-events: none;
}

.after-image {
    clip-path: inset(0 50% 0 0);
}

.slider-line {
    position: absolute;
    top: 0;
    left: 50%;
    width: 1px;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    transform: translateX(-50%);
    pointer-events: none;
}

.slider-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    cursor: ew-resize;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-handle::before,
.slider-handle::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
}

.slider-handle::before {
    border-width: 5px 6px 5px 0;
    border-color: transparent rgba(0, 0, 0, 0.5) transparent transparent;
    left: 10px;
}

.slider-handle::after {
    border-width: 5px 0 5px 6px;
    border-color: transparent transparent transparent rgba(0, 0, 0, 0.5);
    right: 10px;
}

.slider-label {
    position: absolute;
    top: 1rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.slider-label.before {
    left: 1rem;
}

.slider-label.after {
    right: 1rem;
}

/* Image placeholders */
.image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-grey-medium);
    font-family: var(--font-ui);
    font-size: 0.875rem;
    text-align: center;
}

/* Case Studies Gallery */
.gallery-page {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: calc(4rem + var(--spacing-xl)) var(--spacing-md) var(--spacing-xl);
}

.gallery-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-lg);
}

.gallery-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
    background: var(--color-grey-light);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-0.5rem);
}

.gallery-item-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-item-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--spacing-md);
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: var(--color-white);
}

.gallery-item-text h3 {
    color: var(--color-white);
    margin-bottom: 0.5rem;
}

.gallery-item-text p {
    font-size: 0.9rem;
    margin: 0;
}

/* About/FAQ Page */
.faq-page {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: calc(4rem + var(--spacing-xl)) var(--spacing-md) var(--spacing-xl);
}

.faq-page header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.faq-page .content {
    margin-bottom: var(--spacing-xl);
}

.faq-item {
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-xl);
    border-bottom: 1px solid var(--color-grey-light);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

.faq-item h3 {
    font-size: 1.125rem;
    margin-top: var(--spacing-md);
}

.faq-item ul {
    list-style: none;
    padding-left: 0;
}

.faq-item ul li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.75rem;
}

.faq-item ul li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--color-grey-medium);
}

.faq-item strong {
    font-weight: 600;
}

/* Project 3 - Stills Grid */
.stills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin: var(--spacing-xl) 0;
}

.still-item {
    aspect-ratio: 16/9;
    background: var(--color-grey-light);
    overflow: hidden;
}

.still-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Project 3 - Behind the Scenes Videos */
.behind-videos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin: var(--spacing-xl) 0;
}

.behind-video-item {
    position: relative;
    aspect-ratio: 16/9;
    background: var(--color-grey-light);
    overflow: hidden;
}

.behind-video-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsive */
@media (max-width: 768px) {
    /* Carousel mobile adjustments */
    .hero-carousel {
        height: 60vh;
        min-height: 400px;
    }
    
    .carousel-text h2 {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }
    
    .nav-links {
        gap: var(--spacing-sm);
    }
    
    .carousel-btn {
        width: 2.5rem;
        height: 2.5rem;
    }
    
    .carousel-btn.prev {
        left: 1rem;
    }
    
    .carousel-btn.next {
        right: 1rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .stills-grid,
    .behind-videos {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    :root {
        --spacing-xl: 4rem;
    }
    
    .nav-links {
        font-size: 0.8rem;
    }
}
