/* munju.im — Ethereal Procession */

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

html {
    scroll-behavior: smooth;
    /* palette refs: #1f1a2e #3d2a4f */
}

body {
    background-color: #0d0a1a;
    color: #e8ddd0;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    line-height: 1.85;
    font-size: clamp(1rem, 1.8vw, 1.25rem);
    overflow-x: hidden;
    min-height: 100vh;
}

/* ========================
   FIREFLY PARTICLES
   ======================== */

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

.firefly {
    position: fixed;
    border-radius: 50%;
    background: #e8c577;
    box-shadow: 0 0 calc(var(--size) * 2) rgba(232, 197, 119, var(--glow));
    opacity: 0;
    animation:
        drift var(--duration) var(--timing) infinite,
        pulse 4s ease-in-out infinite var(--delay);
    pointer-events: none;
}

@keyframes pulse {
    0%, 100% { opacity: 0; }
    50% { opacity: 0.7; }
}

@keyframes drift1 {
    0% { transform: translate(0, 0); }
    25% { transform: translate(15vw, -20vh); }
    50% { transform: translate(-10vw, -45vh); }
    75% { transform: translate(20vw, -70vh); }
    100% { transform: translate(5vw, -95vh); }
}

@keyframes drift2 {
    0% { transform: translate(0, 0); }
    25% { transform: translate(-20vw, -15vh); }
    50% { transform: translate(8vw, -40vh); }
    75% { transform: translate(-15vw, -65vh); }
    100% { transform: translate(-5vw, -90vh); }
}

@keyframes drift3 {
    0% { transform: translate(0, 0); }
    25% { transform: translate(10vw, -25vh); }
    50% { transform: translate(-18vw, -50vh); }
    75% { transform: translate(12vw, -75vh); }
    100% { transform: translate(-8vw, -100vh); }
}

/* ========================
   THRESHOLD (HERO)
   ======================== */

.threshold {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    background: radial-gradient(ellipse at 70% 20%, #1a1035 0%, #0d0a1a 80%);
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
}

.hero-text {
    position: relative;
    z-index: 2;
    padding-left: 8vw;
    padding-top: 18vh;
}

.domain-name {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    font-size: clamp(6rem, 14vw, 16rem);
    letter-spacing: 0.02em;
    color: #e8ddd0;
    line-height: 1;
    font-feature-settings: 'liga' 1, 'kern' 1;
}

.korean-text-wrap {
    margin-top: 1.5rem;
    margin-left: 2vw;
    position: relative;
    display: inline-block;
}

.korean-text {
    font-family: 'Noto Serif KR', serif;
    font-weight: 300;
    font-size: clamp(2rem, 5vw, 4rem);
    letter-spacing: 0.15em;
    color: #c4956a;
    display: inline-block;
    transform: rotate(-2.5deg);
}

.seal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border: 2px solid #c4956a;
    border-radius: 3px;
    font-family: 'Noto Serif KR', serif;
    font-weight: 600;
    font-size: 12px;
    color: #c4956a;
    transform: rotate(-5deg);
    filter: blur(0.3px);
    margin-left: 1rem;
    vertical-align: super;
}

.magnolia-branch {
    position: absolute;
    right: -2%;
    top: 10%;
    height: 80%;
    width: auto;
    z-index: 1;
    opacity: 0.85;
}

.botanical {
    fill: none;
    stroke: #d4a0a0;
    stroke-width: 1.5px;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ========================
   VINE CONNECTORS
   ======================== */

.vine-connector {
    display: block;
    margin: 0 auto;
    width: 100px;
    height: 300px;
    opacity: 0.6;
}

.vine-1 { height: 300px; }
.vine-2 { 
    width: 80px; 
    height: 200px;
    margin-left: 30vw;
}
.vine-3 {
    width: 80px;
    height: 200px;
    margin-left: 55vw;
}

.vine-path {
    fill: none;
    stroke: #9a8f82;
    stroke-width: 0.75px;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.vine-leaf {
    fill: none;
    stroke: #9a8f82;
    stroke-width: 0.75px;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ========================
   PROCESSION (MAIN CONTENT)
   ======================== */

.procession {
    position: relative;
    padding: clamp(4rem, 8vh, 10rem) 5vw;
}

.text-block {
    max-width: clamp(280px, 50vw, 600px);
    margin-bottom: clamp(4rem, 8vh, 10rem);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.2s ease-out, transform 1.2s ease-out;
}

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

.tb-1 { margin-left: 5vw; }
.tb-2 { margin-left: 25vw; }
.tb-3 { margin-left: 12vw; }
.tb-4 { margin-left: 35vw; }
.tb-5 { margin-left: 8vw; }
.tb-6 { margin-left: 20vw; }

.section-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: clamp(2.5rem, 6vw, 5rem);
    color: #e8ddd0;
    margin-bottom: 1.5rem;
    letter-spacing: 0.02em;
    font-feature-settings: 'liga' 1, 'kern' 1;
    line-height: 1.15;
}

.procession p {
    color: #e8ddd0;
    font-weight: 300;
}

/* ========================
   PEONY SVGs
   ======================== */

.peony {
    display: block;
    width: 200px;
    height: 200px;
    margin-bottom: clamp(4rem, 8vh, 10rem);
}

.peony-1 {
    margin-left: 60vw;
    transform: rotate(-12deg);
}

.peony-2 {
    margin-left: 15vw;
    transform: rotate(18deg);
}

.botanical-peony {
    fill: none;
    stroke: #c4956a;
    stroke-width: 1.5px;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ========================
   GARDEN (CLOSING)
   ======================== */

.garden {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #0d0a1a;
}

.chrysanthemum {
    width: min(60vw, 500px);
    height: min(60vw, 500px);
    margin-bottom: 3rem;
}

.botanical-chrysanthemum {
    fill: none;
    stroke: #d4a0a0;
    stroke-width: 1.5px;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.botanical-chrysanthemum.mid-ring {
    stroke: #c4956a;
    stroke-width: 1px;
}

.botanical-chrysanthemum.inner-ring {
    stroke: #e8c577;
    stroke-width: 1px;
}

.closing-text {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-style: italic;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    color: #9a8f82;
    text-align: center;
    max-width: clamp(280px, 60vw, 700px);
    padding: 0 2rem;
    line-height: 1.6;
}

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

@media (max-width: 768px) {
    .tb-1, .tb-2, .tb-3, .tb-4, .tb-5, .tb-6 {
        margin-left: 5vw;
        max-width: 85vw;
    }

    .magnolia-branch {
        opacity: 0.4;
    }

    .peony-1 { margin-left: 40vw; }
    .peony-2 { margin-left: 5vw; }

    .vine-2, .vine-3 {
        margin-left: auto;
        margin-right: auto;
    }
}
