/* hanun.ai - Mountain Ink Wash Design */
/* Colors: #e8e0d4 #2d2a35 #8a7e72 #c4a882 #c24b3a #1a1520 #2c2420 #3d2e42 #5c6b7a #f0ebe3 */

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    color: #e8e0d4;
    background-color: #1a1520;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================
   MOUNTAIN PARALLAX LAYERS
   ============================ */

#mountain-parallax {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 1;
    pointer-events: none;
}

.mountain-ridge {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70vh;
    will-change: transform;
    transition: none;
}

#ridge-far {
    z-index: 1;
    height: 80vh;
}

#ridge-mid-far {
    z-index: 2;
    height: 75vh;
}

#ridge-mid-near {
    z-index: 3;
    height: 65vh;
}

#ridge-near {
    z-index: 4;
    height: 55vh;
}

/* ============================
   FOG LAYERS
   ============================ */

#fog-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 5;
    pointer-events: none;
}

.fog-layer {
    position: absolute;
    width: 200%;
    height: 100%;
    opacity: 0.6;
}

.fog-layer-1 {
    background: radial-gradient(ellipse 80% 40% at 30% 60%, rgba(232,224,212,0.15) 0%, transparent 70%);
    animation: fogDrift1 25s ease-in-out infinite alternate;
}

.fog-layer-2 {
    background: radial-gradient(ellipse 60% 30% at 70% 50%, rgba(138,126,114,0.1) 0%, transparent 60%);
    animation: fogDrift2 30s ease-in-out infinite alternate;
}

.fog-layer-3 {
    background: radial-gradient(ellipse 90% 50% at 50% 70%, rgba(232,224,212,0.08) 0%, transparent 80%);
    animation: fogDrift3 35s ease-in-out infinite alternate;
}

@keyframes fogDrift1 {
    0% { transform: translateX(-10%); }
    100% { transform: translateX(-40%); }
}

@keyframes fogDrift2 {
    0% { transform: translateX(-30%); }
    100% { transform: translateX(-5%); }
}

@keyframes fogDrift3 {
    0% { transform: translateX(-20%); }
    100% { transform: translateX(-35%); }
}

/* ============================
   MAIN CONTENT
   ============================ */

#scroll-content {
    position: relative;
    z-index: 10;
}

.altitude-zone {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.zone-inner {
    max-width: 1100px;
    width: 100%;
    padding: 80px 40px;
}

/* ============================
   ZONE 1: VALLEY
   ============================ */

#zone-valley {
    min-height: 100vh;
    background: linear-gradient(180deg, #1a1520 0%, rgba(26,21,32,0.9) 60%, rgba(44,36,32,0.4) 100%);
}

#zone-valley .zone-inner {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.korean-mark {
    margin-bottom: 30px;
    opacity: 0;
    animation: fadeInUp 1.5s ease 0.3s forwards;
}

.hanun-korean {
    font-family: 'Libre Baskerville', serif;
    font-style: italic;
    font-size: 2.5rem;
    color: #8a7e72;
    letter-spacing: 0.15em;
}

.hero-title {
    font-family: 'Libre Baskerville', serif;
    font-weight: 400;
    font-size: 10vw;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: #e8e0d4;
    opacity: 0;
    animation: fadeInUp 1.5s ease 0.6s forwards;
}

.title-dot {
    color: #c4a882;
}

.hero-subtitle {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 300;
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #8a7e72;
    margin-top: 24px;
    opacity: 0;
    animation: fadeInUp 1.5s ease 0.9s forwards;
}

.scroll-indicator {
    margin-top: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    opacity: 0;
    animation: fadeInUp 1.5s ease 1.2s forwards;
}

.scroll-text {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 300;
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #8a7e72;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(180deg, #8a7e72 0%, transparent 100%);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.7); }
    50% { opacity: 1; transform: scaleY(1); }
}

@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* ============================
   ZONE 2: SLOPES
   ============================ */

#zone-slopes {
    background: linear-gradient(180deg, rgba(44,36,32,0.3) 0%, rgba(44,36,32,0.6) 50%, rgba(45,42,53,0.4) 100%);
}

.altitude-marker {
    margin-bottom: 40px;
}

.altitude-label {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 300;
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    color: #c4a882;
    opacity: 0.6;
}

.zone-heading {
    font-family: 'Libre Baskerville', serif;
    font-weight: 400;
    font-size: 6vw;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: #e8e0d4;
    margin-bottom: 50px;
}

.zone-heading em {
    font-style: italic;
    color: #c4a882;
}

.text-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.zone-text {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 1.05rem;
    line-height: 1.8;
    color: #e8e0d4;
    opacity: 0.85;
}

.ink-divider {
    width: 120px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #8a7e72, transparent);
    margin: 60px 0 0;
    opacity: 0.5;
}

/* ============================
   ZONE 3: TREELINE
   ============================ */

#zone-treeline {
    background: linear-gradient(180deg, rgba(45,42,53,0.3) 0%, rgba(45,42,53,0.5) 50%, rgba(61,46,66,0.3) 100%);
}

.capability-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px 80px;
    margin-top: 20px;
}

.capability-item {
    padding: 30px 0;
    border-top: 1px solid rgba(196,168,130,0.15);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.capability-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.capability-number {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 300;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    color: #c4a882;
    opacity: 0.5;
    display: block;
    margin-bottom: 16px;
}

.capability-title {
    font-family: 'Libre Baskerville', serif;
    font-weight: 400;
    font-size: 1.3rem;
    color: #e8e0d4;
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

.capability-item:hover .capability-title {
    color: #f0ebe3;
}

.capability-item:hover .capability-number {
    color: #5c6b7a;
}

.capability-desc {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #8a7e72;
}

/* ============================
   ZONE 4: RIDGE
   ============================ */

#zone-ridge {
    background: linear-gradient(180deg, rgba(61,46,66,0.2) 0%, rgba(45,42,53,0.5) 50%, rgba(26,21,32,0.3) 100%);
}

.philosophy-quote {
    border-left: 2px solid #c4a882;
    padding-left: 40px;
    margin: 40px 0 60px;
    max-width: 700px;
}

.philosophy-quote p {
    font-family: 'Libre Baskerville', serif;
    font-style: italic;
    font-size: 1.25rem;
    line-height: 1.8;
    color: #e8e0d4;
    opacity: 0.9;
}

.philosophy-principles {
    display: flex;
    gap: 60px;
    margin-top: 20px;
}

.principle {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
}

.principle-kanji {
    font-size: 3rem;
    color: #c4a882;
    opacity: 0.7;
    transition: opacity 0.5s ease;
    line-height: 1;
}

.principle:hover .principle-kanji {
    opacity: 1;
}

.principle-text {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 300;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    color: #8a7e72;
}

/* ============================
   ZONE 5: SUMMIT
   ============================ */

#zone-summit {
    min-height: 100vh;
    background: linear-gradient(180deg, rgba(26,21,32,0.2) 0%, rgba(232,224,212,0.05) 40%, rgba(232,224,212,0.03) 100%);
}

#zone-summit .zone-inner {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.summit-statement {
    margin-bottom: 60px;
}

.summit-text {
    font-family: 'Libre Baskerville', serif;
    font-weight: 400;
    font-size: 10vw;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #f0ebe3;
}

.vermillion-seal {
    width: 80px;
    height: 80px;
    margin: 40px auto;
    opacity: 0;
    transform: scale(0.8) rotate(-5deg);
    transition: opacity 1s ease, transform 1s ease;
}

.vermillion-seal.visible {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

.contact-zone {
    margin-top: 60px;
}

.contact-prompt {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 300;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #8a7e72;
    margin-bottom: 20px;
}

.contact-link {
    display: inline-block;
    text-decoration: none;
    position: relative;
}

.link-text {
    font-family: 'Libre Baskerville', serif;
    font-size: 1.5rem;
    color: #c4a882;
    transition: color 0.4s ease;
}

.contact-link:hover .link-text {
    color: #c24b3a;
}

.contact-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #c24b3a;
    transition: width 0.4s ease;
}

.contact-link:hover::after {
    width: 100%;
}

.site-footer {
    margin-top: 80px;
    padding-top: 30px;
    border-top: 1px solid rgba(138,126,114,0.15);
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 300px;
}

.footer-mark,
.footer-year {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 300;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    color: #8a7e72;
    opacity: 0.5;
}

/* ============================
   ALTITUDE INDICATOR
   ============================ */

#altitude-indicator {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.altitude-track {
    width: 2px;
    height: 120px;
    background: #5c6b7a;
    border-radius: 1px;
    overflow: hidden;
    position: relative;
}

.altitude-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: linear-gradient(0deg, #c4a882, #c24b3a);
    border-radius: 1px;
    transition: height 0.3s ease;
}

.altitude-current {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 300;
    font-size: 0.6rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #8a7e72;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    opacity: 0.6;
}

/* ============================
   SCROLL REVEAL
   ============================ */

.zone-heading,
.philosophy-quote,
.philosophy-principles,
.summit-statement,
.contact-zone {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s ease;
}

.zone-heading.visible,
.philosophy-quote.visible,
.philosophy-principles.visible,
.summit-statement.visible,
.contact-zone.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================
   RESPONSIVE
   ============================ */

@media (max-width: 768px) {
    .hero-title {
        font-size: 15vw;
    }
    
    .zone-heading {
        font-size: 9vw;
    }
    
    .summit-text {
        font-size: 14vw;
    }
    
    .text-columns {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .capability-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .philosophy-principles {
        flex-direction: column;
        gap: 40px;
        align-items: flex-start;
    }
    
    .principle {
        flex-direction: row;
        gap: 20px;
        text-align: left;
    }
    
    .zone-inner {
        padding: 60px 24px;
    }
    
    .philosophy-quote {
        padding-left: 24px;
    }
    
    #altitude-indicator {
        right: 16px;
    }
    
    .hanun-korean {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 18vw;
    }
    
    .zone-heading {
        font-size: 11vw;
    }
    
    .summit-text {
        font-size: 16vw;
    }
}
