/* munju.club -- corporate aesthetic worn ironically
   Palette: high-contrast black/white + signal red, electric blue, acid green, watercolor blush
   Type: Outfit variable
   Layout: split gate, masonry initiative board, marquee manifesto, grid-lines footer
*/

:root {
    --black: #0A0A0A;
    --white: #FFFFFF;
    --red: #E8283C;
    --green: #48E848;
    --blue: #1848E8;
    --blush: #F0D0D8;
    --grid: #E0E0E0;
    --grid-step: 48px;
    --gutter: 16px;
    --card-radius: 0;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Outfit", sans-serif;
    font-weight: 400;
    font-size: clamp(14px, 1vw, 16px);
    line-height: 1.7;
    color: var(--black);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    position: relative;
}

/* Grid-lines background -- visible infrastructure */
.grid-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image:
        repeating-linear-gradient(0deg, transparent 0, transparent calc(var(--grid-step) - 1px), var(--grid) calc(var(--grid-step) - 1px), var(--grid) var(--grid-step)),
        repeating-linear-gradient(90deg, transparent 0, transparent calc(var(--grid-step) - 1px), var(--grid) calc(var(--grid-step) - 1px), var(--grid) var(--grid-step));
    will-change: transform;
}

/* ===================== MEMBERSHIP GATE ===================== */
.gate {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--white);
    border-bottom: 1px solid var(--grid);
}

.gate-left {
    background: var(--white);
    color: var(--black);
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-right: 1px solid var(--black);
    position: relative;
    overflow: hidden;
}

.gate-right {
    background: var(--black);
    color: var(--white);
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.gate-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.gate-tag {
    border: 1px solid var(--black);
    padding: 6px 10px;
    background: var(--white);
}

.gate-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.gate-status::before {
    content: "";
    width: 8px;
    height: 8px;
    background: var(--red);
    border-radius: 50%;
    animation: pulseRed 1.4s ease-in-out infinite;
}

@keyframes pulseRed {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.2); }
}

.hero-munju {
    font-family: "Outfit", sans-serif;
    font-size: clamp(36px, 16vw, 220px);
    font-weight: 100;
    line-height: 0.85;
    letter-spacing: -0.04em;
    margin-top: -0.05em;
    color: var(--black);
    animation: weightBreathing 4s ease-in-out infinite;
    will-change: font-weight;
}

@keyframes weightBreathing {
    0%   { font-weight: 100; font-variation-settings: "wght" 100; }
    50%  { font-weight: 900; font-variation-settings: "wght" 900; }
    100% { font-weight: 100; font-variation-settings: "wght" 100; }
}

.gate-foot {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 11px;
    font-weight: 300;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.dot {
    width: 10px;
    height: 10px;
    background: var(--black);
}

.gate-watermark {
    font-size: 11px;
    font-weight: 300;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--white);
    opacity: 0.65;
    align-self: flex-end;
}

.watercolor-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 12px 0;
}

.watercolor-club {
    width: min(90%, 520px);
    height: auto;
    display: block;
}

.korean-subtitle {
    font-size: clamp(18px, 2vw, 26px);
    font-weight: 300;
    letter-spacing: 0.04em;
    color: var(--white);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.6s ease 0.1s, transform 0.6s ease 0.1s;
}

.korean-subtitle.visible {
    opacity: 1;
    transform: translateY(0);
}

.gate-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--white);
}

.cta-line {
    width: 48px;
    height: 1px;
    background: var(--white);
}

.cta-arrow {
    animation: bobArrow 1.6s ease-in-out infinite;
    display: inline-block;
}

@keyframes bobArrow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(4px); }
}

/* ===================== INITIATIVE BOARD ===================== */
.board {
    position: relative;
    z-index: 1;
    background: var(--white);
    padding: 80px 48px 96px;
    border-bottom: 1px solid var(--grid);
}

.board-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 48px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--black);
}

.label-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 300;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 6px 10px;
    border: 1px solid var(--black);
    background: var(--white);
}

.board-title {
    font-size: clamp(28px, 4vw, 56px);
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -0.02em;
    margin-top: 16px;
}

.board-meta {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    font-size: 11px;
    font-weight: 300;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.meta-num {
    font-weight: 700;
    font-size: 18px;
    color: var(--red);
}

.live-dot {
    width: 8px;
    height: 8px;
    background: var(--green);
    display: inline-block;
    animation: pulseGreen 1.2s ease-in-out infinite;
}

@keyframes pulseGreen {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Masonry via CSS columns */
.masonry {
    column-count: 3;
    column-gap: var(--gutter);
}

@media (max-width: 1024px) {
    .masonry { column-count: 2; }
}

@media (max-width: 640px) {
    .masonry { column-count: 1; }
}

.card {
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
    background: var(--white);
    border: 1px solid var(--grid);
    border-top: 4px solid var(--black);
    padding: 24px;
    margin-bottom: var(--gutter);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
    opacity: 0;
    transform: translateY(16px);
}

.card.in {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.card.shake {
    animation: shakeError 0.2s ease-in-out 1;
}

@keyframes shakeError {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-3px); }
    40% { transform: translateX(3px); }
    60% { transform: translateX(-3px); }
    80% { transform: translateX(3px); }
}

.card-red    { border-top-color: var(--red); }
.card-blue   { border-top-color: var(--blue); }
.card-green  { border-top-color: var(--green); }

.card:hover.card-red {
    box-shadow: 0 0 16px rgba(232, 40, 60, 0.30);
}

.card:hover.card-blue {
    box-shadow: 0 0 16px rgba(24, 72, 232, 0.25);
}

.card:hover.card-green {
    box-shadow: 0 0 16px rgba(72, 232, 72, 0.25);
}

.card-tall { padding-bottom: 32px; }
.card-wide { /* respected via masonry width on widest column - effectively visual emphasis */ }

.card-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 300;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--black);
    opacity: 0.65;
    margin-bottom: 14px;
}

.card-head {
    font-size: clamp(18px, 1.6vw, 24px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin-bottom: 10px;
}

.card-body {
    font-size: clamp(14px, 1vw, 16px);
    line-height: 1.6;
    color: var(--black);
}

.card-sig {
    display: block;
    margin-top: 16px;
    font-size: 11px;
    font-weight: 300;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    opacity: 0.6;
}

.card-list {
    list-style: none;
    counter-reset: rule;
    margin-top: 8px;
}

.card-list li {
    counter-increment: rule;
    padding: 10px 0;
    border-bottom: 1px solid var(--grid);
    font-size: 14px;
    font-weight: 400;
    position: relative;
    padding-left: 36px;
}

.card-list li:last-child { border-bottom: none; }

.card-list li::before {
    content: counter(rule, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--red);
}

.card-num {
    font-family: "Outfit", sans-serif;
    font-size: 56px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--black);
    margin-bottom: 8px;
}

.num-unit {
    font-size: 24px;
    font-weight: 300;
    color: var(--black);
    opacity: 0.65;
    margin-left: 4px;
}

.card-cap {
    font-size: 13px;
    font-weight: 300;
    line-height: 1.5;
    color: var(--black);
    opacity: 0.85;
}

.card-foot {
    display: flex;
    gap: 8px;
    margin-top: 14px;
}

.foot-tag {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 4px 8px;
    border: 1px solid var(--black);
    background: var(--white);
}

.data-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 8px 0 12px;
    border-top: 1px solid var(--grid);
    border-bottom: 1px solid var(--grid);
    padding: 14px 0;
}

.data-cell {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.data-num {
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
}

.data-cap {
    font-size: 10px;
    font-weight: 300;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    opacity: 0.7;
}

/* Watercolor splashes -- organic disruption on rigid grid */
.card-watercolor {
    background: var(--white);
    isolation: isolate;
}

.splash {
    position: absolute;
    inset: -10% -10% auto auto;
    width: 240px;
    height: 240px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.15;
    transition: opacity 0.4s ease;
    filter: blur(6px);
}

.card:hover .splash {
    opacity: 0.30;
}

.splash-red {
    background:
        radial-gradient(ellipse 60% 50% at 30% 35%, rgba(232, 40, 60, 0.95) 0%, rgba(232, 40, 60, 0.4) 40%, transparent 75%),
        radial-gradient(ellipse 50% 70% at 70% 60%, rgba(232, 40, 60, 0.6) 0%, transparent 60%);
}

.splash-green {
    background:
        radial-gradient(ellipse 65% 55% at 40% 40%, rgba(72, 232, 72, 0.85) 0%, rgba(72, 232, 72, 0.35) 45%, transparent 80%),
        radial-gradient(ellipse 50% 60% at 70% 65%, rgba(72, 232, 72, 0.5) 0%, transparent 65%);
}

.splash-blush {
    background:
        radial-gradient(ellipse 70% 60% at 35% 35%, rgba(240, 208, 216, 0.95) 0%, rgba(240, 208, 216, 0.5) 50%, transparent 80%),
        radial-gradient(ellipse 50% 70% at 75% 60%, rgba(240, 208, 216, 0.7) 0%, transparent 65%);
    opacity: 0.6;
}

.card-watercolor .card-label,
.card-watercolor .card-head,
.card-watercolor .card-body,
.card-watercolor .card-sig {
    position: relative;
    z-index: 1;
}

/* ===================== MANIFESTO STRIP ===================== */
.manifesto {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    background: var(--black);
    color: var(--white);
    padding: 80px 0 80px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    border-bottom: 1px solid var(--black);
}

.manifesto-meta {
    padding: 0 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    font-weight: 300;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--white);
    opacity: 0.7;
}

.manifesto-tag {
    border: 1px solid var(--white);
    padding: 6px 10px;
}

.marquee {
    flex: 1;
    display: flex;
    align-items: center;
    overflow: hidden;
    width: 100%;
    margin: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding: 32px 0;
}

.marquee-track {
    display: inline-flex;
    align-items: center;
    gap: 32px;
    white-space: nowrap;
    animation: marqueeScroll 40s linear infinite;
    will-change: transform;
    font-weight: 100;
    animation-name: marqueeScroll, manifestoBreath;
    animation-duration: 40s, 6s;
    animation-timing-function: linear, ease-in-out;
    animation-iteration-count: infinite, infinite;
}

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

@keyframes manifestoBreath {
    0%, 100% { font-variation-settings: "wght" 200; }
    50%      { font-variation-settings: "wght" 800; }
}

.marquee-item {
    font-size: clamp(40px, 9vw, 140px);
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--white);
}

.marquee-sep {
    font-size: clamp(40px, 9vw, 140px);
    color: var(--red);
    font-weight: 700;
}

.manifesto-foot {
    padding: 0 48px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 11px;
    font-weight: 300;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--white);
    opacity: 0.6;
}

/* ===================== FOOTER (GRID-LINES NETWORK) ===================== */
.footer {
    position: relative;
    z-index: 1;
    background: var(--white);
    padding: 0;
    border-top: 1px solid var(--black);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: minmax(180px, auto);
    border-bottom: 1px solid var(--grid);
}

.footer-cell {
    border-right: 1px solid var(--grid);
    border-bottom: 1px solid var(--grid);
    padding: 28px 24px;
    position: relative;
    background: var(--white);
}

.footer-cell:nth-child(6n) { border-right: none; }

.footer-cell-a { grid-column: span 2; }
.footer-cell-b { grid-column: span 2; }
.footer-cell-c { grid-column: span 2; }
.footer-cell-d { grid-column: span 3; }
.footer-cell-e { grid-column: span 1; }
.footer-cell-f { grid-column: span 2; }

@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-cell { grid-column: span 1 !important; }
    .footer-cell:nth-child(6n) { border-right: 1px solid var(--grid); }
    .footer-cell:nth-child(2n) { border-right: none; }
}

.footer-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 300;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 12px;
    color: var(--black);
    opacity: 0.7;
    border-bottom: 1px solid var(--black);
    padding-bottom: 4px;
}

.footer-head {
    font-size: clamp(22px, 2.4vw, 36px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.footer-body {
    font-size: 14px;
    line-height: 1.5;
    color: var(--black);
}

.footer-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
}

.footer-list li {
    font-size: 14px;
    font-weight: 400;
    padding: 4px 0;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.footer-list li:hover {
    border-bottom-color: var(--red);
    color: var(--red);
}

.signal-dot {
    position: absolute;
    bottom: 24px;
    right: 24px;
    width: 14px;
    height: 14px;
    background: var(--red);
    border-radius: 50%;
    animation: pulseRed 1.4s ease-in-out infinite;
    box-shadow: 0 0 12px rgba(232, 40, 60, 0.4);
}

/* ===================== RESPONSIVE TWEAKS ===================== */
@media (max-width: 768px) {
    .gate {
        grid-template-columns: 1fr;
        grid-template-rows: 60vh 60vh;
    }

    .gate-left {
        border-right: none;
        border-bottom: 1px solid var(--black);
    }

    .gate-left, .gate-right {
        padding: 28px;
    }

    .board {
        padding: 56px 24px 72px;
    }

    .manifesto-meta, .manifesto-foot {
        padding: 0 24px;
    }

    .footer-cell {
        padding: 22px 20px;
    }
}
