/* tanso.group - Zen Community Portal */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --warm-white: #F8F6F2;
    --deep-slate: #2A3040;
    --sage: #4A7868;
    --dusty-rose: #7A4858;
    --warm-sand: #C8A870;
    --soft-stone: #EFEDE8;
    --text-primary: #2A3040;
    --text-body: #3A4050;
    --text-mono: #7A8090;
}
body {
    background: var(--warm-white);
    color: var(--text-primary);
    font-family: 'Karla', sans-serif;
    font-size: 1.0625rem;
    line-height: 1.75;
    font-weight: 400;
    overflow-x: hidden;
}

/* Hero */
#hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.mesh-blob {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, var(--sage), transparent 60%),
                radial-gradient(circle at 70% 70%, var(--dusty-rose), transparent 60%);
    opacity: 0.3;
    filter: blur(60px);
    animation: blobScale 1.2s ease-out forwards, blobDrift 30s linear infinite;
    transform: scale(0);
    z-index: 0;
}
@keyframes blobScale {
    from { transform: scale(0); }
    to { transform: scale(1); }
}
@keyframes blobDrift {
    0% { transform: translateX(0); }
    50% { transform: translateX(30px); }
    100% { transform: translateX(0); }
}
.hero-title {
    font-family: 'Commissioner', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 500;
    color: var(--deep-slate);
    position: relative;
    z-index: 1;
    min-height: 1.2em;
}
.hero-title .cursor {
    display: inline-block;
    width: 2px;
    height: 0.9em;
    background: var(--sage);
    margin-left: 2px;
    animation: blink 0.8s step-end infinite;
    vertical-align: baseline;
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}
.hero-meta {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    color: var(--text-mono);
    margin-top: 1rem;
    opacity: 0;
    animation: fadeIn 0.6s ease 0.8s forwards;
    position: relative;
    z-index: 1;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Curve Dividers */
.curve-divider {
    display: block;
    width: 100%;
    height: 60px;
    overflow: visible;
}

/* Z-Pattern Sections */
.z-section {
    padding: clamp(5rem, 8vh, 10rem) 2rem;
}
.z-content {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 3rem;
    align-items: start;
}
.z-right .z-content {
    grid-template-columns: 2fr 3fr;
}
.z-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    color: var(--text-mono);
    display: block;
    margin-bottom: 0.75rem;
}
.z-title {
    font-family: 'Commissioner', sans-serif;
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}
.z-summary {
    font-size: 1.0625rem;
    color: var(--text-body);
    line-height: 1.75;
}
.z-detail {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.5s ease;
    opacity: 0;
}
.z-detail p {
    padding-top: 1rem;
    font-size: 1rem;
    color: var(--text-body);
    line-height: 1.75;
}
.z-disclosure.expanded .z-detail {
    max-height: 500px;
    opacity: 1;
}

/* Mesh Fields */
.mesh-field {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.25;
}
.mesh-sage {
    background: radial-gradient(circle at 40% 40%, var(--sage), transparent 70%);
}
.mesh-rose {
    background: radial-gradient(circle at 60% 40%, var(--dusty-rose), transparent 70%);
}
.mesh-blend {
    background: radial-gradient(circle at 30% 50%, var(--sage), transparent 50%),
                radial-gradient(circle at 70% 50%, var(--dusty-rose), transparent 50%);
}
.mesh-sage-light {
    background: radial-gradient(circle at 50% 50%, var(--sage), transparent 60%);
    opacity: 0.15;
}
.mesh-warm {
    background: radial-gradient(circle at 50% 50%, var(--warm-sand), transparent 60%);
    opacity: 0.3;
}

/* Section Animation */
.section {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.section.visible {
    opacity: 1;
    transform: translateX(0) !important;
}
.z-left.section {
    transform: translateX(-40px);
}
.z-right.section {
    transform: translateX(40px);
}

/* Footer */
#footer {
    text-align: center;
    padding: 3rem 2rem;
    border-top: 1px solid var(--soft-stone);
}
.footer-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--text-mono);
    letter-spacing: 0.04em;
}

/* Responsive */
@media (max-width: 768px) {
    .z-content,
    .z-right .z-content {
        grid-template-columns: 1fr;
    }
    .z-right .z-deco {
        order: -1;
    }
    .z-deco {
        max-width: 200px;
        margin: 0 auto;
    }
    .z-left.section {
        transform: translateY(20px);
    }
    .z-right.section {
        transform: translateY(20px);
    }
}
