/* === GGAJI.COM - Until / 까지 === */

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

:root {
    --bg-primary: #F5F0E8;
    --bg-alternate: #EDE6D8;
    --text-primary: #2C2520;
    --text-secondary: #6B5E52;
    --accent-copper: #8B6F4E;
    --accent-warm: #C4804A;
    --highlight-celadon: #B8C9B4;
    --shadow-earth: #3D352E;
}

html {
    scroll-behavior: auto;
}

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Noto Serif KR', serif;
    font-weight: 400;
    font-size: clamp(1rem, 1.8vw, 1.25rem);
    line-height: 1.85;
    letter-spacing: 0.01em;
    overflow-x: hidden;
}

/* === HERO === */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: var(--bg-primary);
}

.hero-content {
    text-align: center;
    width: 85%;
    max-width: 800px;
    position: relative;
}

.hero-kkaji {
    font-family: 'Caveat', cursive;
    font-size: clamp(2rem, 4vw, 3.5rem);
    color: var(--text-secondary);
    opacity: 0;
    margin-bottom: 20px;
    transform: translateX(-5%);
    transition: opacity 1s ease;
}

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

.hero-line {
    width: 85%;
    height: 4px;
    display: block;
    margin: 0 auto;
}

.hero-name {
    margin-top: 24px;
    opacity: 0;
    transition: opacity 1s ease;
}

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

.hero-domain {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.hero-tld {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    letter-spacing: -0.02em;
    color: var(--text-secondary);
    opacity: 0.6;
}

/* === FLOATING HANJA CHARACTERS === */
.floating-char {
    position: absolute;
    font-family: 'Noto Serif KR', serif;
    font-weight: 300;
    font-size: 20vw;
    color: var(--text-secondary);
    opacity: 0.025;
    pointer-events: none;
    z-index: 0;
    animation: floatUp 60s linear infinite;
    left: 50%;
    transform: translateX(-50%);
}

.floating-char.large {
    font-size: 30vw;
}

@keyframes floatUp {
    0% { transform: translateX(-50%) translateY(0); }
    100% { transform: translateX(-50%) translateY(-60px); }
}

/* === CONTENT BLOCKS === */
.content-block {
    position: relative;
    max-width: 580px;
    margin: 0 auto;
    padding: 0 24px;
    margin-bottom: 12rem;
    z-index: 1;
}

.content-block:last-child {
    margin-bottom: 8rem;
}

.offset-left {
    transform: translateX(-5%);
}

.offset-right {
    transform: translateX(5%);
}

/* === REVEAL ANIMATION === */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.reveal.visible {
    opacity: 1;
}

.reveal.visible.offset-left {
    transform: translateX(-5%) translateY(0);
}

.reveal.visible.offset-right {
    transform: translateX(5%) translateY(0);
}

/* === THRESHOLD LINES === */
.threshold-line {
    width: 100%;
    height: 4px;
    display: block;
    margin-bottom: 32px;
}

/* === SECTION TITLES === */
.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.section-subtitle {
    font-family: 'Caveat', cursive;
    font-size: clamp(0.875rem, 1.5vw, 1.125rem);
    color: var(--accent-copper);
    margin-bottom: 24px;
}

.body-text {
    font-family: 'Noto Serif KR', serif;
    font-weight: 300;
    color: var(--text-primary);
    line-height: 1.85;
}

.annotation {
    font-family: 'Caveat', cursive;
    font-size: 1.05em;
    color: var(--accent-warm);
    font-style: normal;
}

.celadon-mark {
    color: var(--text-primary);
    background: linear-gradient(180deg, transparent 70%, rgba(184, 201, 180, 0.3) 70%);
    padding: 0 2px;
}

/* === APPROACH SECTION === */
.approach {
    position: relative;
    padding: 10vh 0;
    background: var(--bg-primary);
    /* Ink wash texture */
    background-image:
        radial-gradient(ellipse at 20% 30%, rgba(107, 94, 82, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(61, 53, 46, 0.03) 0%, transparent 40%);
}

/* === BREATH SECTION === */
.breath {
    position: relative;
    min-height: 35vh;
    background: var(--bg-alternate);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* === ACCUMULATION SECTION === */
.accumulation {
    position: relative;
    padding: 10vh 0;
    background: var(--bg-alternate);
    background-image:
        radial-gradient(ellipse at 60% 20%, rgba(107, 94, 82, 0.05) 0%, transparent 45%),
        radial-gradient(ellipse at 30% 80%, rgba(61, 53, 46, 0.04) 0%, transparent 35%);
}

/* === TERMINUS === */
.terminus {
    position: relative;
    min-height: 80vh;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.terminus-content {
    text-align: center;
    width: 60%;
    max-width: 500px;
}

.terminus-line {
    width: 100%;
    height: 4px;
    display: block;
    margin-bottom: 32px;
}

.terminus-period {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: 2rem;
    color: var(--text-secondary);
    opacity: 0;
    transition: opacity 1.5s ease;
}

.terminus-period.visible {
    opacity: 1;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .content-block {
        margin-bottom: 8rem;
    }

    .offset-left,
    .offset-right,
    .reveal.visible.offset-left,
    .reveal.visible.offset-right {
        transform: translateX(0);
    }

    .floating-char {
        font-size: 40vw;
    }
}
