/* === RESET & BASE === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #f7f4f0;
    --text-primary: #2d2a26;
    --text-secondary: #4a4540;
    --text-muted: #7a756e;
    --border-light: #d9d5cf;
    --watermark: #e8e4df;
    --pink: #ff4f81;
    --yellow: #ffe156;
    --mint: #56e8b0;
    --lavender: #c4a1ff;
    --peach: #ffb088;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text-primary);
    font-family: 'Source Serif 4', serif;
    font-weight: 400;
    font-size: clamp(1rem, 1.1vw, 1.15rem);
    line-height: 1.72;
    letter-spacing: 0.01em;
    overflow-x: hidden;
}

/* === NAVIGATION DOT === */
.nav-dot {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 100;
    cursor: pointer;
}

.nav-dot-circle {
    width: 12px;
    height: 12px;
    background: var(--pink);
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.nav-dot:hover .nav-dot-circle {
    transform: scale(1.5);
}

.nav-links {
    position: absolute;
    top: -10px;
    right: 24px;
    display: flex;
    gap: 1.2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    white-space: nowrap;
}

.nav-dot:hover .nav-links {
    opacity: 1;
    pointer-events: all;
}

.nav-link {
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    font-size: clamp(0.75rem, 0.85vw, 0.9rem);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--pink);
}

/* === SECTIONS === */
.section {
    position: relative;
    min-height: 100vh;
}

/* === SECTION 1: THE TRUNK === */
.section-trunk {
    display: flex;
    align-items: stretch;
    min-height: 100vh;
}

.trunk-content {
    width: 30%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.trunk-text {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.korean-chars {
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    animation: fadeIn 800ms ease 300ms forwards;
}

.char-na, .char-mu {
    font-family: 'Noto Serif KR', serif;
    font-weight: 600;
    font-size: clamp(4rem, 10vw, 10rem);
    line-height: 1.15;
    color: var(--text-primary);
    letter-spacing: 0.02em;
}

.english-namu {
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    font-size: clamp(0.75rem, 0.85vw, 0.9rem);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 1.5rem;
    opacity: 0;
    animation: fadeIn 600ms ease 700ms forwards;
}

.trunk-shape {
    width: 70%;
    position: relative;
}

.hero-circle {
    position: absolute;
    top: 12%;
    right: 15%;
    width: 15vw;
    height: 15vw;
    background: var(--pink);
    border-radius: 50%;
    animation: bounceEnterFromTop 600ms cubic-bezier(0.34, 1.56, 0.64, 1) 300ms both;
}

/* === JAMO WATERMARKS === */
.jamo-watermark {
    position: absolute;
    width: 30vw;
    height: 30vw;
    opacity: 0.5;
    pointer-events: none;
    z-index: 0;
}

.jamo-trunk {
    bottom: 5%;
    right: 10%;
}

.jamo-branches {
    top: 10%;
    left: -5%;
}

/* === SECTION 2: THE BRANCHES === */
.section-branches {
    min-height: 100vh;
    padding: 20vh 8vw;
    display: flex;
    align-items: center;
}

.branches-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, auto);
    gap: 4rem;
    width: 100%;
}

.branch-item {
    opacity: 0;
    transform: translateY(30px);
}

.branch-item.visible {
    animation: bounceEnter 500ms cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.branch-1 {
    grid-column: 1 / 3;
    grid-row: 1;
}

.branch-2 {
    grid-column: 3 / 5;
    grid-row: 2;
}

.branch-3 {
    grid-column: 2 / 4;
    grid-row: 3;
}

.branch-fruit {
    margin-bottom: -1rem;
    position: relative;
    top: -1rem;
}

.branch-heading {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-size: clamp(2.5rem, 5vw, 5rem);
    line-height: 1.15;
    letter-spacing: 0.02em;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.branch-text {
    font-family: 'Source Serif 4', serif;
    font-weight: 400;
    font-size: clamp(1rem, 1.1vw, 1.15rem);
    line-height: 1.72;
    color: var(--text-secondary);
    max-width: 40ch;
}

/* === BRANCH DIVIDER === */
.branch-divider {
    display: flex;
    justify-content: center;
    height: 20vh;
}

.divider-svg {
    height: 100%;
    width: 4px;
}

.divider-path {
    stroke-dasharray: 600;
    stroke-dashoffset: 600;
    transition: stroke-dashoffset 1.5s ease;
}

.divider-path.drawn {
    stroke-dashoffset: 0;
}

/* === SECTION 3: THE ROOTS === */
.section-roots {
    min-height: 100vh;
    display: flex;
    align-items: flex-end;
    padding-bottom: 10vh;
}

.roots-content {
    max-width: 55ch;
    margin: 0 auto;
    padding: 0 2rem;
    opacity: 0;
    transform: translateY(30px);
}

.roots-content.visible {
    animation: bounceEnter 500ms cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.roots-text {
    font-family: 'Source Serif 4', serif;
    font-weight: 400;
    font-size: clamp(1rem, 1.1vw, 1.15rem);
    line-height: 1.72;
    letter-spacing: 0.01em;
    color: var(--text-secondary);
}

/* === SECTION 4: THE CANOPY === */
.section-canopy {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.canopy-comp {
    position: absolute;
    opacity: 0;
    transform: translateY(30px);
}

.canopy-comp.visible {
    animation: bounceEnter 500ms cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.shape {
    display: block;
}

.shape.circle {
    border-radius: 50%;
}

/* Comp 7 needs special handling for transform */
.comp-7.visible {
    animation: bounceEnterCentered 500ms cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* === SEASONAL DOTS === */
.seasonal-dots {
    position: absolute;
    width: 30px;
    height: 30px;
    pointer-events: none;
}

.seasonal-dots::before,
.seasonal-dots::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
}

.dots-1::before { background: var(--pink); top: 0; left: 5px; }
.dots-1::after { background: var(--yellow); top: 10px; left: 18px; }

.dots-2::before { background: var(--mint); top: 4px; left: 0; }
.dots-2::after { background: var(--lavender); top: 15px; left: 12px; }

.dots-3::before { background: var(--peach); top: 2px; left: 8px; }
.dots-3::after { background: var(--pink); top: 14px; left: 20px; }

/* === SECTION 5: THE SEED === */
.section-seed {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.seed-content {
    text-align: center;
}

.seed-interactive {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.sprout-svg {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 140px;
    pointer-events: none;
}

.tree-lines .tree-line {
    stroke-dasharray: 50;
    stroke-dashoffset: 50;
    transition: stroke-dashoffset 0.3s ease;
}

.tree-buds .bud {
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Sprouting animation on hover */
.seed-interactive:hover .tree-lines .tree-line:nth-child(1) { stroke-dashoffset: 0; transition-delay: 0s; transition-duration: 0.4s; }
.seed-interactive:hover .tree-lines .tree-line:nth-child(2) { stroke-dashoffset: 0; transition-delay: 0.3s; transition-duration: 0.35s; }
.seed-interactive:hover .tree-lines .tree-line:nth-child(3) { stroke-dashoffset: 0; transition-delay: 0.3s; transition-duration: 0.35s; }
.seed-interactive:hover .tree-lines .tree-line:nth-child(4) { stroke-dashoffset: 0; transition-delay: 0.6s; transition-duration: 0.3s; }
.seed-interactive:hover .tree-lines .tree-line:nth-child(5) { stroke-dashoffset: 0; transition-delay: 0.6s; transition-duration: 0.3s; }
.seed-interactive:hover .tree-lines .tree-line:nth-child(6) { stroke-dashoffset: 0; transition-delay: 0.9s; transition-duration: 0.3s; }
.seed-interactive:hover .tree-lines .tree-line:nth-child(7) { stroke-dashoffset: 0; transition-delay: 0.9s; transition-duration: 0.3s; }

.seed-interactive:hover .tree-buds .bud {
    opacity: 1;
    transition-delay: 1.5s;
    transition-duration: 0.5s;
}

.seed-text {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-style: italic;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.seed-interactive:hover .seed-text {
    color: var(--pink);
}

.seed-spacer {
    height: 16vh;
}

.seed-email {
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    font-size: clamp(0.75rem, 0.85vw, 0.9rem);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* === ANIMATIONS === */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes bounceEnterFromTop {
    from {
        opacity: 0;
        transform: translateY(-60px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounceEnter {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounceEnterCentered {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}
