/* miris.studio — Mid-Century Modern Creative Workspace */

:root {
    --bg: #FAF3E8;
    --primary: #2C2416;
    --secondary: #C17817;
    --text: #5A4A3A;
    --surface: #F0E6D4;
    --accent: #D4603A;
    --muted: #BFB09A;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 300;
    font-size: 17px;
    line-height: 1.75;
    overflow-x: hidden;
}

/* Grain texture overlay */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.03;
    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.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
}

/* Typography */
h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.01em;
}

h2 {
    font-size: 36px;
    margin-bottom: 40px;
}

h3 {
    font-size: 24px;
    margin-bottom: 12px;
}

p {
    margin-bottom: 16px;
}

/* Layout widths */
.narrow-column {
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 24px;
}

.wide-column {
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 24px;
}

/* Navigation */
#main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 40px;
    opacity: 0;
    transition: opacity 0.4s ease;
    background-color: rgba(250, 243, 232, 0.92);
    backdrop-filter: blur(8px);
}

#main-nav.visible {
    opacity: 1;
}

.nav-wordmark {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 20px;
    color: var(--primary);
    cursor: default;
}

.nav-wordmark .letter {
    display: inline-block;
    transition: color 0.2s ease;
}

.nav-wordmark .letter:hover {
    color: var(--secondary);
}

.nav-studio {
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 400;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-left: 8px;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 400;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--secondary);
}

/* Hero Section */
#hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    gap: 24px;
}

.hero-title-top,
.hero-title-bottom {
    font-size: 48px;
    opacity: 0;
    transform: translateY(-15px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.hero-title-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-title-bottom {
    transform: translateY(15px);
}

.hero-title-bottom.visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-circle {
    width: 0;
    height: 0;
    border-radius: 50%;
    overflow: hidden;
    transition: width 0.8s ease-out, height 0.8s ease-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-circle.expanded {
    width: 500px;
    height: 500px;
}

.circle-viewport {
    width: 500px;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.geo-composition {
    width: 100%;
    height: 100%;
}

.geo-shape {
    transform-origin: 250px 250px;
}

@keyframes slowDrift {
    0% { transform: rotate(0deg) translate(0, 0); }
    25% { transform: rotate(2deg) translate(3px, -2px); }
    50% { transform: rotate(0deg) translate(-2px, 3px); }
    75% { transform: rotate(-2deg) translate(2px, 1px); }
    100% { transform: rotate(0deg) translate(0, 0); }
}

.hero-circle.expanded .geo-shape {
    animation: slowDrift 30s ease-in-out infinite;
}

.geo-1 { animation-delay: 0s !important; }
.geo-2 { animation-delay: -4s !important; }
.geo-3 { animation-delay: -8s !important; }
.geo-4 { animation-delay: -12s !important; }
.geo-5 { animation-delay: -16s !important; }
.geo-6 { animation-delay: -20s !important; }
.geo-7 { animation-delay: -24s !important; }

/* Section Dividers */
.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
    position: relative;
}

.section-divider::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 1px;
    background-color: var(--secondary);
}

.divider-diamond {
    display: block;
    width: 10px;
    height: 10px;
    background-color: var(--secondary);
    transform: rotate(45deg);
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.divider-diamond.pulse {
    animation: diamondPulse 0.3s ease;
}

@keyframes diamondPulse {
    0% { transform: rotate(45deg) scale(1); }
    50% { transform: rotate(45deg) scale(1.2); }
    100% { transform: rotate(45deg) scale(1); }
}

/* Content Sections */
.content-section {
    padding: 40px 0 80px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-caption {
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 400;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--secondary);
    display: block;
    margin-bottom: 12px;
}

/* Projects */
.project-grid {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.project-card {
    display: flex;
    align-items: center;
    gap: 60px;
}

.project-card.stagger-right {
    flex-direction: row;
}

.project-card.stagger-left .project-visual {
    order: 0;
}

.project-card.stagger-left .project-text {
    order: 1;
}

.project-card.stagger-right:nth-child(even) {
    margin-top: 60px;
}

.project-visual {
    flex: 0 0 280px;
}

.circle-frame {
    border-radius: 50%;
    overflow: hidden;
    transition: transform 0.4s ease;
}

.circle-frame:hover {
    transform: scale(1.05);
}

.project-visual svg {
    display: block;
    width: 100%;
    height: auto;
}

.project-text {
    flex: 1;
}

.project-caption {
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 400;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--secondary);
    display: block;
    margin-bottom: 8px;
}

/* Slide animations */
.slide-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.slide-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.slide-left.visible,
.slide-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Process Section */
.process-grid {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.process-step {
    display: flex;
    align-items: flex-start;
    gap: 32px;
}

.process-icon {
    flex: 0 0 80px;
    width: 80px;
    height: 80px;
}

.vignette-svg {
    width: 100%;
    height: 100%;
}

.draw-path {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    transition: stroke-dashoffset 0.8s ease;
}

.process-step.visible .draw-path {
    stroke-dashoffset: 0;
}

.process-content {
    flex: 1;
}

/* Workspace Section */
.workspace-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.workspace-showcase .workspace-item:last-child {
    grid-column: 1 / -1;
    max-width: 480px;
    margin: 0 auto;
}

.workspace-item.pinned {
    transform: rotate(-1deg);
    box-shadow: 4px 4px 0 rgba(191, 176, 154, 0.25);
    background: var(--surface);
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.workspace-item.pinned:nth-child(2) {
    transform: rotate(0.8deg);
}

.workspace-item.pinned:nth-child(3) {
    transform: rotate(-0.5deg);
}

.workspace-item.pinned:hover {
    transform: rotate(-2deg);
    box-shadow: 6px 6px 0 rgba(191, 176, 154, 0.35);
}

.workspace-item.pinned:nth-child(2):hover {
    transform: rotate(1.5deg);
}

.workspace-item.pinned:nth-child(3):hover {
    transform: rotate(-1.2deg);
}

.workspace-visual svg {
    display: block;
    width: 100%;
    height: auto;
}

.workspace-caption {
    display: block;
    padding: 12px 16px;
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 400;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--secondary);
}

/* About Section */
.about-content {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.about-text {
    flex: 1;
}

.about-palette {
    flex: 0 0 240px;
}

.palette-display {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.paint-chip {
    width: 100px;
    height: 120px;
    background: var(--chip-color);
    border-radius: 4px 4px 0 0;
    box-shadow: 2px 2px 4px rgba(44, 36, 22, 0.12);
    display: flex;
    align-items: flex-end;
    padding: 8px;
    position: relative;
}

.paint-chip span {
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 400;
    font-size: 10px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--primary);
    background: rgba(250, 243, 232, 0.85);
    padding: 2px 6px;
    border-radius: 2px;
    width: 100%;
    text-align: center;
}

/* Footer */
#footer {
    padding: 80px 0 40px;
    text-align: center;
}

.footer-wordmark {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 12px;
}

.footer-text {
    color: var(--muted);
    font-size: 15px;
    margin-bottom: 24px;
}

.footer-line {
    width: 60px;
    height: 1px;
    background-color: var(--secondary);
    margin: 0 auto 24px;
}

.footer-copyright {
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 400;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-circle.expanded {
        width: 300px;
        height: 300px;
    }

    .circle-viewport {
        width: 300px;
        height: 300px;
    }

    .hero-title-top,
    .hero-title-bottom {
        font-size: 36px;
    }

    h2 {
        font-size: 28px;
    }

    .project-card {
        flex-direction: column !important;
        gap: 24px;
    }

    .project-visual {
        flex: 0 0 auto;
        width: 200px;
    }

    .workspace-showcase {
        grid-template-columns: 1fr;
    }

    .about-content {
        flex-direction: column;
    }

    .about-palette {
        flex: 0 0 auto;
    }

    #main-nav {
        padding: 16px 20px;
    }

    .nav-links {
        gap: 16px;
    }

    .nav-links a {
        font-size: 11px;
    }
}
