/* tanso.group - Bauhaus industrial collective */
/* Palette: #1A1A2E #2D2D2D #6C757D #E0E0E0 #FAFAFA #E63946 #FFD166 #118AB2 */

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

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

body {
    font-family: 'Inter', sans-serif;
    background-color: #FAFAFA;
    color: #2D2D2D;
    overflow-x: hidden;
    line-height: 1.6;
}

/* === Typography === */
.manifesto-headline {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(3.5rem, 10vw, 8rem);
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: #FAFAFA;
    line-height: 0.95;
}

.manifesto-headline .dot {
    color: #E63946;
}

.tagline {
    font-family: 'Work Sans', sans-serif;
    font-weight: 300;
    font-size: clamp(1rem, 2vw, 1.4rem);
    color: #E0E0E0;
    margin-top: 1.5rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.section-heading {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: clamp(1.5rem, 2.5vw, 2.2rem);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #1A1A2E;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

.section-heading::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: #E63946;
}

.heading-light {
    color: #FAFAFA;
}

.heading-light::after {
    background: #FFD166;
}

/* === Sections === */
.section-full {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.section-inner {
    max-width: 1100px;
    width: 100%;
    padding: 4rem 2rem;
    margin: 0 auto;
}

.center-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* === Declaration (Split Screen) === */
#declaration {
    background: #1A1A2E;
}

.split-left {
    position: absolute;
    left: 0;
    top: 0;
    width: 61.8%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    padding: 2rem;
}

.split-left-content {
    max-width: 600px;
}

.bauhaus-shapes-inline {
    margin-top: 2rem;
    opacity: 0.7;
}

.split-right {
    position: absolute;
    right: 0;
    top: 0;
    width: 38.2%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    background: #2D2D2D;
}

.molecule-svg {
    width: 80%;
    max-width: 350px;
}

.bond {
    stroke-dasharray: 300;
    stroke-dashoffset: 300;
    transition: stroke-dashoffset 0.6s ease;
}

.bond.drawn {
    stroke-dashoffset: 0;
}

.atom {
    opacity: 0;
    transition: opacity 0.4s ease;
}

.atom.visible {
    opacity: 1;
}

.diagonal-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3;
}

.diagonal-divider::after {
    content: '';
    position: absolute;
    top: 0;
    left: 61.8%;
    width: 4px;
    height: 100%;
    background: #6C757D;
    transform: skewX(-15deg);
    transform-origin: top;
}

/* === Diagonal Separators === */
.diagonal-separator {
    height: 80px;
    background: #1A1A2E;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 40%);
    position: relative;
    z-index: 5;
}

.diagonal-reverse {
    background: #FAFAFA;
    clip-path: polygon(0 0, 100% 60%, 100% 100%, 0 100%);
}

/* === Principles Grid === */
.section-light {
    background: #FAFAFA;
}

.section-dark {
    background: #1A1A2E;
}

.principles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.principle-card {
    padding: 2rem 1.5rem;
    border: 1px solid #E0E0E0;
    transition: transform 0.3s ease, border-color 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.3s ease;
}

.principle-card.in-view {
    opacity: 1;
    transform: translateY(0);
}

.principle-card:hover {
    border-color: #E63946;
    transform: translateY(-4px);
}

.principle-icon {
    margin-bottom: 1.5rem;
}

.principle-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #1A1A2E;
    margin-bottom: 0.75rem;
}

.principle-text {
    font-family: 'Work Sans', sans-serif;
    font-weight: 300;
    font-size: 0.95rem;
    color: #6C757D;
    line-height: 1.7;
}

/* === Bento Grid === */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 1.5rem;
}

.bento-item {
    border: 1px solid #6C757D;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.bento-item.in-view {
    opacity: 1;
    transform: scale(1);
}

.bento-large {
    grid-column: span 2;
    grid-row: span 2;
}

.bento-label {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 1.1rem;
    color: #FFD166;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: block;
    margin-bottom: 0.75rem;
}

.bento-desc {
    font-family: 'Work Sans', sans-serif;
    font-weight: 300;
    font-size: 0.9rem;
    color: #E0E0E0;
    line-height: 1.7;
}

.bento-graphic {
    margin-top: 2rem;
    width: 100%;
    max-width: 200px;
}

/* === Carbon Counter === */
.counter-block {
    margin: 2rem 0;
}

.counter-value {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(3rem, 8vw, 6rem);
    color: #E63946;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.counter-unit {
    font-family: 'Work Sans', sans-serif;
    font-weight: 300;
    font-size: 1rem;
    color: #6C757D;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.action-text {
    font-family: 'Work Sans', sans-serif;
    font-weight: 300;
    font-size: 1rem;
    color: #2D2D2D;
    max-width: 600px;
    line-height: 1.8;
    margin-top: 2rem;
}

.bauhaus-footer-shapes {
    margin-top: 3rem;
    opacity: 0.5;
}

/* === Colophon === */
#colophon {
    background: #2D2D2D;
    padding: 2rem;
    text-align: center;
}

.colophon-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.colophon-domain {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: #FAFAFA;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.colophon-sep {
    color: #6C757D;
}

.colophon-note {
    font-family: 'Work Sans', sans-serif;
    font-weight: 300;
    font-size: 0.85rem;
    color: #E0E0E0;
}

/* === Responsive === */
@media (max-width: 1024px) {
    .principles-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bento-large {
        grid-column: span 2;
        grid-row: span 1;
    }
}

@media (max-width: 768px) {
    .split-left {
        position: relative;
        width: 100%;
        min-height: 60vh;
    }

    .split-right {
        position: relative;
        width: 100%;
        min-height: 40vh;
    }

    #declaration {
        flex-direction: column;
    }

    .diagonal-divider::after {
        display: none;
    }

    .principles-grid {
        grid-template-columns: 1fr;
    }

    .bento-grid {
        grid-template-columns: 1fr;
    }

    .bento-large {
        grid-column: span 1;
    }
}

@media (max-width: 480px) {
    .section-inner {
        padding: 3rem 1rem;
    }
}
