/* ========================================
   mujun.xyz — Luxury-premium nature observatory
   ======================================== */

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

:root {
    --charcoal: #1c1714;
    --deep-charcoal: #0D0B09;
    --amber: #e8a44a;
    --white: #ffffff;
    --dark-brown: #3d2a22;
    --ember-orange: #ff6b2b;
    --burnt-sienna: #C4501A;
    --warm-cream: #f0e4d4;
    --terracotta: #d4956a;
    --muted-brown: #8A6354;
    --black: #000000;
}

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

body {
    background-color: var(--charcoal);
    color: var(--warm-cream);
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    line-height: 1.7;
    overflow-x: hidden;
}

/* ---- Sections ---- */
.section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.section-hero {
    background: radial-gradient(ellipse at 50% 80%, #3d2a22 0%, #1c1714 70%);
}

.section-contradiction {
    background: radial-gradient(ellipse at 30% 50%, #3d2a22 0%, #1c1714 60%);
}

.section-geology {
    background: radial-gradient(ellipse at 70% 60%, rgba(61,42,34,0.8) 0%, #1c1714 65%);
}

.section-observatory {
    background: radial-gradient(ellipse at 50% 40%, rgba(61,42,34,0.6) 0%, #1c1714 70%);
}

.section-descent {
    background: radial-gradient(ellipse at 50% 100%, #3d2a22 0%, #0D0B09 50%, #000000 100%);
}

/* ---- Fracture Lines ---- */
.fracture-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* ---- Ember Particles ---- */
.ember-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.ember {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--ember-orange);
    opacity: 0;
    animation: ember-rise linear infinite;
}

@keyframes ember-rise {
    0% {
        opacity: 0;
        transform: translateY(0) scale(1);
    }
    10% {
        opacity: 0.8;
    }
    80% {
        opacity: 0.3;
    }
    100% {
        opacity: 0;
        transform: translateY(-200px) scale(0.3) translateX(30px);
    }
}

/* ---- Hero ---- */
.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: clamp(3rem, 8vw, 7rem);
    letter-spacing: -0.02em;
    color: var(--warm-cream);
    opacity: 0;
    transform: translateY(20px);
    animation: thermal-reveal 2s ease-out 0.5s forwards;
}

.hero-subtitle {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: var(--terracotta);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-top: 0.5rem;
    opacity: 0;
    animation: thermal-reveal 1.5s ease-out 1.5s forwards;
}

.hero-tagline {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    opacity: 0;
    animation: thermal-reveal 1.5s ease-out 2.5s forwards;
}

.tagline-line {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: clamp(0.875rem, 1.5vw, 1.125rem);
    color: var(--terracotta);
    letter-spacing: 0.15em;
    text-transform: lowercase;
}

@keyframes thermal-reveal {
    0% {
        opacity: 0;
        transform: translateY(20px);
        filter: blur(4px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

/* ---- Heat Shimmer ---- */
.heat-shimmer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: linear-gradient(to top, rgba(255,107,43,0.05), transparent);
    pointer-events: none;
    z-index: 1;
    animation: shimmer-pulse 4s ease-in-out infinite;
}

@keyframes shimmer-pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* ---- Section Content ---- */
.section-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    padding: 2rem;
    text-align: center;
}

.section-headline {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 4.5rem);
    letter-spacing: -0.02em;
    color: var(--warm-cream);
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.section-headline.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-body {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: clamp(0.95rem, 1.3vw, 1.125rem);
    line-height: 1.8;
    color: var(--terracotta);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.2s ease-out 0.3s, transform 1.2s ease-out 0.3s;
}

.section-body.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Contradiction Pair ---- */
.contradiction-pair {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
    opacity: 0;
    transition: opacity 1.5s ease-out 0.6s;
}

.contradiction-pair.visible {
    opacity: 1;
}

.contra-left, .contra-right {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: clamp(0.875rem, 1.2vw, 1rem);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--amber);
}

.contra-divider {
    width: 60px;
    height: 1px;
    background: linear-gradient(to right, var(--burnt-sienna), var(--amber));
    position: relative;
}

.contra-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ember-orange);
    box-shadow: 0 0 10px var(--ember-orange);
}

/* ---- Strata Visual ---- */
.strata-visual {
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    opacity: 0;
    transition: opacity 1.5s ease-out 0.5s;
}

.strata-visual.visible {
    opacity: 1;
}

.stratum {
    height: 8px;
    border-radius: 2px;
    transform-origin: left;
    transition: transform 1.5s ease-out;
}

.stratum-1 {
    background: linear-gradient(to right, var(--warm-cream), transparent);
    width: 80%;
}

.stratum-2 {
    background: linear-gradient(to right, var(--terracotta), transparent);
    width: 90%;
    margin-left: 5%;
}

.stratum-3 {
    background: linear-gradient(to right, var(--amber), transparent);
    width: 70%;
    margin-left: 15%;
}

.stratum-4 {
    background: linear-gradient(to right, var(--ember-orange), transparent);
    width: 95%;
    margin-left: 2%;
}

/* ---- Coordinates ---- */
.coordinates {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
    opacity: 0;
    transition: opacity 1.5s ease-out 0.6s;
}

.coordinates.visible {
    opacity: 1;
}

.coord {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: clamp(0.8rem, 1vw, 0.95rem);
    letter-spacing: 0.1em;
    color: var(--amber);
}

.coord-sep {
    color: var(--ember-orange);
    font-size: 0.75rem;
}

/* ---- Descent ---- */
.descent-content {
    flex-direction: column;
    display: flex;
    align-items: center;
}

.descent-text {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: clamp(0.875rem, 1.2vw, 1rem);
    letter-spacing: 0.15em;
    color: var(--terracotta);
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.5s ease-out, transform 1.5s ease-out;
}

.descent-text.visible {
    opacity: 1;
    transform: translateY(0);
}

.descent-title {
    margin-bottom: 0;
}

.xyz-accent {
    color: var(--ember-orange);
}

.thermal-gradient-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to top, #000000, transparent);
    pointer-events: none;
    z-index: 1;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: var(--charcoal);
}

::-webkit-scrollbar-thumb {
    background: var(--muted-brown);
    border-radius: 2px;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .section-content {
        padding: 1.5rem;
    }

    .contradiction-pair {
        gap: 1rem;
    }

    .contra-divider {
        width: 40px;
    }

    .coordinates {
        flex-direction: column;
        gap: 0.5rem;
    }

    .coord-sep {
        display: none;
    }
}
