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

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

body {
    background: #f5f5f0;
    color: #2a2a2a;
    font-family: "DM Sans", sans-serif;
    font-weight: 400;
    font-size: clamp(16px, 1.2vw, 20px);
    line-height: 1.75;
    letter-spacing: 0.01em;
    overflow-x: hidden;
}

/* Panel Base */
.panel {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    will-change: transform;
}

.panel-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 720px;
    width: 100%;
    padding: 0 32px;
}

/* Panel 01 - The Trunk */
.panel-01 {
    background: #f5f5f0;
}

.trunk-line {
    width: 1px;
    height: 60vh;
    background: #2a2a2a;
    transform: scaleY(0);
    transform-origin: bottom;
    animation: growTrunk 3s cubic-bezier(0.25, 0.1, 0.25, 1.0) 0.5s forwards;
    margin-bottom: 32px;
}

@keyframes growTrunk {
    0% { transform: scaleY(0); }
    100% { transform: scaleY(1); }
}

.domain-name {
    font-family: "Jost", sans-serif;
    font-weight: 300;
    font-size: clamp(24px, 5vw, 72px);
    letter-spacing: 0.15em;
    text-transform: lowercase;
    color: #2a2a2a;
    opacity: 0;
    animation: fadeIn 1.5s ease 3s forwards;
    transition: opacity 0.4s ease;
    cursor: default;
}

.domain-name:hover {
    opacity: 0.7;
}

.tagline {
    font-family: "DM Sans", sans-serif;
    font-weight: 300;
    font-size: clamp(14px, 1vw, 18px);
    color: #8a8a7a;
    margin-top: 16px;
    opacity: 0;
    animation: fadeIn 1.5s ease 3.5s forwards;
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* Panel 02 - The Ring */
.panel-02 {
    background: #f5f5f0;
}

.ring-svg {
    width: 280px;
    height: 280px;
}

.ring-circle {
    stroke-dasharray: 754;
    stroke-dashoffset: 754;
    transition: stroke-dashoffset 2s cubic-bezier(0.25, 0.1, 0.25, 1.0);
}

.ring-circle.is-visible {
    stroke-dashoffset: 0;
}

.korean-text {
    font-family: "Noto Serif KR", serif;
    font-weight: 400;
    font-size: 72px;
    color: #2a2a2a;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 1.5s ease 2s;
}

.korean-text.is-visible {
    opacity: 1;
}

/* Panel 03 - The Canopy */
.panel-03 {
    background: #f5f5f0;
}

.canopy-container {
    position: relative;
    width: 100%;
    max-width: 100vw;
    min-height: 100vh;
}

.canopy-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.canopy-line {
    height: 0.5px;
    background: #d4d0c8;
    position: absolute;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    transform-origin: center;
    transition: transform 1.2s cubic-bezier(0.25, 0.1, 0.25, 1.0);
}

.canopy-line.is-visible {
    transform: translateX(-50%) scaleX(1);
}

.canopy-words {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    min-height: 100vh;
}

.canopy-word {
    font-family: "Jost", sans-serif;
    font-weight: 300;
    color: #2a2a2a;
    text-transform: lowercase;
    letter-spacing: 0.1em;
    transform: translateY(20px);
    opacity: 0 !important;
    transition: opacity 1s ease, transform 1s ease;
}

.canopy-word.is-visible {
    transform: translateY(0);
}

.cw-1 { font-size: 48px; }
.cw-1.is-visible { opacity: 0.9 !important; transition-delay: 0.1s; }
.cw-2 { font-size: 18px; }
.cw-2.is-visible { opacity: 0.4 !important; transition-delay: 0.2s; }
.cw-3 { font-size: 32px; }
.cw-3.is-visible { opacity: 0.7 !important; transition-delay: 0.3s; }
.cw-4 { font-size: 14px; }
.cw-4.is-visible { opacity: 0.3 !important; transition-delay: 0.4s; }
.cw-5 { font-size: 24px; }
.cw-5.is-visible { opacity: 0.6 !important; transition-delay: 0.5s; }
.cw-6 { font-size: 40px; }
.cw-6.is-visible { opacity: 1.0 !important; transition-delay: 0.6s; }
.cw-7 { font-size: 16px; }
.cw-7.is-visible { opacity: 0.5 !important; transition-delay: 0.7s; }
.cw-8 { font-size: 28px; }
.cw-8.is-visible { opacity: 0.8 !important; transition-delay: 0.8s; }

/* Panel 04 - The Root */
.panel-04 {
    background: #1a1a1a;
    color: #f5f5f0;
}

.dot-grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle, #f5f5f0 1px, transparent 1px);
    background-size: 32px 32px;
    opacity: 0.03;
    z-index: 1;
}

.root-line-accent {
    position: absolute;
    left: calc(50% - 360px - 24px);
    top: 10%;
    width: 0.5px;
    height: 80%;
    background: #2a2a2a;
    opacity: 0.2;
    z-index: 1;
}

.root-content {
    position: relative;
    z-index: 2;
}

.root-text {
    font-family: "DM Sans", sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.8;
    color: #f5f5f0;
    max-width: 640px;
    text-align: left;
}

.underline-draw {
    background-image: linear-gradient(#8a8a7a, #8a8a7a);
    background-size: 0% 1px;
    background-position: left bottom;
    background-repeat: no-repeat;
    transition: background-size 0.6s ease;
    padding-bottom: 2px;
}

.underline-draw.is-visible {
    background-size: 100% 1px;
}

/* Panel 05 - The Seed */
.panel-05 {
    background: #f5f5f0;
}

.seed-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.seed-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #2a2a2a;
}

.seed-dot.is-pulsing {
    animation: pulse 2s cubic-bezier(0.25, 0.1, 0.25, 1.0) forwards;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.5); }
    100% { transform: scale(1); }
}

.seed-label {
    font-family: "Jost", sans-serif;
    font-weight: 300;
    font-size: 14px;
    letter-spacing: 0.15em;
    text-transform: lowercase;
    color: #2a2a2a;
    opacity: 0.5;
}

/* Responsive */
@media (max-width: 768px) {
    .root-line-accent {
        display: none;
    }
    .ring-svg {
        width: 200px;
        height: 200px;
    }
    .korean-text {
        font-size: 48px;
    }
}