/* ppzz.ee - Avant-garde Zen Minimalism */
/* Ocean-deep palette: abyss #020c18, deep water #041a30, ocean blue #063a60, teal current #0077aa, surface shimmer #00a8d0, pale sky #e8f4f8, white #f8fdff, silver gray #a0b4c4 */

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: #020c18;
    color: #e8f4f8;
    font-family: "Cormorant Garamond", Georgia, serif;
    overflow-x: hidden;
    cursor: crosshair;
}

/* Ripple Container */
#ripple-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    overflow: hidden;
}

.ripple {
    position: absolute;
    border: 1px solid rgba(0, 168, 208, 0.4);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    animation: rippleExpand 2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    pointer-events: none;
}

@keyframes rippleExpand {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0.6;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0;
    }
}

/* Depth Layers - Parallax */
.depth-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

#depth-layer-1 {
    background: radial-gradient(ellipse at 50% 50%, rgba(6, 58, 96, 0.15) 0%, transparent 60%);
    opacity: 0.5;
}

#depth-layer-2 {
    background: radial-gradient(ellipse at 30% 70%, rgba(0, 119, 170, 0.1) 0%, transparent 50%);
    opacity: 0.3;
}

#depth-layer-3 {
    background: radial-gradient(ellipse at 70% 30%, rgba(0, 168, 208, 0.05) 0%, transparent 40%);
    opacity: 0.2;
}

/* Ma Sections - 70%+ negative space */
.ma-section {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20vh 2rem;
}

.ma-content {
    max-width: 500px;
    width: 100%;
    text-align: center;
}

/* Hero */
.hero-circle {
    width: 280px;
    height: 280px;
    margin: 0 auto 3rem;
    display: block;
    animation: heroRotate 60s linear infinite;
}

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

.hero-title {
    font-family: "Space Mono", monospace;
    font-size: 1.2rem;
    font-weight: 400;
    letter-spacing: 0.5em;
    color: #a0b4c4;
    text-transform: lowercase;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInSlow 3s 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes fadeInSlow {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, #0077aa, transparent);
    margin: 0 auto;
    opacity: 0;
    animation: fadeInSlow 3s 1.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* Void Text */
.void-text {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.1rem;
    font-weight: 300;
    font-style: italic;
    color: #a0b4c4;
    letter-spacing: 0.3em;
    opacity: 0;
    transition: opacity 1.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.void-text.visible {
    opacity: 0.5;
}

/* Geometry SVG */
.geometry-svg {
    width: 100%;
    max-width: 500px;
    height: auto;
    opacity: 0;
    transition: opacity 2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.geometry-svg.visible {
    opacity: 1;
}

/* Section Headings */
.section-heading {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.8rem;
    font-weight: 300;
    color: #e8f4f8;
    letter-spacing: 0.2em;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.5s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.section-heading.visible {
    opacity: 0.8;
    transform: translateY(0);
}

/* Section Text */
.section-text {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.1rem;
    font-weight: 300;
    line-height: 2;
    color: #a0b4c4;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 2s 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), transform 2s 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.section-text.visible {
    opacity: 0.7;
    transform: translateY(0);
}

.mono-text {
    font-family: "Space Mono", monospace;
    font-size: 0.85rem;
    letter-spacing: 0.3em;
}

/* Float Circle */
.float-circle {
    width: 160px;
    height: 160px;
    display: block;
    margin: 0 auto;
    opacity: 0;
    transition: opacity 2s cubic-bezier(0.2, 0.8, 0.2, 1);
    animation: floatSlow 8s ease-in-out infinite;
}

.float-circle.visible {
    opacity: 1;
}

@keyframes floatSlow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* Philosophy - Ma character */
#philosophy .section-heading {
    font-size: 4rem;
    font-weight: 300;
    color: #0077aa;
    opacity: 0;
    transition: opacity 3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

#philosophy .section-heading.visible {
    opacity: 0.6;
}

/* Layer Stack */
.layer-stack {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto;
}

.layer-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(0, 119, 170, 0.2);
    border-radius: 2px;
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.layer-card-1 {
    background: rgba(6, 58, 96, 0.1);
    opacity: 0;
}

.layer-card-2 {
    background: rgba(0, 119, 170, 0.08);
    opacity: 0;
}

.layer-card-3 {
    background: rgba(0, 168, 208, 0.05);
    opacity: 0;
}

.layer-card-1.visible {
    opacity: 0.6;
    transform: translateY(-20px) rotate(-2deg);
}

.layer-card-2.visible {
    opacity: 0.4;
    transform: translateY(-10px) rotate(1deg);
}

.layer-card-3.visible {
    opacity: 0.2;
    transform: translateY(0px) rotate(-0.5deg);
}

/* Contact Point */
.contact-point {
    width: 8px;
    height: 8px;
    background: #00a8d0;
    border-radius: 50%;
    margin: 3rem auto 0;
    opacity: 0;
    transition: opacity 2s cubic-bezier(0.2, 0.8, 0.2, 1);
    cursor: pointer;
    pointer-events: all;
    position: relative;
}

.contact-point.visible {
    opacity: 0.6;
    animation: contactPulse 4s ease-in-out infinite;
}

@keyframes contactPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0, 168, 208, 0.3); }
    50% { box-shadow: 0 0 0 20px rgba(0, 168, 208, 0); }
}

/* End Line */
.end-line {
    width: 2px;
    height: 200px;
    display: block;
    margin: 0 auto;
    opacity: 0;
    transition: opacity 2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.end-line.visible {
    opacity: 1;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 2px;
}

::-webkit-scrollbar-track {
    background: #020c18;
}

::-webkit-scrollbar-thumb {
    background: #063a60;
}

/* Selection */
::selection {
    background: rgba(0, 119, 170, 0.3);
    color: #f8fdff;
}

/* Responsive */
@media (max-width: 600px) {
    .hero-circle {
        width: 200px;
        height: 200px;
    }

    .hero-title {
        font-size: 1rem;
        letter-spacing: 0.3em;
    }

    .section-heading {
        font-size: 1.4rem;
    }

    #philosophy .section-heading {
        font-size: 3rem;
    }

    .ma-section {
        padding: 15vh 1.5rem;
    }
}
