/* Sumi-e Ink Mountain Style - Rare Air Development LLC */

:root {
    --bg-color: #f4f1eb; /* Rice paper textured off-white */
    --text-color: #1a1a1a;
    --text-muted: #555555;
    --ink-black: #090909;
    --ink-grey: #7c7c7c;
    --ink-light: #d1d1d1;
    --accent-red: #c0392b; /* Traditional vermillion seal red */
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    background-image: 
        radial-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 0),
        radial-gradient(rgba(0, 0, 0, 0.02) 2px, transparent 0);
    background-size: 24px 24px, 48px 48px;
    color: var(--text-color);
    font-family: var(--font-sans);
    height: 100vh;
    overflow: hidden;
    position: relative;
}

/* Base interactive overlays */
.back-dashboard {
    position: fixed;
    top: 2rem;
    left: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid var(--ink-black);
    color: var(--ink-black);
    text-decoration: none;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 4px;
    z-index: 100;
    transition: all 0.3s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

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

.reset-ascent {
    position: fixed;
    top: 2rem;
    right: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid var(--ink-black);
    color: var(--ink-black);
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 4px;
    z-index: 100;
    transition: all 0.3s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

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

/* Climber progress bar */
.indicator-container {
    position: fixed;
    left: 3rem;
    top: 20%;
    bottom: 20%;
    width: 2px;
    background: rgba(0, 0, 0, 0.08);
    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-black);
    transition: height 0.1s ease-out;
}

#indicator-climber {
    position: absolute;
    bottom: 0;
    left: -11px;
    width: 24px;
    height: 24px;
    color: var(--accent-red);
    transition: bottom 0.1s ease-out;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

/* 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, #eae6dc 0%, #f4f1eb 100%);
    z-index: 1;
}

.sun-orb {
    position: absolute;
    top: 15%;
    right: 15%;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(192, 57, 43, 0.15) 0%, rgba(192, 57, 43, 0) 70%);
    border: 1px dashed rgba(192, 57, 43, 0.2);
}

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

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

.cloud {
    position: absolute;
    background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0) 70%);
    filter: blur(10px);
}

.cloud-1 {
    width: 400px;
    height: 120px;
    left: 10%;
    top: 20%;
}

.cloud-2 {
    width: 500px;
    height: 150px;
    right: 5%;
    top: 50%;
}

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

.mid-layer {
    bottom: -150px;
    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: 150px;
    background: linear-gradient(to top, var(--bg-color), transparent);
}

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

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

.master-frame {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    border: 8px double var(--ink-black);
    padding: 6px;
    background: var(--bg-color);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    position: relative;
}

.master-frame::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 50%;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.2);
    pointer-events: none;
}

.master-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 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: 2rem;
    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-serif);
    font-style: italic;
    font-size: 1.1rem;
    color: var(--accent-red);
    margin-bottom: 0.5rem;
    display: block;
}

.story-panel h2 {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 700;
    color: var(--ink-black);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.story-panel .description {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--text-muted);
    font-weight: 300;
}

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

.scroll-hint span {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Summit & Contact Form */
.panel-summit {
    pointer-events: auto !important; /* Enable inputs at top */
    max-width: 700px;
}

.master-form {
    margin-top: 2rem;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--ink-black);
    padding: 1.5rem;
    border-radius: 4px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

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

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

.master-form textarea:focus {
    border-color: var(--ink-black);
}

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

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

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

.master-form button {
    padding: 0.8rem 2rem;
    background: var(--ink-black);
    color: var(--bg-color);
    border: none;
    font-family: var(--font-sans);
    font-weight: 500;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.3s;
}

.master-form button:hover {
    background: var(--accent-red);
}

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

.wisdom-quote {
    color: var(--ink-black);
    border-left: 3px solid var(--accent-red);
    padding-left: 1rem;
    text-align: left;
    display: inline-block;
}

/* Animations */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-8px); }
    60% { transform: translateY(-4px); }
}

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