/* ggaji.com - Sunlit Korean Pottery Studio */
/* Diagonal sections, glassmorphic cards, creamy-pastel palette */

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

:root {
    --cream: #FFF8F0;
    --linen: #F5EDE3;
    --charcoal: #3A3630;
    --stone: #8A847B;
    --terracotta: #C4956A;
    --sage: #A8C4B8;
    --apricot: #E8B89D;
    --mauve: #D4C4B8;
    --clay: #7A6B5D;
    --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --spring-gentle: cubic-bezier(0.25, 1.2, 0.5, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    color: var(--charcoal);
    background: var(--cream);
    overflow-x: hidden;
    line-height: 1.72;
}

/* Scroll Progress Indicator */
.scroll-indicator {
    position: fixed;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 200;
    width: 18px;
    height: 18px;
}

.scroll-track {
    width: 2px;
    height: 80px;
    background: var(--mauve);
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border-radius: 1px;
}

.scroll-dot {
    width: 8px;
    height: 8px;
    background: var(--clay);
    border-radius: 50%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    transition: top 200ms ease;
}

/* Sections */
.section {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 64px;
    overflow: hidden;
}

.section-1 {
    background: var(--cream);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 6vh), 0 100%);
}

.section-2 {
    background: var(--linen);
    margin-top: -6vh;
    clip-path: polygon(0 6vh, 100% 0, 100% 100%, 0 calc(100% - 6vh));
}

.section-3 {
    background: var(--cream);
    margin-top: -6vh;
    clip-path: polygon(0 0, 100% 6vh, 100% calc(100% - 6vh), 0 100%);
}

.section-4 {
    background: var(--linen);
    margin-top: -6vh;
    clip-path: polygon(0 6vh, 100% 0, 100% 100%, 0 calc(100% - 6vh));
}

.section-5 {
    background: var(--cream);
    margin-top: -6vh;
    clip-path: polygon(0 0, 100% 6vh, 100% 100%, 0 100%);
}

/* Glassmorphic Cards */
.glass-card {
    background: rgba(255, 248, 240, 0.55);
    backdrop-filter: blur(16px) saturate(1.3);
    -webkit-backdrop-filter: blur(16px) saturate(1.3);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-right-color: transparent;
    border-bottom-color: transparent;
    border-radius: 20px;
    box-shadow: 0 4px 16px rgba(122, 107, 93, 0.08), 0 12px 40px rgba(122, 107, 93, 0.04);
    padding: 40px;
    position: relative;
    z-index: 30;
}

/* Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 1.2s var(--spring), transform 1.2s var(--spring);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hero Card */
.hero-card {
    width: 70vw;
    max-width: 800px;
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(4rem, 12vw, 10rem);
    font-weight: 400;
    letter-spacing: 0.12em;
    line-height: 1.0;
    color: var(--charcoal);
    text-transform: uppercase;
}

.hero-subtitle {
    font-family: 'DM Sans', sans-serif;
    font-size: clamp(0.95rem, 1.3vw, 1.15rem);
    color: var(--stone);
    margin-top: 16px;
    font-weight: 400;
}

/* Caveat Notes */
.caveat-note {
    font-family: 'Caveat', cursive;
    font-size: clamp(0.85rem, 1.2vw, 1.1rem);
    color: var(--terracotta);
    font-weight: 400;
}

.note-br {
    position: absolute;
    bottom: 15%;
    right: 15%;
}

.note-bc {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
}

.card-note {
    display: block;
    margin-top: 16px;
    text-align: right;
}

/* Floating Blobs */
.blob {
    position: absolute;
    border-radius: 50%;
    will-change: transform;
    pointer-events: none;
}

.blob-sage {
    background: rgba(168, 196, 184, 0.2);
}

.blob-apricot {
    background: rgba(232, 184, 157, 0.2);
}

.blob-1 { width: 350px; height: 350px; top: 10%; left: 5%; animation: drift1 80s ease-in-out infinite; }
.blob-2 { width: 280px; height: 280px; top: 40%; right: 10%; animation: drift2 100s ease-in-out infinite; }
.blob-3 { width: 300px; height: 300px; top: 15%; right: 5%; animation: drift1 90s ease-in-out infinite; }
.blob-4 { width: 250px; height: 250px; bottom: 20%; left: 10%; animation: drift2 70s ease-in-out infinite; }
.blob-5 { width: 400px; height: 400px; top: 5%; left: 15%; animation: drift1 120s ease-in-out infinite; }
.blob-6 { width: 300px; height: 300px; top: 50%; right: 5%; animation: drift2 95s ease-in-out infinite; }
.blob-7 { width: 200px; height: 200px; bottom: 10%; left: 40%; animation: drift1 65s ease-in-out infinite; }
.blob-8 { width: 320px; height: 320px; top: 10%; right: 15%; animation: drift2 85s ease-in-out infinite; }
.blob-9 { width: 250px; height: 250px; bottom: 15%; left: 5%; animation: drift1 110s ease-in-out infinite; }
.blob-10 { width: 300px; height: 300px; top: 20%; left: 20%; animation: drift2 75s ease-in-out infinite; }
.blob-11 { width: 350px; height: 350px; bottom: 20%; right: 10%; animation: drift1 100s ease-in-out infinite; }

@keyframes drift1 {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(30px, -20px); }
    50% { transform: translate(-15px, 25px); }
    75% { transform: translate(20px, 10px); }
}

@keyframes drift2 {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(-25px, 15px); }
    50% { transform: translate(20px, -30px); }
    75% { transform: translate(-10px, -15px); }
}

/* Diagonal Scatter Dots */
.diagonal-scatter {
    position: relative;
    height: 8vh;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-around;
    pointer-events: none;
}

.scatter-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: block;
}

.dot-terracotta { background: var(--terracotta); }
.dot-sage { background: var(--sage); }

/* Concept Section */
.grid-6 {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 48px;
    max-width: 900px;
    width: 100%;
    align-items: start;
}

.col-span-4 { grid-column: span 4; }
.col-span-2 { grid-column: span 2; }

.concept-card {
    padding: 48px;
}

.body-text {
    font-family: 'DM Sans', sans-serif;
    font-size: clamp(0.95rem, 1.3vw, 1.15rem);
    color: var(--charcoal);
    line-height: 1.72;
    margin-bottom: 16px;
    letter-spacing: 0.01em;
}

.body-text:last-child {
    margin-bottom: 0;
}

.small-text {
    font-size: clamp(0.8rem, 1vw, 0.9rem);
    color: var(--stone);
}

.accent-card {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.depth-mid {
    z-index: 20;
    background: rgba(255, 248, 240, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transform: translateY(60px) translate(12px, 16px);
}

.depth-mid.visible {
    transform: translate(12px, 16px);
}

.accent-word {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(1.8rem, 4vw, 3.5rem);
    font-weight: 400;
    letter-spacing: 0.12em;
    color: var(--charcoal);
    text-transform: uppercase;
    line-height: 1;
}

.small-word {
    font-size: clamp(1.4rem, 3vw, 2.5rem);
}

/* Diorama (Section 3) */
.diorama {
    position: relative;
    width: 90%;
    max-width: 900px;
    height: 60vh;
    min-height: 400px;
}

.diorama-back {
    position: absolute;
    z-index: 10;
    background: rgba(255, 248, 240, 0.25);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border-radius: 20px;
}

.d-card-1 { width: 300px; height: 250px; top: 5%; left: 5%; }
.d-card-2 { width: 280px; height: 220px; top: 40%; right: 5%; }

.diorama-mid {
    position: absolute;
    z-index: 20;
    background: rgba(255, 248, 240, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    overflow: hidden;
}

.d-card-3 { width: 240px; height: 200px; top: 20%; left: 15%; }
.d-card-4 { width: 220px; height: 180px; top: 50%; right: 15%; }

.dot-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, var(--stone) 1px, transparent 1px);
    background-size: 16px 16px;
    opacity: 0.08;
}

.diorama-front {
    position: absolute;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.d-card-5 { width: 200px; height: 160px; top: 10%; left: 35%; }
.d-card-6 { width: 180px; height: 140px; top: 45%; left: 25%; }
.d-card-7 { width: 170px; height: 130px; bottom: 10%; right: 20%; }

/* Detail Cards (Section 4) */
.detail-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 900px;
    width: 100%;
}

.detail-card {
    padding: 32px;
    transition: transform 400ms var(--spring-gentle), box-shadow 400ms var(--spring-gentle), background 400ms ease;
    cursor: default;
}

.detail-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 32px rgba(122, 107, 93, 0.14), 0 20px 60px rgba(122, 107, 93, 0.07);
    background: rgba(255, 248, 240, 0.7);
}

.detail-heading {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(1.8rem, 4vw, 3.5rem);
    font-weight: 400;
    letter-spacing: 0.12em;
    line-height: 1;
    color: var(--charcoal);
    text-transform: uppercase;
    margin-bottom: 12px;
}

/* Farewell Card */
.farewell-card {
    text-align: center;
    padding: 60px 80px;
}

.farewell-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 400;
    letter-spacing: 0.12em;
    line-height: 1;
    color: var(--charcoal);
    text-transform: uppercase;
}

/* Petal Scatter */
.petal-scatter {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 5;
}

.petal {
    position: absolute;
    width: 10px;
    height: 10px;
    background: rgba(232, 184, 157, 0.2);
    clip-path: polygon(50% 0%, 80% 35%, 100% 70%, 50% 100%, 0% 70%, 20% 35%);
    animation: spin var(--dur, 120s) linear infinite;
    animation-delay: var(--delay, 0s);
}

.petal.large {
    width: 14px;
    height: 14px;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .section {
        padding: 60px 24px;
    }

    .hero-card {
        width: 90vw;
        min-height: 40vh;
        padding: 32px 24px;
    }

    .grid-6 {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .col-span-4,
    .col-span-2 {
        grid-column: span 1;
    }

    .depth-mid.visible {
        transform: translate(0, 0);
    }

    .detail-row {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .diorama {
        height: auto;
        min-height: auto;
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .diorama-back,
    .diorama-mid,
    .diorama-front {
        position: relative;
        width: 100%;
        height: auto;
        min-height: 120px;
        top: auto;
        left: auto;
        right: auto;
        bottom: auto;
    }

    .scroll-indicator {
        right: 12px;
    }

    .note-br {
        right: 10%;
        bottom: 12%;
    }

    .farewell-card {
        padding: 40px 24px;
    }
}
