/* gabs.ai -- Art Deco Value Palace */

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

:root {
    --deep-onyx: #0D0D0D;
    --midnight-sapphire: #0F1B3D;
    --deco-gold: #C9A84C;
    --pale-champagne: #E8D5B5;
    --tarnished-silver: #8A8E94;
    --vermillion-flash: #C43C2D;
    --smoked-glass: #1A1A2E;
    --burnished-brass: #9B7E3C;
}

html {
    scroll-behavior: smooth;
    scroll-snap-type: y proximity;
}

body {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 400;
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    line-height: 1.75;
    color: var(--pale-champagne);
    background-color: var(--deep-onyx);
    overflow-x: hidden;
}

/* ===================== NOISE OVERLAY ===================== */

.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100;
    opacity: 0.03;
}

/* ===================== SNAP SECTIONS ===================== */

.snap-section {
    min-height: 100vh;
    scroll-snap-align: start;
    position: relative;
    overflow: hidden;
}

/* ===================== SECTION 1: VAULT DOOR (HERO) ===================== */

#vault-door {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--deep-onyx);
}

.sunburst-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.sunburst {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.sunburst.visible {
    opacity: 1;
}

.sunburst line {
    stroke: var(--deco-gold);
    stroke-width: 0.5;
    stroke-dasharray: 400;
    stroke-dashoffset: 400;
    transition: stroke-dashoffset 2s ease-out;
}

.sunburst.drawn line {
    stroke-dashoffset: 0;
}

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

.hero-korean {
    font-family: 'Noto Serif KR', serif;
    font-weight: 700;
    font-size: clamp(8rem, 20vw, 16rem);
    color: var(--deco-gold);
    text-shadow: 0 0 60px rgba(201, 168, 76, 0.3), inset 0 2px 4px rgba(0,0,0,0.5);
    line-height: 1;
    letter-spacing: 0;
}

.hero-latin {
    font-family: 'Poiret One', sans-serif;
    font-weight: 400;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    letter-spacing: 0.15em;
    color: var(--pale-champagne);
    margin-top: 16px;
    opacity: 0;
    transition: opacity 1s ease 2.5s;
}

.hero-latin.visible {
    opacity: 1;
}

/* ===================== SECTION 2: EXCHANGE FLOOR ===================== */

#exchange-floor {
    min-height: 150vh;
    background: linear-gradient(180deg, var(--deep-onyx) 0%, var(--midnight-sapphire) 100%);
    position: relative;
    padding: 120px 40px 80px;
}

.diagonal-top::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    height: 120px;
    background: var(--deep-onyx);
    clip-path: polygon(0 0, 100% 0, 100% 30%, 0 100%);
    z-index: 2;
}

.chevron-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        repeating-linear-gradient(60deg, transparent, transparent 40px, rgba(201, 168, 76, 0.04) 40px, rgba(201, 168, 76, 0.04) 41px),
        repeating-linear-gradient(-60deg, transparent, transparent 40px, rgba(201, 168, 76, 0.04) 40px, rgba(201, 168, 76, 0.04) 41px);
    pointer-events: none;
    z-index: 0;
}

.exchange-inner {
    display: flex;
    gap: 40px;
    max-width: 1100px;
    margin: 80px auto 0;
    position: relative;
    z-index: 3;
    justify-content: center;
}

.value-pillar {
    flex: 1;
    max-width: 320px;
    background: var(--smoked-glass);
    border: 1px solid var(--burnished-brass);
    padding: 40px 28px;
    text-align: center;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-pillar:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(201, 168, 76, 0.2);
}

.pillar-cap {
    width: 60%;
    margin: 0 auto 24px;
    height: 12px;
    background: var(--burnished-brass);
    clip-path: polygon(10% 100%, 0 0, 100% 0, 90% 100%);
}

.pillar-base {
    width: 60%;
    margin: 24px auto 0;
    height: 12px;
    background: var(--burnished-brass);
    clip-path: polygon(0 100%, 10% 0, 90% 0, 100% 100%);
}

.pillar-title {
    font-family: 'Poiret One', sans-serif;
    font-weight: 400;
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--deco-gold);
    letter-spacing: 0;
    margin-bottom: 8px;
}

.pillar-title .kr {
    font-family: 'Noto Serif KR', serif;
    font-weight: 500;
}

.pillar-subtitle {
    font-family: 'DM Mono', monospace;
    font-weight: 300;
    font-size: 0.85rem;
    color: var(--tarnished-silver);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.pillar-body {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: clamp(0.95rem, 1.3vw, 1.1rem);
    color: var(--pale-champagne);
    line-height: 1.75;
}

/* ===================== SECTION 3: APPRAISAL CHAMBER ===================== */

#appraisal-chamber {
    background: var(--midnight-sapphire);
    padding: 100px 40px;
}

.section-title {
    font-family: 'Poiret One', sans-serif;
    font-weight: 400;
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--deco-gold);
    text-align: center;
    letter-spacing: 0.15em;
    margin-bottom: 60px;
}

.appraisal-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.appraisal-panel {
    background: var(--smoked-glass);
    border: 1px solid var(--burnished-brass);
    padding: 32px 24px;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.appraisal-panel:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(201, 168, 76, 0.2);
}

.panel-ornament {
    width: 24px;
    height: 24px;
    border: 1px solid var(--deco-gold);
    transform: rotate(45deg);
    margin: 0 auto 20px;
}

.appraisal-panel h3 {
    font-family: 'Poiret One', sans-serif;
    font-weight: 400;
    font-size: 1.3rem;
    color: var(--deco-gold);
    letter-spacing: 0.1em;
    margin-bottom: 12px;
    text-align: center;
}

.appraisal-panel p {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--pale-champagne);
}

/* ===================== SECTION 4: TICKER RIBBON ===================== */

#ticker-ribbon {
    min-height: 50vh;
    background: var(--deep-onyx);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-top: 1px solid var(--burnished-brass);
    border-bottom: 1px solid var(--burnished-brass);
}

.ticker-track {
    width: 100%;
    overflow: hidden;
    display: flex;
    padding: 40px 0;
}

.ticker-content {
    display: flex;
    gap: 60px;
    animation: tickerScroll 30s linear infinite;
    flex-shrink: 0;
    padding-right: 60px;
}

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

@media (prefers-reduced-motion: reduce) {
    .ticker-content {
        animation-play-state: paused;
    }
}

.ticker-gold {
    font-family: 'Noto Serif KR', serif;
    font-weight: 500;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    color: var(--deco-gold);
    white-space: nowrap;
}

.ticker-silver {
    font-family: 'DM Mono', monospace;
    font-weight: 400;
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: var(--tarnished-silver);
    letter-spacing: 0.08em;
    white-space: nowrap;
    display: flex;
    align-items: center;
}

.rosette-divider {
    margin-top: 40px;
    opacity: 0.6;
}

/* ===================== SECTION 5: OBSERVATORY ===================== */

#observatory {
    min-height: 100vh;
    background: linear-gradient(180deg, var(--deep-onyx) 0%, #0A1628 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

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

.deco-star {
    position: absolute;
    width: 16px;
    height: 16px;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    background: var(--deco-gold);
    opacity: 0.3;
    animation: starPulse 4s ease-in-out infinite alternate;
}

.deco-star.sm {
    width: 8px;
    height: 8px;
    opacity: 0.2;
}

.deco-star:nth-child(odd) {
    animation-delay: -2s;
}

@keyframes starPulse {
    0% { opacity: 0.15; }
    100% { opacity: 0.4; }
}

.observatory-content {
    text-align: center;
    position: relative;
    z-index: 2;
    max-width: 600px;
    padding: 40px;
}

.mini-sunburst {
    margin-bottom: 40px;
    opacity: 0.6;
}

.observatory-text {
    font-family: 'Noto Serif KR', serif;
    font-weight: 500;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    color: var(--deco-gold);
    line-height: 1.6;
    margin-bottom: 20px;
}

.observatory-translation {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    font-style: italic;
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    color: var(--tarnished-silver);
}

/* ===================== FADE REVEAL ===================== */

.fade-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

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

@media (max-width: 900px) {
    .exchange-inner {
        flex-direction: column;
        align-items: center;
    }

    .value-pillar {
        max-width: 400px;
        width: 100%;
    }

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

@media (max-width: 600px) {
    .appraisal-grid {
        grid-template-columns: 1fr;
    }

    #exchange-floor {
        padding: 120px 20px 60px;
    }

    #appraisal-chamber {
        padding: 80px 20px;
    }

    .hero-korean {
        font-size: clamp(5rem, 18vw, 10rem);
    }
}
