/* tanso.center - Swiss Typography Clean */

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

/* Base Typography */
body {
    background: #FFFFFF;
    color: #555555;
    font-family: 'Inter', Helvetica, Arial, sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Corner Crop Marks */
.crop-mark {
    position: fixed;
    z-index: 100;
    pointer-events: none;
}

.crop-mark::before,
.crop-mark::after {
    content: '';
    position: absolute;
    background: #CCCCCC;
}

.crop-top-left {
    top: 16px;
    left: 16px;
}
.crop-top-left::before {
    width: 24px;
    height: 1px;
    top: 0;
    left: 0;
}
.crop-top-left::after {
    width: 1px;
    height: 24px;
    top: 0;
    left: 0;
}

.crop-top-right {
    top: 16px;
    right: 16px;
}
.crop-top-right::before {
    width: 24px;
    height: 1px;
    top: 0;
    right: 0;
}
.crop-top-right::after {
    width: 1px;
    height: 24px;
    top: 0;
    right: 0;
}

.crop-bottom-left {
    bottom: 16px;
    left: 16px;
}
.crop-bottom-left::before {
    width: 24px;
    height: 1px;
    bottom: 0;
    left: 0;
}
.crop-bottom-left::after {
    width: 1px;
    height: 24px;
    bottom: 0;
    left: 0;
}

.crop-bottom-right {
    bottom: 16px;
    right: 16px;
}
.crop-bottom-right::before {
    width: 24px;
    height: 1px;
    bottom: 0;
    right: 0;
}
.crop-bottom-right::after {
    width: 1px;
    height: 24px;
    bottom: 0;
    right: 0;
}

/* Section Headings - Helvetica (Swiss) */
.section-heading {
    font-family: Helvetica, 'Inter', Arial, sans-serif;
    font-weight: 700;
    font-size: 24px;
    color: #111111;
    letter-spacing: -0.01em;
    margin-bottom: 32px;
}

/* Horizontal Rule */
.rule {
    border: none;
    border-top: 1px solid #CCCCCC;
    max-width: 960px;
    margin: 0 auto;
}

/* Red Bullet Markers */
.red-bullet {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #E53935;
    margin-right: 8px;
    vertical-align: middle;
    flex-shrink: 0;
}

/* ===========================
   HERO ZONE
   =========================== */
.hero {
    max-width: 960px;
    margin: 0 auto;
    padding: 48px 32px;
}

.hero-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
    align-items: start;
}

.hero-left {
    grid-column: 1 / 9;
}

.hero-title {
    font-family: Helvetica, 'Inter', Arial, sans-serif;
    font-weight: 700;
    font-size: clamp(32px, 4vw, 36px);
    color: #111111;
    letter-spacing: -0.01em;
    margin-bottom: 8px;
    line-height: 1.1;
}

.hero-mission {
    font-size: 16px;
    color: #555555;
    line-height: 1.65;
}

.hero-stats {
    grid-column: 9 / 13;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-family: 'Space Mono', monospace;
    font-size: 24px;
    color: #111111;
    font-feature-settings: 'tnum';
    line-height: 1.2;
}

.stat-label {
    font-family: 'Space Mono', monospace;
    font-size: 12px;
    color: #555555;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-feature-settings: 'tnum';
}

/* ===========================
   RESEARCH AREAS
   =========================== */
.research {
    max-width: 960px;
    margin: 0 auto;
    padding: 48px 32px;
}

.research-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.research-block {
    padding: 24px;
    background: #FFFFFF;
}

.research-block.featured {
    border-left: 2px solid #E53935;
}

.category-label {
    font-family: 'Space Mono', monospace;
    font-size: 12px;
    color: #555555;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.block-title {
    font-family: Helvetica, 'Inter', Arial, sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: #111111;
    letter-spacing: -0.01em;
    margin-bottom: 8px;
    line-height: 1.3;
}

.block-desc {
    font-size: 14px;
    color: #555555;
    line-height: 1.65;
}

/* ===========================
   DATA VISUALIZATION PANELS
   =========================== */
.data-panel {
    max-width: 960px;
    margin: 0 auto;
    padding: 48px 32px;
    background: #F5F5F5;
}

.charts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.chart-block {
    background: #FFFFFF;
    padding: 24px;
}

.chart-container {
    margin: 16px 0;
}

.mini-chart {
    width: 100%;
    height: auto;
    display: block;
}

.chart-caption {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.chart-value {
    font-family: 'Space Mono', monospace;
    font-size: 18px;
    color: #111111;
    font-feature-settings: 'tnum';
}

.chart-source {
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    color: #555555;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ===========================
   PUBLICATIONS
   =========================== */
.publications {
    max-width: 960px;
    margin: 0 auto;
    padding: 48px 32px;
}

.pub-table {
    width: 100%;
    border-collapse: collapse;
    font-feature-settings: 'tnum';
}

.pub-table th {
    font-family: 'Space Mono', monospace;
    font-weight: 400;
    font-size: 12px;
    color: #555555;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-align: left;
    padding: 8px 8px 8px 0;
    border-bottom: 1px solid #111111;
}

.pub-table td {
    padding: 12px 8px 12px 0;
    border-bottom: 1px solid #CCCCCC;
    font-size: 14px;
    color: #111111;
}

.pub-date {
    font-family: 'Space Mono', monospace;
    font-size: 13px;
    color: #555555;
    white-space: nowrap;
    font-feature-settings: 'tnum';
}

.pub-table tbody tr {
    transition: background-color 0.2s ease;
}

.pub-table tbody tr:nth-child(even) {
    background: #E8E8E8;
}

.pub-table tbody tr:hover {
    background: #F5F5F5;
}

/* ===========================
   TEAM DIRECTORY
   =========================== */
.team {
    max-width: 960px;
    margin: 0 auto;
    padding: 48px 32px;
    background: #F5F5F5;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.team-member {
    background: #FFFFFF;
    padding: 24px;
}

.team-avatar {
    width: 64px;
    height: 64px;
    background: #E8E8E8;
    margin-bottom: 16px;
}

.team-name {
    font-family: Helvetica, 'Inter', Arial, sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: #111111;
    letter-spacing: -0.01em;
    margin-bottom: 4px;
}

.team-role {
    font-family: 'Space Mono', monospace;
    font-size: 12px;
    color: #E53935;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: block;
    margin-bottom: 4px;
}

.team-cred {
    font-size: 13px;
    color: #555555;
    display: block;
}

/* ===========================
   FOOTER
   =========================== */
.footer {
    max-width: 960px;
    margin: 0 auto;
    padding: 48px 32px;
    background: #1A1A1A;
    color: #CCCCCC;
}

.footer-cols {
    display: flex;
    gap: 48px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.footer-col {
    min-width: 120px;
}

.fc-title {
    font-family: Helvetica, 'Inter', Arial, sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: #FFFFFF;
    margin-bottom: 8px;
}

.fc-text {
    display: block;
    font-size: 13px;
    color: #CCCCCC;
    margin-bottom: 4px;
    line-height: 1.65;
}

.fc-link {
    display: block;
    font-size: 13px;
    color: #CCCCCC;
    text-decoration: none;
    margin-bottom: 4px;
    line-height: 1.65;
    transition: color 0.2s ease;
}

.fc-link:hover {
    color: #E53935;
}

.footer-copy {
    font-size: 12px;
    color: #555555;
    padding-top: 16px;
    border-top: 1px solid #333333;
}

/* ===========================
   ANIMATIONS
   =========================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes drawLine {
    from {
        stroke-dashoffset: 600;
    }
    to {
        stroke-dashoffset: 0;
    }
}

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

.fade-in {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.chart-block.animate .mini-chart polyline {
    stroke-dasharray: 600;
    animation: drawLine 1.5s ease forwards;
}

.chart-block.animate .mini-chart circle {
    opacity: 0;
    animation: fadeIn 0.3s ease forwards;
    animation-delay: 1.2s;
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-left {
        grid-column: 1 / -1;
    }

    .hero-stats {
        grid-column: 1 / -1;
        flex-direction: row;
        gap: 24px;
    }

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

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

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

@media (max-width: 480px) {
    .hero-stats {
        flex-direction: column;
    }

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

    .chart-caption {
        flex-direction: column;
        gap: 4px;
    }
}
