/* muhan.studio - Generative Art Studio / Infinity */
/* Radial expansion from singularity */

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

:root {
    --void: #050505;
    --deep-space: #0a0a14;
    --surface-dark: #1a1a2e;
    --surface-purple: #3a2a4a;
    --surface-brown: #2a1a1a;
    --parchment: #f5f0e8;
    --warm-beige: #e8d4b0;
    --muted-gold: #c8b8a0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--void);
    color: var(--parchment);
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 300;
    font-size: clamp(0.9rem, 1.5vw, 1.05rem);
    line-height: 1.8;
    overflow-x: hidden;
}

/* ========== GENERATIVE TREE CANVAS ========== */

.tree-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ========== SECTIONS ========== */

.section {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Section 1: The Singularity */
.singularity {
    text-align: center;
    flex-direction: column;
}

.singularity-content {
    opacity: 0;
    animation: fadeInSlow 2.5s ease 0.5s forwards;
}

@keyframes fadeInSlow {
    to { opacity: 1; }
}

.domain-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 300;
    font-size: clamp(2rem, 5vw, 4.5rem);
    letter-spacing: 0.15em;
    color: var(--parchment);
    margin-bottom: 0.5rem;
}

.domain-subtitle {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 300;
    font-size: clamp(0.7rem, 1.2vw, 0.85rem);
    letter-spacing: 0.2em;
    color: var(--muted-gold);
    opacity: 0.5;
    margin-bottom: 2rem;
}

.seed-point {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--muted-gold);
    margin: 0 auto;
    opacity: 0;
    animation: pulsePoint 3s ease-in-out 2s infinite, fadeInSlow 1s ease 1.5s forwards;
}

@keyframes pulsePoint {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(2); opacity: 1; }
}

/* Section 2: Expansion */
.expansion {
    padding: 4rem 2rem;
    gap: 4rem;
    flex-wrap: wrap;
}

.content-node {
    max-width: 400px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.content-node.visible {
    opacity: 1;
    transform: translateY(0);
}

.node-left {
    align-self: flex-start;
}

.node-right {
    align-self: flex-end;
}

.node-label {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 400;
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    color: var(--muted-gold);
    opacity: 0.4;
    display: block;
    margin-bottom: 0.75rem;
}

.node-text {
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 300;
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    line-height: 1.85;
    color: var(--parchment);
    opacity: 0.8;
}

/* Section 3: Contemplation */
.contemplation {
    flex-direction: column;
    text-align: center;
}

.contemplation-content {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease, transform 1s ease;
}

.contemplation-content.visible {
    opacity: 1;
    transform: translateY(0);
}

.contemplation-quote {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 300;
    font-style: italic;
    font-size: clamp(1.1rem, 2.5vw, 1.6rem);
    color: var(--warm-beige);
    max-width: 500px;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.infinity-symbol {
    opacity: 0.3;
}

/* Section 4: Concepts */
.concepts {
    padding: 4rem 2rem;
}

.concept-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2.5rem;
    max-width: 900px;
    width: 100%;
}

.concept-card {
    padding: 2rem;
    border: 1px solid rgba(200, 184, 160, 0.1);
    background: rgba(10, 10, 20, 0.6);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.concept-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.concept-number {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 600;
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--muted-gold);
    opacity: 0.2;
    display: block;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.concept-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 400;
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: var(--parchment);
    margin-bottom: 0.75rem;
}

.concept-desc {
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 300;
    font-size: clamp(0.82rem, 1.3vw, 0.92rem);
    line-height: 1.8;
    color: var(--parchment);
    opacity: 0.65;
}

/* Section 5: Return */
.return-section {
    flex-direction: column;
    text-align: center;
}

.return-content {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease, transform 1s ease;
}

.return-content.visible {
    opacity: 1;
    transform: translateY(0);
}

.return-text {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 300;
    font-style: italic;
    font-size: clamp(0.95rem, 1.8vw, 1.15rem);
    color: var(--warm-beige);
    max-width: 420px;
    margin: 0 auto 2rem;
    opacity: 0.7;
}

.return-domain {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 300;
    font-size: clamp(1.2rem, 3vw, 2rem);
    letter-spacing: 0.15em;
    color: var(--parchment);
    margin-bottom: 0.3rem;
}

.return-hangul {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 300;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    color: var(--muted-gold);
    opacity: 0.4;
}

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

@media (max-width: 600px) {
    .expansion {
        flex-direction: column;
        gap: 2rem;
    }

    .concept-grid {
        grid-template-columns: 1fr;
    }
}
