:root {
    --burgundy: #6E1423;
    --cream: #F5EDE0;
    --shadow: #2E0A0F;
    --copper: #A4533C;
    --brass: #B8964E;
    --stone: #D4C5B2;
    --rose: #C4727F;
    --parchment: #F0E6D6;
}

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

body {
    margin: 0;
    overflow-x: hidden;
    background-color: var(--cream);
    color: var(--shadow);
    font-family: 'Libre Baskerville', serif;
    font-weight: 400;
    font-size: clamp(1rem, 1.2vw, 1.15rem);
    line-height: 1.75;
}

/* Halftone Background */
.halftone-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle, var(--shadow) 1px, transparent 1px);
    background-size: 12px 12px;
    opacity: 0.05;
    pointer-events: none;
    z-index: 0;
}

/* THE OVERTURE */
.overture {
    position: relative;
    width: 100vw;
    min-height: 100vh;
    background-color: var(--cream);
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    overflow: hidden;
}

.overture-content {
    position: relative;
    z-index: 2;
    padding-left: 38.2%;
    padding-top: 38.2vh;
}

.hero-title {
    font-family: 'Poiret One', cursive;
    font-weight: 400;
    font-size: clamp(4rem, 12vw, 14rem);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--shadow);
    line-height: 1;
    white-space: nowrap;
}

.hero-subtitle {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 300;
    font-size: clamp(1.6rem, 4.8vw, 5.6rem);
    letter-spacing: 0.3em;
    color: var(--burgundy);
    margin-top: 8px;
    opacity: 0;
    transition: opacity 0ms;
}

.hero-subtitle.visible {
    opacity: 1;
}

.hero-rule {
    height: 1px;
    background-color: var(--brass);
    margin-top: 16px;
    width: 0;
    transition: width 800ms cubic-bezier(0.4, 0.0, 0.2, 1);
    margin-left: 0;
}

.hero-rule.extended {
    width: calc(100vw - 38.2%);
}

/* Mountain Hero */
.mountain-hero {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    z-index: 1;
    opacity: 0;
    transition: opacity 800ms cubic-bezier(0.4, 0.0, 0.2, 1);
}

.mountain-hero.visible {
    opacity: 1;
}

.mountain-layer {
    position: absolute;
    bottom: 0;
    width: 100%;
}

.mountain-layer-1 {
    height: 100%;
    clip-path: polygon(0% 100%, 0% 60%, 15% 45%, 30% 55%, 45% 35%, 60% 50%, 75% 30%, 90% 45%, 100% 40%, 100% 100%);
    background-color: var(--shadow);
    opacity: 0.3;
}

.mountain-layer-2 {
    height: 90%;
    clip-path: polygon(0% 100%, 0% 65%, 10% 50%, 25% 60%, 40% 40%, 55% 55%, 70% 38%, 85% 50%, 100% 45%, 100% 100%);
    background-color: var(--burgundy);
    opacity: 0.5;
}

.mountain-layer-3 {
    height: 80%;
    clip-path: polygon(0% 100%, 0% 70%, 20% 55%, 35% 65%, 50% 45%, 65% 60%, 80% 42%, 95% 55%, 100% 50%, 100% 100%);
    background-color: var(--burgundy);
    opacity: 0.7;
}

.mountain-layer-4 {
    height: 65%;
    clip-path: polygon(0% 100%, 0% 75%, 15% 60%, 30% 70%, 50% 50%, 70% 65%, 85% 55%, 100% 60%, 100% 100%);
    background-color: var(--copper);
    opacity: 0.4;
}

.mountain-layer-5 {
    height: 50%;
    clip-path: polygon(0% 100%, 0% 80%, 25% 65%, 45% 75%, 65% 60%, 80% 70%, 100% 65%, 100% 100%);
    background-color: var(--burgundy);
    opacity: 0.9;
}

/* TYPE SIGNATURE SECTION */
.type-signature-section {
    position: relative;
    width: 100vw;
    background-color: var(--burgundy);
    color: var(--cream);
    padding: 120px 0;
    min-height: 150vh;
}

.diagonal-cut {
    position: absolute;
    top: -80px;
    left: 0;
    width: 100%;
    height: 160px;
    background-color: var(--burgundy);
    clip-path: polygon(0% 100%, 0% 50%, 100% 0%, 100% 100%);
    z-index: 1;
}

/* Zigzag Layout */
.zigzag-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 48px;
    align-items: center;
}

.zigzag-right {
    direction: ltr;
}

.zigzag-text {
    direction: ltr;
    max-width: 38em;
}

.zigzag-shape {
    position: relative;
    height: 300px;
    direction: ltr;
    overflow: hidden;
}

.section-heading {
    font-family: 'Poiret One', cursive;
    font-weight: 400;
    font-size: clamp(2rem, 5vw, 4.5rem);
    letter-spacing: 0.15em;
    color: var(--cream);
    margin-bottom: 24px;
    line-height: 1.15;
}

.body-text {
    font-family: 'Libre Baskerville', serif;
    font-weight: 400;
    font-size: clamp(1rem, 1.2vw, 1.15rem);
    line-height: 1.75;
    color: var(--cream);
    max-width: 38em;
}

/* Abstract Mountains in zigzag */
.abstract-mountain {
    position: absolute;
    bottom: 0;
    width: 100%;
}

.am-1 {
    height: 80%;
    clip-path: polygon(10% 100%, 10% 40%, 30% 20%, 50% 35%, 70% 15%, 90% 30%, 90% 100%);
    background-color: var(--cream);
    opacity: 0.15;
}
.am-2 {
    height: 70%;
    clip-path: polygon(5% 100%, 20% 50%, 40% 30%, 60% 45%, 80% 25%, 95% 40%, 95% 100%);
    background-color: var(--copper);
    opacity: 0.3;
}
.am-3 {
    height: 55%;
    clip-path: polygon(15% 100%, 30% 55%, 50% 35%, 70% 50%, 85% 40%, 95% 55%, 95% 100%);
    background-color: var(--cream);
    opacity: 0.2;
}

.am-4 {
    height: 85%;
    clip-path: polygon(5% 100%, 15% 35%, 35% 20%, 55% 40%, 75% 10%, 95% 25%, 95% 100%);
    background-color: var(--cream);
    opacity: 0.12;
}
.am-5 {
    height: 65%;
    clip-path: polygon(10% 100%, 25% 45%, 45% 25%, 65% 50%, 80% 30%, 90% 45%, 90% 100%);
    background-color: var(--brass);
    opacity: 0.2;
}
.am-6 {
    height: 50%;
    clip-path: polygon(20% 100%, 35% 50%, 55% 35%, 70% 55%, 85% 42%, 95% 100%);
    background-color: var(--cream);
    opacity: 0.18;
}

.am-7 {
    height: 90%;
    clip-path: polygon(0% 100%, 5% 30%, 20% 15%, 35% 25%, 50% 10%, 65% 20%, 80% 8%, 95% 22%, 100% 100%);
    background-color: var(--cream);
    opacity: 0.1;
}
.am-8 {
    height: 75%;
    clip-path: polygon(5% 100%, 10% 40%, 25% 20%, 40% 35%, 55% 15%, 70% 30%, 85% 18%, 95% 35%, 100% 100%);
    background-color: var(--copper);
    opacity: 0.25;
}
.am-9 {
    height: 60%;
    clip-path: polygon(10% 100%, 20% 50%, 35% 30%, 50% 45%, 65% 25%, 80% 40%, 90% 30%, 100% 100%);
    background-color: var(--brass);
    opacity: 0.15;
}
.am-10 {
    height: 50%;
    clip-path: polygon(15% 100%, 25% 55%, 40% 35%, 55% 50%, 70% 32%, 85% 48%, 95% 100%);
    background-color: var(--cream);
    opacity: 0.2;
}
.am-11 {
    height: 40%;
    clip-path: polygon(20% 100%, 35% 55%, 50% 40%, 65% 55%, 80% 42%, 90% 100%);
    background-color: var(--rose);
    opacity: 0.15;
}

/* THE FOLD */
.the-fold {
    position: relative;
    width: 100vw;
    min-height: 100vh;
    background-color: var(--cream);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 24px;
}

.panorama {
    position: relative;
    width: 100%;
    height: 50vh;
    margin-bottom: 60px;
}

.pano-layer {
    position: absolute;
    bottom: 0;
    width: 100%;
}

.pano-1 {
    height: 100%;
    clip-path: polygon(0% 100%, 0% 50%, 8% 35%, 16% 45%, 24% 25%, 32% 40%, 40% 20%, 48% 35%, 56% 15%, 64% 30%, 72% 18%, 80% 38%, 88% 22%, 96% 40%, 100% 30%, 100% 100%);
    background-color: var(--shadow);
    opacity: 0.25;
}
.pano-2 {
    height: 90%;
    clip-path: polygon(0% 100%, 0% 55%, 12% 40%, 24% 50%, 36% 30%, 48% 45%, 60% 25%, 72% 40%, 84% 28%, 96% 42%, 100% 35%, 100% 100%);
    background-color: var(--burgundy);
    opacity: 0.5;
}
.pano-3 {
    height: 80%;
    clip-path: polygon(0% 100%, 0% 60%, 10% 48%, 22% 55%, 34% 38%, 46% 50%, 58% 33%, 70% 48%, 82% 35%, 94% 50%, 100% 42%, 100% 100%);
    background-color: var(--burgundy);
    opacity: 0.7;
}
.pano-4 {
    height: 70%;
    clip-path: polygon(0% 100%, 0% 65%, 14% 52%, 28% 62%, 42% 45%, 56% 58%, 70% 42%, 84% 55%, 100% 48%, 100% 100%);
    background-color: var(--copper);
    opacity: 0.4;
}
.pano-5 {
    height: 60%;
    clip-path: polygon(0% 100%, 0% 70%, 16% 58%, 32% 68%, 48% 52%, 64% 65%, 80% 50%, 100% 58%, 100% 100%);
    background-color: var(--brass);
    opacity: 0.2;
}
.pano-6 {
    height: 50%;
    clip-path: polygon(0% 100%, 0% 75%, 20% 62%, 40% 72%, 60% 58%, 80% 68%, 100% 60%, 100% 100%);
    background-color: var(--stone);
    opacity: 0.3;
}
.pano-7 {
    height: 40%;
    clip-path: polygon(0% 100%, 0% 78%, 25% 68%, 50% 75%, 75% 65%, 100% 72%, 100% 100%);
    background-color: var(--rose);
    opacity: 0.15;
}
.pano-8 {
    height: 30%;
    clip-path: polygon(0% 100%, 0% 80%, 30% 72%, 60% 78%, 100% 74%, 100% 100%);
    background-color: var(--burgundy);
    opacity: 0.9;
}

.fold-quote {
    font-family: 'Libre Baskerville', serif;
    font-weight: 400;
    font-style: italic;
    font-size: clamp(1.1rem, 1.5vw, 1.5rem);
    line-height: 1.6;
    color: var(--shadow);
    text-align: center;
    max-width: 600px;
}

/* THE SIGNATURE */
.the-signature {
    position: relative;
    width: 100vw;
    min-height: 60vh;
    background-color: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 48px;
    overflow: hidden;
}

.signature-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.signature-title {
    font-family: 'Poiret One', cursive;
    font-weight: 400;
    font-size: clamp(2.4rem, 7vw, 8.4rem);
    letter-spacing: 0.15em;
    color: var(--brass);
    line-height: 1.1;
    margin-bottom: 32px;
}

.signature-nav {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-link {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 300;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--stone);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    padding: 8px 16px;
    transition: color 200ms cubic-bezier(0.4, 0.0, 0.2, 1);
}

.nav-link:hover {
    color: var(--rose);
}

/* Signature Mountain */
.signature-mountain {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 30%;
    height: 50%;
    z-index: 1;
}

.sig-mtn {
    position: absolute;
    bottom: 0;
    width: 100%;
}

.sig-mtn-1 {
    height: 100%;
    clip-path: polygon(20% 100%, 40% 30%, 60% 50%, 80% 20%, 100% 40%, 100% 100%);
    background-color: var(--burgundy);
    opacity: 0.3;
}

.sig-mtn-2 {
    height: 75%;
    clip-path: polygon(30% 100%, 50% 40%, 70% 55%, 90% 30%, 100% 50%, 100% 100%);
    background-color: var(--copper);
    opacity: 0.2;
}

.sig-mtn-3 {
    height: 55%;
    clip-path: polygon(40% 100%, 55% 50%, 75% 60%, 95% 40%, 100% 100%);
    background-color: var(--brass);
    opacity: 0.15;
}

/* Ripple Effect */
.ripple-ring {
    position: absolute;
    border: 1px solid var(--brass);
    border-radius: 50%;
    pointer-events: none;
    animation: rippleExpand 1200ms cubic-bezier(0.0, 0.0, 0.2, 1) forwards;
}

@keyframes rippleExpand {
    0% {
        width: 0;
        height: 0;
        opacity: 0.6;
    }
    100% {
        width: 400px;
        height: 400px;
        opacity: 0;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .overture-content {
        padding-left: 24px;
        padding-top: 30vh;
    }

    .hero-rule.extended {
        width: calc(100vw - 48px);
    }

    .zigzag-block {
        grid-template-columns: 1fr;
        padding: 40px 24px;
        gap: 40px;
    }

    .zigzag-shape {
        height: 200px;
    }

    .the-signature {
        padding: 60px 24px;
    }

    .signature-mountain {
        width: 50%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-subtitle,
    .mountain-hero {
        opacity: 1;
        transition: none;
    }

    .hero-rule {
        transition: none;
    }

    .ripple-ring {
        animation: none;
        display: none;
    }
}
