@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700;900&family=Cinzel+Decorative:wght@400;700&family=Italiana&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,400&family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');

/* =========================================
   CSS Variables - Unified Design System
   ========================================= */
:root {
    /* Base Charcoal Palette */
    --charcoal-900: #0d0d0d;
    --charcoal-800: #1a1a1a;
    --charcoal-700: #262626;
    --charcoal-600: #333333;

    /* Text Greys */
    --stone-grey: #6b6b6b;
    --ash-grey: #9a9a9a;
    --dust-grey: #c4c4c4;
    --ink-white: #f5f5f5;

    /* Legacy compatibility */
    --void-black: #050505;
    --stage-black: #0a0a0a;
    --curtain-shadow: #121212;
    --smoke-fg: #dcdcdc;
    --ghost-white: #e0e0e0;

    /* Accent Colours - Theatrical */
    --theatre-red: #8b0000;
    --blood-red: #722F37;
    --crimson-highlight: #c41e3a;
    --antique-gold: #d4a574;
    --faded-gilt: #c9a227;

    /* Shadows */
    --shadow-deep: 0 25px 60px rgba(0,0,0,.5);
    --shadow-soft: 0 10px 30px rgba(0,0,0,.3);

    /* Border Radius */
    --radius-lg: 12px;
    --radius-md: 8px;

    /* Typography */
    --font-display: 'Cinzel Decorative', 'Cinzel', serif;
    --font-heading: 'Playfair Display', serif;
    --font-subhead: 'Italiana', serif;
    --font-body: 'Cormorant Garamond', serif;

    --ease-slow: cubic-bezier(0.4, 0.0, 0.2, 1);
}

/* =========================================
   Site Navigation
   ========================================= */
.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 1rem 2rem;
    z-index: 1000;
    background: linear-gradient(to bottom, rgba(5, 5, 5, 0.95) 0%, rgba(5, 5, 5, 0.8) 70%, transparent 100%);
}

.site-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.site-nav .nav-home {
    font-family: var(--font-subhead);
    font-size: 1.1rem;
    color: var(--ghost-white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-nav .nav-home:hover {
    color: var(--antique-gold);
}

.site-nav .nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-nav .nav-links a {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--dust-grey);
    text-decoration: none;
    transition: color 0.3s ease;
    letter-spacing: 0.02em;
}

.site-nav .nav-links a:hover {
    color: var(--antique-gold);
}

@media (max-width: 768px) {
    .site-nav {
        padding: 1rem;
    }
    
    .site-nav .nav-links {
        gap: 1rem;
    }
    
    .site-nav .nav-links a {
        font-size: 0.8rem;
    }
}

/* =========================================
   Reset & Base
   ========================================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--void-black);
    color: var(--smoke-fg);
    font-family: var(--font-body);
    font-size: 1.125rem;
    line-height: 1.7;
    margin: 0;
    overflow-x: hidden;
}

/* Atmosphere & Texture Overlay */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    opacity: 0.06;
    pointer-events: none;
    z-index: 999;
}

/* Vignette */
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.3) 60%, rgba(0, 0, 0, 0.8) 100%);
    pointer-events: none;
    z-index: 998;
}

/* =========================================
   Typography
   ========================================= */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--ghost-white);
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

p {
    margin-bottom: 1.25rem;
}

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

a:hover {
    color: var(--ink-white);
}

/* =========================================
   Layout Utilities
   ========================================= */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 10;
}

/* =========================================
   Hero Section
   ========================================= */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    background-image: url('assets/hero-background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Dark overlay */
.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

/* Spotlight Effect */
.hero-spotlight {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80vw;
    height: 80vh;
    background: radial-gradient(circle, rgba(139, 0, 0, 0.15) 0%, transparent 60%);
    filter: blur(80px);
    z-index: 1;
    pointer-events: none;
    animation: pulseGlow 8s infinite alternate ease-in-out;
}

.hero h1 {
    font-family: var(--font-subhead);
    font-size: clamp(3rem, 7vw, 6rem);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 1rem;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    position: relative;
    z-index: 2;
    color: var(--ghost-white);
}

.hero h1 span {
    display: block;
    font-size: 0.35em;
    font-family: var(--font-subhead);
    color: var(--antique-gold);
    letter-spacing: 0.3em;
    margin-bottom: 0.5rem;
    font-style: normal;
    text-transform: uppercase;
}

/* =========================================
   Narrative Section
   ========================================= */
.narrative {
    padding: 8rem 0;
    position: relative;
    border-top: 1px solid rgba(139, 0, 0, 0.2);
    border-bottom: 1px solid rgba(139, 0, 0, 0.2);
    background: linear-gradient(to bottom, var(--charcoal-800), var(--charcoal-900));
}

.narrative-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.narrative p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--dust-grey);
    text-align: justify;
    line-height: 1.8;
}

.narrative .highlight {
    color: var(--ink-white);
    font-style: italic;
}

/* =========================================
   Works Section - Gallery Grid
   ========================================= */
.works {
    padding: 6rem 0;
    background-color: var(--void-black);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
    color: var(--theatre-red);
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 2px;
    background: var(--antique-gold);
    margin: 1rem auto 0;
}

.works-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
}

/* =========================================
   Work Card - Horizontal Layout (Image Left, Text Right)
   ========================================= */
.work-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 3rem;
    background: transparent;
    border: none;
    border-radius: 0;
    overflow: visible;
    transition: transform 0.4s var(--ease-slow);
    position: relative;
    padding: 2rem 0;
    border-bottom: 1px solid rgba(139, 0, 0, 0.1);
}

.work-card:hover {
    transform: translateY(-5px);
}

.work-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--theatre-red), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.work-card:hover::before {
    opacity: 1;
}

/* Work Card Image */
.work-image {
    flex-shrink: 0;
    width: 280px;
    overflow: hidden;
}

.work-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s ease;
}

.work-card:hover .work-image img {
    transform: scale(1.02);
}

/* Work Card Content */
.work-content {
    flex: 1;
    padding: 0;
}

.work-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--ghost-white);
    text-transform: none;
}

.work-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.work-title a:hover {
    color: var(--antique-gold);
}

.work-meta {
    font-size: 0.85rem;
    color: var(--antique-gold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    display: block;
    font-weight: 600;
}

.work-description {
    font-size: 1.1rem;
    color: var(--smoke-fg);
    line-height: 1.7;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.work-link {
    font-size: 0.9rem;
    color: var(--theatre-red);
    font-weight: 600;
    transition: color 0.3s ease;
}

.work-card:hover .work-link {
    color: var(--antique-gold);
}

/* =========================================
   Footer
   ========================================= */
footer {
    padding: 4rem 0;
    text-align: center;
    border-top: 1px solid var(--charcoal-600);
    background: var(--charcoal-900);
}

footer .footer-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--ink-white);
    margin-bottom: 1rem;
}

footer .footer-note {
    font-size: 0.9rem;
    color: var(--stone-grey);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

footer a {
    color: var(--antique-gold);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--ink-white);
    text-decoration: underline;
}

/* =========================================
   Animations
   ========================================= */
@keyframes pulseGlow {
    0% {
        opacity: 0.1;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0.25;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

/* =========================================
   Responsive Design
   ========================================= */
@media (max-width: 1024px) {
    .work-card {
        gap: 2rem;
    }

    .work-image {
        width: 240px;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    .hero h1 {
        font-size: 3.5rem;
    }

    .container {
        padding: 0 1.5rem;
    }

    .narrative {
        padding: 4rem 0;
    }

    .narrative-content {
        text-align: left;
    }

    .works {
        padding: 4rem 0;
    }

    .works-grid {
        gap: 3rem;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 3rem;
    }

    /* Stack cards vertically on mobile */
    .work-card {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .work-image {
        width: 200px;
        margin: 0 auto;
    }

    .work-content {
        padding: 0 1rem;
    }

    .work-title {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero h1 span {
        font-size: 0.4em;
        letter-spacing: 0.15em;
    }

    .narrative p {
        font-size: 1.1rem;
    }

    .work-description {
        font-size: 0.95rem;
    }
}
