/* politics.quest - Blobitecture Muted Design */

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

html {
    scroll-behavior: smooth;
}

body {
    background: #f0ece3;
    color: #3a3632;
    font-family: 'Nunito', sans-serif;
    font-weight: 400;
    font-size: 17px;
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
}

/* Dot Grid Underlay */
.dot-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    background-image: radial-gradient(circle, #e0dbd3 1.5px, transparent 1.5px);
    background-size: 40px 40px;
}

/* Single Column Layout */
.single-column {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Blob Base */
.blob {
    position: relative;
    padding: 60px 50px;
    margin-bottom: -50px;
    opacity: 0;
    transform: translateY(30px) scale(0.85);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.blob.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.blob-content {
    position: relative;
    z-index: 2;
    max-width: 38ch;
    margin: 0 auto;
    text-align: center;
}

/* Blob Label */
.blob-label {
    font-family: 'Baloo 2', cursive;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6b6560;
    display: block;
    margin-bottom: 16px;
}

/* Hero Blob */
.blob-hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #8faaab;
    border-radius: 40% 60% 55% 45% / 50% 40% 60% 50%;
    animation: breathe 6s ease-in-out infinite;
    margin-bottom: -40px;
    overflow: hidden;
}

@keyframes breathe {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.blob-hero.visible {
    transform: none;
    animation: breathe 6s ease-in-out infinite;
}

.duotone-cityscape {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #4a6670 0%, #8faaab 40%, #a3b5c7 70%, #4a6670 100%);
    opacity: 0;
    transition: opacity 1s ease 0.5s;
    filter: grayscale(100%) sepia(30%) hue-rotate(160deg) saturate(60%);
    z-index: 0;
}

.blob-hero.visible .duotone-cityscape {
    opacity: 0.25;
}

.title-glitch {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: clamp(3rem, 8vw, 7rem);
    letter-spacing: -0.02em;
    color: #3a3632;
    position: relative;
    overflow: hidden;
}

.title-glitch .char {
    display: inline-block;
    opacity: 0;
    transform: translateX(3px);
    transition: opacity 0.1s ease, transform 0.15s ease;
}

.title-glitch .char.revealed {
    opacity: 1;
    transform: translateX(0);
}

.hero-subtitle {
    font-family: 'Nunito', sans-serif;
    font-weight: 400;
    font-size: 1.1rem;
    color: #6b6560;
    margin-top: 12px;
    opacity: 0;
    transition: opacity 0.8s ease 2s;
}

.blob-hero.visible .hero-subtitle {
    opacity: 1;
}

/* City Silhouette */
.city-silhouette {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1;
    pointer-events: none;
}

.city-svg {
    width: 100%;
    height: auto;
    display: block;
}

.building {
    transition: transform 0.1s linear;
}

/* Tendril SVGs */
.tendril {
    display: block;
    width: 60px;
    height: 120px;
    margin: -20px auto;
    position: relative;
    z-index: 1;
}

.tendril-path {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    transition: stroke-dashoffset 1.2s ease;
}

.tendril.drawn .tendril-path {
    stroke-dashoffset: 0;
}

/* Quest Blobs */
.blob-quest {
    padding: 80px 50px;
}

.blob-quest-1 {
    background: #c4a882;
    border-radius: 55% 45% 50% 50% / 45% 55% 45% 55%;
    margin-left: 5%;
}

.blob-quest-2 {
    background: #a3b5c7;
    border-radius: 45% 55% 60% 40% / 55% 45% 50% 50%;
    margin-right: 5%;
}

.blob-quest-3 {
    background: #c9a9a6;
    border-radius: 50% 50% 45% 55% / 40% 60% 45% 55%;
    margin-left: 5%;
}

.blob-quest-4 {
    background: #b5b89c;
    border-radius: 60% 40% 50% 50% / 50% 50% 55% 45%;
    margin-right: 5%;
}

.blob-quest-5 {
    background: #8faaab;
    border-radius: 45% 55% 55% 45% / 55% 45% 40% 60%;
    margin-left: 5%;
}

.quest-heading {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: clamp(1.8rem, 4vw, 3.5rem);
    letter-spacing: -0.02em;
    color: #3a3632;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.6s ease 0.15s, transform 0.6s ease 0.15s;
}

.blob-quest.visible .quest-heading {
    opacity: 1;
    transform: translateY(0);
}

.quest-text {
    font-family: 'Nunito', sans-serif;
    font-weight: 400;
    font-size: 17px;
    line-height: 1.7;
    color: #3a3632;
    max-width: 38ch;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.6s ease 0.3s, transform 0.6s ease 0.3s;
}

.blob-quest.visible .quest-text {
    opacity: 1;
    transform: translateY(0);
}

.blob-quest.visible .blob-label {
    opacity: 1;
}

.blob-quest .blob-label {
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* Footer Blob */
.blob-footer {
    background: #e0dbd3;
    border-radius: 60% 40% 50% 50% / 30% 30% 40% 40%;
    padding: 80px 50px;
    margin-top: 10px;
    margin-bottom: 0;
    text-align: center;
}

.footer-domain {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: clamp(1.2rem, 3vw, 2rem);
    color: #6b6560;
    display: block;
    animation: pulse-footer 3s ease-in-out infinite;
}

@keyframes pulse-footer {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

.footer-text {
    font-family: 'Nunito', sans-serif;
    font-weight: 400;
    font-size: 15px;
    color: #9b9590;
    margin-top: 10px;
}

/* Glitch Effect */
@keyframes glitch-shift {
    0% { transform: translate(0, 0); opacity: 1; }
    25% { transform: translate(-3px, 0); opacity: 0.5; }
    50% { transform: translate(3px, 0); opacity: 0.5; }
    75% { transform: translate(-1px, 0); opacity: 0.8; }
    100% { transform: translate(0, 0); opacity: 1; }
}

.blob.glitching {
    animation: glitch-shift 0.2s ease-in-out;
}

.blob.glitching::before {
    content: '';
    position: absolute;
    top: 0;
    left: -3px;
    width: 100%;
    height: 100%;
    background: inherit;
    border-radius: inherit;
    opacity: 0.3;
    z-index: 0;
    pointer-events: none;
}

.blob.glitching::after {
    content: '';
    position: absolute;
    top: 0;
    left: 3px;
    width: 100%;
    height: 100%;
    background: #4a6670;
    border-radius: inherit;
    opacity: 0.15;
    z-index: 0;
    pointer-events: none;
}

/* Hover blob effects on links */
a {
    color: #4a6670;
    text-decoration: none;
    padding: 2px 6px;
    border-radius: 30% 70% 50% 50% / 50% 50% 70% 30%;
    transition: background 0.3s ease, border-radius 0.3s ease, padding 0.3s ease;
}

a:hover {
    background: rgba(143, 170, 171, 0.3);
    padding: 4px 10px;
    border-radius: 40% 60% 55% 45% / 50% 40% 60% 50%;
}

a:active {
    transform: scaleX(1.05) scaleY(0.95);
}

/* Responsive */
@media (max-width: 600px) {
    .blob {
        padding: 40px 25px;
    }

    .blob-quest {
        padding: 60px 30px;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .blob-content {
        max-width: 100%;
    }

    .tendril {
        width: 40px;
        height: 80px;
    }
}
