/* eesugi.com - Wabi-Sabi Imperfect Ceramic */
/* Palette: #f5f0e6, #3a3530, #8b7355, #c4a97d, #e8dfd0, #a09080 */

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

body {
    background: #f5f0e6;
    color: #3a3530;
    font-family: 'Lato', sans-serif;
    font-weight: 300;
    line-height: 1.8;
    overflow-x: hidden;
}

/* Paper Texture Overlay - 3-5% opacity grain */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='300' height='300' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 10;
    opacity: 1;
    transition: opacity 2s ease;
}

/* Return section paper texture intensification */
body.paper-prominent::before {
    opacity: 1;
    background-image: url("data:image/svg+xml,%3Csvg width='300' height='300' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.09'/%3E%3C/svg%3E");
}

/* Kintsugi gold line */
.kintsugi-line {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    z-index: 20;
}

.kintsugi-line svg {
    width: 100%;
    height: 6px;
    display: block;
}

/* Faint circular watermark */
.watermark {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    pointer-events: none;
    opacity: 1;
}

/* ========================================
   Section 1: Stillness (Hero)
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.hero-content {
    text-align: center;
    margin-left: -8%;
    margin-top: -5%;
}

.imperfect-circle {
    margin-bottom: 1.5rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.imperfect-circle.small {
    margin-bottom: 0.8rem;
    display: block;
}

/* Circle drawing animation */
.draw-circle {
    stroke-dasharray: 310;
    stroke-dashoffset: 310;
    animation: drawCircle 3s ease-in-out forwards;
    animation-delay: 0.8s;
}

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

.brand {
    font-family: 'Cormorant', serif;
    font-weight: 400;
    font-size: clamp(2.8rem, 7vw, 4.5rem);
    color: #3a3530;
    letter-spacing: 0.12em;
    opacity: 0;
    animation: brandFadeIn 2s ease forwards;
    animation-delay: 0.3s;
}

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

.subtitle {
    font-family: 'Source Code Pro', monospace;
    font-size: 0.75rem;
    color: #a09080;
    margin-top: 0.25rem;
    letter-spacing: 0.05em;
    opacity: 0;
    animation: brandFadeIn 1.5s ease forwards;
    animation-delay: 1.2s;
}

/* ========================================
   Section 2: Excess (Content)
   ======================================== */
.content {
    padding: 0 1.5rem 4rem;
    position: relative;
    z-index: 1;
}

.text-block {
    margin-bottom: 80px;
}

/* Organic variable spacing per design */
.text-block:nth-child(1) { margin-bottom: 90px; }
.text-block:nth-child(2) { margin-bottom: 70px; }
.text-block:nth-child(4) { margin-bottom: 110px; }
.text-block:nth-child(5) { margin-bottom: 60px; }
.text-block:nth-child(6) { margin-bottom: 130px; }
.text-block:nth-child(7) { margin-bottom: 100px; }
.text-block:nth-child(8) { margin-bottom: 85px; }

.body-text {
    font-family: 'Lato', sans-serif;
    font-weight: 300;
    font-size: 0.95rem;
    color: #3a3530;
    line-height: 1.8;
}

.body-text em {
    font-family: 'Cormorant', serif;
    font-style: italic;
    font-size: 1.08rem;
    color: #8b7355;
}

/* Texture panel */
.texture-panel {
    background: #e8dfd0;
    padding: 3.5rem 2.5rem;
    max-width: 520px;
    margin: 0 auto 100px;
    text-align: center;
    position: relative;
}

.texture-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='200' height='200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
    pointer-events: none;
}

.panel-text {
    font-family: 'Cormorant', serif;
    font-weight: 400;
    font-size: 1.35rem;
    color: #8b7355;
    line-height: 1.6;
}

/* Wavy rules */
svg.wavy-rule {
    display: block;
    margin: 2.5rem auto 3rem;
}

/* ========================================
   Section 3: Reflection
   ======================================== */
.reflection-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    padding: 4rem 2rem;
}

.reflection {
    text-align: center;
    padding: 2rem;
    max-width: 700px;
}

.reflection-text {
    font-family: 'Cormorant', serif;
    font-weight: 400;
    font-size: clamp(1.6rem, 4.5vw, 2.8rem);
    color: #3a3530;
    line-height: 1.4;
    letter-spacing: 0.02em;
}

/* ========================================
   Section 4: Return
   ======================================== */
.return-section {
    padding: 2rem 1.5rem 0;
    position: relative;
    z-index: 1;
}

.closing {
    padding: 1rem 0;
}

.closing-text {
    font-family: 'Cormorant', serif;
    font-weight: 400;
    font-size: 1rem;
    color: #8b7355;
    margin-top: 0.5rem;
}

.closing-meta {
    font-family: 'Source Code Pro', monospace;
    font-size: 0.65rem;
    color: #a09080;
    margin-top: 0.25rem;
    letter-spacing: 0.03em;
}

.final-space {
    height: 200px;
}

/* ========================================
   Fade In Animation
   ======================================== */
.fade-in {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Preserve per-block rotation when visible */
.text-block.fade-in.visible {
    transform: translateY(0);
}

/* Re-apply rotation from inline styles after fade-in completes */
.text-block.fade-in.visible[style*="rotate"] {
    transition: opacity 0.8s ease;
}
