:root {
    --deep-burgundy: #5B1A2A;
    --warm-burgundy: #7A2B3D;
    --dusty-rose: #C4A08A;
    --antique-cream: #F5ECD7;
    --charcoal-slate: #2C2C34;
    --mountain-ash: #6B6570;
    --tarnished-gold: #B8955A;
    --pale-parchment: #FAF6EE;
    --gradient-summit: linear-gradient(180deg, #5B1A2A 0%, #7A2B3D 100%);
    --gradient-dusk: linear-gradient(180deg, #7A2B3D 0%, #2C2C34 100%);
    --gradient-foil: linear-gradient(135deg, #B8955A 0%, #C4A08A 50%, #B8955A 100%);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Libre Baskerville', Georgia, serif;
    font-size: clamp(1rem, 1.2vw, 1.125rem);
    line-height: 1.75;
    color: var(--charcoal-slate);
    background-color: var(--deep-burgundy);
    overflow-x: hidden;
}

.section {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* ========== SECTION 1: THE SUMMIT ========== */
.section-summit {
    height: 100vh;
    background: var(--gradient-summit);
    display: flex;
    align-items: center;
    justify-content: center;
}

.summit-content {
    text-align: center;
    opacity: 0;
}

.summit-content.visible {
    opacity: 1;
}

.summit-title {
    font-family: 'Poiret One', cursive;
    font-size: clamp(3rem, 9vw, 8rem);
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--pale-parchment);
    line-height: 1.08;
    opacity: 0;
    transition: opacity 800ms ease-in-out;
}

.summit-title.visible {
    opacity: 1;
}

.golden-rule {
    width: 0%;
    height: 1px;
    background: var(--gradient-foil);
    margin: 2rem auto;
    opacity: 0;
    box-shadow: 0 0 4px rgba(184, 149, 90, 0.3);
    transition: width 1000ms ease-out, opacity 1000ms ease-out;
}

.golden-rule.visible {
    width: 61.8%;
    opacity: 0.4;
}

.peak-icon {
    display: block;
    margin: 1.5rem auto 0;
    opacity: 0;
    transition: opacity 500ms ease-in-out;
}

.peak-icon.visible {
    opacity: 1;
}

/* ========== RIDGELINES ========== */
.ridgeline {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: clamp(60px, 8vw, 120px);
    z-index: 2;
}

.ridgeline svg {
    display: block;
    width: 100%;
    height: 100%;
}

/* ========== SECTION 2: THE ESCARPMENT ========== */
.section-escarpment {
    min-height: 100vh;
    background-color: var(--antique-cream);
    padding: clamp(4rem, 10vw, 8rem) 6vw;
    padding-bottom: clamp(8rem, 12vw, 14rem);
}

.escarpment-grid {
    display: grid;
    grid-template-columns: 37.5% 62.5%;
    gap: clamp(1.5rem, 3vw, 4rem);
    max-width: 1400px;
    margin: 0 auto;
    align-items: start;
}

.escarpment-shapes {
    position: relative;
    min-height: 500px;
}

.escarpment-text {
    color: var(--charcoal-slate);
    transform: translateY(30px);
    opacity: 0;
    transition: transform 600ms ease-out, opacity 600ms ease-out;
}

.escarpment-text.visible {
    transform: translateY(0);
    opacity: 1;
}

.section-heading {
    font-family: 'Poiret One', cursive;
    font-size: clamp(1.8rem, 4vw, 3.5rem);
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    line-height: 1.08;
    color: var(--deep-burgundy);
    margin-bottom: 2rem;
}

.escarpment-text p {
    margin-bottom: 1.5rem;
}

.pull-quote {
    font-family: 'Libre Baskerville', Georgia, serif;
    font-style: italic;
    font-size: clamp(1.125rem, 1.5vw, 1.375rem);
    line-height: 1.65;
    color: var(--warm-burgundy);
    padding: 1.5rem 0;
    border-left: 3px solid var(--dusty-rose);
    padding-left: 2rem;
}

/* ========== SHAPE COMPOSITIONS ========== */
.shape-composition {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 400px;
    transform: scale(0.92);
    opacity: 0;
    transition: transform 800ms cubic-bezier(0.16, 1, 0.3, 1), opacity 800ms ease-out;
}

.shape-composition.visible {
    transform: scale(1);
    opacity: 1;
}

.shape-composition:hover {
    transform: rotate(3deg) scale(1.03);
    transition: transform 400ms ease-out;
}

.shape {
    position: absolute;
    mix-blend-mode: multiply;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.1);
}

/* Composition 1 - Escarpment */
.comp-1 .shape-1 {
    width: 180px; height: 180px; border-radius: 50%;
    background: var(--deep-burgundy); opacity: 0.35;
    top: 10%; left: 15%; transform: rotate(15deg);
}
.comp-1 .shape-2 {
    width: 140px; height: 200px; border-radius: 40%;
    background: var(--warm-burgundy); opacity: 0.25;
    top: 25%; left: 30%; transform: rotate(30deg);
}
.comp-1 .shape-3 {
    width: 100px; height: 100px; border-radius: 20%;
    background: var(--tarnished-gold); opacity: 0.4;
    top: 5%; left: 50%; transform: rotate(45deg);
}
.comp-1 .shape-4 {
    width: 160px; height: 120px; border-radius: 35%;
    background: var(--dusty-rose); opacity: 0.3;
    top: 45%; left: 10%; transform: rotate(60deg);
}
.comp-1 .shape-5 {
    width: 120px; height: 160px; border-radius: 45%;
    background: var(--deep-burgundy); opacity: 0.2;
    top: 50%; left: 45%; transform: rotate(15deg);
}
.comp-1 .shape-6 {
    width: 90px; height: 90px; border-radius: 50%;
    background: var(--mountain-ash); opacity: 0.15;
    top: 70%; left: 25%; transform: rotate(30deg);
}
.comp-1 .shape-7 {
    width: 70px; height: 110px; border-radius: 30%;
    background: var(--tarnished-gold); opacity: 0.3;
    top: 35%; left: 60%; transform: rotate(45deg);
}

/* ========== SECTION 3: THE TRAVERSE ========== */
.section-traverse {
    height: 100vh;
    background-color: var(--charcoal-slate);
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: clamp(4rem, 8vw, 10rem);
}

.traverse-grid {
    display: flex;
    justify-content: center;
    gap: clamp(1.5rem, 3vw, 4rem);
    width: 100%;
    padding: 0 6vw;
}

.traverse-block {
    width: 28vw;
    text-align: center;
    color: var(--pale-parchment);
    transform: translateY(30px);
    opacity: 0;
    transition: transform 600ms ease-out, opacity 600ms ease-out;
}

.traverse-block.visible {
    transform: translateY(0);
    opacity: 1;
}

.traverse-label {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 600;
    font-size: clamp(0.875rem, 1.8vw, 1.25rem);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    line-height: 1.4;
    margin: 2rem 0 1rem;
    color: var(--tarnished-gold);
}

.traverse-text {
    font-size: clamp(0.875rem, 1vw, 1rem);
    line-height: 1.75;
    color: var(--pale-parchment);
    opacity: 0.85;
}

/* ========== RIPPLE ========== */
.ripple-container {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto;
}

.ripple-center {
    position: absolute;
    top: 50%; left: 50%;
    width: 8px; height: 8px;
    background: var(--tarnished-gold);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.ripple-ring {
    position: absolute;
    top: 50%; left: 50%;
    border-radius: 50%;
    border: 1px solid var(--tarnished-gold);
    transform: translate(-50%, -50%) scale(0.1);
    opacity: 0;
}

.ripple-ring.ring-1 { width: 30px; height: 30px; }
.ripple-ring.ring-2 { width: 50px; height: 50px; }
.ripple-ring.ring-3 { width: 72px; height: 72px; }
.ripple-ring.ring-4 { width: 96px; height: 96px; }
.ripple-ring.ring-5 { width: 120px; height: 120px; }

@keyframes rippleExpand {
    0% { transform: translate(-50%, -50%) scale(0.1); opacity: 0.4; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 0; }
}

.ripple-ring.animate {
    animation: rippleExpand 900ms ease-out forwards;
}

.ripple-ring.ring-1.animate { animation-delay: 0ms; }
.ripple-ring.ring-2.animate { animation-delay: 120ms; }
.ripple-ring.ring-3.animate { animation-delay: 240ms; }
.ripple-ring.ring-4.animate { animation-delay: 360ms; }
.ripple-ring.ring-5.animate { animation-delay: 480ms; }

/* Stagger for blocks */
.block-left .ripple-ring.animate { }
.block-center .ripple-ring.animate { animation-delay: calc(300ms + var(--ring-delay, 0ms)); }
.block-right .ripple-ring.animate { animation-delay: calc(600ms + var(--ring-delay, 0ms)); }

.block-center .ring-1.animate { --ring-delay: 0ms; animation-delay: 300ms; }
.block-center .ring-2.animate { --ring-delay: 120ms; animation-delay: 420ms; }
.block-center .ring-3.animate { --ring-delay: 240ms; animation-delay: 540ms; }
.block-center .ring-4.animate { --ring-delay: 360ms; animation-delay: 660ms; }
.block-center .ring-5.animate { --ring-delay: 480ms; animation-delay: 780ms; }

.block-right .ring-1.animate { animation-delay: 600ms; }
.block-right .ring-2.animate { animation-delay: 720ms; }
.block-right .ring-3.animate { animation-delay: 840ms; }
.block-right .ring-4.animate { animation-delay: 960ms; }
.block-right .ring-5.animate { animation-delay: 1080ms; }

/* ========== SECTION 4: THE VALLEY ========== */
.section-valley {
    min-height: 100vh;
    background-color: var(--warm-burgundy);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: clamp(6rem, 12vw, 10rem) 6vw;
    position: relative;
}

.valley-mountains-top,
.valley-mountains-bottom {
    position: absolute;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 1;
}

.valley-mountains-top { top: 0; }
.valley-mountains-bottom { bottom: clamp(60px, 8vw, 120px); }

.valley-mountains-top svg,
.valley-mountains-bottom svg {
    width: 100%;
    height: 100%;
}

.valley-content {
    max-width: 48ch;
    color: var(--pale-parchment);
    position: relative;
    z-index: 2;
    transform: translateY(30px);
    opacity: 0;
    transition: transform 600ms ease-out, opacity 600ms ease-out;
}

.valley-content.visible {
    transform: translateY(0);
    opacity: 1;
}

.valley-content .section-heading {
    color: var(--antique-cream);
}

.valley-content p {
    margin-bottom: 1.5rem;
}

.valley-content .pull-quote {
    color: var(--dusty-rose);
    border-left-color: var(--tarnished-gold);
}

.foil-rule {
    width: 100%;
    height: 1px;
    background: var(--gradient-foil);
    margin: 2rem 0;
    box-shadow: 0 0 4px rgba(184, 149, 90, 0.3);
}

/* ========== SECTION 5: THE FOOTHILLS ========== */
.section-foothills {
    min-height: 80vh;
    background-color: var(--antique-cream);
    padding: clamp(4rem, 8vw, 8rem) 6vw;
    padding-bottom: clamp(8rem, 12vw, 14rem);
}

.foothills-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    grid-template-rows: 1fr 1.3fr;
    gap: clamp(1rem, 2vw, 2rem);
    max-width: 1200px;
    margin: 0 auto;
    min-height: 50vh;
}

.bento-box {
    border: 2px solid var(--dusty-rose);
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transform: scale(0.92);
    opacity: 0;
    transition: transform 800ms cubic-bezier(0.16, 1, 0.3, 1), opacity 800ms ease-out;
}

.bento-box.visible {
    transform: scale(1);
    opacity: 1;
}

.bento-1 { grid-column: 1; grid-row: 1; }
.bento-2 { grid-column: 2; grid-row: 1 / 3; }
.bento-3 { grid-column: 1; grid-row: 2; }
.bento-4 { display: none; }

/* Composition 2 */
.comp-2 { min-height: 200px; }
.comp-2 .shape-a1 {
    width: 100px; height: 100px; border-radius: 50%;
    background: var(--warm-burgundy); opacity: 0.3;
    top: 10%; left: 20%; transform: rotate(15deg);
}
.comp-2 .shape-a2 {
    width: 80px; height: 120px; border-radius: 35%;
    background: var(--tarnished-gold); opacity: 0.25;
    top: 20%; left: 50%; transform: rotate(45deg);
}
.comp-2 .shape-a3 {
    width: 130px; height: 90px; border-radius: 40%;
    background: var(--deep-burgundy); opacity: 0.2;
    top: 40%; left: 15%; transform: rotate(30deg);
}
.comp-2 .shape-a4 {
    width: 70px; height: 70px; border-radius: 20%;
    background: var(--dusty-rose); opacity: 0.35;
    top: 60%; left: 55%; transform: rotate(60deg);
}
.comp-2 .shape-a5 {
    width: 60px; height: 90px; border-radius: 50%;
    background: var(--mountain-ash); opacity: 0.15;
    top: 5%; left: 65%; transform: rotate(15deg);
}

/* Composition 3 */
.comp-3 { min-height: 200px; }
.comp-3 .shape-b1 {
    width: 110px; height: 80px; border-radius: 45%;
    background: var(--deep-burgundy); opacity: 0.25;
    top: 5%; left: 10%; transform: rotate(30deg);
}
.comp-3 .shape-b2 {
    width: 90px; height: 130px; border-radius: 35%;
    background: var(--tarnished-gold); opacity: 0.3;
    top: 20%; left: 40%; transform: rotate(60deg);
}
.comp-3 .shape-b3 {
    width: 70px; height: 70px; border-radius: 50%;
    background: var(--warm-burgundy); opacity: 0.35;
    top: 50%; left: 20%; transform: rotate(15deg);
}
.comp-3 .shape-b4 {
    width: 120px; height: 60px; border-radius: 30%;
    background: var(--dusty-rose); opacity: 0.2;
    top: 65%; left: 45%; transform: rotate(45deg);
}
.comp-3 .shape-b5 {
    width: 50px; height: 80px; border-radius: 40%;
    background: var(--mountain-ash); opacity: 0.15;
    top: 10%; left: 65%; transform: rotate(30deg);
}
.comp-3 .shape-b6 {
    width: 85px; height: 85px; border-radius: 25%;
    background: var(--deep-burgundy); opacity: 0.18;
    top: 40%; left: 5%; transform: rotate(60deg);
}

/* Composition 4 */
.comp-4 { min-height: 200px; }
.comp-4 .shape-c1 {
    width: 120px; height: 120px; border-radius: 50%;
    background: var(--tarnished-gold); opacity: 0.3;
    top: 15%; left: 25%; transform: rotate(45deg);
}
.comp-4 .shape-c2 {
    width: 80px; height: 140px; border-radius: 35%;
    background: var(--deep-burgundy); opacity: 0.25;
    top: 30%; left: 50%; transform: rotate(15deg);
}
.comp-4 .shape-c3 {
    width: 100px; height: 70px; border-radius: 40%;
    background: var(--warm-burgundy); opacity: 0.2;
    top: 5%; left: 55%; transform: rotate(60deg);
}
.comp-4 .shape-c4 {
    width: 65px; height: 65px; border-radius: 20%;
    background: var(--dusty-rose); opacity: 0.35;
    top: 60%; left: 15%; transform: rotate(30deg);
}
.comp-4 .shape-c5 {
    width: 90px; height: 50px; border-radius: 45%;
    background: var(--mountain-ash); opacity: 0.15;
    top: 70%; left: 55%; transform: rotate(45deg);
}

/* Composition 5 (hidden on default, shown on wide) */
.comp-5 { min-height: 200px; }
.comp-5 .shape-d1 {
    width: 90px; height: 130px; border-radius: 40%;
    background: var(--warm-burgundy); opacity: 0.3;
    top: 10%; left: 15%; transform: rotate(30deg);
}
.comp-5 .shape-d2 {
    width: 110px; height: 80px; border-radius: 50%;
    background: var(--tarnished-gold); opacity: 0.25;
    top: 25%; left: 45%; transform: rotate(45deg);
}
.comp-5 .shape-d3 {
    width: 70px; height: 100px; border-radius: 30%;
    background: var(--deep-burgundy); opacity: 0.2;
    top: 50%; left: 30%; transform: rotate(15deg);
}
.comp-5 .shape-d4 {
    width: 85px; height: 85px; border-radius: 45%;
    background: var(--dusty-rose); opacity: 0.35;
    top: 40%; left: 60%; transform: rotate(60deg);
}
.comp-5 .shape-d5 {
    width: 60px; height: 60px; border-radius: 50%;
    background: var(--mountain-ash); opacity: 0.15;
    top: 65%; left: 10%; transform: rotate(30deg);
}
.comp-5 .shape-d6 {
    width: 100px; height: 50px; border-radius: 25%;
    background: var(--warm-burgundy); opacity: 0.18;
    top: 5%; left: 60%; transform: rotate(45deg);
}
.comp-5 .shape-d7 {
    width: 55px; height: 75px; border-radius: 35%;
    background: var(--tarnished-gold); opacity: 0.22;
    top: 70%; left: 50%; transform: rotate(15deg);
}

/* ========== SECTION 6: BASE CAMP ========== */
.section-basecamp {
    height: 60vh;
    background-color: var(--deep-burgundy);
    display: flex;
    align-items: center;
    justify-content: center;
}

.basecamp-content {
    text-align: center;
    color: var(--pale-parchment);
    transform: translateY(30px);
    opacity: 0;
    transition: transform 600ms ease-out, opacity 600ms ease-out;
}

.basecamp-content.visible {
    transform: translateY(0);
    opacity: 1;
}

.basecamp-title {
    font-family: 'Poiret One', cursive;
    font-size: clamp(2.5rem, 7vw, 6rem);
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    line-height: 1.08;
}

.basecamp-content .foil-rule {
    width: 61.8%;
    margin: 1.5rem auto;
}

.basecamp-text {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 300;
    font-size: clamp(0.875rem, 1.8vw, 1.25rem);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--mountain-ash);
    margin-top: 1rem;
}

/* ========== INTERACTIVE STATES ========== */
a, .interactive-text {
    color: inherit;
    text-decoration: none;
    background-image: linear-gradient(var(--tarnished-gold), var(--tarnished-gold));
    background-position: 0 100%;
    background-repeat: no-repeat;
    background-size: 0% 1px;
    transition: color 250ms ease, background-size 250ms ease;
}

a:hover, .interactive-text:hover {
    color: var(--tarnished-gold);
    background-size: 100% 1px;
}

/* ========== MOUNTAIN PEAK ICONS (BULLETS) ========== */
.peak-bullet {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 0.5rem;
    vertical-align: middle;
    transform: scale(0);
    transition: transform 300ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.peak-bullet.visible {
    transform: scale(1);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .escarpment-grid {
        grid-template-columns: 1fr;
    }

    .escarpment-shapes {
        min-height: 300px;
    }

    .traverse-grid {
        flex-direction: column;
        align-items: center;
    }

    .traverse-block {
        width: 80%;
    }

    .foothills-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .bento-2 {
        grid-column: 1;
        grid-row: 2;
    }

    .bento-3 {
        grid-row: 3;
    }
}

@media (min-width: 1200px) {
    .bento-4 {
        display: block;
        grid-column: 1 / 3;
        grid-row: 3;
    }

    .foothills-grid {
        grid-template-rows: 1fr 1.3fr 0.8fr;
    }
}
