/* prototype.moe - Muji-inspired prototyping craft */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 400;
    font-size: clamp(15px, 1.4vw, 17px);
    line-height: 1.8;
    color: #3D3D3D;
    background-color: #FAF8F3;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* === Section Numerals === */
.section-numeral {
    display: block;
    font-family: 'Commissioner', sans-serif;
    font-weight: 200;
    font-size: clamp(48px, 6vw, 96px);
    color: #C8BEB0;
    opacity: 0.2;
    line-height: 1;
    margin-bottom: 8px;
    user-select: none;
}

/* === Section Headings === */
.section-heading {
    font-family: 'Commissioner', sans-serif;
    font-weight: 300;
    font-size: clamp(16px, 1.8vw, 22px);
    letter-spacing: 0.01em;
    color: #8B7B6B;
    margin-bottom: 48px;
}

/* ============================================
   Section 1: Void Welcome
   ============================================ */
#void-welcome {
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    background-color: #FAF8F3;
    position: relative;
    overflow: hidden;
}

.void-content {
    position: absolute;
    top: 38%;
    left: 38%;
    transform: translate(-50%, -50%);
}

.wordmark {
    font-family: 'Commissioner', sans-serif;
    font-weight: 300;
    font-size: clamp(22px, 3vw, 40px);
    letter-spacing: 0.01em;
    color: #3D3D3D;
    margin-bottom: 12px;
}

/* Sharp Red accent on the dot separator - minimal use per design */
.wordmark::after {
    content: '';
    display: block;
    width: 4px;
    height: 4px;
    background-color: #C44536;
    margin-top: 16px;
}

.subtitle {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 400;
    font-size: clamp(13px, 1.2vw, 15px);
    color: #8B7B6B;
    line-height: 1.8;
    animation: breathe 4s ease-in-out infinite;
}

@keyframes breathe {
    0%, 100% {
        opacity: 0.8;
    }
    50% {
        opacity: 1.0;
    }
}

/* ============================================
   Section 2: Prototype Grid
   ============================================ */
#prototype-grid {
    max-width: 960px;
    margin: 120px auto;
    padding: 0 24px;
    position: relative;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
}

.card {
    padding: 32px;
    background: transparent;
    transition: background-color 0.25s ease-out, transform 0.25s ease-out;
    cursor: default;
}

.card:hover {
    /* Craft Pink #E8C8C0 at 15% mix with Creamy Cream */
    background-color: color-mix(in srgb, #E8C8C0 15%, transparent);
    transform: scale(1.02);
}

.card-icon {
    display: block;
    margin-bottom: 16px;
}

.card-title {
    font-family: 'Commissioner', sans-serif;
    font-weight: 300;
    font-size: clamp(16px, 1.6vw, 20px);
    letter-spacing: 0.01em;
    color: #3D3D3D;
    margin-bottom: 8px;
}

.card-desc {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 400;
    font-size: clamp(13px, 1.2vw, 15px);
    color: #8B7B6B;
    line-height: 1.8;
}

/* ============================================
   Section 3: Material Showcase
   ============================================ */
#material-showcase {
    max-width: 1200px;
    margin: 120px auto;
    padding: 0 24px;
    position: relative;
}

.showcase-strip {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 60px 24px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.showcase-strip::-webkit-scrollbar {
    display: none;
}

.showcase-item {
    min-width: 280px;
    scroll-snap-align: center;
    flex-shrink: 0;
}

.showcase-item:nth-child(odd) .showcase-image {
    background-color: #E8DDD0;
}

.showcase-item:nth-child(even) .showcase-image {
    background-color: #E8C8C0;
}

.showcase-image {
    width: 280px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    filter: contrast(0.95);
}

.showcase-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
}

.showcase-label {
    font-family: 'Commissioner', sans-serif;
    font-weight: 300;
    font-size: 13px;
    color: #8B7B6B;
    letter-spacing: 0.01em;
    margin-top: 12px;
}

/* ============================================
   Section 4: Closing Breath
   ============================================ */
#closing-breath {
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #FAF8F3;
    padding: 24px;
}

.closing-text {
    font-family: 'Commissioner', sans-serif;
    font-weight: 300;
    font-size: clamp(18px, 2.4vw, 32px);
    letter-spacing: 0.01em;
    color: #3D3D3D;
    text-align: center;
    max-width: 640px;
    line-height: 1.6;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    .grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .void-content {
        top: 30%;
        left: 24px;
        transform: translateY(-50%);
    }

    #prototype-grid {
        margin: 80px auto;
    }

    #material-showcase {
        margin: 80px auto;
    }

    .showcase-strip {
        padding: 40px 16px;
    }
}

@media (max-width: 480px) {
    .void-content {
        top: 28%;
        left: 20px;
        right: 20px;
        transform: translateY(-50%);
    }
}
