/* recycle.studio - Zen Garden Material Research Lab */

:root {
    --warm-linen: #f4f0eb;
    --deep-tide: #2a4350;
    --slate-current: #3d5a68;
    --sage-mist: #94b0a5;
    --copper-patina: #5e8a7a;
    --pale-kelp: #c8d5ce;
    --tidal-indigo: #1e3340;
    --shore-clay: #c4a882;
    --weathered-stone: #b8c5c9;
    --gravel-angle: 89deg;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--warm-linen);
    color: var(--slate-current);
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 400;
    font-size: clamp(1rem, 1.1vw, 1.15rem);
    line-height: 1.75;
    letter-spacing: 0.01em;
    overflow-x: hidden;
    position: relative;
}

/* Raked Gravel Texture */
.gravel-texture {
    position: fixed;
    top: 0;
    bottom: 0;
    width: 50vw;
    pointer-events: none;
    z-index: 0;
    background: repeating-linear-gradient(
        var(--gravel-angle),
        transparent,
        transparent 11px,
        rgba(200, 213, 206, 0.04) 11px,
        rgba(200, 213, 206, 0.04) 12px
    );
}

.gravel-left {
    left: 0;
}

.gravel-right {
    right: 0;
}

/* Floating Kanji Watermarks */
.kanji-watermark {
    position: fixed;
    font-family: 'Noto Serif JP', serif;
    font-weight: 400;
    font-size: clamp(8rem, 15vw, 14rem);
    color: var(--pale-kelp);
    opacity: 0;
    z-index: -1;
    pointer-events: none;
    left: 50%;
    transform: translateX(-50%);
    transition: opacity 1.5s ease;
}

.kanji-1 {
    top: 20vh;
}

.kanji-2 {
    top: 55vh;
}

.kanji-3 {
    top: 85vh;
}

.kanji-watermark.visible {
    opacity: 0.08;
}

/* Navigation Dots */
.nav-dots {
    position: fixed;
    right: clamp(16px, 3vw, 40px);
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 100;
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1.5px solid var(--sage-mist);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: background-color 0.4s ease, border-color 0.4s ease;
}

.nav-dot.active {
    background-color: var(--deep-tide);
    border-color: var(--deep-tide);
}

/* Sections */
.section {
    position: relative;
    z-index: 1;
}

/* Gate Section */
.gate-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gate-content {
    text-align: center;
}

.gate-title {
    font-family: 'Libre Baskerville', serif;
    font-weight: 400;
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    letter-spacing: 0.12em;
    color: var(--deep-tide);
    opacity: 0;
    animation: fadeIn 1200ms cubic-bezier(0.16, 1, 0.3, 1) 600ms forwards;
}

.gate-line {
    width: 0;
    height: 1px;
    background-color: var(--sage-mist);
    margin: 1.5rem auto 0;
    animation: lineExpand 800ms cubic-bezier(0.16, 1, 0.3, 1) 1400ms forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes lineExpand {
    from { width: 0; }
    to { width: 80px; }
}

/* Specimen Sections */
.specimen-section,
.return-section {
    padding: clamp(4rem, 8vh, 8rem) 0;
}

.section-inner {
    position: relative;
    max-width: 680px;
    width: 92vw;
    margin: 0 auto;
}

/* Section Numerals */
.section-numeral {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: clamp(3rem, 6vw, 5rem);
    color: var(--pale-kelp);
    opacity: 0.5;
    line-height: 1;
    position: relative;
    top: 0.5em;
    z-index: 0;
    pointer-events: none;
}

/* Specimen Cards */
.specimen-card {
    position: relative;
    z-index: 1;
    border: 1px solid var(--weathered-stone);
    padding: clamp(2rem, 4vw, 4rem);
    background-color: var(--warm-linen);
    box-shadow: 0 1px 3px rgba(42, 67, 80, 0.08), 0 6px 24px rgba(42, 67, 80, 0.04);
    transition: transform 400ms cubic-bezier(0.33, 1, 0.68, 1),
                box-shadow 400ms cubic-bezier(0.33, 1, 0.68, 1),
                border-color 400ms cubic-bezier(0.33, 1, 0.68, 1);
}

.specimen-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(42, 67, 80, 0.12), 0 12px 36px rgba(42, 67, 80, 0.06);
    border-color: var(--sage-mist);
}

/* Enso Circles */
.enso {
    display: block;
    margin: 0 auto 2rem;
    opacity: 0.3;
}

.enso-1 { width: 140px; height: 140px; }
.enso-2 { width: 180px; height: 180px; }
.enso-3 { width: 120px; height: 120px; }
.enso-4 { width: 160px; height: 160px; }
.enso-5 { width: 140px; height: 140px; }

.enso-path {
    stroke-dasharray: 600;
    stroke-dashoffset: 600;
    transition: stroke-dashoffset 2000ms cubic-bezier(0.65, 0, 0.35, 1);
}

.enso-path.drawn {
    stroke-dashoffset: 0;
}

/* Specimen Labels */
.specimen-label {
    display: block;
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 300;
    font-size: clamp(0.75rem, 0.85vw, 0.85rem);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #7a9a8e;
    margin-bottom: 0.75rem;
}

/* Specimen Headings */
.specimen-heading {
    font-family: 'Libre Baskerville', serif;
    font-weight: 700;
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    letter-spacing: 0.02em;
    line-height: 1.25;
    color: var(--deep-tide);
    margin-bottom: 1.5rem;
}

/* Specimen Body */
.specimen-body {
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 400;
    font-size: clamp(1rem, 1.1vw, 1.15rem);
    line-height: 1.75;
    letter-spacing: 0.01em;
    color: var(--slate-current);
    margin-bottom: 1.25rem;
}

.specimen-body:last-of-type {
    margin-bottom: 2rem;
}

/* Specimen Diagrams */
.specimen-diagram {
    display: block;
    max-width: 240px;
    margin: 2rem auto 0;
    opacity: 0.7;
}

/* Return Section */
.return-text {
    text-align: center;
    font-family: 'Libre Baskerville', serif;
    font-weight: 400;
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    line-height: 1.6;
    color: var(--deep-tide);
    font-style: italic;
}

.return-gate {
    text-align: center;
    margin-top: clamp(6rem, 12vh, 12rem);
    padding-bottom: clamp(4rem, 8vh, 8rem);
}

.gate-line-bottom {
    width: 80px;
    height: 1px;
    background-color: var(--sage-mist);
    margin: 0 auto 1.5rem;
}

.return-domain {
    font-family: 'Libre Baskerville', serif;
    font-weight: 400;
    font-size: clamp(1rem, 1.8vw, 1.3rem);
    letter-spacing: 0.12em;
    color: var(--deep-tide);
}

/* Footer */
.site-footer {
    text-align: center;
    padding: 2rem 0 3rem;
    background-color: var(--tidal-indigo);
}

.footer-text {
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 300;
    font-size: clamp(0.75rem, 0.85vw, 0.85rem);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--pale-kelp);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .nav-dots {
        right: 10px;
        gap: 10px;
    }
    
    .nav-dot {
        width: 10px;
        height: 10px;
    }
    
    .section-numeral {
        font-size: clamp(2.5rem, 10vw, 4rem);
    }
    
    .kanji-watermark {
        font-size: clamp(6rem, 30vw, 10rem);
    }
}
