/* -----------------------------
   1. VARIABLES & RESET
----------------------------- */
:root {
    /* Colors */
    --primary: #9333EA;
    --text: #ffffff;
    --black: #000000;
    --dark-bg: #0a0a0a;
    
    /* Spacing */
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 2rem;
    --space-xl: 4rem;
    
    /* Typography */
    --text-base: 1rem;
    --text-lg: 1.25rem;
    --text-xl: 1.5rem;
    --text-2xl: 2rem;
    --text-3xl: 3rem;
    
    /* Container */
    --container-width: 1400px;
    --border-radius: 20px;
}

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

body {
    font-family: 'Inter', sans-serif;
    background: var(--black);
    color: var(--text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

/* -----------------------------
   2. LAYOUT
----------------------------- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--space-xl);
    width: 100%;
}

section {
    padding: var(--space-xl) 0;
    position: relative;
    width: 100%;
}

/* -----------------------------
   3. HERO SECTION
----------------------------- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    padding: 0 var(--space-md);
}

.hero-title {
    color: var(--text);
    text-shadow: 
        0 0 20px rgba(147, 51, 234, 0.5),
        2px 2px 4px rgba(0, 0, 0, 0.5);
    -webkit-text-stroke: 2px rgba(147, 51, 234, 0.3);
    font-size: clamp(2.5rem, 12vw, 6rem);
    letter-spacing: 0.05em;
    margin-bottom: var(--space-lg);
    line-height: 1.1;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    padding: 0 var(--space-md);
}

.hero-subtitle {
    font-size: clamp(1rem, 4vw, 1.5rem);
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.4;
}

@media screen and (max-width: 768px) {
    .hero-content {
        padding: 0 var(--space-sm);
    }

    .hero-title {
        font-size: clamp(2rem, 10vw, 3rem);
        letter-spacing: 0.02em;
        -webkit-text-stroke: 1px rgba(147, 51, 234, 0.3);
        padding: 0 var(--space-sm);
        margin-bottom: var(--space-md);
    }
}

@media screen and (max-width: 480px) {
    .hero-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
        padding: 0;
        margin: 0 auto var(--space-md);
        max-width: 90%;
    }
}

/* -----------------------------
   4. CLAIM SECTION
----------------------------- */
.claim-section {
    padding: var(--space-xl) 0;
    position: relative;
    overflow: hidden;
    margin-bottom: 0;
}

.neon-claim {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
}

.neon-text {
    font-family: 'Mrs Saint Delafield', cursive;
    font-size: clamp(3.5rem, 10vw, 6.5rem);
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0.5px 0.5px 0 rgba(255, 255, 255, 0.6);
    transform: rotate(-2deg);
    text-align: center;
    line-height: 1.2;
    animation: handwriting 0.5s ease-out forwards;
}

@keyframes handwriting {
    from { opacity: 0; transform: translateY(20px) rotate(-2deg); }
    to { opacity: 0.9; transform: translateY(0) rotate(-2deg); }
}

/* -----------------------------
   5. CONTENT SECTIONS
----------------------------- */
/* Content Sections Base */
.content-section,
.visual-references,
.entrance-design {
    padding: var(--space-xl) 0;
    background: var(--black);
    width: 100%;
}

/* Section Title and Intro */
.section-title,
.visual-references h2 {
    text-align: center;
    font-size: var(--text-2xl);
    margin-bottom: var(--space-lg);
}

.section-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--space-xl);
    font-size: var(--text-lg);
}

/* Grid System */
.grid,
.video-stories,
.entrance-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    margin: var(--space-xl) 0;
    width: 100%;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

/* Media Containers */
.media-container,
.story-video {
    position: relative;
    width: 100%;
    overflow: hidden;
    aspect-ratio: 4/5;
}

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

/* Single Image Layout */
.single-media-container {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
}

/* Mobile Styles */
@media screen and (max-width: 768px) {
    /* Section Spacing */
    .content-section,
    .visual-references,
    .entrance-design,
    .single-media-section {
        padding: var(--space-lg) 0;
    }

    /* Container Padding */
    .container {
        padding: 0 var(--space-md);
    }

    /* Single Image Layout */
    .single-media-container {
        width: 100%;
        max-width: 100%;
        padding: 0;
        margin: 0;
    }

    .single-media-container .media-container {
        aspect-ratio: 4/5;
        margin: 0;
    }

    /* Typography */
    .section-title,
    .visual-references h2 {
        font-size: var(--text-xl);
        margin-bottom: var(--space-lg);
        padding: 0;
    }

    .section-intro {
        font-size: var(--text-base);
        margin-bottom: var(--space-xl);
        padding: 0;
    }

    /* Grid System */
    .grid,
    .grid-2,
    .grid-3,
    .video-stories,
    .entrance-images {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
        margin: var(--space-xl) 0;
    }

    /* Media Containers */
    .media-container,
    .story-video,
    .single-media-container .media-container {
        aspect-ratio: 4/5;
    }

    /* Single Image Layout */
    .single-media-container {
        padding: 0;
        max-width: 100%;
    }
}

/* External Mapping Section */
.mapping-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.mapping-container .media-container {
    aspect-ratio: auto;
    padding-bottom: 18%;
}

@media screen and (max-width: 768px) {
    .mapping-container .media-container {
        padding-bottom: 36%;
    }
}

/* Remove border radius for specific sections */
.mapping-video img,
.visual-references .story-video img,
.corridor .story-video img {
    border-radius: 0;
}

.mapping-video,
.visual-references .story-video,
.corridor .story-video {
    border-radius: 0;
}

@media screen and (max-width: 768px) {
    .grid,
    .video-stories {
        grid-template-columns: 1fr;
        gap: var(--space-md);
        margin: var(--space-lg) 0;
    }

    .story-video {
        aspect-ratio: 4/5;
    }
}

.no-stretch {
    object-fit: contain;
    max-width: 100%;
    height: auto;
}
