/* MiRiS Studio — Flat Design Atelier */
/* Palette: #00897B #E07A5F #F7F0E8 #2D3142 #4A4A5A #D5CFC5 #A8A0B0 #F2CC8F */
/* Fonts: Outfit (display), Literata (body), DM Mono (accent) */

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Literata', serif;
    background-color: #F7F0E8;
    color: #4A4A5A;
    overflow-x: hidden;
}

/* ========================================
   STUDIO MARK (fixed top-left)
   ======================================== */

.studio-mark {
    position: fixed;
    top: 24px;
    left: 24px;
    z-index: 100;
    cursor: pointer;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ========================================
   SCROLL PROGRESS INDICATOR
   ======================================== */

.scroll-progress {
    position: fixed;
    top: 0;
    right: 0;
    width: 2px;
    height: 0%;
    background-color: #00897B;
    z-index: 100;
}

/* ========================================
   CEL SECTIONS — Parallax Architecture
   ======================================== */

.cel {
    min-height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.cel-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    width: 90%;
    padding: 80px 0;
}

.mid-plane {
    will-change: transform;
}

.front-plane {
    will-change: transform;
}

/* ========================================
   INTERSTITIAL STRIPS
   ======================================== */

.interstitial {
    height: 48px;
    background-color: #E07A5F;
    width: 100%;
    position: relative;
    z-index: 1;
}

/* ========================================
   SECTION 1: HERO
   ======================================== */

.cel-hero {
    background-color: #F7F0E8;
}

.cel-hero .cel-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.studio-name {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: clamp(48px, 8vw, 96px);
    color: #2D3142;
    letter-spacing: -0.02em;
    line-height: 1.05;
    opacity: 0;
    animation: fadeIn 800ms ease-out 200ms forwards;
}

.studio-tagline {
    font-family: 'Literata', serif;
    font-weight: 400;
    font-style: italic;
    font-size: 20px;
    color: #4A4A5A;
    letter-spacing: 0.1em;
    margin-top: 16px;
    opacity: 0;
    animation: fadeIn 800ms ease-out 600ms forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.hero-silhouette {
    position: absolute;
    right: -36px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
}

/* ========================================
   SECTION 2: PHILOSOPHY
   ======================================== */

.cel-philosophy {
    background-color: #2D3142;
}

.cel-philosophy .cel-content {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.section-heading {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: clamp(28px, 4vw, 48px);
    color: #F7F0E8;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.section-heading--dark {
    color: #2D3142;
}

.section-body {
    font-family: 'Literata', serif;
    font-weight: 400;
    font-size: clamp(16px, 1.6vw, 18px);
    color: #D5CFC5;
    line-height: 1.65;
    letter-spacing: 0.005em;
    max-width: 640px;
}

/* Cel-stack decorative elements */
.cel-stack {
    position: absolute;
    z-index: 1;
}

.cel-stack-left {
    left: 3%;
    bottom: 12%;
}

.cel-stack-right {
    right: 5%;
    top: 15%;
}

.cel-stack-layer {
    width: 80px;
    height: 56px;
    border-radius: 8px;
    position: relative;
}

.cel-stack-left .cel-stack-layer:nth-child(1) {
    z-index: 3;
}

.cel-stack-left .cel-stack-layer:nth-child(2) {
    margin-top: -44px;
    margin-left: 10px;
    z-index: 2;
}

.cel-stack-left .cel-stack-layer:nth-child(3) {
    margin-top: -44px;
    margin-left: 20px;
    z-index: 1;
}

.cel-stack-right .cel-stack-layer:nth-child(1) {
    z-index: 2;
}

.cel-stack-right .cel-stack-layer:nth-child(2) {
    margin-top: -44px;
    margin-left: 12px;
    z-index: 1;
}

/* ========================================
   SECTION 3: WORKS
   ======================================== */

.cel-works {
    background-color: #F7F0E8;
}

.cel-works .cel-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.works-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.work-card {
    background-color: #00897B;
    border-radius: 8px;
    padding: 28px 32px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: transform 300ms ease;
    cursor: default;
}

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

.work-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: clamp(20px, 2.5vw, 28px);
    color: #F7F0E8;
    letter-spacing: -0.01em;
}

.work-desc {
    font-family: 'DM Mono', monospace;
    font-weight: 400;
    font-size: clamp(12px, 1.1vw, 14px);
    color: #D5CFC5;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Game asset fragments */
.game-asset {
    position: absolute;
    z-index: 3;
}

.game-asset-sword {
    right: 8%;
    top: 20%;
}

.game-asset-shield {
    left: 4%;
    bottom: 18%;
}

/* ========================================
   SECTION 4: PROCESS
   ======================================== */

.cel-process {
    background-color: #2D3142;
}

.cel-process .cel-content {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1100px;
}

.workspace-illustration {
    width: 100%;
    max-width: 800px;
}

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

/* ========================================
   SECTION 5: CONTACT
   ======================================== */

.cel-contact {
    background-color: #F7F0E8;
}

.contact-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 24px;
}

.contact-domain {
    font-family: 'DM Mono', monospace;
    font-weight: 400;
    font-size: 16px;
    color: #00897B;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.contact-email {
    font-family: 'DM Mono', monospace;
    font-weight: 400;
    font-size: 16px;
    color: #4A4A5A;
    text-decoration: none;
    letter-spacing: 0.08em;
    position: relative;
}

.contact-email::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #00897B;
    transition: width 400ms ease;
}

.contact-email:hover::after {
    width: 100%;
}

/* ========================================
   SCROLL-REVEAL
   ======================================== */

.cel-content {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 700ms ease, transform 700ms ease;
}

.cel-content.revealed {
    opacity: 1;
    transform: translateY(0);
}

.cel-hero .cel-content {
    opacity: 1;
    transform: none;
    transition: none;
}

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

@media (max-width: 768px) {
    .cel-content {
        width: 88%;
        padding: 60px 0;
    }

    .hero-silhouette {
        right: -48px;
    }

    .hero-silhouette svg {
        width: 80px;
        height: auto;
    }

    .cel-stack-left,
    .cel-stack-right {
        display: none;
    }

    .game-asset {
        display: none;
    }

    .work-card {
        padding: 20px 24px;
    }
}
