/* ==================== */
/* MADNESS PAGE         */
/* ==================== */

/* Hero — mirrors index.html home-hero layout */
.madness-page-hero {
    background: #000000;
    justify-content: flex-start;
    align-items: stretch;
    padding: 13rem var(--gutter) 2rem var(--content-left);
}

.madness-page-hero .home-hero-text {
    position: relative;
    z-index: 1;
}

.madness-hero-title {
    margin: 0;
    line-height: 0.94;
    font-size: clamp(3rem, 7.8vw, 10rem);
}

/* Sub line starts hidden — typewriter reveals it */
.madness-hero-sub {
    opacity: 0;
    transition: opacity 0.6s ease;
}

/* Philosophy Section */
.madness-philosophy {
    padding: 8rem var(--gutter) 8rem var(--content-left);
    background: var(--color-bg);
}

.madness-philosophy-content {
    max-width: 900px;
}

.madness-section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4.5vw, 3.8rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1.05;
    margin-bottom: 1.2rem;
    color: var(--color-text);
}

.madness-philosophy-text p {
    font-family: var(--font-body);
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    line-height: 1.4;
    color: var(--color-text-muted);
    margin-bottom: 0.8rem;
    max-width: 750px;
}

.madness-philosophy-text strong {
    color: var(--color-text);
    font-weight: 700;
}

/* Full-width image break */
.madness-image-break {
    width: 100%;
    height: 50vh;
    overflow: hidden;
}

.madness-image-break img {
    width: 100%;
    height: 130%;
    object-fit: cover;
}

/* Process Section */
.madness-process {
    padding: 8rem var(--gutter) 8rem var(--content-left);
    background: var(--color-bg);
}

.madness-process-content {
    max-width: 1200px;
}

.madness-process-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem 3rem;
}

.madness-step {
    position: relative;
}

.step-number {
    font-family: var(--font-display);
    font-size: clamp(3rem, 5vw, 5rem);
    font-weight: 900;
    color: rgba(255, 51, 102, 0.15);
    line-height: 1;
    display: block;
    margin-bottom: 0.5rem;
}

.madness-step h3 {
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 2.4vw, 1.7rem);
    font-weight: 900;
    letter-spacing: -0.01em;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.madness-step p {
    font-family: var(--font-body);
    font-size: clamp(0.95rem, 1.5vw, 1.05rem);
    line-height: 1.4;
    color: var(--color-text-muted);
    max-width: 450px;
}

/* Full-width parallax image break */
.madness-parallax-break {
    width: 100%;
    height: 70vh;
    overflow: hidden;
    position: relative;
}

.madness-parallax-break img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 130%;
    object-fit: cover;
    will-change: transform;
}

/* Manifesto Section */
.madness-manifesto {
    padding: 8rem var(--gutter) 8rem var(--content-left);
    background: #e02020;
}

.madness-manifesto-content {
    max-width: 900px;
}

.madness-manifesto .madness-section-title {
    color: #000000;
}

.manifesto-large {
    font-family: var(--font-body);
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    line-height: 1.5;
    color: #000000;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.manifesto-body {
    font-family: var(--font-body);
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    line-height: 1.4;
    color: #000000;
    margin-bottom: 0.8rem;
    max-width: 750px;
    margin-top: 0.8rem;
}

.manifesto-body strong {
    font-weight: 700;
    color: #000000;
}

/* Interstitial */
.madness-interstitial {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 80vh;
}

.madness-interstitial img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 130%;
    object-fit: cover;
}

.madness-interstitial-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 100%;
    padding: 0 2rem;
    z-index: 1;
}

.madness-interstitial-text h2 {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 4vw, 3rem);
    font-weight: 900;
    color: #ffffff;
    letter-spacing: -0.02em;
    line-height: 1.05;
    margin-bottom: 1.2rem;
}

.madness-interstitial-text p {
    font-family: var(--font-body);
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.4;
    max-width: 600px;
    margin: 0 auto;
}

/* Services Section */
.madness-services {
    padding: 8rem var(--gutter) 8rem var(--content-left);
    background: var(--color-bg);
}

.madness-services-content {
    max-width: 1200px;
}

.madness-services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem 3rem;
}

.madness-service {
    border-top: 2px solid rgba(255, 255, 255, 0.15);
    padding-top: 2rem;
}

.madness-service h3 {
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    font-weight: 900;
    letter-spacing: -0.01em;
    color: var(--color-text);
    margin-bottom: 1rem;
}

.madness-service p {
    font-family: var(--font-body);
    font-size: clamp(0.95rem, 1.5vw, 1.05rem);
    line-height: 1.4;
    color: var(--color-text-muted);
    max-width: 450px;
}

/* Studio image */
.madness-studio-image {
    width: 100%;
    height: 60vh;
    overflow: hidden;
}

.madness-studio-image img {
    width: 100%;
    height: 130%;
    object-fit: cover;
}

/* CTA Section — styles moved to styles.css (shared with index.html) */

/* Footer (reuse contact-footer from contact.css) */

/* ==================== */
/* RESPONSIVE           */
/* ==================== */
@media (max-width: 768px) {
    /* New hero */
    .madness-page-hero {
        padding: 7rem 1.5rem 3rem 1.5rem;
        min-height: 100svh;
        justify-content: center;
        align-items: flex-start;
    }

    .madness-hero-title {
        font-size: clamp(3.5rem, 22vw, 7rem);
    }

    /* Old image hero (kept for reference, may be unused) */
    .madness-hero {
        height: 70vh;
    }

    .madness-hero-text h1 {
        font-size: clamp(3rem, 12vw, 5rem);
    }

    .madness-philosophy {
        padding: 5rem 1.5rem;
    }

    .madness-image-break {
        height: 35vh;
    }

    .madness-process {
        padding: 5rem 1.5rem;
    }

    .madness-process-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .madness-step h3 {
        font-size: 1.3rem;
    }

    .madness-parallax-break {
        height: 40vh;
    }

    .madness-manifesto {
        padding: 5rem 1.5rem;
    }

    .manifesto-large {
        font-size: clamp(1.1rem, 4vw, 1.5rem);
    }

    .madness-interstitial {
        height: 55vh;
    }

    .madness-interstitial-text {
        padding: 0 1.5rem;
    }

    .madness-interstitial-text h2 {
        font-size: clamp(1.4rem, 5vw, 2.2rem);
    }

    .madness-services {
        padding: 5rem 1.5rem;
    }

    .madness-services-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    /* .madness-cta responsive rules live in styles.css */

    .madness-section-title {
        font-size: clamp(1.8rem, 6vw, 2.8rem);
    }
}

@media (max-width: 480px) {
    .madness-page-hero {
        padding: 6rem 1.25rem 3rem 1.25rem;
        min-height: 100svh;
        justify-content: center;
    }

    .madness-hero-title {
        font-size: clamp(3rem, 21vw, 6rem);
    }

    .madness-hero {
        height: 60vh;
    }

    .madness-philosophy,
    .madness-process,
    .madness-manifesto,
    .madness-services {
        padding: 4rem 1.25rem;
    }

    /* .madness-cta + .madness-cta-button responsive rules live in styles.css */

    .madness-parallax-break {
        height: 30vh;
    }

    .madness-interstitial {
        height: 45vh;
    }

    .madness-process-grid,
    .madness-services-grid {
        gap: 2rem;
    }
}
