/* mores.quest - Surreal Pop-Art meets Wabi-Sabi Imperfection */
/* Colors: #FF006E, #00D9FF, #FFD60A, #0A0A0A, #F5F3F0, #A89B8E, #6B4C3A, #1A1A2E */

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

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

body {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: 0.02em;
    color: #0A0A0A;
    background-color: #F5F3F0;
    overflow-x: hidden;
    position: relative;
}

/* Aged paper texture overlay */
.texture-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    opacity: 0.05;
    background-image:
        radial-gradient(circle at 20% 30%, #A89B8E 1px, transparent 1px),
        radial-gradient(circle at 60% 70%, #6B4C3A 0.5px, transparent 0.5px),
        radial-gradient(circle at 80% 20%, #A89B8E 0.8px, transparent 0.8px),
        radial-gradient(circle at 35% 85%, #6B4C3A 0.6px, transparent 0.6px),
        radial-gradient(circle at 90% 50%, #A89B8E 1px, transparent 1px),
        radial-gradient(circle at 10% 60%, #6B4C3A 0.7px, transparent 0.7px);
    background-size: 200px 200px, 150px 150px, 180px 180px, 220px 220px, 170px 170px, 190px 190px;
}

/* Parallax background shapes */
.parallax-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.geo-shape {
    position: absolute;
    opacity: 0.15;
    transition: transform 0.1s linear;
}

.shape-circle-1 {
    width: 180px;
    height: 180px;
    top: 10%;
    left: 5%;
}

.shape-triangle-1 {
    width: 150px;
    height: 150px;
    top: 25%;
    right: 8%;
}

.shape-polygon-1 {
    width: 200px;
    height: 200px;
    top: 45%;
    left: 15%;
}

.shape-circle-2 {
    width: 120px;
    height: 120px;
    top: 60%;
    right: 20%;
}

.shape-triangle-2 {
    width: 160px;
    height: 160px;
    top: 75%;
    left: 60%;
}

.shape-broken-rect {
    width: 140px;
    height: 140px;
    top: 35%;
    right: 35%;
}

.shape-orbit-1 {
    width: 250px;
    height: 250px;
    top: 85%;
    left: 30%;
}

.shape-scale {
    width: 180px;
    height: 180px;
    top: 15%;
    right: 45%;
}

/* Crack lines */
.crack-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.crack-line {
    position: absolute;
}

.crack-1 {
    top: 0;
    left: 10%;
    width: 100px;
    height: 100%;
}

.crack-2 {
    top: 0;
    right: 5%;
    width: 100px;
    height: 100%;
}

.crack-3 {
    top: 40%;
    left: 0;
    width: 100%;
    height: 60px;
}

/* Navigation */
.nav-asymmetric {
    position: fixed;
    top: 2rem;
    right: 3rem;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.6rem;
}

.nav-link {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: lowercase;
    text-decoration: none;
    color: #6B4C3A;
    letter-spacing: 0.1em;
    padding: 0.25rem 0.5rem;
    border-right: 2px dashed transparent;
    transition: color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.nav-link:hover {
    color: #FF006E;
    border-right-color: #FF006E;
    transform: translateX(-4px);
}

/* HERO SECTION */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 4rem;
    overflow: hidden;
    z-index: 5;
}

.hero-question {
    position: absolute;
    top: 12%;
    left: 6%;
    max-width: 400px;
    z-index: 10;
}

.hero-question-text {
    font-family: 'Playfair Display', serif;
    font-weight: 500;
    font-style: italic;
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    color: #6B4C3A;
    line-height: 1.5;
    letter-spacing: 0.01em;
}

.hero-title-block {
    position: relative;
    z-index: 10;
    text-align: right;
}

.hero-title {
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 400;
    font-size: clamp(5rem, 15vw, 14rem);
    line-height: 0.9;
    letter-spacing: 0.15em;
    color: #FF006E;
    text-transform: uppercase;
}

.hero-subtitle {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-style: italic;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    color: #1A1A2E;
    display: block;
    text-align: right;
    margin-top: -0.5rem;
    letter-spacing: 0.05em;
}

.hero-geo-cyan {
    position: absolute;
    bottom: 10%;
    right: 15%;
    width: clamp(200px, 30vw, 400px);
    height: clamp(200px, 30vw, 400px);
    z-index: 5;
    opacity: 0.3;
}

/* INQUIRY SECTIONS */
.inquiry-section {
    position: relative;
    width: 100%;
    min-height: 80vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    z-index: 5;
    padding: 6rem 4rem;
}

.section-left .section-content {
    grid-column: 1;
    padding-right: 4rem;
}

.section-left .section-deco {
    grid-column: 2;
    display: flex;
    justify-content: center;
    align-items: center;
}

.section-right .section-deco {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.section-right .section-content {
    grid-column: 2;
    grid-row: 1;
    padding-left: 4rem;
}

.section-headline {
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 400;
    font-size: clamp(2rem, 4vw, 3.8rem);
    line-height: 1.1;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #0A0A0A;
    margin-bottom: 1.5rem;
}

.section-body {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: clamp(0.95rem, 1.2vw, 1.1rem);
    line-height: 1.7;
    color: #1A1A2E;
    margin-bottom: 1.5rem;
    max-width: 520px;
}

.section-quote {
    font-family: 'Playfair Display', serif;
    font-weight: 500;
    font-style: italic;
    font-size: clamp(0.95rem, 1.3vw, 1.15rem);
    color: #6B4C3A;
    border-left: 3px dashed #A89B8E;
    padding-left: 1rem;
    margin-top: 1rem;
    max-width: 420px;
}

.deco-shape {
    width: clamp(200px, 25vw, 350px);
    height: clamp(200px, 25vw, 350px);
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.deco-shape.visible {
    opacity: 0.4;
    transform: translateY(0);
}

/* OBSCURED (TEXTURE & IMPERFECTION) SECTION */
.obscured-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    overflow: hidden;
}

.obscured-content {
    position: relative;
    z-index: 10;
    max-width: 700px;
    padding: 4rem;
    text-align: center;
}

.obscured-headline {
    color: #1A1A2E;
}

.obscured-body {
    color: #1A1A2E;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.obscured-quote {
    border-left: none;
    text-align: center;
    padding-left: 0;
}

.obscured-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 15;
    pointer-events: none;
    background:
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 3px,
            rgba(168, 155, 142, 0.15) 3px,
            rgba(168, 155, 142, 0.15) 4px
        ),
        repeating-linear-gradient(
            -30deg,
            transparent,
            transparent 5px,
            rgba(107, 76, 58, 0.1) 5px,
            rgba(107, 76, 58, 0.1) 6px
        ),
        radial-gradient(circle at 30% 40%, rgba(168, 155, 142, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(107, 76, 58, 0.3) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(245, 243, 240, 0.6) 0%, transparent 70%);
    opacity: 1;
    transition: opacity 0.05s linear;
}

/* BURST (POP-ART) SECTION */
.burst-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    overflow: hidden;
    padding: 6rem 4rem;
}

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

.burst-shape {
    position: absolute;
    opacity: 0;
    transform: scale(0.5) rotate(0deg);
    transition: opacity 0.6s ease, transform 0.8s ease;
}

.burst-shape.visible {
    opacity: 1;
}

.burst-1 {
    width: clamp(120px, 18vw, 250px);
    top: 5%;
    left: 10%;
}

.burst-1.visible {
    transform: scale(1) rotate(-10deg);
}

.burst-2 {
    width: clamp(100px, 15vw, 200px);
    top: 15%;
    right: 5%;
}

.burst-2.visible {
    transform: scale(1) rotate(8deg);
}

.burst-3 {
    width: clamp(140px, 20vw, 280px);
    bottom: 10%;
    left: 5%;
}

.burst-3.visible {
    transform: scale(1) rotate(-5deg);
}

.burst-4 {
    width: clamp(80px, 12vw, 160px);
    top: 50%;
    right: 15%;
}

.burst-4.visible {
    transform: scale(1) rotate(15deg);
}

.burst-5 {
    width: clamp(180px, 22vw, 320px);
    bottom: 25%;
    right: 30%;
}

.burst-5.visible {
    transform: scale(1) rotate(-3deg);
}

.burst-6 {
    width: clamp(100px, 14vw, 180px);
    top: 30%;
    left: 35%;
}

.burst-6.visible {
    transform: scale(1) rotate(12deg);
}

.burst-content {
    position: relative;
    z-index: 10;
    max-width: 600px;
    text-align: left;
    padding-left: 8%;
}

.burst-headline {
    color: #0A0A0A;
    margin-bottom: 2rem;
}

.burst-body {
    color: #1A1A2E;
}

/* RESOLUTION SECTION */
.resolution-section {
    position: relative;
    width: 100%;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    padding: 6rem 4rem;
    background: linear-gradient(180deg, #F5F3F0 0%, rgba(245, 243, 240, 0.95) 60%, rgba(245, 243, 240, 0.8) 100%);
}

.resolution-content {
    text-align: center;
    max-width: 650px;
    position: relative;
    z-index: 10;
}

.resolution-headline {
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 400;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.1;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #0A0A0A;
    margin-bottom: 2rem;
}

.resolution-body {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: clamp(1rem, 1.3vw, 1.15rem);
    line-height: 1.7;
    color: #1A1A2E;
    margin-bottom: 3rem;
}

.resolution-domain {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-style: italic;
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    color: #FF006E;
    letter-spacing: 0.05em;
}

.resolution-shape {
    position: absolute;
    bottom: 10%;
    right: 10%;
    width: 120px;
    height: 120px;
    opacity: 0.25;
}

/* Fade-reveal animation */
.fade-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Typewriter effect for quotes */
.typewriter {
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid #6B4C3A;
    animation: typewriter-blink 0.8s step-end infinite;
    width: 0;
}

.typewriter.active {
    animation: typewriter-expand 3s steps(60, end) forwards, typewriter-blink 0.8s step-end infinite;
}

@keyframes typewriter-expand {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes typewriter-blink {
    50% { border-color: transparent; }
}

/* Crack line breathing animation */
@keyframes crack-breathe {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.5; }
}

.crack-line {
    animation: crack-breathe 6s ease-in-out infinite;
}

.crack-2 {
    animation-delay: 2s;
}

.crack-3 {
    animation-delay: 4s;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .inquiry-section {
        grid-template-columns: 1fr;
        padding: 4rem 2rem;
    }

    .section-left .section-content,
    .section-right .section-content {
        padding-left: 0;
        padding-right: 0;
        grid-column: 1;
        grid-row: auto;
    }

    .section-left .section-deco,
    .section-right .section-deco {
        grid-column: 1;
        grid-row: auto;
        margin-top: 2rem;
    }

    .hero-section {
        padding: 2rem;
    }

    .hero-question {
        top: 8%;
        left: 4%;
        max-width: 280px;
    }

    .nav-asymmetric {
        top: 1rem;
        right: 1.5rem;
    }

    .burst-content {
        padding-left: 2rem;
        padding-right: 2rem;
    }

    .resolution-section {
        padding: 4rem 2rem;
    }
}

@media (max-width: 600px) {
    .hero-title {
        font-size: clamp(3.5rem, 12vw, 6rem);
    }

    .nav-asymmetric {
        flex-direction: row;
        gap: 0.8rem;
        right: auto;
        left: 1rem;
        top: auto;
        bottom: 1.5rem;
    }

    .nav-link {
        font-size: 0.65rem;
        border-right: none;
        border-bottom: 2px dashed transparent;
    }

    .nav-link:hover {
        border-right-color: transparent;
        border-bottom-color: #FF006E;
        transform: translateY(-2px);
    }

    .obscured-content {
        padding: 2rem;
    }
}
