/* glolos.com - Cottagecore Luxurious Atelier */

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

:root {
    --kiln: #F5E6D3;
    --terra: #B8553A;
    --blush: #C4826E;
    --umber: #3D2217;
    --cream: #FAF3EA;
    --gold: #C8964E;
    --walnut: #5C3A2A;
    --parchment: #FFF8F0;
    --ease: cubic-bezier(0.23, 1, 0.32, 1);
}

body {
    font-family: 'Source Serif 4', serif;
    color: var(--umber);
    background: var(--kiln);
    overflow-x: hidden;
    line-height: 1.72;
    background-image:
        radial-gradient(circle 200px at 30% 20%, rgba(196,130,110,0.03) 0%, transparent 100%),
        radial-gradient(circle 40px at 60% 50%, rgba(196,130,110,0.05) 0%, transparent 100%),
        radial-gradient(circle 8px at 45% 75%, rgba(196,130,110,0.02) 0%, transparent 100%);
}

/* Background Blobs */
.bg-shapes {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.bg-blob {
    position: absolute;
    background: linear-gradient(135deg, var(--terra), var(--blush));
    opacity: 0.05;
    animation: drift 120s linear infinite;
}

.blob-1 {
    width: 500px; height: 400px;
    top: 10%; left: 5%;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
}
.blob-2 {
    width: 350px; height: 350px;
    top: 50%; right: 10%;
    border-radius: 60% 40% 30% 70% / 50% 60% 40% 50%;
    animation-duration: 100s;
}
.blob-3 {
    width: 450px; height: 380px;
    bottom: 15%; left: 40%;
    border-radius: 40% 60% 50% 50% / 60% 30% 70% 40%;
    animation-duration: 140s;
}

@keyframes drift {
    0% { transform: rotate(0deg) translate(0,0); }
    50% { transform: rotate(180deg) translate(20px, -10px); }
    100% { transform: rotate(360deg) translate(0,0); }
}

/* Threshold */
.threshold {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--parchment);
    text-align: center;
    padding: 40px;
}

.hero-name {
    font-family: 'Roboto Slab', serif;
    font-weight: 700;
    font-size: clamp(2.5rem, 7vw, 7rem);
    color: var(--terra);
    letter-spacing: 0.02em;
    line-height: 1.15;
}

.embossed-line {
    width: 60%;
    max-width: 400px;
    height: 4px;
    margin: 24px 0;
}

.line-draw {
    stroke-dasharray: 400;
    stroke-dashoffset: 400;
    animation: drawLine 2.5s ease forwards 0.5s;
}

@keyframes drawLine {
    to { stroke-dashoffset: 0; }
}

.tagline {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 600;
    font-size: clamp(0.7rem, 0.85vw, 0.85rem);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--blush);
}

.breath-line {
    width: 1px;
    height: 0;
    background: var(--blush);
    margin-top: 40px;
    animation: breathe 3s ease-in-out infinite;
}

@keyframes breathe {
    0%, 100% { height: 0; opacity: 0.5; }
    50% { height: 40px; opacity: 1; }
}

/* Gallery */
.gallery {
    position: relative;
    z-index: 1;
    padding: clamp(2rem, 5vw, 5rem) clamp(1.5rem, 4vw, 4rem);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: clamp(1.2rem, 2.5vw, 2.5rem);
    max-width: 1200px;
    margin: 0 auto;
}

.tile {
    background: var(--cream);
    border: 1px solid var(--blush);
    padding: clamp(1.5rem, 3vw, 3rem);
    min-height: 280px;
    position: relative;
    margin-top: var(--offset, 0);
    transition: transform 500ms var(--ease), box-shadow 500ms var(--ease), border-color 500ms var(--ease);
    box-shadow: 0 4px 16px rgba(139, 80, 55, 0.12);
    overflow: hidden;
    background-image: radial-gradient(circle, var(--blush) 1.5px, transparent 1.5px);
    background-size: 24px 24px;
    background-position: 0 0;
}

.tile:not(.empty-cell) {
    background-blend-mode: normal;
}

.tile:not(.empty-cell):hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(139, 80, 55, 0.18);
    border-color: var(--gold);
}

.tile:not(.empty-cell):hover .tile-heading {
    color: var(--terra);
}

.tile:not(.empty-cell):hover .tile-shape {
    opacity: 0.15;
}

.empty-cell {
    background: transparent;
    border: none;
    box-shadow: none;
    min-height: 100px;
}

.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }

/* Tile Content */
.tile-shape {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--terra), var(--blush));
    opacity: 0.08;
    transition: opacity 500ms var(--ease);
    z-index: 0;
}

.shape-a { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
.shape-b { border-radius: 60% 40% 30% 70% / 50% 60% 40% 50%; }
.shape-c { border-radius: 40% 60% 50% 50% / 60% 30% 70% 40%; }
.shape-d { border-radius: 50% 50% 30% 70% / 40% 60% 40% 60%; }
.shape-e { border-radius: 70% 30% 50% 50% / 30% 70% 30% 70%; }
.shape-f { border-radius: 35% 65% 45% 55% / 55% 35% 65% 45%; }

.tile-label {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 600;
    font-size: clamp(0.7rem, 0.85vw, 0.85rem);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--blush);
    display: block;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.tile-heading {
    font-family: 'Roboto Slab', serif;
    font-weight: 400;
    font-size: clamp(1.3rem, 2.5vw, 2.4rem);
    letter-spacing: 0.02em;
    line-height: 1.15;
    color: var(--umber);
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
    transition: color 500ms var(--ease);
}

.tile-body {
    font-family: 'Source Serif 4', serif;
    font-size: clamp(0.95rem, 1.1vw, 1.15rem);
    line-height: 1.72;
    color: var(--umber);
    position: relative;
    z-index: 1;
}

/* Reveal */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 700ms var(--ease), transform 700ms var(--ease);
    transition-delay: var(--d, 0ms);
}

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

/* Hearth */
.hearth {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--walnut);
    padding: clamp(4rem, 8vw, 8rem) 24px;
}

.hearth-content {
    max-width: 640px;
    text-align: center;
    position: relative;
}

.hearth-shape {
    position: absolute;
    width: 300px;
    height: 300px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 40% 60% 50% 50% / 60% 30% 70% 40%;
    background: linear-gradient(135deg, var(--terra), var(--blush));
    opacity: 0.06;
    animation: drift 120s linear infinite;
}

.hearth-text {
    font-family: 'Source Serif 4', serif;
    font-size: clamp(1.1rem, 1.5vw, 1.35rem);
    line-height: 1.8;
    color: var(--cream);
    margin-bottom: 40px;
    position: relative;
}

.hearth-mark {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--blush);
    position: relative;
}

/* Responsive */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .span-3, .span-4, .span-5 {
        grid-column: span 1;
    }

    .tile {
        margin-top: 0;
    }

    .empty-cell {
        display: none;
    }

    .embossed-line {
        width: 80%;
    }
}
