/* ========================================
   gabs.feedback — Palazzo Spray-Painted by Gods
   ======================================== */

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

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

body {
    background: #1a0f2e;
    color: #f5f0eb;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- Typography --- */
.proclamation {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 900;
    font-size: clamp(4rem, 10vw, 9rem);
    line-height: 0.95;
    letter-spacing: -0.03em;
    color: #f5f0eb;
    position: relative;
    z-index: 3;
}

.inscription {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 600;
    font-size: clamp(1rem, 2vw, 1.4rem);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #8a8279;
    position: relative;
    z-index: 3;
}

.body-text {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 400;
    font-size: clamp(1.1rem, 1.8vw, 1.5rem);
    line-height: 1.7;
    color: #f0ece4;
}

.graffiti-tag {
    font-family: 'Permanent Marker', cursive;
    font-size: clamp(3rem, 8vw, 7rem);
    color: #50c878;
    opacity: 0.15;
    position: absolute;
    z-index: 2;
    transform: rotate(-12deg);
    pointer-events: none;
    user-select: none;
}

#graffiti-tag-1 {
    bottom: 10%;
    right: 5%;
    color: #7b2d8e;
    opacity: 0.2;
}

#graffiti-tag-2 {
    top: 20%;
    left: 5%;
    color: #9b1b30;
    opacity: 0.18;
    transform: rotate(8deg);
}

.dot {
    color: #7b2d8e;
}

/* --- Chambers (Sections) --- */
.chamber {
    position: relative;
    min-height: 100vh;
    width: 100vw;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chamber-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 4rem 2rem;
    max-width: 1200px;
    width: 100%;
}

/* --- Marble Textures --- */
.marble-surface {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.light-marble {
    background-color: #f0ece4;
    background-image:
        linear-gradient(135deg, rgba(138, 130, 121, 0.08) 0%, transparent 50%, rgba(123, 45, 142, 0.04) 100%),
        radial-gradient(ellipse at 20% 50%, rgba(138, 130, 121, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(123, 45, 142, 0.06) 0%, transparent 50%),
        linear-gradient(60deg, transparent 40%, rgba(138, 130, 121, 0.05) 45%, transparent 50%),
        linear-gradient(120deg, transparent 30%, rgba(155, 27, 48, 0.03) 35%, transparent 40%);
}

.light-marble ~ .chamber-content .proclamation {
    color: #1a0f2e;
}

.light-marble ~ .chamber-content .body-text {
    color: #2d1b4e;
}

.light-marble ~ .chamber-content .inscription {
    color: #8a8279;
}

.dark-marble {
    background-color: #1a0f2e;
    background-image:
        linear-gradient(135deg, rgba(45, 27, 78, 0.6) 0%, transparent 50%, rgba(123, 45, 142, 0.15) 100%),
        radial-gradient(ellipse at 30% 70%, rgba(123, 45, 142, 0.2) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 30%, rgba(45, 27, 78, 0.3) 0%, transparent 50%),
        linear-gradient(45deg, transparent 40%, rgba(80, 200, 120, 0.03) 45%, transparent 50%);
}

/* --- Graffiti Overlay --- */
.graffiti-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background-image:
        radial-gradient(circle at 15% 85%, rgba(80, 200, 120, 0.08) 0%, transparent 20%),
        radial-gradient(circle at 85% 15%, rgba(155, 27, 48, 0.06) 0%, transparent 15%),
        radial-gradient(circle at 50% 50%, rgba(123, 45, 142, 0.04) 0%, transparent 30%);
}

/* --- Drip Canvas --- */
.drip-canvas {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    width: 100%;
    height: 100%;
}

/* --- Scroll Indicator --- */
.scroll-indicator {
    margin-top: 3rem;
    animation: bobble 2s ease-in-out infinite;
}

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

.scroll-dot {
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0% { cy: 10; opacity: 1; }
    100% { cy: 30; opacity: 0; }
}

/* --- Vestibule (Chamber I) --- */
.vestibule .chamber-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

/* --- Gallery (Chamber II) --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.gallery-frame {
    border: 1px solid rgba(123, 45, 142, 0.3);
    padding: 1rem;
    position: relative;
    background: rgba(26, 15, 46, 0.5);
    backdrop-filter: blur(4px);
}

.gallery-frame::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 1px solid rgba(80, 200, 120, 0.1);
    pointer-events: none;
}

.generative-art {
    width: 100%;
    aspect-ratio: 1;
    background: #2d1b4e;
    position: relative;
    overflow: hidden;
}

.gallery-frame .inscription {
    margin-top: 0.8rem;
    font-size: 0.85rem;
}

/* --- Scriptorium (Chamber III) --- */
.text-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
    text-align: left;
}

/* --- Atrium (Chamber IV) --- */
.atrium-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 3rem;
}

.feature-card {
    padding: 2.5rem 2rem;
    border: 1px solid rgba(123, 45, 142, 0.25);
    position: relative;
    transition: border-color 0.4s ease, transform 0.4s ease;
}

.feature-card:hover {
    border-color: rgba(80, 200, 120, 0.5);
    transform: translateY(-4px);
}

.card-ornament {
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #7b2d8e, #c9a84c, #50c878);
    margin: 0 auto 1.5rem;
}

.feature-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 900;
    font-size: 1.8rem;
    color: #f5f0eb;
    margin-bottom: 1rem;
}

.feature-card .inscription {
    text-transform: none;
    letter-spacing: 0.02em;
    font-size: 1rem;
}

/* --- Crypt (Chamber V) --- */
.crypt .chamber-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.crypt-inscription {
    max-width: 600px;
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
}

.crypt-sigil {
    margin-top: 2rem;
    animation: sigilSpin 30s linear infinite;
}

@keyframes sigilSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* --- Intersection / Reveal Animations --- */
.chamber-content {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.chamber.visible .chamber-content {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .gallery-grid,
    .atrium-features {
        grid-template-columns: 1fr;
    }

    .text-columns {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .proclamation {
        font-size: clamp(2.5rem, 12vw, 5rem);
    }
}
