/* kkaji.com - Kinetic Typography Experience */

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

body {
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 400;
    font-size: clamp(0.9rem, 1.1vw, 1.05rem);
    line-height: 1.8;
    color: #F0F0F8;
    background: #0A0A14;
    overflow-x: hidden;
}

/* Scroll Progress Bar */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: #E84060;
    z-index: 200;
    transition: width 0.1s linear;
}

/* Accent Title */
.accent-title {
    font-family: 'Black Han Sans', sans-serif;
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: #E84060;
    margin-bottom: 1rem;
}

.complete-title {
    font-size: clamp(2rem, 5vw, 4rem);
    color: #40C080;
}

/* =============================================
   HERO: Motion Stage
   ============================================= */

#hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #0A0A14;
    overflow: hidden;
}

.kinetic-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2vw;
}

.kinetic-char {
    font-family: 'Black Han Sans', sans-serif;
    font-size: clamp(15vw, 20vw, 30vw);
    color: #E84060;
    display: inline-block;
    transform: scale(0);
    opacity: 0;
    transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}

.kinetic-char.visible {
    transform: scale(1);
    opacity: 1;
}

#char-kka.animating {
    animation: stretch-kka 4s ease-in-out infinite;
}

#char-ji.animating {
    animation: stretch-ji 4s ease-in-out infinite;
}

@keyframes stretch-kka {
    0%, 100% { transform: scaleX(1); color: #E84060; }
    50% { transform: scaleX(1.3); color: #F0F0F8; }
}

@keyframes stretch-ji {
    0%, 100% { transform: scaleX(1); color: #F0F0F8; }
    50% { transform: scaleX(0.8); color: #E84060; }
}

.hero-sub {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 1rem;
    color: #808090;
    margin-top: 2rem;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.hero-sub.visible {
    opacity: 1;
}

/* =============================================
   Elastic Dividers
   ============================================= */

.elastic-divider {
    height: 1px;
    background: #E84060;
    margin: 0 auto;
    width: 10%;
    transform: scaleX(1);
    transition: width 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.elastic-divider.stretched {
    width: 100%;
}

/* =============================================
   Progress Sections
   ============================================= */

.progress-section {
    min-height: 60vh;
    padding: 4rem 3rem;
    position: relative;
    background: #1A1A24;
}

.progress-section:nth-child(odd) {
    background: #0A0A14;
}

.section-progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(232, 64, 96, 0.1);
    margin-bottom: 3rem;
    overflow: hidden;
}

.bar-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #E84060, #E88040, #E8C040);
    transition: width 2s ease-out;
}

.milestone-numeral {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%) scale(0.9);
    font-family: 'Black Han Sans', sans-serif;
    font-size: clamp(80px, 15vw, 200px);
    color: #E84060;
    opacity: 0.06;
    pointer-events: none;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.milestone-numeral.active {
    transform: translateY(-50%) scale(1);
    opacity: 0.1;
}

.section-content {
    max-width: 640px;
    position: relative;
    z-index: 2;
}

.section-content p {
    margin-bottom: 1rem;
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Complete section */
.progress-section.complete .bar-fill {
    background: linear-gradient(90deg, #E84060, #E88040, #E8C040, #40C080);
}

.progress-section.complete .milestone-numeral {
    color: #40C080;
}

/* =============================================
   Footer
   ============================================= */

#site-footer {
    padding: 4rem 2rem;
    text-align: center;
    background: #0A0A14;
}

.footer-text {
    font-family: 'Black Han Sans', sans-serif;
    font-size: 1.5rem;
    color: #E84060;
    margin-bottom: 0.5rem;
}

.footer-sub {
    font-size: 0.9rem;
    color: #808090;
}
