/* ==========================================================
   miris.one — Bauhaus Game Circle Hub
   Colors: #1A1A1A, #D04030, #3050A0, #E8C020, #F4ECD8, #6A5040, #2A2A2A, #4A6AA0
   Fonts: Bebas Neue, Nunito, Space Mono
   ========================================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito', sans-serif;
    font-weight: 400;
    font-size: clamp(0.95rem, 1.2vw, 1.1rem);
    line-height: 1.8;
    color: #2A2A2A;
    background-color: #F4ECD8;
    overflow-x: hidden;
}

/* ---- TYPOGRAPHY ---- */
h1, h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 400;
    color: #1A1A1A;
    line-height: 1.1;
}

h1 {
    font-size: clamp(3.5rem, 10vw, 8rem);
    letter-spacing: 0.04em;
}

h2 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    letter-spacing: 0.02em;
}

h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 400;
    color: #1A1A1A;
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    letter-spacing: 0.02em;
    line-height: 1.2;
}

p {
    max-width: 600px;
    color: #2A2A2A;
}

.label {
    font-family: 'Space Mono', monospace;
    font-weight: 400;
    font-size: 0.8rem;
    color: #4A6AA0;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    display: block;
    margin-bottom: 0.5rem;
}

.dot {
    color: #D04030;
}

/* ---- CULTURAL BORDER PATTERN ---- */
.cultural-border {
    width: 100%;
    height: 6px;
    background: repeating-linear-gradient(
        90deg,
        #6A5040 0px,
        #6A5040 12px,
        transparent 12px,
        transparent 18px,
        #6A5040 18px,
        #6A5040 22px,
        transparent 22px,
        transparent 28px,
        #6A5040 28px,
        #6A5040 40px,
        transparent 40px,
        transparent 46px
    );
    opacity: 0.5;
}

/* ---- SECTION LAYOUT ---- */
.section-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 2rem;
    position: relative;
}

/* ---- HERO SECTION ---- */
#hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    background-color: #F4ECD8;
    display: flex;
    align-items: center;
    justify-content: center;
}

#hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Geometric shapes */
.shape {
    position: absolute;
    will-change: transform, opacity;
}

.shape-rect-red {
    width: clamp(200px, 30vw, 400px);
    height: clamp(300px, 45vh, 500px);
    background-color: #D04030;
    top: 10%;
    left: -5%;
    transform: translateX(-100%);
    opacity: 0;
}

.shape-circle-blue {
    width: clamp(180px, 25vw, 350px);
    height: clamp(180px, 25vw, 350px);
    background-color: #3050A0;
    border-radius: 50%;
    top: 20%;
    right: 10%;
    transform: scale(0);
    opacity: 0;
}

.shape-triangle-yellow {
    width: 0;
    height: 0;
    border-left: clamp(80px, 12vw, 160px) solid transparent;
    border-right: clamp(80px, 12vw, 160px) solid transparent;
    border-bottom: clamp(140px, 20vw, 280px) solid #E8C020;
    top: -20%;
    left: 50%;
    transform: translateX(-50%) translateY(-100%);
    opacity: 0;
}

.shape-rect-small-dark {
    width: clamp(100px, 15vw, 200px);
    height: clamp(60px, 8vh, 120px);
    background-color: #1A1A1A;
    bottom: 15%;
    right: 5%;
    transform: translateX(100%);
    opacity: 0;
}

.shape-circle-accent {
    width: clamp(60px, 8vw, 120px);
    height: clamp(60px, 8vw, 120px);
    background-color: #6A5040;
    border-radius: 50%;
    bottom: 25%;
    left: 15%;
    transform: scale(0);
    opacity: 0;
}

/* Hero content */
#hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
}

#hero-title {
    margin-bottom: 0.5rem;
}

#hero-tagline {
    font-family: 'Space Mono', monospace;
    font-weight: 400;
    font-size: clamp(0.85rem, 1.5vw, 1.1rem);
    color: #4A6AA0;
    letter-spacing: 0.25em;
    text-transform: uppercase;
}

#hero-border-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
}

/* ---- ABOUT SECTION ---- */
#about {
    background-color: #F4ECD8;
    position: relative;
}

#about .section-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
}

.about-geo {
    position: relative;
    width: 250px;
    height: 250px;
    flex-shrink: 0;
}

.deco-rect {
    position: absolute;
    width: 180px;
    height: 120px;
}

.deco-circle {
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
}

.deco-red {
    background-color: #D04030;
    top: 0;
    left: 0;
}

.deco-blue {
    background-color: #3050A0;
    bottom: 0;
    right: 0;
}

/* ---- SPRING ANIMATION (initial state) ---- */
[data-spring] {
    opacity: 0;
    transform: translateY(60px);
}

[data-spring].sprung {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease-out, transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---- WORKS SECTION ---- */
#works {
    background-color: #1A1A1A;
}

#works .section-inner {
    padding-bottom: 4rem;
}

#works h2,
#works h3 {
    color: #F4ECD8;
}

#works p {
    color: #F4ECD8;
    opacity: 0.8;
}

#works .label {
    color: #E8C020;
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.work-card {
    background-color: #2A2A2A;
    padding: 0;
    overflow: hidden;
}

.work-thumb {
    width: 100%;
    overflow: hidden;
}

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

.work-label {
    font-family: 'Space Mono', monospace;
    font-weight: 400;
    font-size: 0.75rem;
    color: #E8C020;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    display: block;
    padding: 1.2rem 1.5rem 0;
}

.work-card h3 {
    padding: 0.3rem 1.5rem 0;
}

.work-card p {
    padding: 0.5rem 1.5rem 1.5rem;
    font-size: 0.9rem;
    max-width: none;
}

/* Work card hover effect */
.work-card {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.work-card:hover {
    transform: translateY(-4px);
}

/* ---- PHILOSOPHY SECTION ---- */
#philosophy {
    background-color: #F4ECD8;
}

.philosophy-principles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 3rem;
}

.principle {
    text-align: left;
}

.principle-shape {
    width: 60px;
    height: 60px;
    margin-bottom: 1.2rem;
}

.principle-red {
    background-color: #D04030;
}

.principle-blue {
    background-color: #3050A0;
    border-radius: 50%;
}

.principle-yellow {
    width: 0;
    height: 0;
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    border-bottom: 52px solid #E8C020;
    background: none;
}

.principle h3 {
    margin-bottom: 0.5rem;
}

/* ---- MEMBERS SECTION ---- */
#members {
    background-color: #F4ECD8;
}

.members-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.member-block {
    text-align: center;
}

.member-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    overflow: hidden;
}

.member-avatar svg {
    width: 100%;
    height: 100%;
}

.member-role {
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    color: #4A6AA0;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* ---- FOOTER ---- */
#contact {
    background-color: #1A1A1A;
    position: relative;
    overflow: hidden;
}

#contact .section-inner {
    padding: 4rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.footer-geo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.footer-shape {
    position: absolute;
}

.footer-rect {
    width: 200px;
    height: 100px;
    background-color: #D04030;
    opacity: 0.15;
    top: 10%;
    left: 5%;
}

.footer-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background-color: #3050A0;
    opacity: 0.15;
    bottom: 10%;
    right: 8%;
}

.footer-triangle {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 100px solid #E8C020;
    opacity: 0.1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.footer-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.footer-content h2 {
    color: #F4ECD8;
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 0.5rem;
}

.footer-text {
    color: #F4ECD8;
    opacity: 0.7;
    margin: 0 auto 1rem;
}

.footer-label {
    color: #6A5040;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
    .philosophy-principles {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    #about .section-inner {
        flex-direction: column;
    }

    .about-geo {
        width: 200px;
        height: 200px;
    }
}

@media (max-width: 600px) {
    .section-inner {
        padding: 3rem 1.5rem;
    }

    .members-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .works-grid {
        grid-template-columns: 1fr;
    }

    .shape-rect-red {
        width: 150px;
        height: 250px;
    }

    .shape-circle-blue {
        width: 130px;
        height: 130px;
    }
}
