:root {
    /* Typography compliance terms: Mono**x Mono** clarity. copy use Sans**x Sans** keep explanations approachable legible Grotesk**x Grotesk** chunky callout numbers needed. */
    --sage: #7E8F6B;
    --charcoal: #252620;
    --paper: #F1E4C8;
    --rust: #B96F4A;
    --teal: #3D6F73;
    --cream: #FFF5DA;
    --mauve: #9A7C8C;
    --shadow: rgba(37, 38, 32, 0.24);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--charcoal);
    font-family: "Nunito Sans", sans-serif;
    background:
        radial-gradient(circle at 16% 8%, rgba(255, 245, 218, 0.92), transparent 32%),
        radial-gradient(circle at 78% 18%, rgba(154, 124, 140, 0.48), transparent 30%),
        radial-gradient(circle at 18% 68%, rgba(61, 111, 115, 0.36), transparent 36%),
        linear-gradient(145deg, #F1E4C8 0%, #FFF5DA 41%, #7E8F6B 150%);
    overflow-x: hidden;
}

.grain {
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.24;
    z-index: 4;
    background-image: repeating-radial-gradient(circle at 18% 22%, rgba(37, 38, 32, 0.16) 0 1px, transparent 1px 5px);
    mix-blend-mode: multiply;
}

.weather {
    position: fixed;
    width: 42vw;
    height: 42vw;
    border-radius: 50%;
    filter: blur(42px);
    opacity: 0.44;
    pointer-events: none;
    animation: drift 18s ease-in-out infinite alternate;
}

.weather-one {
    top: 8vh;
    left: -8vw;
    background: linear-gradient(120deg, #B96F4A, #FFF5DA, #9A7C8C);
}

.weather-two {
    right: -12vw;
    bottom: 4vh;
    background: linear-gradient(120deg, #3D6F73, #7E8F6B, #F1E4C8);
    animation-delay: -6s;
}

.trail-map {
    position: relative;
    isolation: isolate;
}

.panel {
    min-height: 100vh;
    position: relative;
    padding: clamp(64px, 9vw, 136px) clamp(20px, 7vw, 112px);
    display: grid;
    align-items: center;
}

.route-line {
    position: absolute;
    inset: 72vh 0 auto 0;
    width: 100%;
    height: 2920px;
    z-index: -1;
    pointer-events: none;
}

.route-line path {
    fill: none;
    stroke: #B96F4A;
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 24 22;
    filter: drop-shadow(0 12px 0 rgba(37, 38, 32, 0.08));
}

#routePath {
    stroke-dasharray: 3400;
    stroke-dashoffset: 3400;
}

.iso-card {
    background: linear-gradient(155deg, rgba(255, 245, 218, 0.96), rgba(241, 228, 200, 0.88));
    border: 2px solid rgba(37, 38, 32, 0.16);
    box-shadow: 18px 22px 0 rgba(37, 38, 32, 0.14), 0 28px 52px var(--shadow);
    transform: rotateX(0deg) rotateZ(-1.5deg) skewX(-3deg);
    border-radius: 28px;
}

.coord-tag,
.note-title,
.command-strip,
code,
.signpost span,
.tent-toggle {
    font-family: "IBM Plex Mono", monospace;
}

h1,
h2 {
    font-family: "Fraunces", serif;
    margin: 0;
    line-height: 0.94;
    font-variation-settings: "WONK" 1, "SOFT" 70;
}

h1 {
    font-size: clamp(4.5rem, 17vw, 15rem);
    color: #252620;
    letter-spacing: -0.09em;
    text-shadow: 7px 7px 0 rgba(185, 111, 74, 0.34);
}

h2 {
    font-size: clamp(2.4rem, 6vw, 6rem);
    color: #252620;
    max-width: 850px;
}

p {
    font-size: clamp(1.05rem, 1.55vw, 1.35rem);
    line-height: 1.72;
}

.coord-tag {
    color: #3D6F73;
    font-size: 0.82rem;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    font-weight: 600;
}

.hero-panel {
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
    gap: 5vw;
}

.hero-plateau {
    padding: clamp(28px, 5vw, 76px);
    position: relative;
}

.wordmark-sign {
    position: relative;
    display: inline-block;
}

.marker-post {
    position: absolute;
    left: 8%;
    top: -42px;
    width: 14px;
    height: 84px;
    background: #3D6F73;
    border-radius: 9px;
    transform: rotate(8deg);
}

.draw-underline {
    width: 100%;
    height: 54px;
    display: block;
    margin-top: -20px;
}

.draw-underline path {
    fill: none;
    stroke: #B96F4A;
    stroke-width: 12;
    stroke-linecap: round;
    stroke-dasharray: 720;
    stroke-dashoffset: 720;
    animation: draw 1.65s 0.35s cubic-bezier(0.61, 0.01, 0.16, 1) forwards;
}

.lede {
    max-width: 720px;
    font-size: clamp(1.25rem, 2vw, 1.85rem);
    font-weight: 700;
}

.command-strip {
    display: inline-flex;
    gap: 12px;
    padding: 14px 18px;
    background: #252620;
    color: #FFF5DA;
    border-radius: 14px;
    box-shadow: inset 0 -4px 0 rgba(255, 245, 218, 0.12);
}

.command-strip span {
    color: #B96F4A;
}

.basecamp-illustration {
    min-height: 540px;
    position: relative;
    transform-style: preserve-3d;
}

.mountain {
    position: absolute;
    width: 280px;
    height: 280px;
    background: linear-gradient(135deg, #7E8F6B 0 50%, #3D6F73 50% 100%);
    transform: rotate(45deg) skew(-12deg, -12deg);
    box-shadow: 22px 22px 0 rgba(37, 38, 32, 0.13);
}

.m1 {
    left: 7%;
    top: 120px;
}

.m2 {
    right: 8%;
    top: 42px;
    width: 220px;
    height: 220px;
    background: linear-gradient(135deg, #9A7C8C 0 50%, #7E8F6B 50% 100%);
}

.tent {
    position: absolute;
    left: 35%;
    bottom: 82px;
    width: 160px;
    height: 96px;
    background: linear-gradient(120deg, #B96F4A 0 50%, #F1E4C8 50% 100%);
    clip-path: polygon(50% 0, 100% 100%, 0 100%);
    filter: drop-shadow(16px 22px 0 rgba(37, 38, 32, 0.16));
}

.cable {
    position: absolute;
    inset: 55px 20px auto 40px;
    height: 3px;
    background: #252620;
    transform: rotate(-12deg);
}

.cable span {
    position: absolute;
    right: 26%;
    top: 18px;
    padding: 10px 16px;
    background: #FFF5DA;
    border: 2px solid #252620;
    border-radius: 10px;
    font-family: "IBM Plex Mono", monospace;
    animation: bob 3s ease-in-out infinite;
}

.switchback-panel {
    grid-template-columns: 0.9fr 0.7fr;
    gap: 7vw;
}

.lesson-card {
    padding: clamp(28px, 5vw, 68px);
}

.left-rise {
    margin-left: 5vw;
}

.right-rise {
    margin-left: auto;
    max-width: 780px;
    transform: rotateZ(1.8deg) skewX(3deg);
}

.trail-number {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(6rem, 16vw, 17rem);
    color: rgba(61, 111, 115, 0.18);
    position: absolute;
    top: 12vh;
    left: 7vw;
    font-weight: 700;
}

.pinned-note {
    align-self: end;
    justify-self: start;
    width: min(420px, 100%);
    padding: 28px;
    background: #FFF5DA;
    border: 2px dashed #B96F4A;
    box-shadow: 14px 18px 0 rgba(154, 124, 140, 0.24);
    transform: rotate(5deg);
}

.pin {
    display: block;
    width: 22px;
    height: 22px;
    background: #B96F4A;
    border-radius: 50%;
    margin: -40px auto 12px;
    box-shadow: 0 8px 0 rgba(37, 38, 32, 0.15);
}

.terrace-panel {
    grid-template-columns: 0.8fr 1fr;
    gap: 8vw;
}

.isometric-stack {
    height: 560px;
    position: relative;
}

.slab {
    position: absolute;
    width: min(430px, 80vw);
    height: 140px;
    transform: rotateZ(-10deg) skewX(-26deg);
    border-radius: 24px;
    box-shadow: 20px 24px 0 rgba(37, 38, 32, 0.14);
    border: 2px solid rgba(37, 38, 32, 0.13);
    display: grid;
    place-items: center;
    font-family: "Space Grotesk", sans-serif;
    font-size: 2rem;
    color: #FFF5DA;
}

.slab-top { top: 42px; left: 12%; background: #3D6F73; }
.slab-mid { top: 205px; left: 24%; background: #7E8F6B; }
.slab-low { top: 366px; left: 4%; background: #B96F4A; }

.cablecar-row {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.mini-cablecar {
    padding: 16px 20px;
    border: 2px solid #252620;
    background: #FFF5DA;
    border-radius: 12px;
    transform: translateY(0);
    transition: transform 0.35s ease, background 0.35s ease;
}

.mini-cablecar.active,
.mini-cablecar:hover {
    background: #B96F4A;
    color: #FFF5DA;
    transform: translateY(-14px) rotate(-2deg);
}

.diagram-panel {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 6vw;
}

.contour-board {
    padding: clamp(28px, 5vw, 72px);
    background: linear-gradient(160deg, rgba(241, 228, 200, 0.98), rgba(126, 143, 107, 0.18));
}

.contours {
    width: min(520px, 100%);
    margin: 20px 0;
}

.contours path {
    fill: none;
    stroke: #3D6F73;
    stroke-width: 4;
    stroke-dasharray: 900;
    stroke-dashoffset: 900;
    transition: stroke-dashoffset 1.8s ease;
}

.contour-board.visible .contours path {
    stroke-dashoffset: 0;
}

.signpost {
    justify-self: start;
    align-self: center;
    padding: 18px 22px;
    background: #252620;
    color: #FFF5DA;
    border-radius: 14px;
    box-shadow: 0 130px 0 -57px #B96F4A;
    transform: rotate(4deg);
}

.signpost strong {
    display: block;
    font-family: "Fraunces", serif;
    font-size: 1.6rem;
    margin-top: 8px;
}

.cabin-panel {
    justify-items: center;
}

.cabin-card {
    width: min(920px, 100%);
    background: linear-gradient(155deg, #FFF5DA, #F1E4C8 65%, rgba(154, 124, 140, 0.25));
}

.accordion {
    margin-top: 32px;
}

.tent-toggle {
    width: 100%;
    text-align: left;
    border: 0;
    margin-top: 14px;
    padding: 18px 22px;
    background: #3D6F73;
    color: #FFF5DA;
    border-radius: 16px 16px 4px 4px;
    cursor: pointer;
    font-size: 1rem;
}

.tent-toggle.open {
    background: #B96F4A;
}

.tent-content {
    max-height: 0;
    overflow: hidden;
    padding: 0 22px;
    background: rgba(255, 245, 218, 0.72);
    border: 2px solid rgba(37, 38, 32, 0.08);
    border-top: 0;
    border-radius: 0 0 16px 16px;
    transition: max-height 0.35s ease, padding 0.35s ease;
    line-height: 1.7;
}

.tent-content.show {
    max-height: 180px;
    padding: 18px 22px;
}

.summit-panel {
    grid-template-columns: 0.35fr 1fr;
    gap: 5vw;
    min-height: 86vh;
}

.summit-badge {
    width: clamp(140px, 22vw, 260px);
    height: clamp(140px, 22vw, 260px);
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #9A7C8C;
    color: #FFF5DA;
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(4rem, 10vw, 9rem);
    box-shadow: 18px 22px 0 rgba(37, 38, 32, 0.16);
}

.summit-card {
    padding: clamp(30px, 5vw, 76px);
}

.route-button {
    display: inline-block;
    margin-top: 20px;
    padding: 15px 24px;
    background: #252620;
    color: #FFF5DA;
    border-radius: 999px;
    text-decoration: none;
    font-family: "IBM Plex Mono", monospace;
}

.panel .iso-card,
.pinned-note,
.signpost,
.isometric-stack,
.summit-badge {
    opacity: 0;
    transform: translateY(46px) rotateZ(-1.5deg) skewX(-3deg);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.72, 0.18, 1);
}

.panel.visible .iso-card,
.panel.visible .pinned-note,
.panel.visible .signpost,
.panel.visible .isometric-stack,
.panel.visible .summit-badge {
    opacity: 1;
    transform: translateY(0) rotateZ(-1.5deg) skewX(-3deg);
}

.panel.visible .right-rise,
.panel.visible .signpost {
    transform: translateY(0) rotateZ(1.8deg) skewX(3deg);
}

.panel.visible .pinned-note {
    transform: translateY(0) rotate(5deg);
}

.panel.visible .isometric-stack,
.panel.visible .summit-badge {
    transform: translateY(0);
}

@keyframes draw {
    to { stroke-dashoffset: 0; }
}

@keyframes bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes drift {
    to { transform: translate3d(8vw, 5vh, 0) scale(1.08); }
}

@media (max-width: 900px) {
    .hero-panel,
    .switchback-panel,
    .terrace-panel,
    .diagram-panel,
    .summit-panel {
        grid-template-columns: 1fr;
    }

    .basecamp-illustration {
        min-height: 360px;
    }

    .route-line {
        opacity: 0.42;
    }

    .lesson-card,
    .left-rise,
    .right-rise {
        margin-left: 0;
    }

    .isometric-stack {
        height: 430px;
    }
}
