/* tanso.club - Street-style carbon collective */

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

:root {
    --club-wall: #f0eee8;
    --navy-steel: #2a3040;
    --metallic-silver: #8a8ea0;
    --street-coral: #e06050;
    --concrete-gray: #c0beb4;
    --navy-deep: #1a2030;
    --marble-vein: #5a6a8a;
    --metallic-teal: #4a8a8a;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--club-wall);
    color: var(--navy-steel);
    font-family: 'Barlow', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    overflow-x: hidden;
}

/* ---- Marquee Section ---- */
.marquee-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 60px 40px;
    position: relative;
    overflow: hidden;
}

.sticker-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.sticker {
    position: absolute;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    font-size: 10px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 6px 10px;
    border: 2px solid white;
    background: var(--navy-steel);
    color: white;
    display: inline-block;
    opacity: 0;
    animation: stickerIn 0.8s ease forwards;
}

.sticker:nth-child(1) { animation-delay: 0.6s; }
.sticker:nth-child(2) { animation-delay: 0.75s; }
.sticker:nth-child(3) { animation-delay: 0.5s; }
.sticker:nth-child(4) { animation-delay: 0.9s; }
.sticker:nth-child(5) { animation-delay: 0.65s; }
.sticker:nth-child(6) { animation-delay: 0.85s; }
.sticker:nth-child(7) { animation-delay: 0.7s; }

@keyframes stickerIn {
    from { opacity: 0; transform: scale(0.5) rotate(0deg); }
    to { opacity: 1; transform: scale(1); }
}

.sticker-circle {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.sticker-coral {
    background: var(--street-coral);
}

.sticker-teal {
    background: var(--metallic-teal);
}

.marquee-type {
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
}

.marquee-line {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(4rem, 12vw, 10rem);
    text-transform: uppercase;
    line-height: 0.9;
    display: block;
}

.line-filled {
    font-weight: 700;
    color: var(--navy-steel);
    opacity: 0;
    transform: translateY(-100%);
    animation: slamDown 0.3s ease-out forwards 0.1s;
}

.line-outline {
    font-weight: 200;
    color: transparent;
    -webkit-text-stroke: 2px var(--navy-steel);
    opacity: 0;
    animation: fadeInQuick 0.15s ease forwards 0.25s;
}

.line-accent {
    font-weight: 700;
    color: var(--street-coral);
    opacity: 0;
    transform: translateY(-100%);
    animation: slamDown 0.3s ease-out forwards 0.3s;
}

@keyframes slamDown {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInQuick {
    to { opacity: 1; }
}

/* ---- Timeline Container ---- */
.timeline-container {
    position: relative;
    padding: 60px 20px 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline-spine {
    position: absolute;
    left: 25%;
    top: 0;
    width: 3px;
    height: 100%;
    background: repeating-linear-gradient(
        to bottom,
        var(--navy-steel) 0px,
        var(--navy-steel) 72px,
        transparent 72px,
        transparent 73px,
        var(--metallic-silver) 73px,
        var(--metallic-silver) 81px,
        transparent 81px,
        transparent 82px
    );
    background-size: 3px 82px;
    transform-origin: top;
}

/* ---- Timeline Entry ---- */
.timeline-entry {
    position: relative;
    margin-bottom: 60px;
    display: flex;
    align-items: flex-start;
    padding-left: calc(25% - 8px);
}

.timeline-node {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid var(--navy-steel);
    background: var(--club-wall);
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.node-active {
    background: var(--street-coral);
}

.timeline-connector {
    width: 40px;
    height: 3px;
    background: var(--navy-steel);
    flex-shrink: 0;
    margin-top: 6px;
}

/* ---- Content Blocks ---- */
.content-block {
    position: relative;
    background: var(--club-wall);
    border: 2px solid var(--navy-steel);
    padding: 24px 28px 20px;
    max-width: 55vw;
    flex: 1;
    overflow: hidden;
}

.block-dark {
    background: var(--concrete-gray);
}

.block-member {
    border-style: dashed;
}

.pin {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--street-coral);
    border: 1px solid var(--navy-steel);
    box-shadow: 1px 1px 0 var(--navy-steel);
}

.pin::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 2px;
    height: 2px;
    border-radius: 50%;
    background: white;
}

.pin-teal {
    background: var(--metallic-teal);
}

.entry-date {
    display: block;
    font-family: 'Cousine', monospace;
    font-size: 12px;
    color: var(--marble-vein);
    margin-bottom: 8px;
    letter-spacing: 0.04em;
}

.content-block h2 {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    font-size: clamp(1.2rem, 2.5vw, 2rem);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--navy-steel);
    margin-bottom: 10px;
}

.content-block p {
    margin-bottom: 10px;
}

.meander-border {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: repeating-linear-gradient(
        90deg,
        var(--marble-vein) 0px,
        var(--marble-vein) 8px,
        transparent 8px,
        transparent 12px,
        var(--marble-vein) 12px,
        var(--marble-vein) 14px,
        transparent 14px,
        transparent 18px
    );
    opacity: 0.2;
}

/* ---- Data Viz Blocks ---- */
.dataviz-block {
    background: var(--navy-deep);
    padding: 24px 28px;
    max-width: 55vw;
    flex: 1;
}

.dataviz-block .entry-date {
    color: var(--metallic-silver);
}

.dataviz-block h3 {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--club-wall);
    margin-bottom: 14px;
}

.bar-chart, .line-graph {
    width: 100%;
    height: auto;
    display: block;
}

.chart-bar {
    transition: height 0.6s ease-out, y 0.6s ease-out;
}

.graph-line {
    stroke-dasharray: 400;
    stroke-dashoffset: 400;
    transition: stroke-dashoffset 1.5s ease;
}

/* ---- Slide-in animation ---- */
.slide-in {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.slide-in.visible {
    opacity: 1;
    transform: translateX(0);
}

/* preserve rotation for content blocks */
.content-block.slide-in.visible {
    /* rotation handled by inline style */
}

/* ---- Sticker Cluster ---- */
.sticker-cluster {
    display: flex;
    gap: 12px;
    justify-content: center;
    padding: 20px 0;
    margin-left: calc(25% + 50px);
}

.sticker-cluster .sticker {
    position: relative;
    opacity: 1;
    animation: none;
}

/* ---- Terminal Node ---- */
.timeline-terminal {
    display: flex;
    justify-content: center;
    padding-left: calc(25% - 40px);
    margin-top: 40px;
}

.terminal-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--navy-steel);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 36px;
    color: var(--street-coral);
}

/* ---- Membership Footer ---- */
.membership-footer {
    background: var(--navy-deep);
    color: var(--club-wall);
    padding: 60px 20px 40px;
    text-align: center;
    position: relative;
}

.membership-footer h2 {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 3rem);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.membership-footer p {
    font-size: 16px;
    color: var(--metallic-silver);
    max-width: 500px;
    margin: 0 auto 30px;
}

.footer-meander {
    width: 100%;
    height: 8px;
    background: repeating-linear-gradient(
        90deg,
        var(--marble-vein) 0px,
        var(--marble-vein) 8px,
        transparent 8px,
        transparent 12px,
        var(--marble-vein) 12px,
        var(--marble-vein) 14px,
        transparent 14px,
        transparent 18px
    );
    opacity: 0.3;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .marquee-section {
        padding: 40px 20px;
    }

    .timeline-entry {
        padding-left: 0;
        flex-direction: column;
        align-items: flex-start;
    }

    .timeline-spine {
        left: 10px;
    }

    .timeline-entry {
        padding-left: 30px;
    }

    .timeline-connector {
        width: 20px;
    }

    .content-block, .dataviz-block {
        max-width: 100%;
    }

    .sticker-cluster {
        margin-left: 30px;
    }

    .timeline-terminal {
        padding-left: 0;
        justify-content: center;
    }
}
