/*
Theme Name:     T2O
Theme URI:      https://t2o.com.br/
Version:         1.0
Description:    Tema T2O — minimal, clean, moderno.
Author:         T2O
Author URI:     https://t2o.com.br
Tags:           uma-coluna, largura-fixa
*/

:root {
    --t2o-bg: #fbfbf9;
    --t2o-panel: #fdfdfc;
    --t2o-primary: #1d3a88;
    --t2o-primary-rgb: 29 58 136;
    --t2o-ink: #0a0a0a;
    --t2o-ink-soft: #666;
    --t2o-ink-faint: #8f8f8f;
    --t2o-label-pale: #d0d8ea;
    --t2o-accent: var(--t2o-primary);
    --t2o-line: transparent
}

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

html { scroll-behavior: smooth; }

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--t2o-ink);
    background: var(--t2o-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }

/* Grain */
.grain-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none; z-index: 9999; opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* Layout */
.washi-page { position: relative; overflow-x: hidden; min-height: 100vh; }
.max-w-6xl { max-width: 1152px; }
.max-w-5xl { max-width: 1024px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.px-6 { padding-left: 24px; padding-right: 24px; }
@media (min-width: 640px) { .sm\:px-10 { padding-left: 40px; padding-right: 40px; } }
.relative { position: relative; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.block { display: block; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8 { gap: 32px; }
.gap-4 { gap: 16px; }
.shrink-0 { flex-shrink: 0; }
.min-w-0 { min-width: 0; }
.ml-auto { margin-left: auto; }
.mt-7 { margin-top: 28px; }
.mt-12 { margin-top: 48px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mb-0 { margin-bottom: 12px; }
.pt-8 { padding-top: 32px; }
.pb-12 { padding-bottom: 48px; }
.pb-4 { padding-bottom: 16px; }
.pt-14 { padding-top: 56px; }
.pt-20 { padding-top: 80px; }
.pt-24 { padding-top: 96px; }
@media (min-width: 640px) { .sm\\:pt-20 { padding-top: 80px; } }
@media (min-width: 640px) { .sm\\:pt-32 { padding-top: 128px; } }
@media (min-width: 640px) { .sm\\:pt-40 { padding-top: 160px; } }
.hidden { display: none; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-lg { font-size: 1.125rem; }
.font-medium { font-weight: 500; }
.font-bold { font-weight: 700; }
.tracking-wide { letter-spacing: 0.025em; }
.leading-snug { line-height: 1.35; }
.leading-relaxed { line-height: 1.625; }
.text-ink { color: var(--t2o-ink); }
.text-ink-soft { color: var(--t2o-ink-soft); }
.text-ink-faint { color: var(--t2o-ink-faint); }

/* ====== HEADER ====== */
.site-header {
    position: relative; z-index: 20;
    padding-top: 40px;
}
@media (min-width: 640px) { .site-header { padding-top: 48px; } }

.logo-link { display: inline-flex; align-items: baseline; gap: 6px; }
.logo {
    font-family: "Playfair Display", "Georgia", serif;
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--t2o-ink);
    letter-spacing: -0.5px;
    line-height: 1;
}

/* Nav */
.nav-links { align-items: center; gap: 28px; }
.nav-links:not(.hidden) { display: flex; }
.nav-links a {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--t2o-ink-faint);
    letter-spacing: 0.01em;
    transition: color 0.25s ease;
    font-family: "Inter", sans-serif;
}
.nav-links a:hover { color: var(--t2o-ink); }

/* ====== HERO ====== */
.hero-section {
    position: relative; z-index: 10;
    padding-top: 100px;
    padding-bottom: 80px;
}
@media (min-width: 640px) {
    .hero-section {
        padding-top: 140px;
        padding-bottom: 120px;
    }
}

.hero-inner { display: flex; gap: 64px; align-items: flex-start; }
@media (max-width: 960px) { .hero-inner { flex-direction: column; gap: 48px; } }

.hero-copy { flex: 1; min-width: 0; }
.hero-h1 {
    font-family: Satoshi, "Playfair Display", "Georgia", serif;
    font-size: clamp(2rem, 4.8vw, 3.2rem);
    font-weight: 400;
    line-height: 1.1;
    color: var(--t2o-primary);
    letter-spacing: -0.02em;
}
.hero-h1 .hero-line { display: block; }
.hero-h1 .hero-line + .hero-line { margin-top: 0.15em; }

.hero-copy p {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--t2o-ink-soft);
    max-width: 520px;
    margin-top: 32px;
    font-family: "Inter", sans-serif;
}
@media (min-width: 640px) { .hero-copy p { font-size: 1.25rem; margin-top: 40px; } }

.hero-copy a {
    color: var(--t2o-ink-soft);
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-thickness: 1px;
    transition: color 0.2s;
}
.hero-copy a:hover { color: var(--t2o-ink) ; }

/* ====== LOGO CLOUD ====== */
.hero-cloud { flex: 1; position: relative; min-height: 260px; }
@media (max-width: 960px) { .hero-cloud { min-height: 200px; width: 100%; } }

.logo-cloud {
    position: relative; width: 100%; height: 260px;
}
.logo-cloud-item {
    position: absolute;
    display: flex; align-items: center; justify-content: center;
    width: 36px; height: 36px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #e5e7eb;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    text-decoration: none;
}
.logo-cloud-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.logo-mark {
    width: 18px; height: 18px;
    object-fit: contain;
    border-radius: 3px;
}
.logo-cloud-item .logo-bubble {
    position: absolute; bottom: 100%; left: 50%;
    transform: translateX(-50%) translateY(-6px);
    background: #1a1a2e; color: #fff;
    font-size: 0.65rem; padding: 3px 8px;
    border-radius: 4px; white-space: nowrap;
    opacity: 0; pointer-events: none;
    transition: opacity 0.2s, transform 0.2s;
    font-family: "Inter", sans-serif;
    letter-spacing: 0.01em;
}
.logo-cloud-item:hover .logo-bubble {
    opacity: 1; transform: translateX(-50%) translateY(-10px);
}

/* Portfolio link */
.hero-portfolio-link {
    margin-top: 20px;
    font-size: 0.85rem;
    color: var(--t2o-ink-faint);
    font-family: "Inter", sans-serif;
}
.hero-portfolio-link a {
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
    transition: color 0.2s;
}
.hero-portfolio-link a:hover { color: var(--t2o-ink); }

/* ====== SECTIONS ====== */
.home-section-narrow {
    position: relative; z-index: 10;
    padding-bottom: 120px;
}
@media (min-width: 640px) { .home-section-narrow { padding-bottom: 180px; } }

.section-head {
    display: flex; align-items: baseline; justify-content: space-between;
    gap: 16px;
}
.section-head-left { display: flex; align-items: baseline; gap: 10px; }
.section-marker {
    font-size: 0.8rem; color: var(--t2o-ink-faint); font-weight: 500;
    font-family: "Inter", sans-serif;
}
.section-title {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--t2o-ink-faint);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-family: "Inter", sans-serif;
}
.section-head a {
    font-size: 0.8rem;
    color: var(--t2o-ink-faint);
    font-family: "Inter", sans-serif;
    transition: color 0.2s;
}
.section-head a:hover { color: var(--t2o-ink); }

/* ====== ESSAY ROW ====== */
.essay-row {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: 16px;
    padding: 28px 0;
    border-bottom: 1px solid #e5e7eb;
    transition: background 0.2s ease;
    text-decoration: none; color: inherit;
}
.essay-row:last-child { border-bottom: none; }
.essay-row:hover {
    background: rgba(255,255,255,0.6);
    margin: 0 -16px;
    padding-left: 16px; padding-right: 16px;
    border-radius: 8px;
}
.essay-title-line { display: flex; align-items: baseline; gap: 14px; }

.essay-icon {
    width: 18px; height: 18px;
    border-radius: 4px;
    background: #e5e7eb;
    flex-shrink: 0;
    margin-top: 2px;
}
.essay-row:hover .essay-icon { background: #d1d5db; }

.essay-title-line h3 {
    font-family: "Playfair Display", "Georgia", serif;
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--t2o-ink);
    line-height: 1.35;
    transition: color 0.3s;
}
@media (min-width: 640px) { .essay-title-line h3 { font-size: 1.4rem; } }
.essay-row:hover .essay-title-line h3 { color: var(--t2o-ink); }

.essay-desc {
    font-size: 0.9rem;
    color: var(--t2o-ink-soft);
    line-height: 1.55;
    margin-top: 8px;
    font-family: "Inter", sans-serif;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.essay-meta {
    font-size: 0.75rem;
    color: var(--t2o-ink-faint);
    margin-top: 12px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
    font-family: "Inter", sans-serif;
}
.essay-meta .author {
    display: inline-flex; align-items: center; gap: 6px;
}
.author-photo {
    width: 18px; height: 18px; border-radius: 3px; object-fit: cover;
}
.essay-arrow {
    font-size: 1.1rem; color: var(--t2o-ink-faint);
    transition: color 0.2s, transform 0.2s;
    flex-shrink: 0; margin-top: 2px;
}
.essay-row:hover .essay-arrow {
    color: var(--t2o-ink); transform: translateX(4px);
}

.max-w-3xl { max-width: 768px; }
.max-w-2xl { max-width: 672px; }

.series-tag {
    font-size: 0.7rem; color: var(--t2o-ink-soft); background: var(--t2o-bg);
    padding: 2px 8px; border-radius: 4px; font-weight: 500;
}

/* ====== IDI WIDGET ====== */
.idi-widget {
    display: block; width: 100%; overflow: hidden;
    transition: all 0.2s;
    padding: 24px 28px; cursor: pointer;
    border-radius: 20px;
    background: linear-gradient(to bottom right, #fff, #eef2ff);
    border: 1px solid var(--t2o-border);
    text-decoration: none; color: inherit;
    position: relative;
}
.idi-widget:hover {
    background: linear-gradient(to bottom right, #eef2ff, #fff);
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}
.idi-widget-header {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
}
.idi-title {
    font-family: "Playfair Display", "Georgia", serif;
    font-size: 1rem;
    font-weight: 400;
    color: #1e3a5f;
}
@media (min-width: 640px) { .idi-title { font-size: 1.1rem; } }
.idi-subtitle {
    font-size: 0.78rem;
    color: #93b4d9;
    margin-top: 4px;
    font-family: "Inter", sans-serif;
}
.idi-score-wrap { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.idi-score {
    font-family: "Playfair Display", "Georgia", serif;
    font-size: 1.6rem;
    font-weight: 400;
    color: #1e3a5f;
    letter-spacing: -0.02em;
    line-height: 1;
}
@media (min-width: 640px) { .idi-score { font-size: 2rem; } }
.idi-badge {
    font-size: 0.65rem;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(191,219,254,0.5);
    color: #1e40af;
    font-family: "Inter", sans-serif;
}
.idi-chart { width: 100%; height: 56px; margin-top: 12px; position: relative; }
@media (min-width: 640px) { .idi-chart { height: 64px; } }
.idi-widget .hover-overlay {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.2s;
    pointer-events: none; border-radius: 20px;
    background: rgba(30,58,138,0.03);
}
.idi-widget:hover .hover-overlay { opacity: 1; }
.hover-label {
    font-size: 0.85rem; font-weight: 500;
    padding: 6px 16px; border-radius: 999px;
    background: rgba(255,255,255,0.9); color: #1e3a5f;
    backdrop-filter: blur(8px); box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    font-family: "Inter", sans-serif;
}

/* ====== FOOTER ====== */
.site-footer {
    margin-top: 40px;
    position: relative; z-index: 10;
    border-top: 1px solid #e5e7eb;
    padding: 48px 0 56px;
}
.footer-inner {
    display: flex; flex-direction: column;
    align-items: center; gap: 20px;
}
@media (min-width: 640px) {
    .footer-inner {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
    }
}
.footer-note {
    display: flex; align-items: center; gap: 10px;
    color: #9ca3af;
    font-size: 0.8rem;
    font-family: "Inter", sans-serif;
}
.footer-note-icon {
    width: 20px; height: 20px; border-radius: 50%;
    object-fit: cover;
    background: #e5e7eb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    font-weight: 700;
    color: #9ca3af;
}
.footer-links {
    font-size: 0.75rem;
    color: #9ca3af;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    font-family: "Inter", sans-serif;
}
.footer-links a {
    color: #9ca3af;
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-thickness: 1px;
    transition: color 0.2s;
}
.footer-links a:hover { color: #6b7280; }

#content { position: relative; z-index: 10; }

.page-content, .single-content {
    color: #4b5563; line-height: 1.75; font-size: 1rem;
    font-family: "Inter", sans-serif;
}
.page-content h2, .single-content h2 {
    font-family: "Playfair Display", "Georgia", serif;
    font-size: 1.4rem; font-weight: 400;
    margin: 40px 0 12px; color: #1a1a2e;
}
.page-content h3, .single-content h3 {
    font-family: "Playfair Display", "Georgia", serif;
    font-size: 1.15rem; font-weight: 400;
    margin: 24px 0 8px; color: #1a1a2e;
}
.page-content p, .single-content p { margin-bottom: 16px; }
.page-content a, .single-content a {
    color: #4f46e5; text-decoration: underline;
    text-underline-offset: 3px;
}
.page-content a:hover, .single-content a:hover { color: #4338ca; }
.page-content ul, .single-content ul { list-style: disc; padding-left: 20px; margin-bottom: 16px; }
.page-content li, .single-content li { margin-bottom: 4px; }
.page-content strong, .single-content strong { color: #1a1a2e; font-weight: 600; }

.mobile-menu-btn {
    display: block; background: none; border: none;
    color: #9ca3af; cursor: pointer; padding: 8px;
}
@media (min-width: 640px) { .mobile-menu-btn { display: none; } }

body.admin-bar .site-header { top: 32px; }

@media (min-width: 640px) {
    .sm\:hidden { display: none; }
    .sm\:flex { display: flex; }
    .sm\:pt-20 { padding-top: 80px; }
    .sm\:pb-16 { padding-bottom: 64px; }
    .sm\:text-xl { font-size: 1.25rem; }
}

/* ====== PORTFOLIO GRID ====== */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 16px;
}
@media (min-width: 640px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}
@media (min-width: 960px) {
    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

.portfolio-card {
    display: block;
    padding: 20px 24px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.portfolio-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    transform: translateY(-2px);
    border-color: #d1d5db;
}

.portfolio-icon {
    width: 40px; height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}
.portfolio-icon img,
.portfolio-icon svg {
    width: 20px; height: 20px;
}

.portfolio-name {
    font-family: "Inter", sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 4px;
    letter-spacing: -0.01em;
}

.portfolio-desc {
    font-family: "Inter", sans-serif;
    font-size: 0.8rem;
    color: #9ca3af;
    line-height: 1.45;
}

/* ====== LOG / TIMELINE ====== */
.log-timeline { display: flex; flex-direction: column; gap: 0; }

.log-month {
    border-bottom: 1px solid #e5e7eb;
    padding: 32px 0;
}
.log-month:first-child { padding-top: 0; }
.log-month:last-child { border-bottom: none; }

.log-month-label {
    font-family: "Inter", sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 20px;
}

.log-entry {
    display: flex;
    gap: 14px;
    padding: 12px 0;
    align-items: flex-start;
}
.log-entry:first-child { padding-top: 0; }

.log-entry-icon {
    width: 28px; height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}
.log-entry-icon img,
.log-entry-icon svg {
    width: 14px; height: 14px;
}

.log-entry-body { min-width: 0; }

.log-entry-title {
    font-family: "Inter", sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 4px;
    letter-spacing: -0.01em;
}

.log-entry-desc {
    font-family: "Inter", sans-serif;
    font-size: 0.82rem;
    color: #6b7280;
    line-height: 1.55;
}

/* ====== RESEARCH PAGE ====== */
.research-featured {
    max-width: 672px;
}

.research-eyebrow {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 16px;
}
.research-label {
    font-family: "Inter", sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.research-eyebrow a {
    font-family: "Inter", sans-serif;
    font-size: 0.8rem;
    color: #9ca3af;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s;
}
.research-eyebrow a:hover { color: #1a1a2e; }

.research-logo-lockup {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}
.research-lockup-icon {
    width: 36px; height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.research-lockup-name {
    font-family: "Inter", sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a2e;
    letter-spacing: -0.01em;
}

.research-headline {
    font-family: "Playfair Display", "Georgia", serif;
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    font-weight: 400;
    color: #1a1a2e;
    line-height: 1.25;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.research-desc {
    font-family: "Inter", sans-serif;
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.65;
    margin-bottom: 20px;
}

.research-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.research-tag {
    font-family: "Inter", sans-serif;
    font-size: 0.65rem;
    font-weight: 500;
    color: #6b7280;
    background: #f3f4f6;
    padding: 4px 10px;
    border-radius: 999px;
    letter-spacing: 0.02em;
}

/* Research themes */
.research-themes {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.research-theme {
    display: flex;
    gap: 16px;
    padding: 28px 0;
    border-bottom: 1px solid #e5e7eb;
}
.research-theme:last-child { border-bottom: none; }

.research-theme-num {
    font-family: "Inter", sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: #9ca3af;
    flex-shrink: 0;
    min-width: 24px;
    margin-top: 2px;
}

.research-theme-body { min-width: 0; }

.research-theme-title {
    font-family: "Playfair Display", "Georgia", serif;
    font-size: 1.15rem;
    font-weight: 400;
    color: #1a1a2e;
    line-height: 1.35;
    margin-bottom: 8px;
}
@media (min-width: 640px) {
    .research-theme-title { font-size: 1.25rem; }
}

.research-theme-desc {
    font-family: "Inter", sans-serif;
    font-size: 0.88rem;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 12px;
}

.research-theme-link {
    font-family: "Inter", sans-serif;
    font-size: 0.8rem;
    color: #9ca3af;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s;
}
.research-theme-link:hover { color: #1a1a2e; }

/* ====== ESSAYS LIST (dedicated page) ====== */
.essays-list .essay-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.essay-author {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.essay-avatar {
    width: 16px; height: 16px;
    border-radius: 3px;
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    display: inline-block;
}
.essay-series {
    font-size: 0.7rem;
    font-weight: 500;
    color: #6b7280;
    background: #f3f4f6;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: "Inter", sans-serif;
}

/* ====== SINGLE POST ====== */
.single-content {
    margin: 0 auto;
}

.post-header {
    margin-bottom: 40px;
}

.post-series {
    font-family: "Inter", sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
}

.post-title {
    font-family: "Playfair Display", "Georgia", serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 400;
    line-height: 1.15;
    color: #1a1a2e;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: "Inter", sans-serif;
    font-size: 0.85rem;
    color: #9ca3af;
}

.post-avatar {
    width: 20px; height: 20px;
    border-radius: 3px;
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    display: inline-block;
    flex-shrink: 0;
}

.post-author {
    color: #6b7280;
    font-weight: 500;
}

.post-dot {
    color: #d1d5db;
}

/* Post body typography */
.page-content h2,
.single-content h2 {
    font-family: "Playfair Display", "Georgia", serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: #1a1a2e;
    line-height: 1.3;
    margin: 48px 0 16px;
    letter-spacing: -0.01em;
}
@media (min-width: 640px) {
    .page-content h2,
    .single-content h2 { font-size: 1.7rem; }
}

.page-content h3,
.single-content h3 {
    font-family: "Playfair Display", "Georgia", serif;
    font-size: 1.15rem;
    font-weight: 400;
    color: #1a1a2e;
    margin: 32px 0 12px;
}

.page-content p,
.single-content p {
    font-family: "Inter", sans-serif;
    font-size: 1.05rem;
    color: #4b5563;
    line-height: 1.75;
    margin-bottom: 20px;
}

.page-content ul,
.single-content ul {
    list-style: disc;
    padding-left: 24px;
    margin-bottom: 20px;
    font-family: "Inter", sans-serif;
    font-size: 1rem;
    color: #4b5563;
    line-height: 1.7;
}
.page-content li,
.single-content li {
    margin-bottom: 6px;
}

.page-content a,
.single-content a {
    color: #4f46e5;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}
.page-content a:hover,
.single-content a:hover {
    color: #4338ca;
}

.page-content blockquote,
.single-content blockquote {
    border-left: 2px solid #e5e7eb;
    padding-left: 20px;
    margin: 24px 0;
    font-style: italic;
    color: #6b7280;
    font-family: "Inter", sans-serif;
}

/* Post footer nav */
.post-footer-divider {
    border-top: 1px solid #e5e7eb;
    margin-bottom: 24px;
}

.post-nav {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    font-family: "Inter", sans-serif;
}
.post-nav a {
    font-size: 0.9rem;
    font-weight: 500;
    color: #1a1a2e;
    text-decoration: none;
    display: block;
    margin-top: 4px;
}
.post-nav a:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
}
.post-nav-label {
    font-size: 0.75rem;
    color: #9ca3af;
    display: block;
}
.post-nav .text-right {
    text-align: right;
}

/* ====== SIDEBAR TOC ====== */
.single-layout {
    display: flex;
    gap: 48px;
    align-items: flex-start;
}

.post-sidebar {
    position: sticky;
    top: 48px;
    flex-shrink: 0;
    width: 180px;
    padding-top: 8px;
    align-self: flex-start;
}

.post-toc {
    font-family: "Inter", sans-serif;
}

.toc-label {
    font-size: 0.65rem;
    font-weight: 500;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toc-list li a {
    font-size: 0.78rem;
    color: #9ca3af;
    line-height: 1.45;
    text-decoration: none;
    transition: color 0.2s;
    display: block;
}
.toc-list li a:hover {
    color: #1a1a2e;
}

/* Post with sidebar: content adjusts */
.single-content.with-sidebar {
    max-width: 640px;
    min-width: 0;
    flex: 1;
}

/* Sidebar only appears above 1200px */
@media (max-width: 1199px) {
    .post-sidebar {
        display: none;
    }
    .single-layout {
        display: block;
    }
    .single-content.with-sidebar {
        max-width: none;
    }
}

/* ====== POST FOOTER (tags, author, CTA, nav) ====== */
.post-footer {
    margin-top: 64px;
    padding-top: 8px;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 32px;
    font-family: "Inter", sans-serif;
    font-size: 0.85rem;
}
.post-tags-label {
    color: #9ca3af;
    margin-right: 4px;
}
.post-tags a {
    color: #4b5563;
    background: #f3f4f6;
    padding: 3px 10px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.8rem;
    transition: background 0.2s;
}
.post-tags a:hover {
    background: #e5e7eb;
}

/* Author card */
.post-author-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 20px 0;
    margin-bottom: 32px;
}
.post-author-card-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4f46e5, #8b5cf6);
    flex-shrink: 0;
}
.post-author-card-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.post-author-card-name {
    font-family: "Inter", sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: #1a1a2e;
}
.post-author-card-bio {
    font-family: "Inter", sans-serif;
    font-size: 0.82rem;
    color: #9ca3af;
    line-height: 1.5;
}

/* CTA block */
.post-cta {
    background: #f5f5f7;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 24px 28px;
    margin-bottom: 40px;
    text-align: center;
}
.post-cta-title {
    font-family: "Playfair Display", "Georgia", serif;
    font-size: 1.15rem;
    font-weight: 400;
    color: #1a1a2e;
    margin-bottom: 6px;
}
.post-cta-desc {
    font-family: "Inter", sans-serif;
    font-size: 0.85rem;
    color: #9ca3af;
    margin-bottom: 16px;
    line-height: 1.5;
}
.post-cta-btn {
    display: inline-block;
    font-family: "Inter", sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: #ffffff;
    background: #1a1a2e;
    padding: 10px 24px;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.2s;
}
.post-cta-btn:hover {
    background: #33334d;
}

/* ====== IDI PAGE ====== */
.idi-title {
    font-family: "Playfair Display", "Georgia", serif;
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 400;
    color: #1a1a2e;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 10px;
}
.idi-subtitle {
    font-family: "Inter", sans-serif;
    font-size: 1rem;
    color: #9ca3af;
    margin-bottom: 32px;
}

/* Gauge + Score */
.idi-hero-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
}
.idi-gauge-wrap {
    position: relative;
    width: 280px;
    height: 155px;
}
.idi-gauge-svg {
    width: 100%;
    height: 100%;
}
.idi-score-number {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    font-family: "Inter", sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: #1a1a2e;
    letter-spacing: -0.04em;
    line-height: 1;
}
.idi-score-badge {
    font-family: "Inter", sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    color: #1e40af;
    background: rgba(191,219,254,0.5);
    padding: 4px 12px;
    border-radius: 999px;
}

/* Hero chart */
.idi-hero-chart {
    width: 100%;
    max-width: 560px;
    height: 100px;
    margin: 0 auto 32px;
}

/* Intro */
.idi-intro {
    font-family: "Inter", sans-serif;
    font-size: 0.95rem;
    color: #6b7280;
    line-height: 1.7;
    text-align: center;
}

/* Section headings */
.idi-section-head {
    font-family: "Inter", sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 32px;
    text-align: left;
}

/* Category cards */
.idi-cat {
    border-bottom: 1px solid #e5e7eb;
    padding: 28px 0 24px;
}
.idi-cat:first-of-type {
    border-top: 1px solid #e5e7eb;
}
.idi-cat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.idi-cat-title {
    font-family: "Inter", sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    color: #1a1a2e;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.idi-cat-score {
    font-family: "Inter", sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a2e;
}
.idi-cat-chart {
    width: 100%;
    height: 40px;
    margin-bottom: 12px;
}
.idi-cat-chart svg {
    width: 100%;
    height: 100%;
}
.idi-cat-desc {
    font-family: "Inter", sans-serif;
    font-size: 0.85rem;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 16px;
    max-width: 540px;
}

/* Signal rows */
.idi-signals {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.idi-signal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: "Inter", sans-serif;
    font-size: 0.82rem;
}
.idi-signal-name {
    color: #6b7280;
}
.idi-signal-val {
    color: #1a1a2e;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

/* Scale */
.idi-scale {
    display: flex;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}
.idi-scale-seg {
    flex: 1;
    padding: 14px 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.idi-scale-name {
    font-family: "Inter", sans-serif;
    font-size: 0.72rem;
    font-weight: 500;
    color: #6b7280;
}
.idi-scale-range {
    font-family: "Inter", sans-serif;
    font-size: 0.65rem;
    color: #9ca3af;
}
.idi-scale-minimal { background: #f9fafb; }
.idi-scale-early    { background: #eff6ff; }
.idi-scale-moderate { background: #dbeafe; }
.idi-scale-significant { background: #bfdbfe; }
.idi-scale-extreme  { background: #93c5fd; }
.idi-scale-active {
    outline: 2px solid #3b82f6;
    outline-offset: -2px;
}

/* Methodology */
.idi-method-p {
    font-family: "Inter", sans-serif;
    font-size: 0.88rem;
    color: #4b5563;
    line-height: 1.7;
    margin-bottom: 16px;
}
.idi-method-p strong {
    color: #1a1a2e;
    font-weight: 500;
}
.idi-formula {
    font-family: "Inter", sans-serif;
    font-size: 0.9rem;
    color: #1a1a2e;
    background: #f5f5f7;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 16px 20px;
    margin: 20px 0;
    text-align: center;
    font-weight: 500;
}
.idi-method-sources {
    font-size: 0.78rem;
    color: #9ca3af;
    margin-top: 20px;
}

/* Embed box */
.idi-embed-box {
    background: #f5f5f7;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 32px;
}
.idi-embed-title {
    font-family: "Inter", sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 6px;
}
.idi-embed-desc {
    font-family: "Inter", sans-serif;
    font-size: 0.85rem;
    color: #9ca3af;
    line-height: 1.5;
    margin-bottom: 20px;
}
.idi-embed-preview {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}
.idi-embed-card {
    width: 100%;
    max-width: 320px;
    background: linear-gradient(to bottom right, #ffffff, #f0f6ff);
    border: 1px solid #dbeafe;
    border-radius: 12px;
    padding: 16px 18px;
}
.idi-embed-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}
.idi-embed-card-title {
    font-family: "Inter", sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: #1e3a8a;
    line-height: 1.3;
}
.idi-embed-card-score {
    font-family: "Inter", sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #1e3a8a;
    line-height: 1;
}
.idi-embed-card-bar {
    height: 3px;
    background: linear-gradient(to right, #93c5fd, #3b82f6);
    border-radius: 2px;
    width: 44%;
}
.idi-embed-actions {
    text-align: center;
}
.idi-embed-btn {
    font-family: "Inter", sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: #ffffff;
    background: #1a1a2e;
    border: none;
    border-radius: 6px;
    padding: 10px 24px;
    cursor: pointer;
    transition: background 0.2s;
}
.idi-embed-btn:hover {
    background: #33334d;
}

body.menu-open { overflow: hidden; }

/* ====== MOBILE NAV OVERLAY ====== */
#mobile-nav {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(245, 245, 247, 0.96);
    z-index: 100;
    padding: 40px 24px;
    overflow-y: auto;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}
#mobile-nav.hidden { display: none; }

.mobile-nav-inner {
    max-width: 1152px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 48px;
}

.mobile-nav-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    color: #1a1a2e;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}
.mobile-nav-close:hover {
    border-color: #1a1a2e;
    color: #1a1a2e;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.mobile-nav-links a {
    font-family: "Inter", sans-serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s;
    line-height: 1.2;
}
.mobile-nav-links a:hover {
    color: #1a1a2e;
}

.mobile-nav-footer {
    margin-top: auto;
    padding-top: 40px;
}
.mobile-lang {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: "Inter", sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    color: #6b7280;
    letter-spacing: 0.02em;
}
.mobile-lang::before {
    content: "[";
    color: #9ca3af;
}
.mobile-lang::after {
    content: "]";
    color: #9ca3af;
}

@media (min-width: 640px) {
    .idi-cat-header { margin-bottom: 12px; }
    .idi-cat-desc { font-size: 0.88rem; }
    .idi-signals { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; }


/* ====== RESEARCH V2 ====== */
.research-featured-v2 { max-width: 768px; margin: 0 auto; }
.research-featured-eyebrow {
    flex-wrap: wrap;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.research-featured-label {
    color: #9ca3af;
    font-weight: 500;
}
.research-featured-link {
    color: #1a1a2e;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}
.research-featured-link:hover { color: #3b82f6; }

.research-featured-lockup {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}
.research-featured-icon {
    width: 32px; height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.research-featured-name {
    font-family: "Inter", sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a2e;
}

.research-featured-headline {
    font-size: 1.15rem;
    font-family: "Inter", sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1a2e;
    line-height: 1.3;
    margin-bottom: 16px;
}
.research-featured-headline a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}
.research-featured-headline a:hover { color: #3b82f6; }

.research-featured-desc {
    font-family: "Inter", sans-serif;
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 24px;
}

.research-featured-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.research-featured-tag {
    font-family: "Inter", sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    color: #9ca3af;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 4px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
}

/* Research Themes V2 */
.research-themes-v2 { max-width: 768px; margin: 0 auto; }
.research-theme-v2 {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
}
.research-theme-v2:last-child { margin-bottom: 0; }
.research-theme-num {
    font-family: "Inter", sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: #9ca3af;
    flex-shrink: 0;
    min-width: 24px;
    padding-top: 2px;
}
.research-theme-body { flex: 1; }
.research-theme-title {
    font-family: "Inter", sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 10px;
    line-height: 1.4;
}
.research-theme-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}
.research-theme-title a:hover { color: #3b82f6; }
.research-theme-desc {
    font-family: "Inter", sans-serif;
    font-size: 0.88rem;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 12px;
}
.research-theme-link {
    font-family: "Inter", sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    color: #3b82f6;
    text-decoration: none;
    transition: opacity 0.2s;
}
.research-theme-link:hover { opacity: 0.7; }

/* How we work */
.research-work-grid {
    max-width: 768px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}
@media (min-width: 640px) {
    .research-work-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
}
.research-work-col {
    display: flex;
    flex-direction: column;
}
.research-work-title {
    font-family: "Inter", sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 10px;
}
.research-work-col p {
    font-family: "Inter", sans-serif;
    font-size: 0.85rem;
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
}

/* Current Areas */
.research-areas-grid {
    max-width: 768px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
}
@media (min-width: 640px) {
    .research-areas-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px 40px;
    }
}
.research-area-title {
    font-family: "Inter", sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 8px;
}
.research-area p {
    font-family: "Inter", sans-serif;
    font-size: 0.85rem;
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
}

/* Public Work */
.public-work-grid {
    max-width: 768px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.public-work-card {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 24px;
    background: #ffffff;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.public-work-card:hover {
    border-color: #d1d5db;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.public-work-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}
.public-work-title {
    font-family: "Inter", sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a2e;
}
.public-work-badge {
    font-family: "Inter", sans-serif;
    font-size: 0.65rem;
    font-weight: 600;
    color: #059669;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 3px 8px;
    background: #ecfdf5;
    border-radius: 4px;
    flex-shrink: 0;
}
.public-work-desc {
    font-family: "Inter", sans-serif;
    font-size: 0.85rem;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 16px;
}
.public-work-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.public-work-meta span {
    font-family: "Inter", sans-serif;
    font-size: 0.75rem;
    color: #9ca3af;
    font-weight: 500;
}
.public-work-link {
    font-family: "Inter", sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: #3b82f6;
    text-decoration: none;
    transition: opacity 0.2s;
}
.public-work-link:hover { opacity: 0.7; }

/* Disclaimer */
.research-disclaimer {
    max-width: 768px;
    margin: 0 auto;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}
.research-disclaimer p {
    font-family: "Inter", sans-serif;
    font-size: 0.8rem;
    color: #9ca3af;
    line-height: 1.6;
    text-align: center;
    margin: 0;
}

}


/* ===== MOBILE RESEARCH FIXES ===== */
.research-featured-eyebrow {
    flex-wrap: wrap !important;
    row-gap: 6px !important;
}
.research-featured-headline {
    font-size: 1.15rem !important;
    margin-bottom: 12px !important;
}
.research-featured-lockup {
    margin-bottom: 12px !important;
}
.research-featured-desc {
    font-size: 0.85rem !important;
    margin-bottom: 16px !important;
}
.research-featured-tags {
    gap: 6px !important;
}
.research-featured-tag {
    font-size: 0.65rem !important;
    padding: 3px 8px !important;
}
.public-work-card {
    padding: 16px !important;
}
.public-work-meta span {
    font-size: 0.7rem !important;
}

.research-featured-icon {
    flex-shrink: 0 !important;
}

@media (min-width: 640px) {
    .research-featured-headline {
        font-size: 1.5rem !important;
        margin-bottom: 16px !important;
    }
    .research-featured-desc {
        font-size: 0.9rem !important;
        margin-bottom: 24px !important;
    }
    .research-featured-lockup {
        margin-bottom: 20px !important;
    }
    .public-work-card {
        padding: 24px !important;
    }
}


/* ===== MOBILE LOCKUP FIX ===== */
@media (max-width: 639px) {
    .research-featured-lockup {
        align-items: flex-start !important;
    }
    .research-featured-icon {
        width: 28px !important;
        height: 28px !important;
        min-width: 28px !important;
        min-height: 28px !important;
        flex-shrink: 0 !important;
    }
    .research-featured-icon svg {
        width: 14px !important;
        height: 14px !important;
    }
    .research-featured-eyebrow {
        gap: 8px 12px !important;
    }
    .research-featured-link {
        width: 100% !important;
    }
    .research-featured-name {
        font-size: 0.85rem !important;
    }
}


/* ===== RESEARCH PAGE V3 - YUKI CAPITAL STYLE ===== */

/* Hero */
.research-hero {
    padding-top: 32px;
    padding-bottom: 16px;
    text-align: left;
}
.research-hero .research-title {
    font-family: "Inter", sans-serif;
    font-size: 2.8rem;
    font-weight: 600;
    color: #1a1a2e;
    line-height: 1.1;
    margin: 0 0 16px;
}
.research-hero .research-subtitle {
    font-family: "Inter", sans-serif;
    font-size: 1rem;
    color: #6b7280;
    line-height: 1.6;
    max-width: 640px;
    margin: 0;
}
@media (min-width: 640px) {
    .research-hero {
        padding-top: 48px;
        padding-bottom: 24px;
    }
    .research-hero .research-title {
        font-size: 3.2rem;
    }
}

/* Featured */
.research-featured {
    max-width: 720px;
    margin: 0 auto;
    padding: 24px 0 32px;
}
.research-featured-eyebrow {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-bottom: 20px;
    font-family: "Inter", sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.research-f-label {
    color: #9ca3af;
}
.research-f-link {
    color: #1a1a2e;
    text-decoration: none;
    transition: color 0.2s;
}
.research-f-link:hover {
    color: #3b82f6;
}
.research-f-headline {
    font-family: "Inter", sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: #1a1a2e;
    line-height: 1.3;
    margin: 0 0 12px;
}
.research-f-headline a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}
.research-f-headline a:hover {
    color: #3b82f6;
}
@media (min-width: 640px) {
    .research-f-headline {
        font-size: 1.5rem;
        margin-bottom: 16px;
    }
}
.research-f-desc {
    font-family: "Inter", sans-serif;
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.6;
    margin: 0 0 20px;
}
.research-f-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.research-f-tag {
    font-family: "Inter", sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    color: #9ca3af;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 4px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
}

/* Section Label */
.research-section-label {
    font-family: "Inter", sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 48px 0 24px;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}
@media (min-width: 640px) {
    .research-section-label {
        margin-top: 64px;
        margin-bottom: 32px;
    }
}

/* Theses */
.research-theses {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.research-thesis {
    display: flex;
    gap: 16px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e5e7eb;
}
.research-thesis:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.thesis-num {
    font-family: "Inter", sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: #3b82f6;
    line-height: 1.4;
    flex-shrink: 0;
    min-width: 36px;
}
.thesis-body {
    flex: 1;
}
.thesis-title {
    font-family: "Inter", sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 8px;
    line-height: 1.4;
}
.thesis-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}
.thesis-title a:hover {
    color: #3b82f6;
}
.thesis-body > p {
    font-family: "Inter", sans-serif;
    font-size: 0.85rem;
    color: #6b7280;
    line-height: 1.6;
    margin: 0 0 10px;
}
.thesis-read {
    font-family: "Inter", sans-serif;
    font-size: 0.8rem;
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}
.thesis-read:hover {
    text-decoration: underline;
}

/* How we work */
.research-work {
    max-width: 720px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}
@media (min-width: 640px) {
    .research-work {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
}
.research-work-item h3 {
    font-family: "Inter", sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 10px;
}
.research-work-item p {
    font-family: "Inter", sans-serif;
    font-size: 0.85rem;
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
}

/* Current Areas */
.research-areas {
    max-width: 720px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}
@media (min-width: 640px) {
    .research-areas {
        grid-template-columns: 1fr 1fr;
        gap: 32px 40px;
    }
}
.research-area h3 {
    font-family: "Inter", sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 8px;
}
.research-area p {
    font-family: "Inter", sans-serif;
    font-size: 0.85rem;
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
}

/* Public Work */
.public-work {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.public-work-card {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    background: #ffffff;
}
@media (min-width: 640px) {
    .public-work-card {
        padding: 24px;
    }
}
.public-work-card:hover {
    border-color: #d1d5db;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.public-work-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 12px;
    gap: 12px;
    flex-wrap: wrap;
}
.public-work-title {
    font-family: "Inter", sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a2e;
}
.public-work-badge {
    font-family: "Inter", sans-serif;
    font-size: 0.65rem;
    font-weight: 500;
    color: #10b981;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 2px 8px;
    border: 1px solid #10b981;
    border-radius: 4px;
}
.public-work-desc {
    font-family: "Inter", sans-serif;
    font-size: 0.85rem;
    color: #6b7280;
    line-height: 1.6;
    margin: 0 0 16px;
}
.public-work-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.public-work-meta span {
    font-family: "Inter", sans-serif;
    font-size: 0.75rem;
    color: #9ca3af;
    font-weight: 500;
}
.public-work-link {
    font-family: "Inter", sans-serif;
    font-size: 0.85rem;
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}
.public-work-link:hover {
    text-decoration: underline;
}

/* Disclaimer */
.research-disclaimer {
    max-width: 720px;
    margin: 0 auto;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}
.research-disclaimer p {
    font-family: "Inter", sans-serif;
    font-size: 0.8rem;
    color: #9ca3af;
    line-height: 1.6;
    text-align: center;
    margin: 0;
}


.portfolio-hero {
    padding-top: 40px;
    padding-bottom: 8px;
}
.portfolio-hero h1 {
    font-family: "Playfair Display", serif;
    font-size: 2.8rem;
    font-weight: 500;
    color: #111827;
    line-height: 1.05;
    margin: 0 0 16px;
}
.portfolio-hero p {
    font-family: "Inter", sans-serif;
    font-size: 1rem;
    color: #9ca3af;
    line-height: 1.6;
    max-width: 560px;
    margin: 0;
}
.portfolio-hero p a {
    color: #6b7280;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s;
}
.portfolio-hero p a:hover {
    color: #111827;
}
@media (min-width: 640px) {
    .portfolio-hero {
        padding-top: 56px;
        padding-bottom: 12px;
    }
    .portfolio-hero h1 {
        font-size: 3.2rem;
    }
}

/* Grid */
.portfolio-grid {
    max-width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px 28px;
    padding-top: 24px;
}
@media (min-width: 640px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px 32px;
        padding-top: 32px;
    }
}
@media (min-width: 900px) {
    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 28px 32px;
    }
}

/* Item — horizontal: icon left, text right */
.portfolio-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    text-decoration: none;
    transition: opacity 0.2s;
    padding: 4px 0;
    margin:20px;
}
.portfolio-item:hover {
    opacity: 0.75;
}
.p-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.p-icon svg {
    width: 16px;
    height: 16px;
}
.p-icon span {
    font-size: 0.55rem;
    font-weight: 700;
    color: white;
}
.p-body {
    flex: 1;
    min-width: 0;
}
.p-name {
    font-family: "Inter", sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: #111827;
    line-height: 1.3;
    margin: 0 0 2px;
}
.p-desc {
    font-family: "Inter", sans-serif;
    font-size: 0.78rem;
    color: #9ca3af;
    line-height: 1.45;
    margin: 0;
}

.log-hero {
    padding-top: 40px;
    padding-bottom: 8px;
}
.log-hero h1 {
    font-family: "Playfair Display", serif;
    font-size: 2.8rem;
    font-weight: 500;
    color: #111827;
    line-height: 1.05;
    margin: 0 0 16px;
}
.log-hero p {
    font-family: "Inter", sans-serif;
    font-size: 1rem;
    color: #9ca3af;
    line-height: 1.6;
    max-width: 560px;
    margin: 0;
}
@media (min-width: 640px) {
    .log-hero {
        padding-top: 56px;
        padding-bottom: 12px;
    }
    .log-hero h1 {
        font-size: 3.2rem;
    }
}

/* Timeline container */
.log-timeline {
    max-width: 640px;
    margin: 0 auto;
    padding-top: 32px;
    padding-bottom: 48px;
}

/* Month label */
.log-month-label {
    font-family: "Inter", sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    color: #d1d5db;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin: 40px 0 16px;
}
.log-month:first-child .log-month-label {
    margin-top: 0;
}

/* Entry */
.log-entry {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 8px 0;
}
.log-entry-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}
.log-entry-icon span {
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    font-family: "Inter", sans-serif;
    text-transform: uppercase;
}
.log-entry-body {
    flex: 1;
    min-width: 0;
}
.log-entry-title {
    font-family: "Inter", sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: #111827;
    line-height: 1.4;
    margin: 0 0 4px;
}
.log-entry-desc {
    font-family: "Inter", sans-serif;
    font-size: 0.85rem;
    color: #9ca3af;
    line-height: 1.5;
    margin: 0;
}

.research-hero { 
    padding-top: 40px; 
    padding-bottom: 20px; 
}
.research-title { 
    font-family: "Playfair Display", serif; 
    font-size: 3rem; 
    font-weight: 500; 
    color: #111827; 
    line-height: 1.05; 
    margin: 0 0 20px; 
}
.research-subtitle { 
    font-family: "Inter", sans-serif; 
    font-size: 1.05rem; 
    color: #9ca3af; 
    line-height: 1.7; 
    max-width: 600px; 
    margin: 0; 
}
.research-section-label {
    font-family: "Inter", sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    color: #d1d5db;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin: 56px 0 24px;
}
.research-featured {
    padding: 16px 0 32px;
}
.research-f-headline a {
    color: #3b82f6 !important;
    text-decoration: none;
}
.research-f-headline a:hover {
    color: #2563eb !important;
}
.research-f-desc {
    color: #6b7280;
    line-height: 1.7;
}
.thesis-num {
    color: #d1d5db;
    font-weight: 400;
    font-size: 0.8rem;
}
.thesis-title {
    font-size: 1.05rem;
    font-weight: 500;
}
.thesis-title a {
    color: #111827 !important;
}
.thesis-read {
    color: #6b7280 !important;
    font-size: 0.8rem;
}
.thesis-read:hover {
    color: #3b82f6 !important;
}
@media (min-width: 640px) {
    .research-hero { 
        padding-top: 64px; 
        padding-bottom: 32px; 
    }
    .research-title { 
        font-size: 3.5rem; 
    }
    .research-section-label {
        margin-top: 80px;
        margin-bottom: 32px;
    }
    .research-featured {
        padding: 24px 0 48px;
    }
}

.research-hero {
    padding-top: 40px;
    padding-bottom: 20px;
}
.research-title {
    font-family: "Playfair Display", serif;
    font-size: 2.8rem;
    font-weight: 500;
    color: #111827;
    line-height: 1.05;
    margin: 0 0 16px;
}
.research-subtitle {
    font-family: "Inter", sans-serif;
    font-size: 1rem;
    color: #9ca3af;
    line-height: 1.6;
    max-width: 640px;
    margin: 0;
}
@media (min-width: 640px) {
    .research-hero {
        padding-top: 64px;
        padding-bottom: 32px;
    }
    .research-title {
        font-size: 3.5rem;
    }
}

/* Section label */
.research-section-label {
    font-family: "Inter", sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    color: #d1d5db;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin: 56px 0 24px;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}
@media (min-width: 640px) {
    .research-section-label {
        margin-top: 80px;
        margin-bottom: 32px;
    }
}

/* Featured */
.research-featured {
    max-width: 720px;
    margin: 0 auto;
    padding: 16px 0 32px;
}
.research-featured-eyebrow {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-bottom: 20px;
    font-family: "Inter", sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.research-f-label {
    color: #9ca3af;
}
.research-f-link {
    color: #1a1a2e;
    text-decoration: none;
    transition: color 0.2s;
}
.research-f-link:hover {
    color: #3b82f6;
}
.research-f-headline {
    font-family: "Inter", sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: #3b82f6;
    line-height: 1.3;
    margin: 0 0 12px;
}
.research-f-headline a {
    color: inherit;
    text-decoration: none;
}
.research-f-headline a:hover {
    color: #2563eb;
}
@media (min-width: 640px) {
    .research-f-headline {
        font-size: 1.5rem;
        margin-bottom: 16px;
    }
}
.research-f-desc {
    font-family: "Inter", sans-serif;
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.6;
    margin: 0 0 20px;
}
.research-f-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.research-f-tag {
    font-family: "Inter", sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    color: #9ca3af;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 4px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
}

/* Theses */
.research-theses {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.research-thesis {
    display: flex;
    gap: 16px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e5e7eb;
}
.research-thesis:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.thesis-num {
    font-family: "Inter", sans-serif;
    font-size: 0.85rem;
    font-weight: 400;
    color: #d1d5db;
    line-height: 1.4;
    flex-shrink: 0;
    min-width: 36px;
}
.thesis-body {
    flex: 1;
}
.thesis-title {
    font-family: "Inter", sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: #111827;
    margin: 0 0 8px;
    line-height: 1.4;
}
.thesis-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}
.thesis-title a:hover {
    color: #3b82f6;
}
.thesis-body > p {
    font-family: "Inter", sans-serif;
    font-size: 0.85rem;
    color: #6b7280;
    line-height: 1.6;
    margin: 0 0 10px;
}
.thesis-read {
    font-family: "Inter", sans-serif;
    font-size: 0.8rem;
    color: #6b7280;
    text-decoration: none;
    font-weight: 500;
}
.thesis-read:hover {
    color: #3b82f6;
    text-decoration: underline;
}

/* How we work */
.research-work {
    max-width: 720px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}
@media (min-width: 640px) {
    .research-work {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
}
.research-work-item h3 {
    font-family: "Inter", sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 10px;
}
.research-work-item p {
    font-family: "Inter", sans-serif;
    font-size: 0.85rem;
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
}

/* Current Areas */
.research-areas {
    max-width: 720px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}
@media (min-width: 640px) {
    .research-areas {
        grid-template-columns: 1fr 1fr;
        gap: 32px 40px;
    }
}
.research-area h3 {
    font-family: "Inter", sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 8px;
}
.research-area p {
    font-family: "Inter", sans-serif;
    font-size: 0.85rem;
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
}

/* Public Work */
.public-work {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.public-work-card {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    background: #ffffff;
}
@media (min-width: 640px) {
    .public-work-card {
        padding: 24px;
    }
}
.public-work-card:hover {
    border-color: #d1d5db;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.public-work-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 12px;
    gap: 12px;
    flex-wrap: wrap;
}
.public-work-title {
    font-family: "Inter", sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
}
.public-work-badge {
    font-family: "Inter", sans-serif;
    font-size: 0.65rem;
    font-weight: 500;
    color: #10b981;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 2px 8px;
    border: 1px solid #10b981;
    border-radius: 4px;
}
.public-work-desc {
    font-family: "Inter", sans-serif;
    font-size: 0.85rem;
    color: #6b7280;
    line-height: 1.6;
    margin: 0 0 16px;
}
.public-work-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.public-work-meta span {
    font-family: "Inter", sans-serif;
    font-size: 0.75rem;
    color: #9ca3af;
    font-weight: 500;
}
.public-work-link {
    font-family: "Inter", sans-serif;
    font-size: 0.85rem;
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}
.public-work-link:hover {
    text-decoration: underline;
}

/* Disclaimer */
.research-disclaimer {
    max-width: 720px;
    margin: 0 auto;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
    margin-top: 40px;
}
.research-disclaimer p {
    font-family: "Inter", sans-serif;
    font-size: 0.8rem;
    color: #9ca3af;
    line-height: 1.6;
    text-align: center;
    margin: 0;
}