/*
  DESIGN BRIEF: THE CURATOR

  This world is gallery white with barely-there crimson. Elegant menace.
  The horror lives in the precision, not the presentation.

  FEEL: Clinical. Precise. Elegant. Unsettling through perfection.
  Like walking through a gallery where every piece is about death but
  the walls are pristine white.

  TEXTURE: Lots of white space. Clean lines. No noise. The absence
  of texture IS the texture. Museum-quality emptiness.

  PALETTE: Gallery white (#ffffff), off-white (#fafafa),
  barely-there crimson (#8b0000 at 10% opacity), deep black (#0a0a0a),
  warm gray for text (#333333).

  TYPE: Playfair Display for titles (refined serif). Crimson Text for
  body (readable but literary). Nothing modern or techy.

  MOTIF: Numbers (Film One, Step 01). Clean cards. Lots of padding.
  Expandable sections that reveal horror beneath beauty.

  WHAT THIS SITE IS NOT: A horror movie site with blood and darkness.
  A thriller with dramatic shadows. This is a gallery. The horror is
  in what's being displayed, not how.
*/

:root {
    --white: #ffffff;
    --off-white: #fafafa;
    --gallery-gray: #f8f8f8;
    --text-black: #0a0a0a;
    --text-gray: #333333;
    --text-muted: #666666;
    --crimson-hint: rgba(139, 0, 0, 0.08);
    --crimson-accent: rgba(139, 0, 0, 0.15);
    --crimson-text: rgba(139, 0, 0, 0.7);
    --border-light: rgba(0, 0, 0, 0.08);
}

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

body {
    font-family: 'Crimson Text', Georgia, serif;
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-gray);
    background: var(--white);
}

/* Hero - Gallery entrance */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    position: relative;
    padding: 2rem;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-light);
}

.hero-content {
    text-align: center;
    max-width: 800px;
}

.title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 400;
    letter-spacing: 0.02em;
    color: var(--text-black);
    margin-bottom: 0.5rem;
}

.subtitle {
    font-family: 'Crimson Text', serif;
    font-size: 1.1rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 2rem;
}

.tagline {
    font-size: 1.3rem;
    font-style: italic;
    color: var(--text-gray);
    margin-bottom: 3rem;
    line-height: 1.6;
}

.meta {
    font-size: 0.95rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.separator {
    margin: 0 1rem;
    opacity: 0.3;
}

/* Navigation - Gallery sections */
.main-nav {
    background: var(--white);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    position: relative;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    position: relative;
    z-index: 102;
}

.menu-line {
    display: block;
    width: 24px;
    height: 1.5px;
    background: var(--text-black);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Hamburger Animation */
.mobile-menu-btn.active .menu-line:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

.mobile-menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active .menu-line:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

/* Nav Items Container */
.nav-items {
    display: flex;
    justify-content: center;
    gap: 3rem;
}

.nav-item {
    background: none;
    border: none;
    font-family: 'Crimson Text', serif;
    font-size: 1rem;
    color: var(--text-muted);
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.nav-item:hover {
    color: var(--text-black);
}

.nav-item.active {
    color: var(--text-black);
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -1.5rem;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--text-black);
}

/* Content sections */
.content {
    min-height: 60vh;
}

.section {
    display: none;
    animation: fadeIn 0.5s ease;
}

.section.active {
    display: block;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 2rem;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 400;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-black);
}

.section-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
    color: var(--text-muted);
    font-style: italic;
}

/* Overview Grid */
.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.overview-card {
    background: var(--gallery-gray);
    padding: 3rem;
    text-align: center;
}

.overview-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-black);
    font-weight: 400;
}

.overview-card p {
    line-height: 1.8;
}

/* Architect Cards */
.architect-content {
    display: grid;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.architect-card {
    padding: 2rem;
    border-left: 1px solid var(--crimson-accent);
    background: linear-gradient(to right, var(--crimson-hint), transparent);
}

.architect-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-black);
    font-weight: 400;
}

/* Films Grid */
.films-grid {
    display: grid;
    gap: 2rem;
    margin-top: 3rem;
}

.film-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
    cursor: pointer;
}

.film-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.film-card.expanded {
    background: var(--gallery-gray);
}

.film-header {
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.film-number {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--crimson-text);
}

.expand-icon {
    font-size: 0.8rem;
    color: var(--text-muted);
    transition: transform 0.3s ease;
}

.film-card.expanded .expand-icon {
    transform: rotate(90deg);
}

.film-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin: 0 2rem;
    color: var(--text-black);
    font-weight: 400;
}

.film-meta {
    padding: 0 2rem;
    font-size: 0.95rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.film-logline {
    padding: 0 2rem 2rem;
    font-style: italic;
    line-height: 1.7;
}

.film-details {
    display: none;
    padding: 2rem;
    border-top: 1px solid var(--border-light);
    animation: expandDown 0.3s ease;
}

.film-card.expanded .film-details {
    display: block;
}

@keyframes expandDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.film-details h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    margin: 2rem 0 1rem;
    color: var(--text-black);
    font-weight: 400;
}

.film-details h4:first-child {
    margin-top: 0;
}

.film-details p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

/* The Question of Why Section */
.why-content {
    max-width: 900px;
    margin: 0 auto;
}

.why-statement {
    text-align: center;
    margin-bottom: 4rem;
    padding: 3rem;
    background: var(--gallery-gray);
}

.why-statement .emphasis {
    font-size: 1.4rem;
    font-style: italic;
    line-height: 1.6;
    color: var(--text-black);
}

.why-origin,
.why-frameworks,
.why-evolution {
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.why-origin h3,
.why-frameworks h3,
.why-evolution h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-black);
    font-weight: 400;
}

.why-origin p,
.why-frameworks p,
.why-evolution p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.distinction {
    font-weight: 600;
    color: var(--text-black);
    margin-top: 2rem;
    padding-left: 2rem;
    border-left: 2px solid var(--crimson-accent);
}

.framework-list {
    margin: 2rem 0;
    padding: 2rem;
    background: var(--white);
    border: 1px solid var(--border-light);
}

.framework-item {
    display: flex;
    align-items: baseline;
    margin-bottom: 1rem;
    padding: 0.5rem 0;
}

.film-ref {
    font-family: 'Playfair Display', serif;
    color: var(--crimson-text);
    min-width: 80px;
    margin-right: 2rem;
}

.false-belief {
    color: var(--text-muted);
    font-style: italic;
}

.final-truth {
    margin-top: 2rem;
    padding: 2rem;
    background: linear-gradient(to right, var(--crimson-hint), transparent);
    border-left: 2px solid var(--crimson-accent);
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-black);
}

/* Method Cards */
.method-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.method-card {
    padding: 2rem;
    background: var(--gallery-gray);
    position: relative;
    transition: all 0.3s ease;
}

.method-card:hover {
    background: var(--crimson-hint);
}

.step-number {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--crimson-text);
    margin-bottom: 1rem;
}

.method-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-black);
    font-weight: 400;
}

/* Franchise Section */
.franchise-structure {
    max-width: 900px;
    margin: 0 auto;
}

.franchise-structure h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin: 3rem 0 2rem;
    text-align: center;
    color: var(--text-black);
    font-weight: 400;
}

.release-timeline {
    margin: 3rem 0;
}

.release-phase {
    padding: 2rem;
    margin-bottom: 2rem;
    border-left: 2px solid var(--crimson-accent);
    background: linear-gradient(to right, var(--crimson-hint), transparent);
}

.release-phase h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-black);
    font-weight: 400;
}

.franchise-pillars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.pillar {
    padding: 2rem;
    background: var(--white);
    border: 1px solid var(--border-light);
    text-align: center;
}

.pillar h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-black);
    font-weight: 400;
}

.pillar p {
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Footer */
.footer {
    background: var(--gallery-gray);
    padding: 3rem 2rem;
    text-align: center;
    border-top: 1px solid var(--border-light);
    margin-top: 5rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-text {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.footer-link {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--text-black);
}

/* Responsive */
@media (max-width: 768px) {
    /* Show hamburger menu */
    .mobile-menu-btn {
        display: block;
    }

    .nav-container {
        padding: 1rem 1.5rem;
    }

    /* Stack meta items vertically on mobile */
    .meta {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .meta .separator {
        display: none;
    }

    .meta span {
        display: block;
    }

    /* Mobile nav overlay */
    .nav-items {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        padding: 2rem;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 101;
    }

    .nav-items.active {
        transform: translateX(0);
    }

    .nav-item {
        font-size: 1.2rem;
        padding: 0.5rem 1rem;
        width: 100%;
        max-width: 300px;
        text-align: center;
    }

    .nav-item::after {
        bottom: -0.5rem;
    }

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

    .film-title {
        font-size: 1.5rem;
    }

    .overview-grid,
    .method-cards,
    .franchise-pillars {
        grid-template-columns: 1fr;
    }
}

/* Scroll reveal animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced motion respect */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}