/* mujun.studio — Bauhaus meets Wabi-Sabi */

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

:root {
    --bg-cream: #f5f2eb;
    --text-dark: #1a1a1a;
    --blue: #2a5a8a;
    --purple: #6a2a6a;
    --red: #c84030;
    --green: #2a6a4a;
    --ochre: #8a6a2a;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg-cream);
    color: var(--text-dark);
    font-family: 'Work Sans', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Studio Mark Section */
#studio-mark {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    overflow: hidden;
}

.midline {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(26, 26, 26, 0.15);
}

.mark-container {
    margin-top: 38.2vh;
    margin-right: 38.2%;
    transform: translateY(-50%);
    text-align: right;
}

.mark-heavy {
    font-family: 'DM Sans', sans-serif;
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
    color: var(--text-dark);
}

.mark-light {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.8rem, 4vw, 3.5rem);
    font-weight: 300;
    font-style: italic;
    letter-spacing: 0.05em;
    color: var(--text-dark);
    opacity: 0.7;
    margin-top: -4px;
}

.mark-tagline {
    font-family: 'Work Sans', sans-serif;
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--text-dark);
    opacity: 0.4;
    margin-top: 16px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Philosophy Strip */
#philosophy-strip {
    border-top: 1px solid rgba(26, 26, 26, 0.15);
    border-bottom: 1px solid rgba(26, 26, 26, 0.15);
    padding: 24px 0;
    overflow: hidden;
}

.strip-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    padding: 0 24px;
}

.strip-text {
    font-family: 'DM Sans', sans-serif;
    font-size: clamp(0.8rem, 1.2vw, 1rem);
    font-weight: 500;
    color: var(--text-dark);
    white-space: nowrap;
}

.strip-text.italic {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: 300;
    font-size: clamp(0.9rem, 1.3vw, 1.1rem);
}

.strip-divider {
    width: 40px;
    height: 1px;
    background: rgba(26, 26, 26, 0.3);
}

/* Specimens Section */
#specimens {
    padding: 80px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.specimens-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
    row-gap: 60px;
}

/* Asymmetric placement using golden ratio offsets */
.specimen:nth-child(1) {
    grid-column: 1 / 7;
}

.specimen:nth-child(2) {
    grid-column: 7 / 13;
    margin-top: 80px;
}

.specimen:nth-child(3) {
    grid-column: 2 / 8;
    margin-top: -20px;
}

.specimen:nth-child(4) {
    grid-column: 8 / 13;
}

.specimen:nth-child(5) {
    grid-column: 3 / 10;
}

.specimen {
    display: flex;
    flex-direction: column;
    gap: 16px;
    cursor: default;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* Specimen Visual: CSS-only geometric compositions */
.specimen-visual {
    position: relative;
    width: 100%;
    height: 220px;
    background: var(--bg-cream);
    border: 1px solid rgba(26, 26, 26, 0.1);
    overflow: hidden;
    transition: border-color 0.3s;
}

.specimen:hover .specimen-visual {
    border-color: var(--accent);
}

.geo {
    position: absolute;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Geometric shapes */
.geo-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.15;
    top: 30px;
    left: 30px;
}

.geo-line-h {
    width: 60%;
    height: 1px;
    background: var(--text-dark);
    top: 50%;
    left: 20%;
}

.geo-line-v {
    width: 1px;
    height: 60%;
    background: var(--text-dark);
    top: 20%;
    left: 61.8%;
}

.geo-square {
    width: 80px;
    height: 80px;
    background: transparent;
    border: 2px solid var(--accent);
    top: 40px;
    right: 60px;
    transform: rotate(15deg);
}

.geo-circle-outline {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 1px solid var(--text-dark);
    opacity: 0.3;
    top: 50px;
    left: 40px;
}

.geo-triangle {
    width: 0;
    height: 0;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-bottom: 86px solid var(--accent);
    opacity: 0.2;
    top: 30px;
    left: 50px;
}

.geo-triangle-inv {
    width: 0;
    height: 0;
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-top: 69px solid var(--text-dark);
    opacity: 0.1;
    bottom: 30px;
    right: 50px;
}

.geo-arc {
    width: 80px;
    height: 80px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    clip-path: polygon(0 0, 100% 0, 100% 50%, 0 50%);
    top: 50px;
    left: 40px;
}

.geo-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-dark);
    top: 90px;
    right: 80px;
}

.geo-line-diag {
    width: 120px;
    height: 1px;
    background: var(--text-dark);
    opacity: 0.4;
    top: 110px;
    left: 30%;
    transform: rotate(-30deg);
}

.geo-grid {
    width: 100px;
    height: 100px;
    top: 40px;
    left: 40px;
    background-image:
        linear-gradient(var(--accent) 1px, transparent 1px),
        linear-gradient(90deg, var(--accent) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.2;
}

.geo-circle-sm {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--text-dark);
    bottom: 40px;
    right: 50px;
    opacity: 0.6;
}

/* Hover: gentle shift */
.specimen:hover .geo {
    transform: translate(3px, -3px);
}

.specimen:hover .geo-square {
    transform: rotate(15deg) translate(3px, -3px);
}

/* Specimen Info */
.specimen-info {
    padding: 0 4px;
}

.specimen-number {
    font-family: 'Work Sans', sans-serif;
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--text-dark);
    opacity: 0.3;
    letter-spacing: 0.15em;
}

.specimen-title {
    font-family: 'DM Sans', sans-serif;
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 4px 0;
    color: var(--text-dark);
}

.specimen-desc {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(0.9rem, 1.2vw, 1.05rem);
    font-weight: 300;
    font-style: italic;
    color: var(--text-dark);
    opacity: 0.7;
    line-height: 1.5;
    margin-bottom: 8px;
}

.specimen-meta {
    font-family: 'Work Sans', sans-serif;
    font-size: 0.65rem;
    font-weight: 400;
    color: var(--text-dark);
    opacity: 0.35;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Contact Section */
#contact {
    padding: 120px 24px;
    text-align: center;
    border-top: 1px solid rgba(26, 26, 26, 0.1);
}

.contact-light {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    font-weight: 300;
    font-style: italic;
    color: var(--text-dark);
    opacity: 0.6;
}

.contact-heavy {
    font-family: 'DM Sans', sans-serif;
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-dark);
    margin: 8px 0 24px;
}

.contact-link {
    font-family: 'Work Sans', sans-serif;
    font-size: 0.85rem;
    color: var(--blue);
    text-decoration: none;
    letter-spacing: 0.05em;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s;
}

.contact-link:hover {
    border-bottom-color: var(--blue);
}

/* Footer */
#site-footer {
    border-top: 1px solid rgba(26, 26, 26, 0.1);
    padding: 24px;
}

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

.footer-mark {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--text-dark);
}

.footer-mark em {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-style: italic;
}

.footer-copy {
    font-family: 'Work Sans', sans-serif;
    font-size: 0.7rem;
    color: var(--text-dark);
    opacity: 0.4;
}

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

    .specimen:nth-child(n) {
        grid-column: 1;
        margin-top: 0;
    }

    .mark-container {
        margin-right: 10%;
    }

    .strip-content {
        flex-direction: column;
        gap: 12px;
    }

    .footer-content {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}
