/* reasoner.studio - Neomorphic Earth Ceramics */

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

:root {
    --clay-beige: #D4C4B0;
    --wet-clay: #B8A898;
    --kiln-white: #F0E8DC;
    --fired-earth: #3A2E24;
    --terracotta: #C07850;
    --slip-blue: #7A9EAA;
    --kiln-char: #2A2018;
    --glaze-clear: rgba(212, 228, 232, 0.4);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Hind', sans-serif;
    font-weight: 400;
    font-size: 0.95rem;
    line-height: 1.65;
    background-color: var(--clay-beige);
    color: var(--fired-earth);
    overflow-x: hidden;
}

/* === Thumbprint Texture === */
#thumbprint-texture {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.015;
    background:
        radial-gradient(circle at 20% 30%, var(--fired-earth) 0%, transparent 2%),
        radial-gradient(circle at 25% 32%, transparent 1.5%, var(--fired-earth) 1.5%, var(--fired-earth) 2%, transparent 2%),
        radial-gradient(circle at 70% 60%, var(--fired-earth) 0%, transparent 2%),
        radial-gradient(circle at 75% 62%, transparent 1.5%, var(--fired-earth) 1.5%, var(--fired-earth) 2%, transparent 2%),
        radial-gradient(circle at 45% 80%, var(--fired-earth) 0%, transparent 1.5%);
    background-size: 200px 200px;
}

/* === Bento Grid === */
#bento-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: minmax(120px, auto);
    gap: 1rem;
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.5rem;
    position: relative;
    z-index: 1;
}

#bento-grid section {
    display: contents;
}

/* === Cell Spans === */
.span-1 { grid-column: span 1; }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.row-2 { grid-row: span 2; }

/* === Base Cell === */
.bento-cell {
    background-color: var(--clay-beige);
    border-radius: 12px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.bento-cell.visible {
    opacity: 1;
}

/* === Cell Types === */
.cell-raised {
    box-shadow: 8px 8px 16px var(--wet-clay), -8px -8px 16px var(--kiln-white);
}

.cell-raised:hover {
    transform: scale(1.03);
    box-shadow: 12px 12px 20px var(--wet-clay), -12px -12px 20px var(--kiln-white);
}

.cell-concave {
    box-shadow: inset 8px 8px 16px var(--wet-clay), inset -8px -8px 16px var(--kiln-white);
}

.cell-concave:hover {
    transform: scale(0.98);
    box-shadow: inset 10px 10px 20px var(--wet-clay), inset -10px -10px 20px var(--kiln-white);
}

.cell-flat {
    border: 1px solid var(--wet-clay);
}

/* === Nav Cells === */
.nav-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    cursor: pointer;
    padding: 0.75rem;
    min-height: auto;
    transition: opacity 0.6s ease, transform 0.3s ease, background-color 0.3s ease;
}

.nav-cell:hover {
    transform: scale(1.05);
}

.nav-cell:hover .motif-icon path,
.nav-cell:hover .motif-icon circle,
.nav-cell:hover .motif-icon rect,
.nav-cell:hover .motif-icon ellipse {
    fill: rgba(192, 120, 80, 0.3);
}

.nav-label {
    font-family: 'Overpass Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.04em;
    color: var(--fired-earth);
    text-transform: uppercase;
}

.motif-icon {
    transition: fill 0.3s;
}

/* === Typography === */
.hero-title {
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 800;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: var(--fired-earth);
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero-dot {
    color: var(--terracotta);
}

.hero-sub {
    font-family: 'Hind', sans-serif;
    font-weight: 400;
    font-size: 1rem;
    color: var(--fired-earth);
    opacity: 0.6;
}

.cell-heading {
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 700;
    font-size: clamp(1.25rem, 3vw, 2rem);
    color: var(--fired-earth);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.cell-text {
    font-family: 'Hind', sans-serif;
    font-weight: 400;
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--fired-earth);
}

.cell-caption {
    font-family: 'Hind', sans-serif;
    font-weight: 400;
    font-size: 0.85rem;
    font-style: italic;
    color: var(--fired-earth);
    opacity: 0.7;
}

.cell-meta {
    font-family: 'Overpass Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    color: var(--fired-earth);
    opacity: 0.5;
    display: block;
    margin-bottom: 0.5rem;
}

/* === Water Bubbles === */
.bubble-cell {
    position: relative;
}

.bubble {
    position: absolute;
    border-radius: 50%;
    background-color: var(--slip-blue);
    opacity: 0;
    animation: bubbleRise var(--duration, 6s) ease-in-out infinite;
    animation-delay: var(--delay, 0s);
}

.bubble-lg {
    width: 36px;
    height: 36px;
    left: 20%;
    bottom: 10%;
    --duration: 7s;
    --delay: 0s;
    opacity: 0.35;
    box-shadow: inset 3px 3px 6px var(--wet-clay), inset -3px -3px 6px var(--kiln-white);
}

.bubble-md {
    width: 22px;
    height: 22px;
    left: 55%;
    bottom: 20%;
    --duration: 5.5s;
    --delay: 1s;
    opacity: 0.3;
    box-shadow: inset 2px 2px 4px var(--wet-clay), inset -2px -2px 4px var(--kiln-white);
}

.bubble-sm {
    width: 14px;
    height: 14px;
    left: 40%;
    bottom: 5%;
    --duration: 4.5s;
    --delay: 2s;
    opacity: 0.25;
    box-shadow: inset 1px 1px 3px var(--wet-clay), inset -1px -1px 3px var(--kiln-white);
}

.bubble-xs {
    width: 8px;
    height: 8px;
    left: 70%;
    bottom: 15%;
    --duration: 4s;
    --delay: 3s;
    opacity: 0.2;
}

@keyframes bubbleRise {
    0% { transform: translateY(0) translateX(0); opacity: 0; }
    10% { opacity: 0.35; }
    80% { opacity: 0.35; }
    100% { transform: translateY(-120px) translateX(3px); opacity: 0; }
}

/* === Firing Section === */
.firing-cell {
    transition: opacity 0.6s ease, transform 0.3s ease, box-shadow 0.3s ease, background-color 1s ease;
}

.firing-heading {
    color: var(--terracotta);
}

/* === Final Cell === */
.final-title {
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 800;
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--terracotta);
    line-height: 1.1;
    margin-bottom: 1rem;
}

.final-dot {
    color: var(--fired-earth);
}

.final-text {
    opacity: 0.7;
}

/* === Motif Shelf === */
.motif-shelf {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.shelf-icon {
    opacity: 0.6;
}

/* === Responsive === */
@media (max-width: 768px) {
    #bento-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        padding: 1rem;
    }

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

    .span-1 {
        grid-column: span 1;
    }

    .nav-cell {
        padding: 0.5rem;
    }

    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }
}
