:root {
    /* Typography/compliance vocabulary: (300 (Google Interactions:** Intersection Observer toggles — the lightest possible touch should use `threshold` of `0.15` `rootMargin` `0px -10% 0px` 0px` lower equal negative percent trigger slightly elements fully Total page target: under 60KB including all inline toggle single `.visible` sections they The triggers transitions `opacity` (from */
    --deep-ground: #0f120f;
    --stone-base: #1a1f1a;
    --surface-stone: #2a2a28;
    --candle-dark: #141814;
    --moss-shadow: #2d3a2d;
    --moss-core: #3d5a3d;
    --lichen-light: #6b7b6b;
    --spore-dust: #8a8a7e;
    --fog: #b5b5a8;
    --candle-body: #4a4a3e;
    --candlelight: #b4aa8c;
}

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

html {
    scroll-behavior: smooth;
    background: var(--deep-ground);
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    background: var(--deep-ground);
    color: var(--spore-dust);
    font-family: "IBM Plex Sans", Inter, Arial, sans-serif;
    font-weight: 300;
    line-height: 1.85;
}

.moss-descent {
    width: 100%;
}

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

.growth-line {
    position: absolute;
    top: 20vh;
    width: 1px;
    height: 60vh;
    background: linear-gradient(to bottom, transparent, var(--moss-shadow), transparent);
    opacity: 0.42;
    transform: scaleY(0.86);
    transform-origin: center top;
}

.growth-line-left { left: 5%; }
.growth-line-right { right: 5%; }

#stone-surface {
    align-items: flex-end;
    justify-content: flex-end;
    padding: 0 12vw 15vh 0;
    background:
        linear-gradient(147deg, rgba(45, 58, 45, 0.09) 0%, transparent 42%),
        linear-gradient(223deg, rgba(20, 24, 20, 0.26) 0%, transparent 54%),
        linear-gradient(87deg, rgba(74, 74, 62, 0.12) 0%, transparent 70%),
        linear-gradient(17deg, rgba(181, 181, 168, 0.025) 0%, transparent 46%),
        var(--surface-stone);
}

.stone-content {
    text-align: right;
}

.hero-text {
    color: var(--moss-shadow);
    font-family: "Noto Sans KR", "Barlow Condensed", Impact, sans-serif;
    font-size: clamp(12rem, 22vw, 28rem);
    font-weight: 700;
    line-height: 0.9;
    letter-spacing: 0.02em;
    text-shadow: 0 1px 0 rgba(181, 181, 168, 0.018), 0 -1px 0 rgba(15, 18, 15, 0.14);
}

.hero-subtitle {
    margin-top: 1.5rem;
    color: var(--spore-dust);
    font-family: "IBM Plex Sans", Inter, Arial, sans-serif;
    font-size: 0.75rem;
    font-weight: 300;
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

#first-growth {
    min-height: 100vh;
    padding: 15vh 0;
    background: var(--stone-base);
}

#first-growth::after,
#spore-map::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        radial-gradient(circle 2px at 15% 20%, rgba(61, 90, 61, 0.15) 50%, transparent 52%),
        radial-gradient(circle 3px at 80% 35%, rgba(61, 90, 61, 0.12) 50%, transparent 52%),
        radial-gradient(circle 2px at 45% 60%, rgba(61, 90, 61, 0.10) 50%, transparent 52%),
        radial-gradient(circle 2px at 70% 80%, rgba(61, 90, 61, 0.13) 50%, transparent 52%),
        radial-gradient(circle 3px at 25% 75%, rgba(61, 90, 61, 0.11) 50%, transparent 52%),
        radial-gradient(circle 2px at 90% 15%, rgba(61, 90, 61, 0.14) 50%, transparent 52%),
        radial-gradient(circle 2px at 55% 90%, rgba(61, 90, 61, 0.10) 50%, transparent 52%);
}

.fronds-container {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.frond {
    position: absolute;
    width: 32px;
    overflow: visible;
    cursor: default;
    pointer-events: auto;
    transform: scale(0);
    transform-origin: 50% 100%;
    transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 2s ease;
    opacity: 0.78;
}

.frond path,
.frond ellipse {
    fill: none;
    stroke: var(--moss-shadow);
    stroke-width: 1.15;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.frond:nth-child(2n) path,
.frond:nth-child(2n) ellipse,
.frond:nth-child(5n) path,
.frond:nth-child(5n) ellipse {
    stroke: var(--moss-core);
}

#first-growth.visible .frond {
    transform: scale(1);
    transition-duration: 1.8s;
}

#first-growth.visible .frond.frond-hover {
    transform: scale(1.1);
    transition-duration: 1.2s;
}

.frond-1  { left: 3%; top: 10%; width: 30px; transition-delay: 0.04s; }
.frond-2  { left: 6%; top: 45%; width: 30px; transition-delay: 0.12s; }
.frond-3  { left: 2%; top: 70%; width: 80px; transform-origin: 0 100%; transition-delay: 0.2s; }
.frond-4  { right: 4%; top: 15%; width: 30px; transition-delay: 0.3s; }
.frond-5  { right: 8%; top: 40%; width: 20px; transition-delay: 0.38s; }
.frond-6  { left: 10%; top: 25%; width: 30px; transition-delay: 0.46s; }
.frond-7  { right: 3%; top: 65%; width: 20px; transition-delay: 0.54s; }
.frond-8  { right: 2%; top: 85%; width: 80px; transform-origin: 100% 100%; transition-delay: 0.62s; }
.frond-9  { left: 8%; top: 80%; width: 25px; transition-delay: 0.7s; }
.frond-10 { right: 10%; top: 50%; width: 20px; transition-delay: 0.78s; }
.frond-11 { left: 5%; top: 55%; width: 30px; transition-delay: 0.86s; }
.frond-12 { right: 5%; top: 30%; width: 75px; transform-origin: 100% 100%; transition-delay: 0.94s; }
.frond-13 { left: 12%; top: 38%; width: 28px; transition-delay: 1.02s; }
.frond-14 { right: 12%; top: 75%; width: 20px; transition-delay: 1.1s; }

#candle-chamber {
    flex-direction: column;
    gap: 60px;
    padding: 15vh 0;
    background: var(--candle-dark);
}

.candle-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 45%, rgba(180, 170, 140, 0.08) 0%, rgba(180, 170, 140, 0.03) 18%, transparent 60%);
    pointer-events: none;
}

.candle-assembly {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.92;
}

.candle-body {
    width: 8px;
    height: 40px;
    border-radius: 2px;
    background: var(--candle-body);
}

.candle-flame {
    width: 24px;
    height: 40px;
    margin-bottom: -1px;
    overflow: visible;
}

.flame-outer {
    fill: rgba(180, 170, 140, 0.5);
    animation: flicker 3s ease-in-out infinite;
}

.flame-inner {
    fill: rgba(200, 190, 160, 0.7);
    animation: flicker 3.7s ease-in-out infinite;
}

@keyframes flicker {
    0%, 100% { transform: translateY(0) scaleX(1); opacity: 0.85; }
    25% { transform: translateY(-1px) scaleX(0.97); opacity: 0.75; }
    50% { transform: translateY(-2px) scaleX(1.03); opacity: 0.95; }
    75% { transform: translateY(-1px) scaleX(0.99); opacity: 0.80; }
}

.verse-container {
    position: relative;
    z-index: 1;
    text-align: center;
    opacity: 0.18;
    transform: translateY(20px);
    transition: opacity 2s ease, transform 2s ease;
}

#candle-chamber.visible .verse-container {
    opacity: 1;
    transform: translateY(0);
}

.verse-line {
    color: var(--lichen-light);
    font-family: "Barlow Condensed", "Noto Sans KR", sans-serif;
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    font-weight: 300;
    line-height: 2;
    letter-spacing: 0.02em;
}

#spore-map {
    min-height: 80vh;
    padding: 15vh 8vw;
    background: var(--stone-base);
}

.specimens-container {
    position: relative;
    width: 100%;
    height: 60vh;
}

.specimen {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 2s ease, transform 2s ease;
}

#spore-map.visible .specimen {
    opacity: 1;
    transform: translateY(0);
}

.specimen-circle {
    border: 1px solid rgba(107, 123, 107, 0.3);
    border-radius: 50%;
    box-shadow: 0 0 30px rgba(61, 90, 61, 0.1);
    transition: transform 1.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.specimen-circle.specimen-hover {
    transform: scale(1.15);
    transition-duration: 0.6s;
}

.specimen-label {
    color: var(--fog);
    font-family: "IBM Plex Mono", Menlo, Consolas, monospace;
    font-size: 0.7rem;
    font-weight: 300;
    letter-spacing: 0.08em;
    text-align: center;
    white-space: nowrap;
}

.specimen-label em {
    display: block;
    margin-top: 2px;
    color: var(--lichen-light);
    font-style: italic;
}

.specimen-1 { left: 8%; top: 10%; transition-delay: 0.05s; }
.specimen-1 .specimen-circle { width: 160px; height: 160px; background: radial-gradient(circle at 45% 45%, #3d5a3d 0%, #2d3a2d 30%, #1a1f1a 60%, #2d3a2d 80%, #1a1f1a 100%); }
.specimen-2 { left: 55%; top: 5%; transition-delay: 0.16s; }
.specimen-2 .specimen-circle { width: 120px; height: 120px; background: radial-gradient(circle at 50% 40%, #3d5a3d 0%, #2d3a2d 35%, #1a1f1a 65%, #2d3a2d 85%, #1a1f1a 100%); }
.specimen-3 { left: 30%; top: 35%; transition-delay: 0.27s; }
.specimen-3 .specimen-circle { width: 180px; height: 180px; background: radial-gradient(circle at 40% 50%, #3d5a3d 0%, #2d3a2d 28%, #1a1f1a 55%, #2d3a2d 78%, #1a1f1a 100%); }
.specimen-4 { left: 72%; top: 40%; transition-delay: 0.38s; }
.specimen-4 .specimen-circle { width: 140px; height: 140px; background: radial-gradient(circle at 55% 45%, #3d5a3d 0%, #2d3a2d 32%, #1a1f1a 62%, #2d3a2d 82%, #1a1f1a 100%); }
.specimen-5 { left: 15%; top: 65%; transition-delay: 0.49s; }
.specimen-5 .specimen-circle { width: 130px; height: 130px; background: radial-gradient(circle at 48% 48%, #3d5a3d 0%, #2d3a2d 33%, #1a1f1a 58%, #2d3a2d 80%, #1a1f1a 100%); }
.specimen-6 { left: 60%; top: 70%; transition-delay: 0.6s; }
.specimen-6 .specimen-circle { width: 200px; height: 200px; background: radial-gradient(circle at 42% 42%, #3d5a3d 0%, #2d3a2d 25%, #1a1f1a 52%, #2d3a2d 76%, #1a1f1a 100%); }

#deep-layer {
    flex-direction: column;
    padding: 15vh 0;
    background: var(--deep-ground);
}

.deep-content {
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 2s ease, transform 2s ease;
}

#deep-layer.visible .deep-content {
    opacity: 1;
    transform: translateY(0);
}

.deep-text {
    color: var(--lichen-light);
    font-family: "Barlow Condensed", "Noto Sans KR", sans-serif;
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    font-weight: 300;
    line-height: 1.2;
    letter-spacing: 0.02em;
    opacity: 0.4;
}

.deep-domain {
    margin-top: 120px;
    color: var(--spore-dust);
    font-family: "IBM Plex Mono", Menlo, Consolas, monospace;
    font-size: 0.65rem;
    font-weight: 300;
    letter-spacing: 0.08em;
    opacity: 0.25;
}

@media (max-width: 768px) {
    #stone-surface {
        padding: 0 8vw 12vh 0;
    }

    .frond:nth-child(odd) {
        display: none;
    }

    #spore-map {
        min-height: auto;
        padding: 10vh 5vw;
    }

    .specimens-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 60px;
        height: auto;
    }

    .specimen {
        position: static;
    }

    .specimen-1 .specimen-circle,
    .specimen-2 .specimen-circle,
    .specimen-3 .specimen-circle,
    .specimen-4 .specimen-circle,
    .specimen-5 .specimen-circle,
    .specimen-6 .specimen-circle {
        width: 120px;
        height: 120px;
    }

    .deep-domain {
        margin-top: 80px;
    }
}
