/* ============================================================
   munju.club -- Corporate Aesthetic Subverted
   Colors: #FFFFFF, #0A0A0A, #E8283C, #1848E8, #48E848, #F0D0D8, #E0E0E0
   Font: Outfit (Google Fonts, variable 100-900)
   ============================================================ */

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

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

body {
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    font-size: clamp(14px, 1vw, 16px);
    line-height: 1.7;
    color: #0A0A0A;
    background-color: #FFFFFF;
    overflow-x: hidden;
    position: relative;
}

/* ---- Grid Background Infrastructure ---- */
#grid-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background:
        repeating-linear-gradient(
            to right,
            #E0E0E0 0px,
            #E0E0E0 1px,
            transparent 1px,
            transparent 48px
        ),
        repeating-linear-gradient(
            to bottom,
            #E0E0E0 0px,
            #E0E0E0 1px,
            transparent 1px,
            transparent 48px
        );
    opacity: 0.4;
}

/* ---- Section Labels ---- */
.section-label {
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #0A0A0A;
    margin-bottom: 32px;
    padding-left: 16px;
    border-left: 4px solid #E8283C;
}

/* ============================================================
   Section 1: Membership Gate
   ============================================================ */
#membership-gate {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-wrap: wrap;
    overflow: hidden;
}

.gate-left {
    width: 50%;
    height: 100vh;
    background-color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.gate-right {
    width: 50%;
    height: 100vh;
    background-color: #0A0A0A;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

#hero-munju {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(60px, 10vw, 160px);
    font-weight: 100;
    color: #0A0A0A;
    letter-spacing: -0.03em;
    animation: weightBreathing 4s ease-in-out infinite;
    line-height: 1;
}

@keyframes weightBreathing {
    0% { font-weight: 100; }
    50% { font-weight: 900; }
    100% { font-weight: 100; }
}

#hero-club-container {
    width: 80%;
    max-width: 400px;
}

#hero-club-svg {
    width: 100%;
    height: auto;
}

#club-text-svg {
    font-family: 'Outfit', sans-serif;
    font-size: 100px;
    font-weight: 700;
    fill: none;
    stroke: #FFFFFF;
    stroke-width: 2;
    stroke-dasharray: 600;
    stroke-dashoffset: 600;
    animation: drawClub 1.5s ease forwards 0.5s;
}

.watercolor-circle {
    fill: none;
    opacity: 0;
    animation: watercolorReveal 2s ease forwards 1s;
}

.wc-1 {
    fill: #F0D0D8;
    animation-delay: 0.8s;
}

.wc-2 {
    fill: #1848E8;
    animation-delay: 1.1s;
}

.wc-3 {
    fill: #E8283C;
    animation-delay: 1.4s;
}

.wc-4 {
    fill: #48E848;
    animation-delay: 1.7s;
}

@keyframes drawClub {
    to {
        stroke-dashoffset: 0;
        fill: #FFFFFF;
    }
}

@keyframes watercolorReveal {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    60% {
        opacity: 0.2;
        transform: scale(1.1);
    }
    100% {
        opacity: 0.15;
        transform: scale(1);
    }
}

.gate-subtitle {
    position: absolute;
    bottom: 48px;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 2;
}

.subtitle-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    font-size: clamp(14px, 1.5vw, 20px);
    color: #0A0A0A;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 8px 24px;
    opacity: 0;
    animation: subtitleFadeIn 0.8s ease forwards 1s;
}

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

/* ============================================================
   Section 2: Initiative Board (Masonry)
   ============================================================ */
#initiative-board {
    position: relative;
    z-index: 1;
    padding: 80px 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.masonry-grid {
    column-count: 3;
    column-gap: 16px;
}

/* ---- Masonry Card Base ---- */
.masonry-card {
    break-inside: avoid;
    margin-bottom: 16px;
    background: #FFFFFF;
    border: 1px solid #E0E0E0;
    border-top: 4px solid #0A0A0A;
    padding: 24px;
    position: relative;
    cursor: pointer;
    transition: box-shadow 0.3s ease, transform 0.1s ease;
    opacity: 0;
    transform: translateY(20px);
}

.masonry-card.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

/* Accent top borders by color */
.masonry-card[data-accent="red"] {
    border-top-color: #E8283C;
}

.masonry-card[data-accent="blue"] {
    border-top-color: #1848E8;
}

.masonry-card[data-accent="green"] {
    border-top-color: #48E848;
}

/* Card hover - shake effect */
@keyframes cardShake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-3px); }
    40% { transform: translateX(3px); }
    60% { transform: translateX(-3px); }
    80% { transform: translateX(3px); }
}

.masonry-card.shaking {
    animation: cardShake 0.2s ease;
}

/* Glow on red-accent cards */
.masonry-card[data-accent="red"]:hover {
    box-shadow: 0 0 16px rgba(232, 40, 60, 0.3);
}

.masonry-card[data-accent="blue"]:hover {
    box-shadow: 0 0 16px rgba(24, 72, 232, 0.25);
}

.masonry-card[data-accent="green"]:hover {
    box-shadow: 0 0 16px rgba(72, 232, 72, 0.25);
}

/* ---- Card Inner Elements ---- */
.card-label {
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #0A0A0A;
    margin-bottom: 12px;
    opacity: 0.6;
}

.card-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: clamp(18px, 2vw, 24px);
    color: #0A0A0A;
    margin-bottom: 12px;
    line-height: 1.3;
}

.card-body {
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    font-size: clamp(13px, 1vw, 15px);
    line-height: 1.7;
    color: #0A0A0A;
    opacity: 0.85;
}

.card-footer {
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #0A0A0A;
    opacity: 0.4;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #E0E0E0;
}

/* ---- Data Panel Cards ---- */
.card-metric {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 48px;
    color: #0A0A0A;
    line-height: 1;
    margin-bottom: 4px;
}

.card-metric-label {
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #0A0A0A;
    opacity: 0.6;
    margin-bottom: 12px;
}

.card-metric-sub {
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    font-size: 13px;
    color: #0A0A0A;
    opacity: 0.7;
}

.metric-highlight {
    color: #48E848;
    font-weight: 700;
}

.data-bar-container {
    width: 100%;
    height: 4px;
    background: #E0E0E0;
    margin: 12px 0 8px;
}

.data-bar {
    height: 100%;
    background: #1848E8;
    transition: width 1s ease;
}

.data-bar.bar-green {
    background: #48E848;
}

/* ---- Watercolor Cards ---- */
.card-watercolor {
    position: relative;
    overflow: hidden;
}

.watercolor-splash {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: radial-gradient(
        ellipse at 30% 40%,
        rgba(240, 208, 216, 0.15) 0%,
        rgba(72, 232, 72, 0.08) 40%,
        transparent 70%
    );
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.watercolor-splash.splash-alt {
    background: radial-gradient(
        ellipse at 60% 30%,
        rgba(24, 72, 232, 0.12) 0%,
        rgba(240, 208, 216, 0.1) 50%,
        transparent 75%
    );
    top: auto;
    bottom: -30px;
    right: auto;
    left: -30px;
    width: 180px;
    height: 180px;
}

.watercolor-splash.splash-red {
    background: radial-gradient(
        ellipse at 40% 50%,
        rgba(232, 40, 60, 0.12) 0%,
        rgba(240, 208, 216, 0.08) 45%,
        transparent 70%
    );
}

.card-watercolor:hover .watercolor-splash {
    opacity: 2;
}

/* ============================================================
   Section 3: Manifesto Strip
   ============================================================ */
#manifesto-strip {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: 100vh;
    background-color: #0A0A0A;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.marquee-container {
    width: 100%;
    overflow: hidden;
    padding: 40px 0;
}

.marquee-track {
    display: inline-flex;
    white-space: nowrap;
    animation: marqueeScroll 25s linear infinite;
}

.marquee-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: clamp(36px, 5vw, 80px);
    color: #FFFFFF;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    padding-right: 0;
}

@keyframes marqueeScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.manifesto-content {
    padding: 60px 32px;
    max-width: 800px;
    text-align: center;
}

.manifesto-line {
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    font-size: clamp(18px, 2.5vw, 28px);
    color: #FFFFFF;
    opacity: 0.7;
    margin-bottom: 24px;
    line-height: 1.5;
}

.manifesto-highlight {
    font-weight: 700;
    font-size: clamp(36px, 5vw, 72px);
    color: #E8283C;
    opacity: 1;
    margin-top: 32px;
}

/* ============================================================
   Section 4: Grid-lines Footer
   ============================================================ */
#grid-footer {
    position: relative;
    z-index: 1;
    background-color: #FFFFFF;
    border-top: 1px solid #E0E0E0;
    padding: 80px 32px 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: auto auto;
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

/* Visible grid lines inside footer */
.footer-grid::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background:
        repeating-linear-gradient(
            to right,
            #E0E0E0 0px,
            #E0E0E0 1px,
            transparent 1px,
            transparent calc(100% / 6)
        ),
        repeating-linear-gradient(
            to bottom,
            #E0E0E0 0px,
            #E0E0E0 1px,
            transparent 1px,
            transparent 50%
        );
    opacity: 0.5;
}

.footer-node {
    padding: 16px;
    position: relative;
    z-index: 1;
}

.node-label {
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #0A0A0A;
    opacity: 0.5;
    margin-bottom: 4px;
}

.node-value {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: #0A0A0A;
}

.footer-bottom {
    max-width: 1200px;
    margin: 60px auto 0;
    padding-top: 24px;
    border-top: 1px solid #E0E0E0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copyright {
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #0A0A0A;
    opacity: 0.4;
}

.footer-tagline {
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    font-size: 11px;
    letter-spacing: 0.12em;
    color: #0A0A0A;
    opacity: 0.4;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
    .masonry-grid {
        column-count: 2;
    }

    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: auto auto;
    }

    .footer-node {
        grid-column: auto !important;
        grid-row: auto !important;
    }
}

@media (max-width: 600px) {
    .gate-left,
    .gate-right {
        width: 100%;
        height: 50vh;
    }

    #membership-gate {
        height: auto;
        min-height: 100vh;
    }

    .masonry-grid {
        column-count: 1;
    }

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

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    #hero-munju {
        font-size: clamp(48px, 15vw, 100px);
    }
}
