/* Vintage Woodcut Style - Rare Air Development LLC */

:root {
    --bg-color: #f5f1e6; /* Cream aged paper */
    --ink-dark: #2c2518;  /* Warm charcoal ink */
    --ink-grey: #695e4d;
    --ink-sepia: #8c7853;
    --ink-parchment: #e6dfcb;
    
    --font-serif: 'EB Garamond', Georgia, serif;
    --font-display: 'Cinzel', serif;
}

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

body {
    background-color: var(--bg-color);
    background-image: 
        radial-gradient(rgba(74, 66, 49, 0.05) 1px, transparent 0),
        linear-gradient(rgba(74, 66, 49, 0.02) 1px, transparent 0);
    background-size: 30px 30px, 100% 10px;
    color: var(--ink-dark);
    font-family: var(--font-serif);
    height: 100vh;
    overflow: hidden;
    position: relative;
}

/* Global controls */
.back-dashboard {
    position: fixed;
    top: 2rem;
    left: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-color);
    border: 3px double var(--ink-dark);
    color: var(--ink-dark);
    text-decoration: none;
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    z-index: 100;
    transition: all 0.3s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.back-dashboard:hover {
    background: var(--ink-dark);
    color: var(--bg-color);
}

.reset-ascent {
    position: fixed;
    top: 2rem;
    right: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-color);
    border: 3px double var(--ink-dark);
    color: var(--ink-dark);
    cursor: pointer;
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    z-index: 100;
    transition: all 0.3s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.reset-ascent:hover {
    background: var(--ink-dark);
    color: var(--bg-color);
}

/* Progress indicator */
.indicator-container {
    position: fixed;
    left: 3rem;
    top: 20%;
    bottom: 20%;
    width: 4px;
    background: var(--ink-parchment);
    border: 1px solid var(--ink-grey);
    z-index: 90;
}

.indicator-track {
    width: 100%;
    height: 100%;
    position: relative;
}

#indicator-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: var(--ink-dark);
    transition: height 0.1s ease-out;
}

#indicator-climber {
    position: absolute;
    bottom: 0;
    left: -10px;
    width: 24px;
    height: 24px;
    color: var(--ink-dark);
    transition: bottom 0.1s ease-out;
    filter: drop-shadow(0 2px 3px rgba(0,0,0,0.15));
}

/* Scroll Viewport */
.scroll-viewport {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

/* Parallax Layers */
.sky-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, #eae4d3 0%, var(--bg-color) 100%);
    z-index: 1;
}

.engraved-sun {
    position: absolute;
    top: 15%;
    right: 15%;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 1px solid var(--ink-grey);
    background: transparent;
    box-shadow: 0 0 0 6px rgba(140, 120, 83, 0.05);
}

.engraved-sun::after {
    content: '';
    position: absolute;
    top: -10px; left: -10px; right: -10px; bottom: -10px;
    border-radius: 50%;
    border: 1px dashed var(--ink-grey);
}

.parallax-layer {
    position: absolute;
    left: 0;
    width: 100%;
    pointer-events: none;
    will-change: transform, opacity;
}

.clouds-layer {
    top: 25%;
    height: 400px;
    z-index: 2;
    opacity: 0.4;
}

.cloud {
    position: absolute;
    border: 1px solid var(--ink-grey);
    background: rgba(230, 223, 203, 0.6);
    border-radius: 50px;
}

.cloud-1 {
    width: 320px;
    height: 60px;
    left: 8%;
    top: 15%;
}

.cloud-2 {
    width: 380px;
    height: 70px;
    right: 10%;
    top: 45%;
}

.base-layer {
    bottom: -40px;
    height: 600px;
    z-index: 3;
}

.mid-layer {
    bottom: -140px;
    height: 600px;
    z-index: 4;
    transform: translateY(150px);
    opacity: 0;
}

.peak-layer {
    bottom: 0;
    height: 650px;
    z-index: 5;
    transform: translateY(200px);
    opacity: 0;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

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

.base-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, var(--bg-color), transparent);
}

/* Master Display Frame */
.peak-content {
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.master-container {
    position: absolute;
    bottom: 110px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
}

.master-frame {
    width: 290px;
    height: 290px;
    border: 12px double var(--ink-dark);
    padding: 10px;
    background: var(--bg-color);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
}

.master-frame::after {
    content: '';
    position: absolute;
    top: 5px; left: 5px; right: 5px; bottom: 5px;
    border: 1px solid var(--ink-grey);
    pointer-events: none;
}

.master-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: sepia(0.3) contrast(1.1);
}

/* Story Text Layout */
.story-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 50;
    pointer-events: none;
}

.story-panel {
    position: absolute;
    width: 100%;
    max-width: 600px;
    text-align: center;
    padding: 2.5rem;
    opacity: 0;
    transform: translateY(30px);
    pointer-events: none;
    transition: opacity 0.1s ease-out, transform 0.1s ease-out;
}

.story-panel.active {
    opacity: 1;
    transform: translateY(0);
}

.step-label {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--ink-sepia);
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
    display: block;
}

.story-panel h2 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--ink-dark);
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
    border-bottom: 1px solid var(--ink-sepia);
    padding-bottom: 0.75rem;
}

.story-panel .description {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--ink-grey);
    font-weight: 400;
}

/* Scroll Hint */
.scroll-hint {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--ink-grey);
}

.scroll-hint span {
    font-family: var(--font-display);
    font-size: 0.8rem;
    letter-spacing: 0.05em;
}

/* Summit & Form */
.panel-summit {
    pointer-events: auto !important;
    max-width: 650px;
}

.master-form {
    margin-top: 2rem;
    background: #faf8f5;
    border: 3px double var(--ink-dark);
    padding: 2rem;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 1.25rem;
}

.master-form textarea {
    width: 100%;
    height: 100px;
    padding: 1rem;
    border: 1px solid var(--ink-grey);
    background: transparent;
    font-family: var(--font-serif);
    font-size: 1.05rem;
    resize: none;
    outline: none;
}

.master-form textarea:focus {
    border-color: var(--ink-dark);
    box-shadow: inset 0 0 5px rgba(0,0,0,0.05);
}

.form-row {
    display: flex;
    gap: 1rem;
}

.master-form input[type="email"] {
    flex-grow: 1;
    padding: 0.8rem 1rem;
    border: 1px solid var(--ink-grey);
    background: transparent;
    font-family: var(--font-serif);
    font-size: 1.05rem;
    outline: none;
}

.master-form input[type="email"]:focus {
    border-color: var(--ink-dark);
}

.master-form button {
    padding: 0.8rem 2rem;
    background: var(--ink-dark);
    color: var(--bg-color);
    border: none;
    font-family: var(--font-display);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.master-form button:hover {
    background: var(--ink-sepia);
}

.feedback-container {
    margin-top: 1.5rem;
    min-height: 40px;
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.15rem;
    color: var(--ink-sepia);
}

.wisdom-quote {
    color: var(--ink-dark);
    border-left: 2px solid var(--ink-sepia);
    padding-left: 1rem;
    text-align: left;
    display: inline-block;
}

@media (max-width: 768px) {
    .story-panel h2 {
        font-size: 2rem;
    }
    .master-frame {
        width: 200px;
        height: 200px;
    }
    .form-row {
        flex-direction: column;
    }
    .indicator-container {
        left: 1.5rem;
    }
}
