/* ============================================
   tanso.center -- Watercolor Carbon Archive
   ============================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: #FFF8F2;
    color: #8A6040;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.8;
    overflow-x: hidden;
}

/* --- Typography --- */
h1, h2, h3, blockquote {
    font-family: 'DM Sans', sans-serif;
    color: #3A2010;
    font-weight: 700;
}

/* --- Sections --- */
.section {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

/* --- Watercolor Washes --- */
.watercolor-wash {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.watercolor-wash--hero {
    background:
        radial-gradient(ellipse at 35% 40%, rgba(200, 112, 64, 0.10), transparent 65%),
        radial-gradient(ellipse at 70% 60%, #F0D8C0 0%, transparent 55%);
}

.watercolor-wash--metrics {
    background:
        radial-gradient(ellipse at 20% 50%, rgba(200, 112, 64, 0.08), transparent 60%),
        radial-gradient(ellipse at 80% 30%, rgba(240, 216, 192, 0.12), transparent 50%);
}

.watercolor-wash--quote {
    background:
        radial-gradient(ellipse at 50% 45%, rgba(200, 112, 64, 0.07), transparent 60%),
        radial-gradient(ellipse at 25% 70%, rgba(240, 216, 192, 0.10), transparent 50%);
}

.watercolor-wash--data {
    background:
        radial-gradient(ellipse at 30% 55%, rgba(200, 112, 64, 0.09), transparent 55%),
        radial-gradient(ellipse at 75% 40%, rgba(240, 216, 192, 0.14), transparent 50%);
}

.watercolor-wash--closing {
    background:
        radial-gradient(ellipse at 50% 50%, rgba(200, 112, 64, 0.06), transparent 70%),
        radial-gradient(ellipse at 60% 80%, rgba(240, 216, 192, 0.08), transparent 50%);
}

/* --- Hero --- */
.section--hero {
    align-items: center;
    justify-content: center;
    padding: 0 5vw;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-title {
    font-family: 'DM Sans', sans-serif;
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    color: #3A2010;
    letter-spacing: -0.02em;
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1.2s ease-out 0.3s forwards;
}

/* --- Futuristic Lines --- */
.futuristic-line {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #C87040, transparent);
    margin: 2rem 0;
    opacity: 0;
    animation: lineReveal 1.8s ease-out 0.8s forwards;
}

.futuristic-line--offset {
    width: 70%;
    margin-left: 10vw;
    background: linear-gradient(90deg, transparent 5%, #C87040 30%, #C87040 70%, transparent 95%);
}

.futuristic-line--fade {
    background: linear-gradient(90deg, transparent, rgba(200, 112, 64, 0.4), transparent);
}

/* --- Content Blocks --- */
.content-block {
    position: relative;
    z-index: 1;
    max-width: 560px;
    padding: 2rem 0;
}

.content-block--left {
    margin-left: 10vw;
    margin-right: auto;
}

.content-block--center {
    margin: 0 auto;
    text-align: center;
}

/* --- Marble Card --- */
.marble-card {
    position: relative;
    padding: 2.5rem 3rem;
    margin-bottom: 2rem;
    border-radius: 2px;
    overflow: hidden;
    background-color: #E0D8D0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.6) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.4) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(224, 216, 208, 0.8) 0%, transparent 60%),
        radial-gradient(ellipse at 30% 80%, rgba(200, 200, 190, 0.5) 0%, transparent 45%),
        radial-gradient(ellipse at 70% 20%, rgba(245, 240, 235, 0.6) 0%, transparent 50%);
    background-blend-mode: soft-light;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.marble-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.marble-card--secondary {
    background-color: #E0D8D0;
    background-image:
        radial-gradient(circle at 60% 40%, rgba(255, 255, 255, 0.5) 0%, transparent 45%),
        radial-gradient(circle at 25% 65%, rgba(255, 255, 255, 0.3) 0%, transparent 40%),
        radial-gradient(ellipse at 75% 80%, rgba(210, 200, 195, 0.6) 0%, transparent 50%);
    background-blend-mode: soft-light;
}

.marble-card__label {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #8A6040;
    margin-bottom: 0.5rem;
}

.marble-card__metric {
    font-family: 'DM Sans', sans-serif;
    font-size: clamp(2rem, 5vw, 4.2rem);
    font-weight: 700;
    color: #C87040;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.marble-card__description {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #8A6040;
}

/* --- Pull Quote --- */
.section--quote {
    min-height: 80vh;
}

.pull-quote {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #C87040;
    line-height: 1.7;
    max-width: 480px;
    margin: 0 auto;
    padding: 0 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.pull-quote.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Data Stream --- */
.data-stream {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.data-stream__line {
    height: 1px;
    border-radius: 1px;
    opacity: 0;
    transition: opacity 1.2s ease-out, width 1.5s ease-out;
    width: 0;
}

.data-stream__line:nth-child(1) {
    background: linear-gradient(90deg, #C87040, transparent 80%);
    transition-delay: 0.2s;
}

.data-stream__line:nth-child(2) {
    background: linear-gradient(90deg, #C87040, transparent 60%);
    transition-delay: 0.5s;
}

.data-stream__line:nth-child(3) {
    background: linear-gradient(90deg, #C87040, transparent 40%);
    transition-delay: 0.8s;
}

.data-stream__line.visible {
    opacity: 1;
    width: 100%;
}

/* --- Marble Panel (Closing) --- */
.marble-panel {
    position: relative;
    padding: 4rem 3rem;
    border-radius: 2px;
    overflow: hidden;
    background-color: #E0D8D0;
    background-image:
        radial-gradient(circle at 40% 35%, rgba(255, 255, 255, 0.55) 0%, transparent 50%),
        radial-gradient(circle at 75% 60%, rgba(255, 255, 255, 0.35) 0%, transparent 45%),
        radial-gradient(ellipse at 50% 85%, rgba(200, 195, 188, 0.5) 0%, transparent 50%),
        radial-gradient(ellipse at 20% 70%, rgba(240, 235, 230, 0.4) 0%, transparent 40%);
    background-blend-mode: soft-light;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.marble-panel.visible {
    opacity: 1;
    transform: translateY(0);
}

.closing-title {
    font-family: 'DM Sans', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #3A2010;
    margin-bottom: 0.75rem;
}

.closing-subtitle {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 1rem;
    color: #8A6040;
    font-weight: 400;
}

/* --- Spacing (Ma negative space) --- */
.section--hero {
    padding-bottom: 8vh;
}

.section--metrics {
    padding-top: 15vh;
    padding-bottom: 15vh;
    min-height: 120vh;
}

.section--quote {
    padding-top: 15vh;
    padding-bottom: 15vh;
}

.section--data {
    padding-top: 15vh;
    padding-bottom: 20vh;
    min-height: 100vh;
}

.section--closing {
    padding-top: 15vh;
    padding-bottom: 20vh;
    min-height: 80vh;
}

/* --- Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes lineReveal {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* --- Fade-in elements (triggered by IntersectionObserver) --- */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* --- Responsive --- */
@media (max-width: 768px) {
    .content-block--left {
        margin-left: 6vw;
        margin-right: 6vw;
    }

    .marble-card {
        padding: 2rem 1.5rem;
    }

    .marble-panel {
        padding: 3rem 1.5rem;
    }

    .pull-quote {
        font-size: 1.15rem;
        padding: 0 1.5rem;
    }

    .futuristic-line--offset {
        width: 85%;
        margin-left: 6vw;
    }

    .section--metrics {
        min-height: auto;
        padding-top: 10vh;
        padding-bottom: 10vh;
    }
}

@media (max-width: 480px) {
    .content-block--left {
        margin-left: 4vw;
        margin-right: 4vw;
    }

    .hero-title {
        font-size: clamp(2rem, 10vw, 3.5rem);
    }

    .marble-card__metric {
        font-size: clamp(1.8rem, 8vw, 3rem);
    }

    .closing-title {
        font-size: 1.5rem;
    }
}
