/* recycle.studio - MUJI-inspired warm minimalism */

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

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

body {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    color: #4A4A4A;
    background-color: #FAFAF8;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* ============================================
   Noise Texture Overlay
   ============================================ */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}

/* ============================================
   Typography
   ============================================ */
.headline {
    font-family: 'Commissioner', sans-serif;
    font-weight: 500;
    font-size: clamp(2rem, 5vw, 3.2rem);
    line-height: 1.15;
    color: #4A4A4A;
    letter-spacing: -0.01em;
}

.headline-large {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 600;
}

.body-text {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1rem, 1.1vw, 1.125rem);
    line-height: 1.6;
    color: #4A4A4A;
    max-width: 55ch;
}

.section-label {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 400;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #4A4A4A;
    opacity: 0.6;
    display: block;
    margin-bottom: 2.5rem;
}

/* ============================================
   Navigation
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 3rem;
    z-index: 100;
    background-color: rgba(250, 250, 248, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.nav-label {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 500;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #4A4A4A;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 400;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9B8B7E;
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #6B8E7F;
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: #4A4A4A;
}

.nav-link:hover::after {
    width: 100%;
}

/* ============================================
   Section Layout
   ============================================ */
.section {
    padding: 6rem 3rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.section-opening {
    padding-top: 10rem;
}

.section-inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Magazine spread layout */
.spread-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.spread-offset .spread-left {
    padding-top: 2rem;
}

.spread-reverse {
    direction: rtl;
}

.spread-reverse > * {
    direction: ltr;
}

.spread-wide {
    grid-column: 1 / -1;
    max-width: 65ch;
}

/* ============================================
   Section 01: Opening
   ============================================ */
.section-opening .headline-large {
    margin-bottom: 0;
}

.section-opening .body-text {
    margin-bottom: 2.5rem;
}

.line-illustration {
    max-width: 320px;
    margin-top: 2rem;
}

.line-illustration svg {
    width: 100%;
    height: auto;
}

/* ============================================
   Section 02: Process
   ============================================ */
.section-process {
    background-color: #F5F3F0;
}

.process-steps {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.process-step {
    padding-left: 1.5rem;
    border-left: 1px solid #B8B8B8;
    position: relative;
}

.step-number {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 400;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #6B8E7F;
    display: block;
    margin-bottom: 0.4rem;
}

.step-label {
    font-family: 'Commissioner', sans-serif;
    font-weight: 500;
    font-size: 1.1rem;
    color: #4A4A4A;
    display: block;
    margin-bottom: 0.5rem;
}

.step-desc {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #4A4A4A;
    opacity: 0.8;
    max-width: 45ch;
}

/* ============================================
   Section 03: Systems
   ============================================ */
.systems-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 4rem;
}

.system-card {
    padding: 2rem 0;
    border-top: 1px solid #B8B8B8;
}

.system-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
}

.system-icon svg {
    width: 100%;
    height: 100%;
}

.system-name {
    font-family: 'Commissioner', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    color: #4A4A4A;
    display: block;
    margin-bottom: 0.75rem;
}

.system-desc {
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    line-height: 1.6;
    color: #4A4A4A;
    opacity: 0.75;
    max-width: 35ch;
}

/* ============================================
   Section 04: Materials
   ============================================ */
.section-materials {
    background-color: #F5F3F0;
}

.material-visual {
    width: 100%;
    max-width: 400px;
}

.material-diagram {
    width: 100%;
    height: auto;
}

.material-stats {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.stat-value {
    font-family: 'Commissioner', sans-serif;
    font-weight: 600;
    font-size: 2rem;
    color: #4A4A4A;
    line-height: 1;
}

.stat-label {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 400;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #9B8B7E;
}

/* Pulse attention animation */
.pulse-attention {
    animation: pulseOpacity 3.5s ease-in-out infinite;
}

@keyframes pulseOpacity {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* ============================================
   Section 05: Studio
   ============================================ */
.studio-features {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.feature {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.feature-marker {
    width: 8px;
    height: 8px;
    min-width: 8px;
    border-radius: 50%;
    background-color: #6B8E7F;
    margin-top: 0.5rem;
}

.feature-content {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.feature-title {
    font-family: 'Commissioner', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    color: #4A4A4A;
}

.feature-desc {
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    line-height: 1.6;
    color: #4A4A4A;
    opacity: 0.75;
    max-width: 45ch;
}

/* ============================================
   Section 06: Closing
   ============================================ */
.section-closing {
    text-align: center;
    min-height: 80vh;
}

.closing-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.closing-text {
    max-width: 50ch;
    text-align: center;
}

.closing-line {
    width: 100%;
    max-width: 600px;
    margin-top: 2rem;
}

.closing-svg {
    width: 100%;
    height: auto;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    padding: 3rem;
    border-top: 1px solid #B8B8B8;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-name {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 500;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #4A4A4A;
}

.footer-year {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 400;
    font-size: 0.75rem;
    color: #9B8B7E;
}

/* ============================================
   Scroll Reveal Animations
   ============================================ */
.process-step,
.system-card,
.feature,
.stat {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.process-step.revealed,
.system-card.revealed,
.feature.revealed,
.stat.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delays */
.process-step:nth-child(1) { transition-delay: 0.1s; }
.process-step:nth-child(2) { transition-delay: 0.25s; }
.process-step:nth-child(3) { transition-delay: 0.4s; }

.system-card:nth-child(1) { transition-delay: 0.1s; }
.system-card:nth-child(2) { transition-delay: 0.25s; }
.system-card:nth-child(3) { transition-delay: 0.4s; }

.feature:nth-child(1) { transition-delay: 0.1s; }
.feature:nth-child(2) { transition-delay: 0.25s; }
.feature:nth-child(3) { transition-delay: 0.4s; }

.stat:nth-child(1) { transition-delay: 0.1s; }
.stat:nth-child(2) { transition-delay: 0.25s; }
.stat:nth-child(3) { transition-delay: 0.4s; }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 900px) {
    .spread-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .spread-reverse {
        direction: ltr;
    }

    .systems-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .material-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .nav {
        padding: 1rem 1.5rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .section {
        padding: 4rem 1.5rem;
    }

    .section-opening {
        padding-top: 7rem;
    }
}

@media (max-width: 600px) {
    .nav-links {
        display: none;
    }

    .headline-large {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .material-stats {
        flex-wrap: wrap;
        gap: 1.5rem;
    }

    .closing-content {
        gap: 1.5rem;
    }
}
