/* ============================================
   muhan.studio -- wabi-sabi digital ceramics
   ============================================ */

/* Typography: IntersectionObserver at 5% threshold. */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: #E8E0D0;
    color: #6A6058;
    font-family: 'Noto Serif', Georgia, serif;
    font-weight: 300;
    font-size: clamp(15px, 1.1vw, 17px);
    line-height: 1.9;
    overflow-x: hidden;
}

::selection {
    background-color: #D8D0C0;
    color: #3A3830;
}

/* --- Ceramic Crackle Texture Overlay --- */
.crackle-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400' viewBox='0 0 400 400'%3E%3Cpath d='M0 52 L87 48 L120 0' fill='none' stroke='%233A3830' stroke-width='0.5'/%3E%3Cpath d='M87 48 L152 95 L120 0' fill='none' stroke='%233A3830' stroke-width='0.5'/%3E%3Cpath d='M87 48 L45 120 L152 95' fill='none' stroke='%233A3830' stroke-width='0.5'/%3E%3Cpath d='M152 95 L210 52 L280 0' fill='none' stroke='%233A3830' stroke-width='0.5'/%3E%3Cpath d='M210 52 L310 85 L280 0' fill='none' stroke='%233A3830' stroke-width='0.5'/%3E%3Cpath d='M310 85 L400 48 L400 0 L280 0' fill='none' stroke='%233A3830' stroke-width='0.5'/%3E%3Cpath d='M0 52 L45 120 L0 180' fill='none' stroke='%233A3830' stroke-width='0.5'/%3E%3Cpath d='M45 120 L110 190 L152 95' fill='none' stroke='%233A3830' stroke-width='0.5'/%3E%3Cpath d='M152 95 L210 170 L310 85' fill='none' stroke='%233A3830' stroke-width='0.5'/%3E%3Cpath d='M110 190 L210 170 L152 95' fill='none' stroke='%233A3830' stroke-width='0.5'/%3E%3Cpath d='M310 85 L350 180 L400 48' fill='none' stroke='%233A3830' stroke-width='0.5'/%3E%3Cpath d='M210 170 L310 200 L310 85' fill='none' stroke='%233A3830' stroke-width='0.5'/%3E%3Cpath d='M310 200 L350 180 L310 85' fill='none' stroke='%233A3830' stroke-width='0.5'/%3E%3Cpath d='M350 180 L400 210 L400 48' fill='none' stroke='%233A3830' stroke-width='0.5'/%3E%3Cpath d='M0 180 L45 260 L110 190 L45 120' fill='none' stroke='%233A3830' stroke-width='0.5'/%3E%3Cpath d='M110 190 L140 280 L210 170' fill='none' stroke='%233A3830' stroke-width='0.5'/%3E%3Cpath d='M0 180 L0 310 L45 260' fill='none' stroke='%233A3830' stroke-width='0.5'/%3E%3Cpath d='M45 260 L90 340 L140 280' fill='none' stroke='%233A3830' stroke-width='0.5'/%3E%3Cpath d='M210 170 L250 290 L310 200' fill='none' stroke='%233A3830' stroke-width='0.5'/%3E%3Cpath d='M140 280 L250 290 L210 170' fill='none' stroke='%233A3830' stroke-width='0.5'/%3E%3Cpath d='M310 200 L370 300 L400 210' fill='none' stroke='%233A3830' stroke-width='0.5'/%3E%3Cpath d='M310 200 L250 290 L370 300' fill='none' stroke='%233A3830' stroke-width='0.5'/%3E%3Cpath d='M0 310 L50 400 L90 340 L45 260' fill='none' stroke='%233A3830' stroke-width='0.5'/%3E%3Cpath d='M90 340 L160 400 L140 280' fill='none' stroke='%233A3830' stroke-width='0.5'/%3E%3Cpath d='M140 280 L250 290 L200 400 L160 400' fill='none' stroke='%233A3830' stroke-width='0.5'/%3E%3Cpath d='M250 290 L300 400 L200 400' fill='none' stroke='%233A3830' stroke-width='0.5'/%3E%3Cpath d='M250 290 L370 300 L370 400 L300 400' fill='none' stroke='%233A3830' stroke-width='0.5'/%3E%3Cpath d='M370 300 L400 400 L400 210' fill='none' stroke='%233A3830' stroke-width='0.5'/%3E%3Cpath d='M0 310 L0 400 L50 400' fill='none' stroke='%233A3830' stroke-width='0.5'/%3E%3C/svg%3E");
    background-size: 400px 400px;
    background-repeat: repeat;
}

/* --- Hero / Opening Viewport --- */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #E8E0D0;
    overflow: hidden;
}

.hero-circle {
    position: absolute;
    width: clamp(260px, 40vw, 420px);
    height: clamp(260px, 40vw, 420px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-circle svg {
    width: 100%;
    height: 100%;
}

.logotype {
    position: relative;
    z-index: 2;
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    font-weight: 200;
    font-size: clamp(28px, 4vw, 44px);
    color: #3A3830;
    letter-spacing: 0.08em;
    opacity: 0;
    animation: logotypeFadeIn 2s ease-out 0.5s forwards;
}

@keyframes logotypeFadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Content Column --- */
.content-column {
    max-width: 560px;
    margin: 0 auto;
    padding: 0 clamp(24px, 6vw, 48px);
}

/* --- Content Sections --- */
.content-section {
    margin-bottom: 18vh;
    position: relative;
}

.content-section:first-of-type {
    margin-top: 12vh;
}

/* --- Fade-reveal sections --- */
.fade-section {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 1.2s ease, transform 1.2s ease;
}

.fade-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Section Circle Motif --- */
.section-circle {
    width: 60px;
    height: 60px;
    margin-bottom: 2em;
    opacity: 0.15;
}

.section-circle svg {
    width: 100%;
    height: 100%;
}

/* --- Annotations --- */
.annotation {
    display: block;
    font-family: 'Josefin Sans', 'Helvetica Neue', sans-serif;
    font-weight: 200;
    font-size: clamp(10px, 0.7vw, 12px);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #8A8070;
    margin-bottom: 1.5em;
}

/* --- Section Headings --- */
.section-heading {
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    font-weight: 200;
    font-size: clamp(22px, 3vw, 34px);
    color: #3A3830;
    line-height: 1.3;
    margin-bottom: 1em;
    letter-spacing: 0.02em;
}

/* --- Section Body --- */
.section-body {
    font-family: 'Noto Serif', Georgia, serif;
    font-weight: 300;
    font-size: clamp(15px, 1.1vw, 17px);
    color: #6A6058;
    line-height: 1.9;
    margin-bottom: 1.5em;
}

/* --- Section Rule --- */
.section-rule {
    border: none;
    border-top: 1px solid rgba(138, 128, 112, 0.2);
    margin-bottom: 18vh;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 clamp(24px, 6vw, 48px);
}

/* --- Work Items --- */
.work-items {
    margin-top: 3em;
}

.work-item {
    margin-bottom: 3em;
    padding-left: 0;
    background-color: #F0E8D8;
    padding: 2em;
}

.work-title {
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    font-weight: 300;
    font-size: clamp(18px, 2vw, 24px);
    color: #3A3830;
    line-height: 1.4;
    margin-bottom: 0.5em;
}

.work-description {
    font-family: 'Noto Serif', Georgia, serif;
    font-weight: 300;
    font-size: clamp(14px, 1vw, 16px);
    color: #8A8070;
    line-height: 1.8;
}

/* --- Contact Link --- */
.contact-link {
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    font-weight: 300;
    font-size: clamp(18px, 2.2vw, 26px);
    color: #3A3830;
    letter-spacing: 0.04em;
}

/* --- Final Spacer --- */
.final-spacer {
    height: 12vh;
}

/* --- Footer --- */
.site-footer {
    text-align: center;
    padding-bottom: 8vh;
    position: relative;
}

.footer-circle {
    width: 40px;
    height: 40px;
    margin: 0 auto 2em auto;
    opacity: 0.3;
}

.footer-circle svg {
    width: 100%;
    height: 100%;
}

.site-footer .annotation {
    display: block;
    margin-bottom: 0.5em;
    text-align: center;
}

/* --- Responsive Adjustments --- */
@media (max-width: 600px) {
    .content-section {
        margin-bottom: 12vh;
    }

    .section-rule {
        margin-bottom: 12vh;
    }

    .hero-circle {
        width: 220px;
        height: 220px;
    }

    .section-circle {
        width: 48px;
        height: 48px;
    }
}
