/* tanso.bar - Cinematic Carbon Journey */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --parchment: #F5EDE0;
    --charcoal-black: #1A1510;
    --warm-amber: #D4A853;
    --burnt-sienna: #8B2500;
    --text-primary: #1A1A1A;
    --text-inverted: #E8E0D4;
    --faded-graphite: #C4B79A;
    --ember-yellow: #F0C040;
    --caption-color: #8B7D6B;
}
body {
    background: var(--charcoal-black);
    color: var(--text-primary);
    font-family: 'Source Serif 4', serif;
    font-size: 1.125rem;
    line-height: 1.75;
    font-weight: 400;
    overflow-x: hidden;
    position: relative;
}

/* Film Grain */
.film-grain {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 100;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    animation: grain 0.5s steps(3) infinite;
}
@keyframes grain {
    0% { transform: translate(0, 0); }
    33% { transform: translate(-2px, 1px); }
    66% { transform: translate(1px, -1px); }
    100% { transform: translate(0, 0); }
}

/* Hero */
#hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--charcoal-black);
}
.hero-title {
    font-family: 'Caveat', cursive;
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 700;
    color: var(--warm-amber);
    animation: fadeIn 2s ease;
}
.hero-meta {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.9rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--caption-color);
    margin-top: 1rem;
    animation: fadeIn 2s ease 1s both;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Diagonal Sections */
.diag-section {
    position: relative;
    clip-path: polygon(0 40px, 100% 0, 100% calc(100% - 40px), 0 100%);
    margin-top: -40px;
    padding: clamp(80px, 12vh, 160px) 2rem;
}
.diag-light {
    background: var(--parchment);
    color: var(--text-primary);
}
.diag-dark {
    background: var(--charcoal-black);
    color: var(--text-inverted);
}
.section-inner {
    max-width: 680px;
    margin: 0 auto;
}
.section-title {
    font-family: 'Caveat', cursive;
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}
.dark-title { color: var(--warm-amber); }
.body-text {
    font-size: 1.125rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}
.dark-text { color: var(--text-inverted); }
.caption {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--caption-color);
    display: block;
    margin-top: 1.5rem;
}

/* Section animation */
.section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Footer */
#footer {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--charcoal-black);
}
.footer-text {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.8rem;
    color: var(--caption-color);
    letter-spacing: 0.1em;
}

/* Responsive */
@media (max-width: 600px) {
    .diag-section { clip-path: polygon(0 20px, 100% 0, 100% calc(100% - 20px), 0 100%); margin-top: -20px; }
}
