/* courts.studio - Mid-Century Modern Legal Design Studio */
/* Palette: #f7f5f0, #1a1a1a, #c2410c, #4d7c0f, #e7e5df, #d1cdc4, #fbbf24 */

:root {
    --bg: #f7f5f0;
    --text: #1a1a1a;
    --rust: #c2410c;
    --olive: #4d7c0f;
    --block: #e7e5df;
    --line: #d1cdc4;
    --gold: #fbbf24;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    line-height: 1.7;
    overflow-x: hidden;
}

/* =====================================================
   HERO / STUDIO IDENTITY (0-100vh)
   ===================================================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    position: relative;
}

.hero-inner {
    text-align: center;
    padding: 2rem;
}

.est {
    font-family: 'Source Code Pro', monospace;
    font-size: 0.72rem;
    color: var(--line);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeDown 0.8s ease 0.2s forwards;
}

.studio-name {
    font-family: 'Sora', sans-serif;
    font-weight: 600;
    font-size: clamp(2.8rem, 7vw, 5rem);
    color: var(--text);
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.tagline {
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    color: var(--line);
    margin-top: 0.75rem;
    letter-spacing: 0.01em;
}

/* Thin horizontal rule with animation */
.thin-rule {
    border: none;
    height: 1px;
    background: var(--line);
    max-width: 720px;
    margin: 2rem auto;
}

.rule-animate {
    width: 0;
    animation: extendRule 1s ease 0.6s forwards;
}

@keyframes extendRule {
    from { width: 0; }
    to { width: 100%; max-width: 720px; }
}

@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =====================================================
   INFO BAR
   ===================================================== */

.info-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    font-family: 'Source Code Pro', monospace;
    font-size: 0.72rem;
    color: var(--line);
    padding: 0 2rem 4rem;
    letter-spacing: 0.04em;
}

.info-dot {
    color: var(--line);
    font-size: 0.6rem;
}

/* =====================================================
   PORTFOLIO SECTION
   ===================================================== */

.portfolio {
    max-width: 1040px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.project {
    display: grid;
    border-radius: 16px;
    overflow: hidden;
    background: var(--block);
    min-height: 340px;
}

.project-wide-left {
    grid-template-columns: 3fr 2fr;
}

.project-wide-right {
    grid-template-columns: 2fr 3fr;
}

/* Project image / colored placeholder */
.project-image {
    min-height: 300px;
    position: relative;
}

.project-image[data-color="rust"] {
    background: var(--rust);
}

.project-image[data-color="olive"] {
    background: var(--olive);
}

.project-image[data-color="gold"] {
    background: var(--gold);
}

.project-image[data-color="rust-muted"] {
    background: var(--rust);
    opacity: 0.72;
}

.project-image[data-color="olive-warm"] {
    background: var(--olive);
    opacity: 0.82;
}

/* Subtle texture overlay on image areas */
.project-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 20px,
        rgba(255,255,255,0.04) 20px,
        rgba(255,255,255,0.04) 40px
    );
}

.project-text {
    padding: 2.8rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-num {
    width: 60px;
    height: 60px;
    border: 2px solid var(--rust);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Source Code Pro', monospace;
    font-size: 1rem;
    color: var(--rust);
    margin-bottom: 1.5rem;
    flex-shrink: 0;
}

.project-title {
    font-family: 'Sora', sans-serif;
    font-weight: 600;
    font-size: 1.35rem;
    color: var(--text);
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

.project-desc {
    font-size: 0.92rem;
    color: rgba(26, 26, 26, 0.6);
    line-height: 1.75;
}

/* =====================================================
   SLIDE ANIMATIONS FOR PROJECTS
   ===================================================== */

.slide-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

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

/* =====================================================
   DIAMOND SEPARATOR
   ===================================================== */

.diamond-sep {
    text-align: center;
    padding: 4rem 0;
}

.diamond {
    color: var(--line);
    font-size: 0.9rem;
    display: inline-block;
    transition: transform 0.4s ease;
}

.diamond-sep:hover .diamond {
    transform: rotate(90deg);
}

/* =====================================================
   PROCESS SECTION
   ===================================================== */

.process-section {
    max-width: 1040px;
    margin: 0 auto;
    padding: 0 2rem 5rem;
}

.section-heading {
    font-family: 'Sora', sans-serif;
    font-weight: 600;
    font-size: 1.6rem;
    color: var(--text);
    text-align: center;
    margin-bottom: 3rem;
    letter-spacing: -0.01em;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.process-step {
    text-align: center;
    padding: 1rem;
}

.step-num {
    width: 52px;
    height: 52px;
    border: 2px solid var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Source Code Pro', monospace;
    font-size: 0.88rem;
    color: var(--gold);
    margin: 0 auto 1.2rem;
}

.step-title {
    font-family: 'Sora', sans-serif;
    font-weight: 600;
    font-size: 1.15rem;
    margin-bottom: 0.6rem;
    color: var(--text);
}

.step-desc {
    font-size: 0.88rem;
    color: rgba(26, 26, 26, 0.55);
    line-height: 1.7;
}

/* =====================================================
   FOOTER / CONTACT
   ===================================================== */

.site-footer {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
}

.footer-inner {
    text-align: center;
    padding: 2.5rem 0;
}

.footer-text {
    font-family: 'Sora', sans-serif;
    font-weight: 600;
    font-size: 1.35rem;
    margin-bottom: 0.6rem;
    color: var(--text);
}

.footer-email {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: var(--rust);
    text-decoration: none;
    letter-spacing: 0.01em;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.6rem;
}

.footer-credit {
    font-family: 'Source Code Pro', monospace;
    font-size: 0.72rem;
    color: var(--line);
    letter-spacing: 0.06em;
}

.footer-dot {
    font-size: 0.5rem;
    color: var(--line);
}

/* =====================================================
   FADE IN ANIMATION (generic)
   ===================================================== */

.fade-in {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =====================================================
   RESPONSIVE
   ===================================================== */

@media (max-width: 768px) {
    .hero {
        min-height: 80vh;
    }

    .project-wide-left,
    .project-wide-right {
        grid-template-columns: 1fr;
    }

    .project-image {
        min-height: 200px;
    }

    .project-text {
        padding: 2rem 1.8rem;
    }

    .process-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .info-bar {
        flex-direction: column;
        align-items: center;
        gap: 0.4rem;
    }

    .info-dot {
        display: none;
    }

    .slide-left {
        transform: translateX(-30px);
    }

    .slide-right {
        transform: translateX(30px);
    }

    .studio-name {
        font-size: clamp(2rem, 10vw, 3.2rem);
    }
}

@media (max-width: 480px) {
    .project-text {
        padding: 1.5rem 1.2rem;
    }

    .project-num {
        width: 48px;
        height: 48px;
        font-size: 0.88rem;
    }

    .project-title {
        font-size: 1.15rem;
    }

    .footer-text {
        font-size: 1.1rem;
    }
}
