/* === Reset & Base === */
/* Compliance typography tokens: strategic peaks valleys Mono" (Google Fonts Interactions feel adjusting focus telescope: Interactive elements */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Libre Franklin', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 400;
    color: #3a3d4a;
    background: #0a0e1a;
    overflow-x: hidden;
}

/* === Typography === */
.brand-name {
    font-family: 'Bricolage Grotesque', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 700;
    font-size: clamp(3.5rem, 8vw, 7rem);
    letter-spacing: 0.02em;
    color: #e8edf2;
    line-height: 1.1;
}

.brand-tagline {
    font-family: 'Libre Franklin', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 400;
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    color: #8a92a8;
    margin-top: 1rem;
    letter-spacing: 0.03em;
}

.section-title {
    font-family: 'Bricolage Grotesque', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 600;
    font-size: clamp(2rem, 4vw, 3.5rem);
    letter-spacing: 0.02em;
    color: #e8edf2;
    margin-bottom: 1.5rem;
}

.section-title--dark {
    color: #2b2e3a;
}

.section-title--light {
    color: #e8edf2;
}

.body-text {
    font-family: 'Libre Franklin', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 400;
    font-size: clamp(1rem, 1.1vw, 1.15rem);
    line-height: 1.72;
    color: #c4c8d8;
    margin-bottom: 1.5rem;
}

.body-text--dark {
    color: #3a3d4a;
}

.mono-text {
    font-family: 'IBM Plex Mono', 'SFMono-Regular', Consolas, monospace;
    font-weight: 400;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #6b8f9e;
    opacity: 0.7;
}

/* === Container === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

/* === Section Base === */
.section {
    position: relative;
    overflow: hidden;
}

/* === Summit Header === */
.section--summit {
    min-height: 100vh;
    background: linear-gradient(175deg, #0a0e1a 0%, #1e2a6e 45%, #2a3b6e 100%);
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    z-index: 5;
}

.summit-content {
    position: relative;
    z-index: 3;
    padding: 33vh 24px 0;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.summit-coordinate {
    margin-bottom: 1rem;
}

/* Ridge silhouette color reference: #151d3a */
.mountain-ridge-hero {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    z-index: 1;
    pointer-events: none;
}

/* Lens Flare */
.lens-flare {
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(196, 138, 42, 0.4) 0%, rgba(196, 138, 42, 0.1) 40%, transparent 70%);
    z-index: 2;
    pointer-events: none;
    animation: drift 25s ease-in-out infinite alternate;
}

.lens-flare-secondary {
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(196, 138, 42, 0.25) 0%, rgba(196, 138, 42, 0.05) 50%, transparent 80%);
    z-index: 2;
    pointer-events: none;
    animation: drift-secondary 18s ease-in-out infinite alternate;
}

.flare-hex {
    position: absolute;
    width: 52px;
    height: 45px;
    clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
    background: rgba(196, 138, 42, 0.08);
    box-shadow: 10px -6px 28px rgba(42, 142, 126, 0.14), -8px 8px 22px rgba(196, 138, 42, 0.16), 0 0 36px rgba(107, 143, 158, 0.12);
    z-index: 2;
    pointer-events: none;
    animation: hex-drift 25s ease-in-out infinite alternate;
}

.flare-hex--one {
    top: 28vh;
    left: 22vw;
}

.flare-hex--two {
    width: 30px;
    height: 26px;
    top: 18vh;
    left: 58vw;
    animation-duration: 18s;
    opacity: 0.75;
}

.lens-flare-cool {
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(42, 142, 126, 0.3) 0%, rgba(42, 142, 126, 0.08) 45%, transparent 75%);
    z-index: 2;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

@keyframes drift {
    0% { transform: translate(10vw, 5vh); }
    100% { transform: translate(80vw, -3vh); }
}

@keyframes drift-secondary {
    0% { transform: translate(60vw, 12vh); }
    100% { transform: translate(20vw, 8vh); }
}

@keyframes hex-drift {
    0% { transform: translate3d(0, 0, 0) rotate(8deg); }
    100% { transform: translate3d(18vw, -4vh, 0) rotate(32deg); }
}

/* === Ridge Descent === */
.section--ridge {
    background: linear-gradient(180deg, #b8c6d4 0%, #e8edf2 100%);
    clip-path: polygon(0 4vw, 100% 0, 100% 100%, 0 calc(100% - 0vw));
    margin-top: -4vw;
    padding: calc(4vw + 5rem) 0 6rem;
    z-index: 4;
    min-height: 105vh;
    display: flex;
    align-items: center;
}

.ridge-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    align-items: start;
}

.ridge-text .section-title {
    color: #2b2e3a;
}

.ridge-text .body-text {
    color: #3a3d4a;
}

.ridge-cards {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* === Instrument Cards === */
.instrument-card {
    position: relative;
    background: rgba(26, 31, 53, 0.04);
    border: 1px solid rgba(42, 142, 126, 0.3);
    border-radius: 8px;
    padding: 1.5rem;
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.35s ease;
    cursor: default;
}

.instrument-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(10, 14, 26, 0.25);
}

.card-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #c48a2a;
    border-radius: 8px 8px 0 0;
}

.card-label {
    font-family: 'IBM Plex Mono', 'SFMono-Regular', Consolas, monospace;
    font-weight: 400;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #6b8f9e;
    display: block;
    margin-bottom: 0.5rem;
}

.card-text {
    font-family: 'Libre Franklin', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 400;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #3a3d4a;
}

/* === Valley Floor === */
.section--valley {
    background: #d4c8b4;
    clip-path: polygon(0 0, 100% 4vw, 100% calc(100% - 4vw), 0 100%);
    margin-top: -4vw;
    padding: calc(4vw + 5rem) 0 calc(4vw + 5rem);
    z-index: 3;
    position: relative;
    min-height: 135vh;
    display: flex;
    align-items: center;
}

.contour-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.contour-lines--dark {
    opacity: 0.6;
}

.valley-content {
    position: relative;
    z-index: 2;
}

.terrace {
    max-width: 800px;
    margin-bottom: 3rem;
}

.terrace--1 {
    margin-left: 0;
}

.terrace--2 {
    margin-left: 80px;
}

.terrace--3 {
    margin-left: 160px;
}

.terrace--4 {
    margin-left: 240px;
    max-width: 560px;
}

.valley-instrument {
    background: rgba(26, 31, 53, 0.05);
}

/* === Observatory Deck === */
.section--observatory {
    background: #1a1f35;
    clip-path: polygon(0 4vw, 100% 0, 100% 100%, 0 calc(100% - 0vw));
    margin-top: -4vw;
    padding: calc(4vw + 5rem) 0 6rem;
    z-index: 2;
    min-height: 105vh;
    display: flex;
    align-items: center;
}

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

.panorama-wrapper {
    width: 80%;
    margin: 2rem auto;
}

.mountain-panorama {
    width: 100%;
    height: auto;
}

.observatory-caption {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.observatory-copy {
    max-width: 720px;
    margin: 0 auto 1.75rem;
}

/* === Base Camp Footer === */
.section--basecamp {
    background: #0d1118;
    clip-path: polygon(0 0, 100% 4vw, 100% 100%, 0 100%);
    margin-top: -4vw;
    padding: calc(4vw + 4rem) 0 3rem;
    z-index: 1;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.basecamp-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
}

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

.nav-link {
    display: inline-block;
    font-family: 'Libre Franklin', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    color: #8a92a8;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-link:hover {
    color: #2a8e7e;
    transform: translateY(-4px);
}

.basecamp-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.mini-ridge {
    width: 40px;
    height: 12px;
}

.basecamp-name {
    font-family: 'Bricolage Grotesque', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8a92a8;
}

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

    .terrace--2 {
        margin-left: 30px;
    }

    .terrace--3 {
        margin-left: 60px;
    }

    .terrace--4 {
        margin-left: 20px;
    }

    .panorama-wrapper {
        width: 100%;
    }

    .observatory-caption {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .basecamp-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem;
    }
}
