/* ============================================
   miris.one - Mid-Century Modern Game Studio
   ============================================ */

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

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

body {
    font-family: 'Nunito', sans-serif;
    background-color: #1C1812;
    color: #C8B89C;
    overflow-x: hidden;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Vintage Noise Texture Overlay --- */
.noise-overlay {
    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.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}

/* --- Navigation Dots (Bottom-Left Fixed) --- */
.nav-dots {
    position: fixed;
    bottom: 50%;
    left: 28px;
    transform: translateY(50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.nav-dots.visible {
    opacity: 1;
}

.nav-line {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(212, 160, 76, 0.2);
    z-index: -1;
}

.nav-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(240, 230, 212, 0.3);
    transition: all 0.4s ease;
    cursor: pointer;
    text-decoration: none;
    position: relative;
}

.nav-dot.active {
    width: 10px;
    height: 10px;
    background: #FFB347;
    box-shadow: 0 0 10px #FFB347, 0 0 20px rgba(255, 179, 71, 0.3);
}

.nav-label {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    white-space: nowrap;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    color: #FFB347;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.nav-dot:hover .nav-label {
    opacity: 1;
}

/* --- Sections --- */
.section {
    min-height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.section[data-bg="deep-teak"] {
    background-color: #1C1812;
}

.section[data-bg="walnut"] {
    background-color: #2A2318;
}

/* --- 10-Column Grid --- */
.section__grid {
    width: 100%;
    max-width: 100%;
    padding: 80px 48px;
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 0 32px;
}

/* --- Section Content Alignment --- */
.section__content--left {
    grid-column: 1 / 7;
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.section__content--right {
    grid-column: 4 / 11;
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* --- Section Typography --- */
.section__title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 600;
    letter-spacing: -0.01em;
    color: #F0E6D4;
    margin-bottom: 1.5rem;
}

.section__body {
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    line-height: 1.8;
    font-weight: 400;
    color: #C8B89C;
    margin-bottom: 1.2rem;
    max-width: 600px;
}

/* --- Neon Glow Treatment --- */
.neon-glow {
    color: #FFB347;
    text-shadow: 0 0 10px #FFB347, 0 0 20px #FFB347, 0 0 40px rgba(255, 179, 71, 0.3);
    animation: neonPulse 4s ease-in-out infinite;
}

@keyframes neonPulse {
    0%, 100% {
        text-shadow: 0 0 10px #FFB347, 0 0 20px #FFB347, 0 0 40px rgba(255, 179, 71, 0.3);
    }
    50% {
        text-shadow: 0 0 14px #FFB347, 0 0 24px #FFB347, 0 0 48px rgba(255, 179, 71, 0.4);
    }
}

/* --- Atomic Starburst --- */
.starburst {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: #FFB347;
    clip-path: polygon(
        50% 0%, 58% 15%, 65% 2%, 68% 18%,
        80% 5%, 78% 22%, 93% 15%, 85% 30%,
        100% 28%, 88% 40%, 100% 50%, 88% 58%,
        100% 65%, 85% 68%, 93% 82%, 78% 75%,
        80% 93%, 68% 80%, 65% 95%, 58% 82%,
        50% 100%, 42% 82%, 35% 95%, 32% 80%,
        20% 93%, 22% 75%, 7% 82%, 15% 68%,
        0% 65%, 12% 58%, 0% 50%, 12% 40%,
        0% 28%, 15% 30%, 7% 15%, 22% 22%,
        20% 5%, 32% 18%, 35% 2%, 42% 15%
    );
    animation: rotateStar 40s linear infinite;
    filter: drop-shadow(0 0 6px rgba(255, 179, 71, 0.4));
    margin-bottom: 1rem;
}

.starburst--hero {
    width: 80px;
    height: 80px;
    margin-bottom: 2rem;
    opacity: 0;
    transform: scale(0);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.starburst--hero.visible {
    opacity: 1;
    transform: scale(1);
}

.starburst--section {
    width: 40px;
    height: 40px;
}

.starburst--small {
    width: 24px;
    height: 24px;
    background: #E87461;
    filter: drop-shadow(0 0 4px rgba(232, 116, 97, 0.4));
}

.starburst--closing {
    width: 32px;
    height: 32px;
    background: #C45B3A;
    filter: drop-shadow(0 0 4px rgba(196, 91, 58, 0.4));
}

@keyframes rotateStar {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* --- Hero Section --- */
.section--hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section--hero .section__grid {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero__content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero__title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #F0E6D4;
    margin-bottom: 0.5rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease 0.4s, transform 0.6s ease 0.4s;
}

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

.hero__subtitle {
    font-family: 'Nunito', sans-serif;
    font-size: clamp(1rem, 2vw, 1.4rem);
    font-weight: 400;
    color: #C8B89C;
    letter-spacing: 0.1em;
    text-transform: lowercase;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.6s ease 0.9s, transform 0.6s ease 0.9s;
}

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

/* --- Asymmetric Dividers --- */
/* Divider color: #D4A04C at 25% opacity */
.divider {
    height: 1px;
    background: #D4A04C40;
    position: relative;
}

.divider--left {
    margin-right: 40%;
    margin-left: 0;
}

.divider--right {
    margin-left: 40%;
    margin-right: 0;
}

/* --- Project Stats --- */
.project-stats {
    display: flex;
    gap: 48px;
    margin: 2.5rem 0;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.stat__number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 600;
    color: #FFB347;
    text-shadow: 0 0 10px #FFB347, 0 0 20px #FFB347, 0 0 40px rgba(255, 179, 71, 0.3);
    line-height: 1.2;
}

.stat__label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: #8A8040;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* --- Project Cards --- */
.project-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-top: 2rem;
}

.project-card {
    background: rgba(240, 230, 212, 0.03);
    border: 1px solid rgba(212, 160, 76, 0.12);
    border-radius: 8px;
    padding: 28px 24px;
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.project-card:hover {
    border-color: rgba(255, 179, 71, 0.3);
    transform: translateY(-4px);
}

.project-card__accent {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #FFB347, #E87461, #C45B3A);
}

.project-card__title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: #F0E6D4;
    margin-bottom: 0.6rem;
}

.project-card__desc {
    font-family: 'Nunito', sans-serif;
    font-size: 0.9rem;
    line-height: 1.7;
    color: #C8B89C;
    margin-bottom: 1rem;
}

.project-card__tag {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    color: #8A8040;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border: 1px solid rgba(138, 128, 64, 0.3);
    padding: 4px 10px;
    border-radius: 4px;
    display: inline-block;
}

/* --- Philosophy Quote --- */
.philosophy-quote {
    margin: 2rem 0;
    padding: 1.5rem 0 1.5rem 2rem;
    border-left: 3px solid #E87461;
    position: relative;
}

.philosophy-quote__mark {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    color: #E87461;
    line-height: 1;
    opacity: 0.5;
}

.philosophy-quote {
    font-family: 'Nunito', sans-serif;
    font-size: 1.15rem;
    font-style: italic;
    color: #F0E6D4;
    line-height: 1.8;
}

/* --- Team Grid --- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 24px;
    margin-top: 2rem;
}

.team-member {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 16px;
    background: rgba(240, 230, 212, 0.02);
    border: 1px solid rgba(212, 160, 76, 0.08);
    border-radius: 8px;
    transition: border-color 0.3s ease;
}

.team-member:hover {
    border-color: rgba(232, 116, 97, 0.3);
}

.team-member__icon {
    margin-bottom: 12px;
}

.team-member__role {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: #C8B89C;
}

/* --- Contact --- */
.contact-links {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 2rem 0;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #F0E6D4;
    font-family: 'Nunito', sans-serif;
    font-size: 1.05rem;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: #FFB347;
}

.contact-link__icon {
    font-size: 1.2rem;
    color: #FFB347;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 179, 71, 0.3);
    border-radius: 50%;
}

.contact-closing {
    margin-top: 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
}

.contact-closing__text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: #8A8040;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .section__grid {
        grid-template-columns: repeat(6, 1fr);
        padding: 60px 32px;
    }

    .section__content--left {
        grid-column: 1 / 6;
    }

    .section__content--right {
        grid-column: 1 / 6;
    }
}

@media (max-width: 640px) {
    .section__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0 16px;
        padding: 48px 20px;
    }

    .section__content--left,
    .section__content--right {
        grid-column: 1 / -1;
        transform: translateX(0);
    }

    .section__content--left.visible,
    .section__content--right.visible {
        transform: translateX(0);
    }

    .hero__title {
        font-size: clamp(2.2rem, 10vw, 4rem);
    }

    .starburst--hero {
        width: 56px;
        height: 56px;
    }

    .starburst--section {
        width: 24px;
        height: 24px;
    }

    .neon-glow {
        text-shadow: 0 0 6px #FFB347, 0 0 12px #FFB347, 0 0 24px rgba(255, 179, 71, 0.2);
    }

    @keyframes neonPulse {
        0%, 100% {
            text-shadow: 0 0 6px #FFB347, 0 0 12px #FFB347, 0 0 24px rgba(255, 179, 71, 0.2);
        }
        50% {
            text-shadow: 0 0 8px #FFB347, 0 0 16px #FFB347, 0 0 32px rgba(255, 179, 71, 0.3);
        }
    }

    .project-stats {
        gap: 32px;
    }

    .stat__number {
        font-size: 2rem;
    }

    .nav-dots {
        left: 12px;
        gap: 14px;
    }

    .nav-dot {
        width: 5px;
        height: 5px;
    }

    .nav-dot.active {
        width: 8px;
        height: 8px;
    }

    .divider--left {
        margin-right: 20%;
    }

    .divider--right {
        margin-left: 20%;
    }

    .project-cards {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
