/* ==========================================================================
   mujun.studio — Evolved-Minimal Sunset Atelier
   Colors: #F8F4EC, #E8B880, #D08040, #4A4840, #1A1810, #8A8878, #E0D8C8
   Fonts: DM Serif Display, Inter, Space Mono
   ========================================================================== */

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

:root {
    --warm-near-black: #1A1810;
    --warm-dark-grey: #4A4840;
    --warm-medium-grey: #8A8878;
    --studio-cream: #F8F4EC;
    --sunset-orange: #D08040;
    --sunset-blush: #E8B880;
    --photography-wash: #E0D8C8;
}

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

body {
    background-color: var(--studio-cream);
    color: var(--warm-dark-grey);
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: clamp(0.95rem, 1.2vw, 1.1rem);
    line-height: 1.85;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Typography --- */
h1, h2, h3 {
    font-family: 'DM Serif Display', serif;
    font-weight: 400;
    color: var(--warm-near-black);
    line-height: 1.1;
}

.hero-title {
    font-size: clamp(2.8rem, 6vw, 5.5rem);
    letter-spacing: 0.04em;
    color: var(--warm-near-black);
}

.section-heading {
    font-size: clamp(2.2rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
}

.metadata {
    font-family: 'Space Mono', monospace;
    font-weight: 400;
    font-size: 0.75rem;
    color: var(--warm-medium-grey);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    display: inline-block;
    margin-bottom: 1.2rem;
}

.section-body {
    max-width: 520px;
    margin-bottom: 1.4rem;
    font-weight: 300;
}

.section-body em {
    font-style: italic;
    color: var(--warm-near-black);
}

/* --- Accent Lines --- */
.accent-line {
    width: 0;
    height: 1px;
    background-color: var(--sunset-orange);
    margin: 1.5rem 0;
    transition: width 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.accent-line.drawn {
    width: 40vw;
}

.accent-line-divider {
    width: 0;
    max-width: 40%;
    height: 1px;
    background-color: var(--sunset-orange);
    margin-bottom: 2.5rem;
    transition: width 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.accent-line-divider.drawn {
    width: 40vw;
}

/* --- Vintage Photography Panels --- */
.vintage-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    filter: saturate(0.7) contrast(1.05) sepia(0.15);
    background-size: cover;
    background-position: center;
    transition: opacity 1.5s ease;
    pointer-events: none;
    z-index: 0;
}

.vintage-panel.visible {
    opacity: 0.12;
}

/* --- Fade Reveal --- */
.fade-reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 400ms ease, transform 400ms ease;
}

.fade-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* --- Layout: Sections --- */
section {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 6rem 2rem;
}

.section-inner {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

/* Asymmetric positioning — 60/40 split */
.asymmetric-left {
    padding-right: 40%;
}

.asymmetric-right {
    padding-left: 40%;
}

/* --- Hero Section --- */
.section-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 2rem;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding-right: 40%;
}

.hero-tagline {
    font-weight: 300;
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: var(--warm-medium-grey);
    margin-top: 0.5rem;
}

.hero-subtitle {
    font-family: 'Space Mono', monospace;
    font-weight: 400;
    font-size: 0.8rem;
    color: var(--sunset-blush);
    letter-spacing: 0.08em;
    margin-top: 1.8rem;
    text-transform: uppercase;
}

/* Vintage panel CSS gradient backgrounds */
#hero-panel {
    background: linear-gradient(135deg,
        var(--photography-wash) 0%,
        var(--studio-cream) 35%,
        var(--sunset-blush) 65%,
        var(--photography-wash) 100%);
}

#practice-panel {
    background: linear-gradient(225deg,
        var(--photography-wash) 0%,
        var(--sunset-blush) 30%,
        var(--studio-cream) 60%,
        var(--photography-wash) 100%);
}

#work-panel {
    background: linear-gradient(160deg,
        var(--sunset-blush) 0%,
        var(--photography-wash) 40%,
        var(--studio-cream) 70%,
        var(--photography-wash) 100%);
}

#studio-panel {
    background: linear-gradient(200deg,
        var(--photography-wash) 0%,
        var(--studio-cream) 30%,
        var(--sunset-blush) 70%,
        var(--photography-wash) 100%);
}

/* --- Philosophy Section --- */
.section-philosophy {
    background-color: var(--studio-cream);
}

/* --- Practice Section --- */
.section-practice {
    background-color: var(--studio-cream);
}

/* --- Approach Section --- */
.section-approach {
    background-color: var(--studio-cream);
}

.approach-details {
    margin-top: 2.5rem;
    max-width: 520px;
}

.detail-item {
    display: flex;
    gap: 2rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--photography-wash);
    align-items: baseline;
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    font-family: 'Space Mono', monospace;
    font-weight: 400;
    font-size: 0.75rem;
    color: var(--warm-medium-grey);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    min-width: 120px;
    flex-shrink: 0;
}

.detail-value {
    font-weight: 300;
    color: var(--warm-dark-grey);
}

/* --- Work Section --- */
.section-work {
    background-color: var(--studio-cream);
}

.work-grid {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    margin-top: 1rem;
}

.work-item {
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--photography-wash);
    transition: transform 300ms ease;
}

.work-item:last-child {
    border-bottom: none;
}

.work-item:hover {
    transform: translateX(8px);
}

.work-year {
    font-family: 'Space Mono', monospace;
    font-weight: 400;
    font-size: 0.75rem;
    color: var(--sunset-orange);
    letter-spacing: 0.12em;
    display: block;
    margin-bottom: 0.5rem;
}

.work-title {
    font-size: clamp(1.3rem, 2vw, 1.8rem);
    margin-bottom: 0.6rem;
    color: var(--warm-near-black);
}

.work-desc {
    font-weight: 300;
    color: var(--warm-dark-grey);
    max-width: 460px;
}

/* --- Studio Section --- */
.section-studio {
    background-color: var(--studio-cream);
}

.studio-principles {
    margin-top: 2.5rem;
    max-width: 520px;
}

.principle-item {
    display: flex;
    align-items: baseline;
    gap: 1.5rem;
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--photography-wash);
}

.principle-item:last-child {
    border-bottom: none;
}

.principle-number {
    font-family: 'Space Mono', monospace;
    font-weight: 400;
    font-size: 0.75rem;
    color: var(--sunset-orange);
    letter-spacing: 0.12em;
    flex-shrink: 0;
}

.principle-text {
    font-weight: 300;
    color: var(--warm-dark-grey);
    font-size: clamp(0.95rem, 1.2vw, 1.05rem);
}

/* --- Contact Section --- */
.section-contact {
    min-height: 80vh;
    justify-content: space-between;
}

.contact-details {
    margin-top: 1rem;
}

.contact-line {
    margin-bottom: 0.8rem;
    font-weight: 300;
}

.contact-line .metadata {
    display: inline-block;
    min-width: 120px;
    margin-bottom: 0;
    margin-right: 1rem;
}

/* --- Footer --- */
.site-footer {
    padding-top: 4rem;
    padding-bottom: 2rem;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-tagline {
    margin-bottom: 0;
    opacity: 0.6;
}

/* --- Scroll Progress Indicator --- */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    background-color: var(--sunset-orange);
    z-index: 100;
    width: 0;
    transition: none;
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .asymmetric-left {
        padding-right: 15%;
    }

    .asymmetric-right {
        padding-left: 15%;
    }

    .hero-content {
        padding-right: 15%;
    }

    .accent-line.drawn {
        width: 55vw;
    }

    .accent-line-divider.drawn {
        width: 55vw;
        max-width: 55%;
    }

    .footer-inner {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
}

@media (max-width: 600px) {
    section {
        padding: 4rem 1.5rem;
    }

    .section-hero {
        padding: 0 1.5rem;
    }

    .hero-content {
        padding-right: 0;
    }

    .asymmetric-left,
    .asymmetric-right {
        padding-left: 0;
        padding-right: 0;
    }

    .detail-item {
        flex-direction: column;
        gap: 0.3rem;
    }

    .principle-item {
        gap: 1rem;
    }

    .accent-line.drawn {
        width: 70vw;
    }

    .accent-line-divider.drawn {
        width: 70vw;
        max-width: 70%;
    }

    .hero-title {
        font-size: clamp(2.2rem, 8vw, 3.5rem);
    }

    .work-item:hover {
        transform: none;
    }
}
