/* ==========================================================================
   Jazz From Tomorrow (JFT) - Cinematic Noir Theme
   ========================================================================== */

:root {
    /* Color Palette */
    --piano-black: #111111;         /* Main background: 70% distribution */
    --aged-gold: #C2A65A;           /* Primary accent: 5% distribution */
    --smoke-gray: #3B3B3B;          /* Structural neutral: 10% distribution */
    --burgundy: #5C1F2F;            /* Hover accent: <5% distribution */
    --deep-plum: #35182A;           /* Atmospheric gradients */
    
    --text-light: #EAE6DD;          /* Main body text: 15% distribution */
    --text-muted: #A9A39A;          /* Secondary text / Metadata */

    /* Typography */
    --font-heading: 'Six Caps', sans-serif; font-variant: small-caps;
    --font-body: 'Archivo Narrow', sans-serif;
    
    /* Layout */
    --transition-slow: all 0.5s ease;
    --transition-fast: all 0.2s ease;
}

/* ==========================================================================
   Base Styles & Resets
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Deep offset so the anchor pulls content up directly under the header text */
}

/* Explicit targeting for mobile cross-browser compatibility */
section[id], 
div[id] {
    scroll-margin-top: 140px;
}

body {
    background-color: var(--piano-black);
    color: var(--text-light);
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography Hierarchy */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 400; /* Six Caps is naturally bold/condensed */
    line-height: 0.85;
    font-variant: small-caps;
    color: var(--aged-gold);
    letter-spacing: 2px;
}

p {
    margin-bottom: 2.5rem; /* Increased body text spacing to feel more cinematic everywhere */
    color: var(--text-light);
    font-weight: 300;
    font-variant: normal;
}

a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition-fast);
}

.meta-label {
    display: block;
    font-family: var(--font-body);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--text-muted);
    margin-bottom: 2rem; /* Increased breathing room before headlines */
}

.text-center {
    text-align: center;
}

/* Container */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 5%;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 10px 40px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 4px;
    cursor: pointer;
    transition: var(--transition-slow);
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--aged-gold);
    color: var(--piano-black);
}

.btn-primary:hover {
    background-color: var(--burgundy);
    color: var(--text-light);
}

.btn-secondary {
    background-color: transparent;
    color: var(--aged-gold);
    border-color: var(--smoke-gray);
}

.btn-secondary:hover {
    border-color: var(--aged-gold);
    color: var(--piano-black);
    background-color: var(--aged-gold);
}

.btn.status-label {
    border-color: var(--smoke-gray);
    color: var(--text-muted);
    cursor: default;
    background-color: transparent;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 30px 0;
    z-index: 2000;
    background: linear-gradient(to bottom, rgba(17,17,17,1) 0%, rgba(17,17,17,0) 100%);
    transition: all var(--transition-slow);
}

.site-header.scrolled {
    padding: 15px 0;
    background: rgba(5, 5, 5, 0.98);
    box-shadow: 0 4px 30px rgba(194, 166, 90, 0.15); /* Subtle goldish ambient shadow */
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.logo img {
    height: 100px;
    width: auto;
    display: block;
    transform: translateY(3px);
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--aged-gold);
    letter-spacing: 2px;
    font-variant: small-caps;
    transform: translateX(-10px);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    white-space: nowrap;
    margin-top: 5px; /* Vertical align tweak for Six Caps font */
}

.site-header.scrolled .logo-text {
    opacity: 1;
    transform: translateX(0);
}

.main-nav {
    display: flex;
    gap: 2.5rem;
}

.main-nav a {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
}

.main-nav a:hover {
    color: var(--aged-gold);
}

/* Base Hamburger & Mobile Overlay (hidden by default) */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    align-items: center;
    gap: 15px;
    z-index: 2000;
}

.menu-text {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: var(--font-body);
}

.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 12px;
}

.hamburger span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: var(--text-light);
    transition: transform 0.3s ease;
}

.menu-toggle.active .hamburger span:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
    background-color: var(--aged-gold);
}

.menu-toggle.active .hamburger span:nth-child(2) {
    transform: translateY(-5px) rotate(-45deg);
    background-color: var(--aged-gold);
}

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(5,5,5,0.98);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s;
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    text-align: center;
}

.mobile-link {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 10vw, 5rem);
    text-transform: uppercase;
    font-variant: small-caps;
    color: var(--aged-gold);
    transition: color 0.3s ease;
}

.mobile-link:hover, .mobile-link:active {
    color: var(--text-light);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 800px;
    display: flex;
    align-items: center; 
    padding-bottom: 8vh; /* Nudges the layout's center of gravity slightly higher in the viewport */
}

/* Subtle atmospheric background acting as a timeless brand umbrella, moving away from a specific color mood */
.hero-bg-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at center, transparent 30%, var(--piano-black) 100%),
        linear-gradient(to bottom, transparent 10%, var(--piano-black) 100%),
        url('hero_atmosphere.png') center/cover no-repeat;
    opacity: 0.15;
    z-index: -1;
}

.hero-headline {
    font-size: clamp(6rem, 10vw, 12rem);
    line-height: 0.95;
    margin-bottom: 4.5rem;
    opacity: 0.95;
    text-shadow: 2px 4px 20px rgba(0,0,0,0.8);
}

.hero-subheadline {
    font-size: 1.3rem;
    color: var(--text-muted);
    opacity: 0.8;
    max-width: 800px;
    margin-bottom: 6rem;
    letter-spacing: 3px;
    font-weight: 300;
    text-transform: uppercase;
}

/* Blue Hour Two-Column Hero */
.blue-hour-hero {
    height: auto;
    min-height: auto;
    padding-top: 0px; /* Completely removed so it sits flush when scrolled to */
    padding-bottom: 120px;
    align-items: flex-start; /* Stops the flex centering from floating the content down */
}

.two-column-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4rem;
    width: 100%;
    margin-top: 0; /* Removed extra margin that was creating double-spacing */
}

.hero-content-left {
    flex: 1;
    max-width: 600px;
}

.hero-visual-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

/* Reversed Variations */
.hero-visual-left {
    flex: 2; /* 2/3 layout width */
    display: flex;
    justify-content: flex-start;
}

.hero-content-right {
    flex: 1; /* 1/3 layout width */
    max-width: 400px; /* Restrained so typography stacks elegantly instead of running wide */
}

.hero-cover-img {
    width: 100%;
    max-width: 550px;
    height: auto;
    display: block;
    box-shadow: 0 30px 60px rgba(0,0,0,0.8);
    border: 1px solid var(--smoke-gray);
    transform: translateY(2rem); /* Slight optical drop for asymmetry */
}

/* Adjust headline specifically for this hero */
.blue-hour-hero .hero-headline {
    margin-bottom: 3.5rem;
    line-height: 0.95;
}

.hero-body {
    margin-bottom: 3rem;
}

/* ==========================================================================
   General Sections
   ========================================================================== */
.section {
    padding: 150px 0;
    border-top: 1px solid var(--smoke-gray);
}

.section-darker {
    background-color: #0c0c0c; /* Deepest black variation */
    border-top: none;
}

.section-headline {
    font-size: clamp(5rem, 10vw, 10rem);
    line-height: 0.95; /* Matched the relaxed hero headline spacing */
    margin-bottom: 2.5rem; /* Tightened from 4.5rem */
}

.center-headline {
    text-align: center;
}

/* ==========================================================================
   Editorial Exhibition (Collections)
   ========================================================================== */
.editorial-exhibition {
    padding: 100px 0 200px 0;
    position: relative;
    border-top: 1px solid var(--smoke-gray);
}

.exhibition-header {
    margin-bottom: 5rem; /* Tightened completely from the massive 12rem museum spacing */
    text-align: center;
}

.collection-item {
    position: relative;
    margin-bottom: 20rem; /* Massive vertical pacing between gallery items */
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2rem;
    align-items: center;
    transition: var(--transition-slow);
}

.future-session {
    opacity: 0.4;
}

.future-session:hover {
    opacity: 0.7;
}

/* ==========================================================================
   Audio Integration (SoundCloud)
   ========================================================================== */
.audio-section {
    padding-top: 100px; /* Reduced from default 150px to tie it closer to the hero */
}

.sc-player-container {
    width: 100%; /* Bypassing previous max-width to let it expand fully into the 2/3 column */
    margin: 0;
    background-color: #0c0c0c;
    padding: 1rem;
    border: 1px solid var(--smoke-gray);
    box-shadow: 0 30px 60px rgba(0,0,0,0.8);
    transition: border-color var(--transition-slow);
}

.sc-player-container:hover {
    border-color: rgba(194, 166, 90, 0.4);
}

.sc-player-container iframe {
    display: block;
    width: 100%;
    margin-bottom: 0.8rem;
    background-color: transparent;
}

.sc-meta {
    text-align: right;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.sc-meta a {
    transition: color var(--transition-fast);
}

.sc-meta a:hover {
    color: var(--aged-gold) !important;
}

/* ==========================================================================
   Video Grid for active sessions
   ========================================================================== */
.video-section {
    padding-top: 50px; /* Significantly reduced from the default 150px section padding */
}

.video-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 0; /* Tightly coupled to the quote block */
}

.video-grid iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    border: 1px solid var(--smoke-gray);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    display: block;
    background-color: #080808;
    transition: var(--transition-slow);
}

.video-grid iframe:hover {
    border-color: var(--aged-gold);
}

.video-placeholder {
    aspect-ratio: 16 / 9;
    background-color: #080808; /* slightly darker than piano-black to look like a screen */
    border: 1px solid var(--smoke-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--smoke-gray);
    font-family: var(--font-heading);
    font-size: 2rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-variant: small-caps;
    opacity: 0.7;
    transition: var(--transition-slow);
}

.video-placeholder:hover {
    opacity: 1;
    border-color: var(--aged-gold);
}

/* Watermark Numerals */
.collection-number {
    position: absolute;
    font-family: var(--font-heading);
    font-size: clamp(20rem, 30vw, 40rem);
    color: var(--smoke-gray);
    font-variant: small-caps;
    opacity: 0.03; /* Extremely quiet, preventing it from acting as a focal point */
    z-index: -1;
    line-height: 0.7;
    pointer-events: none;
}

/* Individual Alignments */
.collection-item.align-right .collection-number {
    top: -4rem;
    left: 0;
}
.collection-item.align-right .collection-visual {
    grid-column: 5 / 13;
}
.collection-item.align-right .collection-content {
    grid-column: 1 / 6;
    grid-row: 1;
    transform: translateY(4rem); /* Subtle, integrated overlap rather than chaotic offset */
    z-index: 2;
}

.collection-item.align-left .collection-number {
    bottom: -4rem;
    right: 0;
}
.collection-item.align-left .collection-visual {
    grid-column: 1 / 7;
}
.collection-item.align-left .collection-content {
    grid-column: 6 / 12;
    transform: translateY(-3rem); /* Very deliberate, restrained spacing */
    z-index: 2;
}

.collection-item.align-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.collection-item.align-center .collection-number {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.collection-item.align-center .collection-visual {
    width: 100%;
}
.collection-item.align-center .collection-content {
    margin-top: -3rem; /* Slight kiss on the bottom of the image */
    z-index: 2;
}

/* Visual Placeholders & Specific Mood Tints */
.collection-img {
    width: 100%;
    height: auto;
    display: block;
    border: 1px solid var(--smoke-gray);
    background-color: var(--piano-black);
}

.visual-placeholder {
    width: 100%;
    background-color: var(--piano-black);
    border: 1px solid var(--smoke-gray);
    display: flex;
    align-items: center;
    justify-content: center;
}

.visual-placeholder span {
    font-family: var(--font-heading);
    font-size: 4rem;
    color: var(--smoke-gray);
    letter-spacing: 5px;
    font-variant: small-caps;
    opacity: 0.4;
}

.landscape { aspect-ratio: 16 / 9; }
.portrait { aspect-ratio: 3 / 4; }
.panoramic { aspect-ratio: 21 / 9; }

.tint-noir {
    background: linear-gradient(135deg, #111 0%, var(--deep-plum) 100%);
}

.tint-warm {
    background: linear-gradient(135deg, #111 0%, rgba(194, 166, 90, 0.15) 100%);
}

.tint-parisian {
    background: linear-gradient(135deg, #111 0%, rgba(59, 59, 59, 0.5) 100%);
}

.collection-title {
    font-size: clamp(4rem, 8vw, 8rem);
    margin-bottom: 2rem;
    line-height: 0.9;
}

/* ==========================================================================
   The Story Section
   ========================================================================== */
.story-section {
    position: relative;
    padding-top: 40px; /* Slashed significantly to fix the double gap at the top of the grid */
    padding-bottom: 2rem;
    background-image: url('hero_atmosphere.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.story-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: var(--piano-black);
    opacity: 0.95;
    z-index: 1;
}

.story-container {
    position: relative;
    z-index: 2;
}

.story-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2rem;
    padding-bottom: 80px;
}

.story-block.stagger-left {
    grid-column: 2 / 8;
    margin-top: 2rem;
}

.story-block.stagger-right {
    grid-column: 6 / 12;
    margin-top: 6rem;
}

.story-block.stagger-center {
    grid-column: 3 / 11;
    margin-top: 6rem;
    text-align: center;
}

/* Ensure Lists inside Center Stagger remain readable and centered */
.story-block.stagger-center .story-list {
    margin: 0 auto;
    text-align: center;
    border-left: none;
    padding: 0;
}

.story-pull-quote {
    grid-column: 2 / 12;
    text-align: center;
    margin-top: 8rem;
    margin-bottom: 4rem;
    position: relative;
    z-index: 3;
}

.story-pull-quote blockquote {
    font-family: var(--font-heading);
    font-size: clamp(5rem, 10vw, 12rem);
    line-height: 0.9;
    color: var(--aged-gold);
    text-transform: normal;
    font-variant: small-caps;
    margin: 0;
}

.story-block {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.story-title {
    font-family: var(--font-heading);
    font-size: clamp(5rem, 10vw, 10rem);
    color: var(--aged-gold);
    font-variant: small-caps;
    font-weight: 300;
    letter-spacing: 4px;
    line-height: 0.95;
    margin-bottom: 0.5rem;
}

.story-lead {
    font-size: 1.5rem;
    color: var(--text-light);
    line-height: 1.5;
    font-style: italic;
    border-left: 2px solid var(--smoke-gray);
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.story-block p {
    color: var(--text-light);
    margin-bottom: 1.2rem;
}

.story-block em {
    color: var(--aged-gold);
    font-style: normal;
}

.story-list {
    margin-left: 2rem;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.story-list.emphasis {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--text-light);
}

.story-list.style-none {
    list-style-type: none;
    margin-left: 1.5rem;
    border-left: 2px solid var(--smoke-gray);
    padding-left: 1.5rem;
}

.story-signoff {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 8vw, 4rem);
    color: var(--aged-gold) !important;
    text-transform: uppercase;
    font-variant: small-caps;
    letter-spacing: 3px;
    margin-top: 2rem;
}

/* ==========================================================================
   Visual / Editorial 
   ========================================================================== */
.video-section {
    padding-bottom: 40px; /* Reduces generic 150px bottom padding to tighten gap */
}

.section-atmospheric {
    border-top: none;
    padding: 60px 0 150px 0; /* Reduced from 100px to pull closer to the video grid */
}

.editorial-frame {
    border-left: 2px solid var(--aged-gold);
    padding-left: 3rem;
    max-width: 700px;
    margin: 0 auto;
}

.editorial-quote {
    font-family: var(--font-body);
    font-size: 2rem;
    color: var(--text-light);
    font-style: italic;
    font-weight: 300;
    line-height: 1.4;
    margin: 0;
}

.editorial-attribution {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 2.5rem);
    color: var(--aged-gold);
    text-transform: uppercase;
    font-variant: small-caps;
    letter-spacing: 2px;
    margin-top: 1.5rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    padding: 60px 0;
    border-top: 1px solid var(--aged-gold);
    background-color: #050505;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.footer-socials {
    display: flex;
    gap: 2.5rem;
    padding-bottom: 0.2rem;
}

.footer-socials a {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-socials a:hover {
    color: var(--aged-gold);
}

.footer-meta {
    display: flex;
    flex-direction: column;
    text-align: right;
    color: var(--text-muted);
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    gap: 5px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
    .logo img {
        height: 50px; /* Scale down logo for mobile */
        transform: translateY(0);
    }

    .logo-text {
        display: none;
    }

    .main-nav {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }
    
    .hero-headline {
        font-size: clamp(4rem, 12vw, 6rem);
    }
    
    /* Mobile Editorial Exhibition Fixes */
    .story-block.stagger-left,
    .story-block.stagger-right,
    .story-block.stagger-center,
    .story-pull-quote {
        grid-column: 1 / 13;
        margin-top: 5rem;
        margin-bottom: 5rem;
        text-align: left;
    }
    
    .story-pull-quote blockquote {
        font-size: clamp(4rem, 15vw, 6rem);
    }
    
    .collection-item {
        display: flex;
        flex-direction: column;
        gap: 0;
        margin-bottom: 10rem;
    }
    
    .collection-item.align-right .collection-content,
    .collection-item.align-left .collection-content,
    .collection-item.align-center .collection-content {
        transform: translateY(-2rem);
        margin-top: 0;
        background: var(--piano-black);
        padding: 2rem 1rem 0 1rem;
        width: 95%;
        margin: 0 auto;
    }
    
    .collection-number {
        font-size: 15rem;
    }
    
    .collection-item.align-center .collection-number {
        top: -6rem;
        left: -1rem;
        bottom: auto;
        right: auto;
        transform: none;
    }
    
    .video-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .blue-hour-hero {
        align-items: flex-start;
        min-height: auto;
        padding-top: 120px;
        padding-bottom: 80px;
    }

    .two-column-hero {
        flex-direction: column;
        gap: 2.5rem;
        margin-top: 0;
    }

    .two-column-reversed {
        flex-direction: column-reverse; /* Puts Typography above Player on mobile */
    }
    
    .hero-visual-right {
        justify-content: center;
    }
    
    .hero-cover-img {
        transform: translateY(0);
    }

    /* Stack Footer and allow social links to wrap */
    .footer-container {
        flex-direction: column-reverse;
        align-items: center;
        gap: 3rem;
    }
    
    .footer-socials {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem;
    }
    
    .footer-meta {
        text-align: center;
        align-items: center;
    }
}
