/* tanso.in - Wabi-sabi carbon pottery */
/* Palette: #1C1410 #2A1F17 #3E2C20 #8B5E3C #9E9486 #C85A24 #D4A574 #D4C4B0 #EDE5D8 #F5EDE3 */

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #F5EDE3;
    color: #2A1F17;
    overflow-x: hidden;
    line-height: 1.6;
}

/* === Noise grain overlay === */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

/* === Kiln Section === */
#kiln {
    background: #1C1410;
}

.ember-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.ember {
    position: absolute;
    width: 3px;
    height: 3px;
    background: #C85A24;
    border-radius: 50%;
    opacity: 0;
    animation: ember-rise 4s ease-in infinite;
}

@keyframes ember-rise {
    0% {
        opacity: 0;
        transform: translateY(0) scale(1);
    }
    20% {
        opacity: 0.8;
    }
    80% {
        opacity: 0.3;
    }
    100% {
        opacity: 0;
        transform: translateY(-300px) scale(0.3);
    }
}

.kiln-crack {
    position: absolute;
    bottom: 0;
    left: 30%;
    width: 40%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #C85A24, #D4A574, #C85A24, transparent);
    opacity: 0;
    transition: opacity 1.5s ease 1s, height 2s ease 1s;
}

.kiln-crack.active {
    opacity: 0.6;
    height: 6px;
}

.kiln-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-size: clamp(3rem, 9vw, 7rem);
    letter-spacing: 0.03em;
    color: #C85A24;
    text-shadow: 0 0 20px rgba(200, 90, 36, 0.3);
    opacity: 0;
    transition: opacity 1.5s ease 2s;
    z-index: 2;
}

.kiln-title.visible {
    opacity: 1;
}

.kiln-subtitle {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 0.95rem;
    letter-spacing: 0.1em;
    color: #9E9486;
    margin-top: 1rem;
    opacity: 0;
    transition: opacity 1s ease 3.5s;
    z-index: 2;
}

.kiln-subtitle.visible {
    opacity: 1;
}

.scroll-cue {
    position: absolute;
    bottom: 2.5rem;
    z-index: 2;
    opacity: 0;
    transition: opacity 1s ease 4s;
}

.scroll-cue.visible {
    opacity: 0.6;
}

.scroll-dot {
    animation: scroll-bob 2s ease-in-out infinite;
}

@keyframes scroll-bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); opacity: 0.3; }
}

/* === Vessel Sections === */
.section-vessel {
    background: #F5EDE3;
    padding: 6rem 2rem;
}

.vessel-warm {
    background: #2A1F17;
}

.vessel-container {
    position: relative;
    max-width: 700px;
    width: 100%;
    padding: 4rem 3rem;
    border-radius: 48% 52% 45% 55% / 40% 42% 58% 60%;
    background: #EDE5D8;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.vessel-warm .vessel-container {
    background: #3E2C20;
}

.vessel-container.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* === Crack textures === */
.crack-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.crack-1::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 10%;
    width: 60%;
    height: 0.5px;
    background: #2A1F17;
    opacity: 0.08;
    transform: rotate(3deg);
}

.crack-1::after {
    content: '';
    position: absolute;
    top: 65%;
    right: 15%;
    width: 40%;
    height: 0.5px;
    background: #2A1F17;
    opacity: 0.06;
    transform: rotate(-5deg);
}

.crack-2::before {
    content: '';
    position: absolute;
    top: 35%;
    left: 5%;
    width: 50%;
    height: 0.5px;
    background: #D4A574;
    opacity: 0.1;
    transform: rotate(7deg);
}

.crack-2::after {
    content: '';
    position: absolute;
    bottom: 25%;
    right: 10%;
    width: 35%;
    height: 0.5px;
    background: #D4A574;
    opacity: 0.08;
    transform: rotate(-2deg);
}

.crack-3::before {
    content: '';
    position: absolute;
    top: 40%;
    left: 15%;
    width: 45%;
    height: 0.5px;
    background: #2A1F17;
    opacity: 0.07;
    transform: rotate(4deg);
}

.crack-4::before {
    content: '';
    position: absolute;
    top: 30%;
    right: 20%;
    width: 55%;
    height: 0.5px;
    background: #D4A574;
    opacity: 0.09;
    transform: rotate(-6deg);
}

/* === Vessel Ring (potter's mark) === */
.vessel-ring {
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    border: 1.5px solid #C85A24;
    border-radius: 50%;
    opacity: 0.3;
    box-shadow: 0 0 8px #D4C4B0;
}

.ring-dark {
    border-color: #D4A574;
}

/* === Typography === */
.vessel-heading {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    color: #8B5E3C;
    margin-bottom: 0.3rem;
}

.heading-on-dark {
    color: #D4A574;
}

.vessel-subtitle {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    color: #9E9486;
    margin-bottom: 2rem;
    text-transform: lowercase;
}

.subtitle-on-dark {
    color: #9E9486;
}

.vessel-body p {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    font-size: clamp(1.05rem, 1.5vw, 1.2rem);
    color: #2A1F17;
    line-height: 1.9;
    margin-bottom: 1.2rem;
    text-align: left;
}

.body-on-dark p {
    color: #EDE5D8;
}

/* === Footer === */
#earth-footer {
    background: #1C1410;
    padding: 3rem 2rem;
    text-align: center;
}

.footer-domain {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-size: 1.6rem;
    color: #C85A24;
    margin-bottom: 0.5rem;
}

.footer-note {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 0.85rem;
    color: #9E9486;
    letter-spacing: 0.05em;
}

/* === Responsive === */
@media (max-width: 768px) {
    .vessel-container {
        padding: 3rem 2rem;
        border-radius: 45% 55% 42% 58% / 38% 40% 60% 62%;
    }

    .section-vessel {
        padding: 4rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .vessel-container {
        padding: 2rem 1.5rem;
    }
}
