/* munju.club - Art Deco Speakeasy Clubhouse */
/* Palette: Honeyed-Neutral */
/* Fonts: Poiret One (display), Nunito Sans (body) */

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: #f5ede0;
    color: #6b5d4f;
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 400;
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    line-height: 1.85;
    letter-spacing: 0.01em;
    overflow-x: hidden;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, .site-title, .rooftop-title, .landing-heading {
    font-family: 'Poiret One', cursive;
    font-weight: 400;
    color: #5a4730;
    letter-spacing: 0.08em;
    transition: all 0.8s ease;
}

h1, .site-title {
    font-size: clamp(2.4rem, 7vw, 5.6rem);
}

h2, .landing-heading {
    font-size: clamp(1.6rem, 4vw, 3rem);
    text-align: center;
    margin-bottom: 2rem;
}

.rooftop-title {
    font-size: clamp(1.8rem, 5vw, 3.5rem);
}

/* Brass shimmer on hover for Poiret One headings */
h1:hover, h2:hover, .site-title:hover, .rooftop-title:hover {
    background: linear-gradient(135deg, #c9a96e, #a18a6c, #c9a96e);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: brassShimmer 2s ease infinite;
}

@keyframes brassShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

em {
    font-style: italic;
    color: #5a4730;
    font-weight: 600;
}

/* ============================================
   BUBBLE OVERLAY SYSTEM
   ============================================ */

#bubble-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.bubble {
    position: absolute;
    bottom: -100px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.3), transparent 70%);
    border: 1px solid rgba(201, 169, 110, 0.15);
    pointer-events: none;
    animation-name: rise, sway;
    animation-timing-function: linear, ease-in-out;
    animation-iteration-count: infinite, infinite;
}

@keyframes rise {
    from { transform: translateY(110vh); }
    to { transform: translateY(-10vh); }
}

@keyframes sway {
    0%, 100% { margin-left: 0; }
    50% { margin-left: 30px; }
}

/* Release bubbles for rooftop */
.release-bubble {
    position: absolute;
    bottom: 0;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.35), transparent 70%);
    border: 1px solid rgba(201, 169, 110, 0.2);
    pointer-events: none;
    animation: releaseRise linear forwards, sway ease-in-out infinite;
    opacity: 0.7;
}

@keyframes releaseRise {
    0% { transform: translateY(0); opacity: 0.7; }
    80% { opacity: 0.5; }
    100% { transform: translateY(-110vh); opacity: 0; }
}

/* ============================================
   DECORATIVE GUTTERS
   ============================================ */

.gutter {
    position: fixed;
    top: 0;
    width: calc((100vw - 680px) / 2);
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.gutter-left {
    left: 0;
}

.gutter-right {
    right: 0;
}

.gutter-chevron {
    width: 100%;
    height: 100%;
    opacity: 0.3;
}

@media (max-width: 800px) {
    .gutter {
        display: none;
    }
}

/* ============================================
   LANDING (SECTION) LAYOUT
   ============================================ */

.landing {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.landing-content {
    max-width: 680px;
    width: 100%;
    margin: 0 auto;
    padding: 4rem 2rem;
    position: relative;
}

/* ============================================
   SKELETON LOADING ANIMATION
   ============================================ */

.skeleton-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #ece3d4 25%, #f5ede0 50%, #ece3d4 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
    z-index: 10;
    border-radius: 8px;
    opacity: 1;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.skeleton-overlay.hidden {
    opacity: 0;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.reveal-content {
    opacity: 0;
    filter: blur(4px);
    transition: opacity 0.6s ease, filter 0.6s ease;
}

.reveal-content.revealed {
    opacity: 1;
    filter: blur(0);
}

/* ============================================
   CHEVRON DIVIDERS
   ============================================ */

.chevron-divider {
    width: 100%;
    height: 40px;
    overflow: hidden;
    position: relative;
    z-index: 2;
}

.divider-svg {
    width: 100%;
    height: 100%;
}

.divider-fill {
    opacity: 0;
    transition: opacity 1.2s ease;
}

.divider-fill.visible {
    opacity: 1;
}

/* ============================================
   LANDING 1 — THE FOYER
   ============================================ */

.landing-foyer {
    text-align: center;
}

.foyer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.foyer-title-group {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 1.5rem;
}

.fan-motif {
    flex-shrink: 0;
}

.fan-motif line {
    stroke-dasharray: 80;
    stroke-dashoffset: 80;
    transition: stroke-dashoffset 0.8s ease;
}

.fan-motif.animated line {
    stroke-dashoffset: 0;
}

.fan-motif.animated line:nth-child(1) { transition-delay: 0s; }
.fan-motif.animated line:nth-child(2) { transition-delay: 0.08s; }
.fan-motif.animated line:nth-child(3) { transition-delay: 0.16s; }
.fan-motif.animated line:nth-child(4) { transition-delay: 0.24s; }
.fan-motif.animated line:nth-child(5) { transition-delay: 0.32s; }
.fan-motif.animated line:nth-child(6) { transition-delay: 0.40s; }
.fan-motif.animated line:nth-child(7) { transition-delay: 0.48s; }
.fan-motif.animated line:nth-child(8) { transition-delay: 0.56s; }
.fan-motif.animated line:nth-child(9) { transition-delay: 0.64s; }

.foyer-tagline {
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 300;
    font-size: 1.15rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #a18a6c;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.2s ease 0.6s, transform 1.2s ease 0.6s;
}

.foyer-tagline.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   LANDING 2 — THE GALLERY
   ============================================ */

.gallery-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
}

.vintage-frame {
    position: relative;
    width: 100%;
    max-width: 420px;
}

.frame-tilt-left {
    transform: rotate(-1.5deg);
}

.frame-tilt-right {
    transform: rotate(1.5deg);
}

.frame-outer {
    border: 2px solid #c9a96e;
    padding: 12px;
    background: #f5ede0;
    position: relative;
}

.frame-inner {
    border: 1px solid #a18a6c;
    overflow: hidden;
}

/* Corner ornaments */
.frame-corner {
    position: absolute;
    width: 16px;
    height: 16px;
    z-index: 3;
}

.corner-tl {
    top: -2px;
    left: -2px;
    clip-path: polygon(0 0, 100% 0, 0 100%);
    background: #c9a96e;
}

.corner-tr {
    top: -2px;
    right: -2px;
    clip-path: polygon(0 0, 100% 0, 100% 100%);
    background: #c9a96e;
}

.corner-bl {
    bottom: -2px;
    left: -2px;
    clip-path: polygon(0 0, 0 100%, 100% 100%);
    background: #c9a96e;
}

.corner-br {
    bottom: -2px;
    right: -2px;
    clip-path: polygon(100% 0, 0 100%, 100% 100%);
    background: #c9a96e;
}

/* Brass Pin */
.brass-pin {
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 35%, #ddc080, #a18a6c);
    box-shadow: 1px 1px 3px rgba(90, 71, 48, 0.3);
    z-index: 5;
}

/* Faux Photography - CSS Gradients */
.faux-photo {
    width: 100%;
    height: 220px;
    position: relative;
    filter: sepia(0.6) contrast(0.85) brightness(1.05) saturate(0.7);
    overflow: hidden;
}

.photo-1 {
    background:
        radial-gradient(ellipse at 30% 40%, rgba(180, 140, 90, 0.6), transparent 60%),
        radial-gradient(ellipse at 70% 60%, rgba(160, 120, 70, 0.5), transparent 50%),
        linear-gradient(180deg, #c9a070 0%, #a08060 40%, #806040 100%);
}

.photo-2 {
    background:
        radial-gradient(ellipse at 50% 30%, rgba(200, 170, 110, 0.7), transparent 50%),
        radial-gradient(ellipse at 25% 70%, rgba(140, 100, 60, 0.4), transparent 40%),
        linear-gradient(135deg, #b09070 0%, #907050 50%, #706040 100%);
}

.photo-3 {
    background:
        radial-gradient(ellipse at 60% 50%, rgba(190, 150, 90, 0.5), transparent 55%),
        radial-gradient(ellipse at 20% 30%, rgba(170, 130, 80, 0.6), transparent 45%),
        linear-gradient(200deg, #c0a080 0%, #a08060 60%, #806050 100%);
}

.photo-grain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.15;
    filter: url(#grain-filter);
    background: rgba(200, 170, 120, 0.1);
}

/* ============================================
   LANDING 3 — THE PARLOR
   ============================================ */

.landing-parlor {
    position: relative;
    overflow: hidden;
}

.ziggurat-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    max-width: 500px;
    height: auto;
    z-index: 0;
    pointer-events: none;
}

.parlor-inner {
    position: relative;
    z-index: 1;
    text-align: center;
}

.manifesto {
    max-width: 580px;
    margin: 0 auto;
}

.manifesto p {
    margin-bottom: 1.8rem;
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    line-height: 1.9;
    letter-spacing: 0.01em;
    color: #6b5d4f;
}

.manifesto p:last-child {
    margin-bottom: 0;
}

/* ============================================
   LANDING 4 — THE ARCHIVE
   ============================================ */

.archive-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.index-card {
    background: #ece3d4;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(161, 120, 60, 0.12);
    overflow: hidden;
    width: 100%;
    max-width: 520px;
    position: relative;
}

.card-top-border {
    height: 3px;
    background: #c9a96e;
    width: 100%;
}

.card-body {
    display: flex;
    gap: 1.2rem;
    padding: 1.5rem;
    align-items: flex-start;
}

.card-photo-frame {
    flex-shrink: 0;
    width: 100px;
    height: 80px;
    border: 1px solid #a18a6c;
    overflow: hidden;
}

.card-photo-frame .faux-photo {
    height: 100%;
}

.photo-4 {
    background:
        radial-gradient(ellipse at 40% 50%, rgba(170, 130, 80, 0.6), transparent 50%),
        linear-gradient(160deg, #b09070, #907050);
}

.photo-5 {
    background:
        radial-gradient(ellipse at 55% 40%, rgba(180, 150, 100, 0.5), transparent 50%),
        linear-gradient(180deg, #a08060, #806040);
}

.photo-6 {
    background:
        radial-gradient(ellipse at 35% 60%, rgba(190, 160, 110, 0.6), transparent 55%),
        linear-gradient(140deg, #c0a080, #907060);
}

.card-text {
    flex: 1;
}

.card-label {
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 300;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #a18a6c;
    display: block;
    margin-bottom: 0.4rem;
}

.card-caption {
    font-size: 0.95rem;
    line-height: 1.65;
    color: #6b5d4f;
}

/* ============================================
   LANDING 5 — THE ROOFTOP
   ============================================ */

.landing-rooftop {
    background: linear-gradient(180deg, #f5ede0 0%, #e8d5b8 40%, #d4a088 100%);
    position: relative;
    overflow: hidden;
}

.rooftop-inner {
    text-align: center;
    position: relative;
    z-index: 2;
}

.rooftop-title-group {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.rooftop-tagline {
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 300;
    font-size: 1rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #5a4730;
    margin-bottom: 2rem;
}

.rooftop-korean {
    font-family: 'Poiret One', cursive;
    font-size: clamp(3rem, 8vw, 6rem);
    color: #5a4730;
    opacity: 0.2;
    letter-spacing: 0.15em;
    margin-top: 2rem;
}

#rooftop-bubble-release {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

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

@media (max-width: 800px) {
    .landing-content {
        padding: 3rem 1.5rem;
    }

    .foyer-title-group,
    .rooftop-title-group {
        gap: 0.8rem;
    }

    .fan-motif {
        width: 50px;
        height: 50px;
    }

    .fan-small {
        width: 30px;
        height: 30px;
    }

    .faux-photo {
        height: 160px;
    }

    .card-body {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .card-photo-frame {
        width: 100%;
        max-width: 200px;
        height: 120px;
    }
}

@media (max-width: 480px) {
    .foyer-title-group {
        flex-direction: column;
        align-items: center;
    }

    .fan-motif.fan-left,
    .fan-motif.fan-right {
        display: none;
    }

    .vintage-frame {
        max-width: 100%;
    }

    .frame-tilt-left,
    .frame-tilt-right {
        transform: rotate(0);
    }
}