/* mujun.io — High Contrast Duotone Experimental Type */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Instrument Sans', sans-serif;
    font-weight: 400;
    background: #FFFFFF;
    color: #000000;
    overflow-x: hidden;
}

/* ========================
   Navigation
   ======================== */
#top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px;
    mix-blend-mode: difference;
}

.nav-link {
    font-family: 'Instrument Sans', sans-serif;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-decoration: none;
    color: #FFFFFF;
    padding: 8px 16px;
    transition: background-color 0.15s, color 0.15s;
}

.nav-link:hover {
    background: #FFFFFF;
    color: #000000;
}

.nav-slash {
    font-family: 'Instrument Sans', sans-serif;
    font-weight: 700;
    font-size: 24px;
    color: #FFFFFF;
    user-select: none;
}

/* ========================
   Hero
   ======================== */
#hero {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
    position: relative;
    overflow: hidden;
}

.hero-inner {
    text-align: center;
    position: relative;
}

.hero-title-container {
    position: relative;
    display: inline-block;
    line-height: 1;
}

.hero-title-layer {
    font-family: 'Instrument Sans', sans-serif;
    font-weight: 700;
    font-size: 25vw;
    line-height: 0.85;
    letter-spacing: -0.02em;
    user-select: none;
}

.hero-title-black {
    color: #000000;
}

.hero-title-red {
    position: absolute;
    top: 0;
    left: 0;
    color: #FF2D2D;
    clip-path: inset(50% 100% 0 0);
    animation: duotoneSweep 1s ease-out 0.2s forwards;
}

@keyframes duotoneSweep {
    from {
        clip-path: inset(50% 100% 0 0);
    }
    to {
        clip-path: inset(50% 0% 0 0);
    }
}

.hero-io {
    margin-top: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.metadata {
    font-family: 'Instrument Sans', sans-serif;
    font-weight: 400;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #FF2D2D;
}

.red-rule {
    display: inline-block;
    width: 40px;
    height: 1px;
    background: #FF2D2D;
}

/* ========================
   Content Sections
   ======================== */
.content-section {
    position: relative;
    min-height: 100vh;
    padding: 120px 60px 80px;
    overflow: hidden;
}

.section-white {
    background: #FFFFFF;
    color: #000000;
}

.section-black {
    background: #000000;
    color: #FFFFFF;
}

.section-inner {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    min-height: 60vh;
}

/* ========================
   Giant Letters
   ======================== */
.giant-letter {
    font-family: 'Instrument Sans', sans-serif;
    font-weight: 700;
    font-size: clamp(180px, 30vw, 400px);
    line-height: 0.8;
    position: absolute;
    top: -20px;
    left: -20px;
    color: #000000;
    opacity: 0.08;
    user-select: none;
    pointer-events: none;
    z-index: 0;
}

.giant-letter-white {
    color: #FFFFFF;
    opacity: 0.08;
}

/* ========================
   Section Text
   ======================== */
.section-text {
    position: relative;
    z-index: 1;
    max-width: 580px;
    margin-left: auto;
    padding-top: 40px;
}

.section-text p {
    font-family: 'Instrument Sans', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.6;
    margin-top: 24px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Red accent metadata */
.red-accent {
    display: block;
    margin-bottom: 8px;
    opacity: 0.5;
    transition: opacity 0.4s ease;
}

.red-accent.pulse {
    opacity: 1;
}

/* Red punctuation */
.red-punct {
    color: #FF2D2D;
    font-weight: 700;
}

/* Red line separator */
.red-line {
    border: none;
    height: 1px;
    background: #FF2D2D;
    margin: 0;
    opacity: 0.6;
}

/* ========================
   Responsive
   ======================== */
@media (max-width: 768px) {
    .hero-title-layer {
        font-size: 30vw;
    }

    .content-section {
        padding: 80px 24px 60px;
    }

    .section-text {
        margin-left: 0;
        max-width: 100%;
    }

    .giant-letter {
        font-size: clamp(120px, 40vw, 280px);
        left: -10px;
    }

    #top-nav {
        gap: 6px;
    }

    .nav-link {
        font-size: 10px;
        padding: 6px 10px;
        letter-spacing: 0.12em;
    }

    .nav-slash {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .hero-title-layer {
        font-size: 36vw;
    }

    .giant-letter {
        font-size: 120px;
    }

    .section-text p {
        font-size: 15px;
    }
}
